| Line 1... |
Line 1... |
| 1 |
package com.smartdukaan.cron.scheduled;
|
1 |
package com.smartdukaan.cron.scheduled;
|
| 2 |
|
2 |
|
| 3 |
import java.time.LocalDate;
|
- |
|
| 4 |
import java.time.LocalDateTime;
|
- |
|
| 5 |
import java.time.LocalTime;
|
- |
|
| 6 |
import java.util.List;
|
- |
|
| 7 |
import java.util.Map;
|
- |
|
| 8 |
import java.util.stream.Collectors;
|
- |
|
| 9 |
|
- |
|
| 10 |
import org.apache.logging.log4j.LogManager;
|
- |
|
| 11 |
import org.apache.logging.log4j.Logger;
|
- |
|
| 12 |
import org.springframework.beans.factory.annotation.Autowired;
|
- |
|
| 13 |
import org.springframework.stereotype.Component;
|
- |
|
| 14 |
import org.springframework.transaction.annotation.Transactional;
|
- |
|
| 15 |
|
- |
|
| 16 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
3 |
import com.spice.profitmandi.common.exception.ProfitMandiBusinessException;
|
| 17 |
import com.spice.profitmandi.common.util.FormattingUtils;
|
4 |
import com.spice.profitmandi.common.util.FormattingUtils;
|
| 18 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
5 |
import com.spice.profitmandi.dao.entity.fofo.InventoryItem;
|
| 19 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
6 |
import com.spice.profitmandi.dao.entity.fofo.PartnerDailyInvestment;
|
| 20 |
import com.spice.profitmandi.dao.entity.fofo.SchemeInOut;
|
7 |
import com.spice.profitmandi.dao.entity.fofo.SchemeInOut;
|
| Line 23... |
Line 10... |
| 23 |
import com.spice.profitmandi.dao.repository.fofo.InventoryItemRepository;
|
10 |
import com.spice.profitmandi.dao.repository.fofo.InventoryItemRepository;
|
| 24 |
import com.spice.profitmandi.dao.repository.fofo.PartnerDailyInvestmentRepository;
|
11 |
import com.spice.profitmandi.dao.repository.fofo.PartnerDailyInvestmentRepository;
|
| 25 |
import com.spice.profitmandi.dao.repository.fofo.SchemeInOutRepository;
|
12 |
import com.spice.profitmandi.dao.repository.fofo.SchemeInOutRepository;
|
| 26 |
import com.spice.profitmandi.service.user.RetailerService;
|
13 |
import com.spice.profitmandi.service.user.RetailerService;
|
| 27 |
import com.spice.profitmandi.service.wallet.WalletService;
|
14 |
import com.spice.profitmandi.service.wallet.WalletService;
|
| - |
|
15 |
import in.shop2020.model.v1.order.WalletReferenceType;
|
| - |
|
16 |
import org.apache.logging.log4j.LogManager;
|
| - |
|
17 |
import org.apache.logging.log4j.Logger;
|
| - |
|
18 |
import org.springframework.beans.factory.annotation.Autowired;
|
| - |
|
19 |
import org.springframework.stereotype.Component;
|
| - |
|
20 |
import org.springframework.transaction.annotation.Transactional;
|
| 28 |
|
21 |
|
| - |
|
22 |
import java.time.LocalDate;
|
| - |
|
23 |
import java.time.LocalDateTime;
|
| - |
|
24 |
import java.time.LocalTime;
|
| - |
|
25 |
import java.util.List;
|
| - |
|
26 |
import java.util.Map;
|
| 29 |
import in.shop2020.model.v1.order.WalletReferenceType;;
|
27 |
import java.util.stream.Collectors;
|
| - |
|
28 |
|
| - |
|
29 |
;
|
| 30 |
|
30 |
|
| 31 |
@Component
|
31 |
@Component
|
| 32 |
@Transactional(rollbackFor = Throwable.class)
|
32 |
@Transactional(rollbackFor = Throwable.class)
|
| 33 |
public class InvestmentRelatedTasks {
|
33 |
public class InvestmentRelatedTasks {
|
| 34 |
@Autowired
|
34 |
@Autowired
|
| Line 135... |
Line 135... |
| 135 |
totalAmount = totalAmount / 2;
|
135 |
totalAmount = totalAmount / 2;
|
| 136 |
}
|
136 |
}
|
| 137 |
System.out.printf("%d\t%d\t%f%n", fofoId, investmentMaintainedDays, totalAmount);
|
137 |
System.out.printf("%d\t%d\t%f%n", fofoId, investmentMaintainedDays, totalAmount);
|
| 138 |
}
|
138 |
}
|
| 139 |
}
|
139 |
}
|
| - |
|
140 |
|
| 140 |
}
|
141 |
}
|
| 141 |
|
142 |
|