| | |
| | | } |
| | | } |
| | | |
| | | if(comMngPopulationVO.getType()!=null){ |
| | | switch (comMngPopulationVO.getType()){ |
| | | case 1 : comMngPopulationVO.setAgeStart("80"); |
| | | comMngPopulationVO.setAgeEnd("89"); |
| | | break; |
| | | case 2 : comMngPopulationVO.setAgeStart("90"); |
| | | comMngPopulationVO.setAgeEnd("99"); |
| | | break; |
| | | case 3 : comMngPopulationVO.setAgeStart("100"); |
| | | break; |
| | | } |
| | | } |
| | | |
| | | if (StringUtils.isNotEmpty(comMngPopulationVO.getAgeStart())) { |
| | | String ageStartTime = DateUtils.getDateFormatString( |
| | | DateUtils.yearAddNum(new Date(), -(Integer.parseInt(comMngPopulationVO.getAgeStart()))), "yyyy-MM-dd"); |
| | |
| | | populDO.setPoliticalOutlookName( |
| | | PopulPoliticalOutlookEnum.getCnDescByName(populDO.getPoliticalOutlook())); |
| | | populDO.setMarriageName(PopulMarriageEnum.getCnDescByName(populDO.getMarriage())); |
| | | if(populDO.getAge()>=80&&populDO.getAge()<=89){ |
| | | populDO.setType(1); |
| | | } |
| | | if(populDO.getAge()>=90&&populDO.getAge()<=99){ |
| | | populDO.setType(2); |
| | | } |
| | | if(populDO.getAge()>=100){ |
| | | populDO.setType(3); |
| | | } |
| | | } |
| | | }); |
| | | } |
| | |
| | | public R getScreenEventDetail(BigScreenEventDetailDTO eventDetailDTO) { |
| | | EventNewStatisticsVO statisticsVO = new EventNewStatisticsVO(); |
| | | Integer eventType = eventDetailDTO.getEventType(); |
| | | if (eventDetailDTO.getType().equals(7) || (nonNull(eventType) && eventType.equals(2))) {// 随手拍详情 |
| | | statisticsVO = this.baseMapper.getEventScreenSSPDateil(eventDetailDTO.getEventId()); |
| | | boolean isNewReq = nonNull(eventType) && eventType.equals(2); |
| | | if (eventDetailDTO.getType().equals(7) || isNewReq) {// 随手拍详情 |
| | | if (isNewReq) { |
| | | statisticsVO = this.baseMapper.getEventScreenSSPDateilNew(eventDetailDTO.getEventId()); |
| | | } else { |
| | | statisticsVO = this.baseMapper.getEventScreenSSPDateil(eventDetailDTO.getEventId()); |
| | | } |
| | | if (statisticsVO != null && StringUtils.isNotEmpty(statisticsVO.getPhotoPathList())) { |
| | | statisticsVO.setDangerLevel("0"); |
| | | statisticsVO.setMajor(false); |