Browse Source

项目分类统计

dev_shibei_match
zxc 4 years ago
parent
commit
291c469c7b
  1. 17
      epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenProjectCategoryOrgDailyServiceImpl.java

17
epmet-module/data-statistical/data-statistical-server/src/main/java/com/epmet/service/evaluationindex/screen/impl/ScreenProjectCategoryOrgDailyServiceImpl.java

@ -156,6 +156,7 @@ public class ScreenProjectCategoryOrgDailyServiceImpl extends BaseServiceImpl<Sc
/**
* @Description 按组织计算分类统计项目数量
* 查询sql以pid为orgIdpid的parentAgencyId为pid
* @Param customerId
* @Param dateId
* @author zxc
@ -170,6 +171,11 @@ public class ScreenProjectCategoryOrgDailyServiceImpl extends BaseServiceImpl<Sc
disposeOneCustomer(customerId, dateId);
}else {
// 多客户
/**
* 1.查自己客户分类标签统计
* 2.查询子级客户分类标签分为 epmet_category_code is null is not nullpid = '0'跟父客户对比同类标签项目数累加不同直接添加到父客户
* 加入直属网格
*/
disposeMoreCustomer(customerId,dateId,relationInfo);
}
}
@ -288,9 +294,20 @@ public class ScreenProjectCategoryOrgDailyServiceImpl extends BaseServiceImpl<Sc
}
}
/**
* @Description 多客户处理
* @Param level 级别
* @Param isGrid
* @Param customerId
* @Param dateId
* @Param relationInfo 子级客户信息
* @author zxc
* @date 2021/3/25 下午1:29
*/
private void disposeMoreCustomerSub(String level,Boolean isGrid,String customerId, String dateId, List<CustomerRelationEntity> relationInfo){
List<ScreenProjectCategoryOrgDailyEntity> result = new ArrayList<>();
if (isGrid){
// community级别走这
List<CategoryProjectResultDTO> categoryInfos = gridDailyDao.selectCategoryInfo(customerId, dateId,null,null);
if (!CollectionUtils.isEmpty(categoryInfos)){
result = ConvertUtils.sourceToTarget(categoryInfos, ScreenProjectCategoryOrgDailyEntity.class);

Loading…
Cancel
Save