| Line 602... |
Line 602... |
| 602 |
startDate = LocalDate.now().minusDays(1).atStartOfDay();
|
602 |
startDate = LocalDate.now().minusDays(1).atStartOfDay();
|
| 603 |
endDate = LocalDate.now().minusDays(1).atTime(LocalTime.MAX);
|
603 |
endDate = LocalDate.now().minusDays(1).atTime(LocalTime.MAX);
|
| 604 |
}
|
604 |
}
|
| 605 |
|
605 |
|
| 606 |
List<PartnerDailyInvestment> partnerDailyInvestments = partnerDailyInvestmentRepository
|
606 |
List<PartnerDailyInvestment> partnerDailyInvestments = partnerDailyInvestmentRepository
|
| 607 |
.selectAll(fofoIdList, startDate.minusDays(3).toLocalDate());
|
607 |
.selectAll(fofoIdList, startDate.minusDays(1).toLocalDate());
|
| 608 |
if (!partnerDailyInvestments.isEmpty()) {
|
608 |
if (!partnerDailyInvestments.isEmpty()) {
|
| 609 |
partnerDailyInvestmentMap = partnerDailyInvestments.stream()
|
609 |
partnerDailyInvestmentMap = partnerDailyInvestments.stream()
|
| 610 |
.collect(Collectors.toMap(x -> x.getFofoId(), x -> x));
|
610 |
.collect(Collectors.toMap(x -> x.getFofoId(), x -> x));
|
| 611 |
}
|
611 |
}
|
| 612 |
|
612 |
|
| Line 783... |
Line 783... |
| 783 |
@ApiImplicitParams({
|
783 |
@ApiImplicitParams({
|
| 784 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
784 |
@ApiImplicitParam(name = "Auth-Token", value = "Auth-Token", required = true, dataType = "string", paramType = "header") })
|
| 785 |
public ResponseEntity<?> createPartnerTarget(HttpServletRequest request,
|
785 |
public ResponseEntity<?> createPartnerTarget(HttpServletRequest request,
|
| 786 |
@RequestBody PartnerTargetAchievementModel ptam) throws ProfitMandiBusinessException {
|
786 |
@RequestBody PartnerTargetAchievementModel ptam) throws ProfitMandiBusinessException {
|
| 787 |
|
787 |
|
| - |
|
788 |
LOGGER.info("ptam" + ptam);
|
| - |
|
789 |
|
| 788 |
AuthUser authUser = authRepository.selectByGmailId(ptam.getCreatedBy());
|
790 |
AuthUser authUser = authRepository.selectByGmailId(ptam.getCreatedBy());
|
| 789 |
|
791 |
|
| 790 |
PartnerCollectionPlan partnerCollectionPlan = partnerCollectionPlanRepository.selectByLocalDate(LocalDate.now(),
|
792 |
PartnerCollectionPlan partnerCollectionPlan = partnerCollectionPlanRepository.selectByLocalDate(LocalDate.now(),
|
| 791 |
ptam.getFofoId(), true);
|
793 |
ptam.getFofoId(), true);
|
| 792 |
LOGGER.info("pcp" + partnerCollectionPlan);
|
794 |
LOGGER.info("pcp" + partnerCollectionPlan);
|