| | |
| | | */ |
| | | @ApiModelProperty(value = "最终年龄开始时间查询字段",hidden = true) |
| | | private String ageStartTimeEnd; |
| | | |
| | | /** |
| | | * 年龄结束查询字段 |
| | | */ |
| | |
| | | private String ageEnd; |
| | | |
| | | /** |
| | | * 最终年龄结束时间查询字段 |
| | | */ |
| | | @ApiModelProperty(value = "最终年龄结束时间查询字段",hidden = true) |
| | | private String ageEndTimeEnd; |
| | | |
| | | /** |
| | | * 年龄结束时间查询字段 |
| | | */ |
| | | @ApiModelProperty(value = "年龄结束时间查询字段",hidden = true) |
| | |
| | | "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageStartTime == comMngPopulationVO.ageEndTime'>" + |
| | | "AND cmp.birthday BETWEEN #{comMngPopulationVO.ageStartTimeEnd} and #{comMngPopulationVO.ageEndTime}" + |
| | | " </if> " + |
| | | "<if test='comMngPopulationVO.ageStartTime != null and comMngPopulationVO.ageEndTime != null and comMngPopulationVO.ageStartTime != comMngPopulationVO.ageEndTime'>" + |
| | | "AND cmp.birthday BETWEEN #{comMngPopulationVO.ageEndTimeEnd} and #{comMngPopulationVO.ageStartTime}" + |
| | | " </if> " + |
| | | "<if test='comMngPopulationVO.nativePlace != null and comMngPopulationVO.nativePlace != ""'>" + |
| | | "AND cmp.native_place LIKE concat(#{comMngPopulationVO.nativePlace},'%') " + |
| | | " </if> " + |
| | |
| | | String ageStartTime = DateUtils.getDateFormatString(DateUtils.yearAddNum(endAge, -1),"yyyy-MM-dd"); |
| | | if (StringUtils.isNotEmpty(ageStartTime)) { |
| | | comMngPopulationVO.setAgeStartTimeEnd(ageStartTime); |
| | | } |
| | | } else { |
| | | Date endAge = DateUtils.stringToDate(comMngPopulationVO.getAgeEndTime(), new SimpleDateFormat("yyyy-MM-dd")); |
| | | String ageStartTime = DateUtils.getDateFormatString(DateUtils.yearAddNum(endAge, -1), "yyyy-MM-dd"); |
| | | if (StringUtils.isNotEmpty(ageStartTime)) { |
| | | comMngPopulationVO.setAgeEndTimeEnd(ageStartTime); |
| | | } |
| | | } |
| | | } |