|
|
@ -188,7 +188,7 @@ public class ScreenProjectQuantityOrgMonthlyServiceImpl extends BaseServiceImpl< |
|
|
|
p.setProjectIncr(p.getProjectIncr()); |
|
|
|
}); |
|
|
|
} |
|
|
|
List<ProjectOrgMonthlyResultDTO> projectGrandOrg = baseDao.selectQuantityGrandOrgMonthly(null, agencyInfos, monthId); |
|
|
|
List<ProjectOrgMonthlyResultDTO> projectGrandOrg = baseDao.selectQuantityGrandOrgMonthly(agencyInfos, monthId); |
|
|
|
if (!CollectionUtils.isEmpty(projectGrandOrg)){ |
|
|
|
projectGrandOrg.forEach(p -> { |
|
|
|
p.setClosedTotal(p.getClosedTotal()); |
|
|
@ -245,21 +245,21 @@ public class ScreenProjectQuantityOrgMonthlyServiceImpl extends BaseServiceImpl< |
|
|
|
*/ |
|
|
|
public void extractionProjectOrgMonthlyMoreCustomer(String customerId,String monthId){ |
|
|
|
CustomerAgencyEntity rootAgency=customerAgencyService.getRootAgencyInfo(customerId); |
|
|
|
List<ScreenProjectOrgDailyDTO> screenProjectOrgDailyDTOS=agencyDao.selectAgencyByAreaCode(customerId, rootAgency.getAreaCode()); |
|
|
|
List<ScreenProjectOrgDailyDTO> screenProjectOrgDailyDTOS=agencyDao.selectAgencyByAreaCode(rootAgency.getAreaCode()); |
|
|
|
if (CollectionUtils.isEmpty(screenProjectOrgDailyDTOS)){ |
|
|
|
log.warn(String.format(PingYinConstants.AGENCY_INFO_IS_ZERO,customerId)); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
List<ScreenProjectQuantityOrgMonthlyDTO> agencyInfos = ConvertUtils.sourceToTarget(screenProjectOrgDailyDTOS, ScreenProjectQuantityOrgMonthlyDTO.class); |
|
|
|
List<ProjectOrgMonthlyResultDTO> projectOrg = baseDao.selectQuantityOrgMonthly(customerId, agencyInfos, monthId); |
|
|
|
List<ProjectOrgMonthlyResultDTO> projectOrg = baseDao.selectQuantityOrgMonthly(agencyInfos, monthId); |
|
|
|
/*if (!CollectionUtils.isEmpty(projectOrg)){ |
|
|
|
projectOrg.forEach(p -> { |
|
|
|
p.setClosedIncr(p.getClosedIncr()); |
|
|
|
p.setProjectIncr(p.getProjectIncr()); |
|
|
|
}); |
|
|
|
}*/ |
|
|
|
List<ProjectOrgMonthlyResultDTO> projectGrandOrg = baseDao.selectQuantityGrandOrgMonthly(customerId, agencyInfos, monthId); |
|
|
|
List<ProjectOrgMonthlyResultDTO> projectGrandOrg = baseDao.selectQuantityGrandOrgMonthly(agencyInfos, monthId); |
|
|
|
/*if (!CollectionUtils.isEmpty(projectGrandOrg)){ |
|
|
|
projectGrandOrg.forEach(p -> { |
|
|
|
p.setClosedTotal(p.getClosedTotal()); |
|
|
|