|
|
@ -234,28 +234,29 @@ public class ScreenDeptEventStatServiceImpl extends BaseServiceImpl<ScreenDeptEv |
|
|
|
List<EventStatisticsResultDTO> resultDTOList = baseDao.getScreenExportData(formDTO); |
|
|
|
|
|
|
|
// 组装满意度信息
|
|
|
|
resultDTOList = getSatisfiedInfo(formDTO,resultDTOList); |
|
|
|
getSatisfiedInfo(formDTO, resultDTOList); |
|
|
|
|
|
|
|
// 获取按期办结信息
|
|
|
|
resultDTOList = getOnTimeDealInfo(formDTO,resultDTOList); |
|
|
|
getOnTimeDealInfo(formDTO, resultDTOList); |
|
|
|
|
|
|
|
// 获取红黄灯预警数
|
|
|
|
resultDTOList = getYellowRedInfo(formDTO,resultDTOList); |
|
|
|
getYellowRedInfo(formDTO, resultDTOList); |
|
|
|
|
|
|
|
return resultDTOList; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取满意度和满意率 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private List<EventStatisticsResultDTO> getSatisfiedInfo(EventStatisticsFormDTO formDTO,List<EventStatisticsResultDTO> resultDTOList){ |
|
|
|
private List<EventStatisticsResultDTO> getSatisfiedInfo(EventStatisticsFormDTO formDTO, List<EventStatisticsResultDTO> resultDTOList) { |
|
|
|
List<EvaluationInfoResultDTO> resultDto = baseDao.getSatisfiedInfo(formDTO); |
|
|
|
// 组装满意度信息
|
|
|
|
for(EventStatisticsResultDTO totalDto : resultDTOList){ |
|
|
|
for(EvaluationInfoResultDTO childDto : resultDto){ |
|
|
|
if(totalDto.getDeptId().equals(childDto.getDeptId())){ |
|
|
|
for (EventStatisticsResultDTO totalDto : resultDTOList) { |
|
|
|
for (EvaluationInfoResultDTO childDto : resultDto) { |
|
|
|
if (totalDto.getDeptId().equals(childDto.getDeptId())) { |
|
|
|
totalDto.setSatisfiedCount(childDto.getValue()); |
|
|
|
totalDto.setSatisfiedRatio(childDto.getProportion()); |
|
|
|
break; |
|
|
@ -267,15 +268,16 @@ public class ScreenDeptEventStatServiceImpl extends BaseServiceImpl<ScreenDeptEv |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取按期办结信息 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private List<EventStatisticsResultDTO> getOnTimeDealInfo(EventStatisticsFormDTO formDTO,List<EventStatisticsResultDTO> resultDTOList){ |
|
|
|
private List<EventStatisticsResultDTO> getOnTimeDealInfo(EventStatisticsFormDTO formDTO, List<EventStatisticsResultDTO> resultDTOList) { |
|
|
|
List<OnTimeDealInfoResultDTO> resultDto = baseDao.getOnTimeDealInfo(formDTO); |
|
|
|
// 组装按期办结信息
|
|
|
|
for(EventStatisticsResultDTO totalDto : resultDTOList){ |
|
|
|
for(OnTimeDealInfoResultDTO childDto : resultDto){ |
|
|
|
if(totalDto.getDeptId().equals(childDto.getDeptId())){ |
|
|
|
for (EventStatisticsResultDTO totalDto : resultDTOList) { |
|
|
|
for (OnTimeDealInfoResultDTO childDto : resultDto) { |
|
|
|
if (totalDto.getDeptId().equals(childDto.getDeptId())) { |
|
|
|
totalDto.setScheduleClosedCount(childDto.getValue()); |
|
|
|
totalDto.setScheduleClosedRatio(childDto.getProportion()); |
|
|
|
break; |
|
|
@ -287,15 +289,16 @@ public class ScreenDeptEventStatServiceImpl extends BaseServiceImpl<ScreenDeptEv |
|
|
|
|
|
|
|
/** |
|
|
|
* 获取红黄灯事件数 |
|
|
|
* |
|
|
|
* @param formDTO |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private List<EventStatisticsResultDTO> getYellowRedInfo(EventStatisticsFormDTO formDTO,List<EventStatisticsResultDTO> resultDTOList){ |
|
|
|
private List<EventStatisticsResultDTO> getYellowRedInfo(EventStatisticsFormDTO formDTO, List<EventStatisticsResultDTO> resultDTOList) { |
|
|
|
List<YellowRedInfoResultDTO> resultDto = baseDao.getYellowRedInfo(formDTO); |
|
|
|
// 组装红黄灯事件数
|
|
|
|
for(EventStatisticsResultDTO totalDto : resultDTOList){ |
|
|
|
for(YellowRedInfoResultDTO childDto : resultDto){ |
|
|
|
if(totalDto.getDeptId().equals(childDto.getDeptId())){ |
|
|
|
for (EventStatisticsResultDTO totalDto : resultDTOList) { |
|
|
|
for (YellowRedInfoResultDTO childDto : resultDto) { |
|
|
|
if (totalDto.getDeptId().equals(childDto.getDeptId())) { |
|
|
|
totalDto.setYellowCount(childDto.getYellowNum()); |
|
|
|
totalDto.setRedCount(childDto.getRedNum()); |
|
|
|
break; |
|
|
|