|
@ -68,7 +68,10 @@ public class AnScreenServiceImpl implements AnScreenService { |
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
|
|
@DataSource(value = DataSourceConstant.EVALUATION_INDEX,datasourceNameFromArg = true) |
|
|
public PmTotalTrendResultDTO pmTotalTrend(AnScreenTrendFormDTO formDTO) { |
|
|
public PmTotalTrendResultDTO pmTotalTrend(AnScreenTrendFormDTO formDTO) { |
|
|
PmTotalTrendResultDTO resultDTO = new PmTotalTrendResultDTO(); |
|
|
PmTotalTrendResultDTO resultDTO = new PmTotalTrendResultDTO(); |
|
|
List<PmTotalTrendDTO> list = screenAnGrassRootsPmTotalMonthlyDao.selectPmTotalTrend(formDTO.getAgencyId(), formDTO.getMonthId()); |
|
|
String monthId = StringUtils.isNotBlank(formDTO.getMonthId()) ? formDTO.getMonthId() : DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYYMM); |
|
|
|
|
|
String curDate = monthId.substring(0, 4) + "-" + monthId.substring(4, 6) + "-" + "01"; |
|
|
|
|
|
// 查询近一年的指数值【包括本月】
|
|
|
|
|
|
List<PmTotalTrendDTO> list = screenAnGrassRootsPmTotalMonthlyDao.selectPmTotalTrend(formDTO.getAgencyId(), curDate); |
|
|
List<String> xAxis = list.stream().map(item -> getMonth(item.getMonthId())).collect(Collectors.toList()); |
|
|
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> groupMemberTotalList = list.stream().map(PmTotalTrendDTO::getGroupMemberTotal).collect(Collectors.toList()); |
|
|
List<Integer> topicTotalList = list.stream().map(PmTotalTrendDTO::getTopicTotal).collect(Collectors.toList()); |
|
|
List<Integer> topicTotalList = list.stream().map(PmTotalTrendDTO::getTopicTotal).collect(Collectors.toList()); |
|
@ -127,14 +130,6 @@ public class AnScreenServiceImpl implements AnScreenService { |
|
|
public GrassRootsOrgTrendResultDTO grassRootsOrgTrend(AnScreenTrendFormDTO formDTO) { |
|
|
public GrassRootsOrgTrendResultDTO grassRootsOrgTrend(AnScreenTrendFormDTO formDTO) { |
|
|
GrassRootsOrgTrendResultDTO resultDTO = new GrassRootsOrgTrendResultDTO(); |
|
|
GrassRootsOrgTrendResultDTO resultDTO = new GrassRootsOrgTrendResultDTO(); |
|
|
|
|
|
|
|
|
// 1. x轴
|
|
|
|
|
|
// List<String> xAxis = new ArrayList<>();
|
|
|
|
|
|
// if(StringUtils.isNotBlank(formDTO.getMonthId())){
|
|
|
|
|
|
// xAxis = partyMemberLeadServiceImpl.getXproEndMonth(formDTO.getMonthId());
|
|
|
|
|
|
// }else{
|
|
|
|
|
|
// xAxis = partyMemberLeadServiceImpl.getXPro();
|
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
String monthId = StringUtils.isNotBlank(formDTO.getMonthId()) ? formDTO.getMonthId() : DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYYMM); |
|
|
String monthId = StringUtils.isNotBlank(formDTO.getMonthId()) ? formDTO.getMonthId() : DateUtils.format(new Date(), DateUtils.DATE_PATTERN_YYYYMM); |
|
|
String curDate = monthId.substring(0, 4) + "-" + monthId.substring(4, 6) + "-" + "01"; |
|
|
String curDate = monthId.substring(0, 4) + "-" + monthId.substring(4, 6) + "-" + "01"; |
|
|
// 查询近一年的指数值【包括本月】
|
|
|
// 查询近一年的指数值【包括本月】
|
|
|