@ -69,7 +69,7 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService {
return ;
}
//获取数据
List < Map < String , Object > > list = null ;
List < CpcScoreEntity > list = null ;
int pageNo = 1 ;
int pageSize = 10 ;
do {
@ -77,13 +77,9 @@ public class CpcIndexCalculateServiceImpl implements CpcIndexCalculateService {
list = cpcScoreDao . getPartScoreByPage ( formDTO . getCustomerId ( ) , formDTO . getMonthId ( ) , ( pageNo - 1 ) * pageSize , pageSize ) ;
if ( ! CollectionUtils . isEmpty ( list ) ) {
list . forEach ( partScore - > {
partScore . get ( IndexCalConstant . USER_ID )
} ) ;
//遍历指标分组 计算分数
List < Map < String , Object > > finalList = list ;
groupIndexDetailsMap . forEach ( ( parentIndexCode , details ) - > {
calculate ( formDTO , details , finalList , minAndMaxMap , parentIndexCode ) ;
} ) ;
}
} while ( ! CollectionUtils . isEmpty ( list ) & & pageNo + + > 0 ) ;