|
|
@ -65,8 +65,7 @@ public class AnScreenServiceImpl implements AnScreenService { |
|
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
|
|
|
public PmTotalTrendResultDTO pmTotalTrend(AnScreenTrendFormDTO formDTO) { |
|
|
|
PmTotalTrendResultDTO resultDTO = new PmTotalTrendResultDTO(); |
|
|
|
String yearId = DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYY); |
|
|
|
List<PmTotalTrendDTO> list = screenAnGrassRootsPmTotalMonthlyDao.selectPmTotalTrend(formDTO.getAgencyId(), yearId); |
|
|
|
List<PmTotalTrendDTO> list = screenAnGrassRootsPmTotalMonthlyDao.selectPmTotalTrend(formDTO.getAgencyId(), formDTO.getMonthId()); |
|
|
|
List<String> xAxis = list.stream().map(item -> getMonth(item.getMonthId())).collect(Collectors.toList()); |
|
|
|
List<Integer> groupMemberTotalList = list.stream().map(PmTotalTrendDTO::getGroupMemberTotal).collect(Collectors.toList()); |
|
|
|
List<Integer> topicTotalList = list.stream().map(PmTotalTrendDTO::getTopicTotal).collect(Collectors.toList()); |
|
|
|