|
|
@ -123,8 +123,10 @@ public class AnScreenServiceImpl implements AnScreenService { |
|
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
|
|
|
public GrassRootsOrgTrendResultDTO grassRootsOrgTrend(AnScreenTrendFormDTO formDTO) { |
|
|
|
GrassRootsOrgTrendResultDTO resultDTO = new GrassRootsOrgTrendResultDTO(); |
|
|
|
String yearId = DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYY); |
|
|
|
List<GrassRootsOrgTrendDTO> list = screenAnGrassRootsOrgMonthlyDao.selectGrassRootsOrgTrend(formDTO.getAgencyId(), yearId); |
|
|
|
|
|
|
|
String monthId = StringUtils.isNotBlank(formDTO.getMonthId()) ? formDTO.getMonthId() : DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYYMM); |
|
|
|
// 查询近一年的指数值【包括本月】
|
|
|
|
List<GrassRootsOrgTrendDTO> list = screenAnGrassRootsOrgMonthlyDao.selectGrassRootsOrgTrend(formDTO.getAgencyId(), monthId); |
|
|
|
List<String> xAxis = list.stream().map(item -> getMonth(item.getMonthId())).collect(Collectors.toList()); |
|
|
|
List<Integer> groupTotalList = list.stream().map(GrassRootsOrgTrendDTO::getGroupTotal).collect(Collectors.toList()); |
|
|
|
List<Integer> issueTotalList = list.stream().map(GrassRootsOrgTrendDTO::getIssueTotal).collect(Collectors.toList()); |
|
|
@ -176,8 +178,10 @@ public class AnScreenServiceImpl implements AnScreenService { |
|
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
|
|
|
public GrassRootsGovernTrendResultDTO grassRootsGovernTrend(AnScreenTrendFormDTO formDTO) { |
|
|
|
GrassRootsGovernTrendResultDTO resultDTO = new GrassRootsGovernTrendResultDTO(); |
|
|
|
String yearId = DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYY); |
|
|
|
List<GrassRootsGovernTrendDTO> list = screenAnGrassRootsGovernMonthlyDao.selectGrassRootsGovernTrend(formDTO.getAgencyId(), yearId); |
|
|
|
|
|
|
|
String monthId = StringUtils.isNotBlank(formDTO.getMonthId()) ? formDTO.getMonthId() : DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYYMM); |
|
|
|
// 查询近一年的指数值【包括本月】
|
|
|
|
List<GrassRootsGovernTrendDTO> list = screenAnGrassRootsGovernMonthlyDao.selectGrassRootsGovernTrend(formDTO.getAgencyId(), monthId); |
|
|
|
List<String> xAxis = list.stream().map(item -> getMonth(item.getMonthId())).collect(Collectors.toList()); |
|
|
|
List<Integer> partiProjectTotalList = list.stream().map(GrassRootsGovernTrendDTO::getPartiProjectTotal).collect(Collectors.toList()); |
|
|
|
List<Integer> closedProjectTotalList = list.stream().map(GrassRootsGovernTrendDTO::getClosedProjectTotal).collect(Collectors.toList()); |
|
|
|