|
|
@ -15,6 +15,7 @@ import com.epmet.dao.evaluationindex.indexcal.GridSubScoreDao; |
|
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexGovrnAblityGridMonthlyDao; |
|
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexPartyAblityGridMonthlyDao; |
|
|
|
import com.epmet.dao.evaluationindex.indexcoll.FactIndexServiceAblityGridMonthlyDao; |
|
|
|
import com.epmet.dao.evaluationindex.screen.IndexGroupDetailDao; |
|
|
|
import com.epmet.dao.evaluationindex.screen.ScreenCustomerGridDao; |
|
|
|
import com.epmet.dto.ScreenCustomerGridDTO; |
|
|
|
import com.epmet.dto.indexcal.*; |
|
|
@ -71,6 +72,8 @@ public class GridCorreLationServiceImpl implements GridCorreLationService { |
|
|
|
private GridScoreDao gridScoreDao; |
|
|
|
@Autowired |
|
|
|
private GridSubScoreDao gridSubScoreDao; |
|
|
|
@Autowired |
|
|
|
private IndexGroupDetailDao indexGroupDetailDao; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@ -96,18 +99,25 @@ public class GridCorreLationServiceImpl implements GridCorreLationService { |
|
|
|
} |
|
|
|
|
|
|
|
private void calculateSelfSubScore(CalculateCommonFormDTO formDTO) { |
|
|
|
/* List<String> gridIdList = gridScoreDao.selectListGridId(formDTO.getCustomerId(), formDTO.getMonthId()); |
|
|
|
if (CollectionUtils.isEmpty(gridIdList)){ |
|
|
|
log.warn("calculateSelfSubScore have not any record"); |
|
|
|
|
|
|
|
//todo 指标添加缓存
|
|
|
|
List<IndexGroupDetailEntity> indexList = indexGroupDetailService.getDetailListByParentCode(formDTO.getCustomerId(), |
|
|
|
IndexCodeEnum.WANG_GE_XIANG_GUAN.getCode()); |
|
|
|
if (CollectionUtils.isEmpty(indexList)) { |
|
|
|
log.error("calculateSelfSubScore customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); |
|
|
|
throw new RenException("客户【网格相关】指标权重信息不存在"); |
|
|
|
} |
|
|
|
indexList.forEach(index -> { |
|
|
|
String levelIndexPath = index.getAllParentIndexCode().concat(StrConstant.COLON).concat(index.getIndexCode()); |
|
|
|
//获取出指标之间的关系
|
|
|
|
List<IndexGroupDetailEntity> slefsubIndexList = indexGroupDetailDao.selectSelfSubIndex(formDTO.getCustomerId(), levelIndexPath); |
|
|
|
if (CollectionUtils.isEmpty(slefsubIndexList)) { |
|
|
|
log.error("calculateSelfSubScore customerId:{} have not any indexGroupDetail", formDTO.getCustomerId()); |
|
|
|
return; |
|
|
|
} |
|
|
|
List<List<String>> partGridIds = ListUtils.partition(gridIdList, NumConstant.ONE_HUNDRED); |
|
|
|
partGridIds.forEach(gridIds->{ |
|
|
|
int pageNo = NumConstant.ONE; |
|
|
|
int pageSize = 2;//NumConstant.ONE_HUNDRED;
|
|
|
|
List<GridSubScoreDTO> list = gridSubScoreDao.selectSubListGroup(formDTO.getCustomerId(),formDTO.getMonthId(),(pageNo-NumConstant.ONE)*pageSize,pageSize); |
|
|
|
});*/ |
|
|
|
|
|
|
|
//获取该能力下的分数
|
|
|
|
List<GridSubScoreEntity> subScore = gridSubScoreDao.selectSubListByPath(formDTO.getCustomerId(), formDTO.getMonthId(), levelIndexPath); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|