Browse Source

申请开始日期、结束日期、办结开始、办结结束

master
yinzuomei 2 years ago
parent
commit
ef533b8c37
  1. 15
      epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/lingshan/LingshanOfficeHallServiceRecordPageFormDTO.java
  2. 6
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LingshanOfficeHallServiceRecordDao.java
  3. 7
      epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingshanOfficeHallServiceRecordServiceImpl.java
  4. 14
      epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/LingshanOfficeHallServiceRecordDao.xml

15
epmet-module/epmet-heart/epmet-heart-client/src/main/java/com/epmet/dto/form/lingshan/LingshanOfficeHallServiceRecordPageFormDTO.java

@ -24,16 +24,27 @@ public class LingshanOfficeHallServiceRecordPageFormDTO extends PageFormDTO {
* 满意度评价-1不满意0基本满意1非常满意 * 满意度评价-1不满意0基本满意1非常满意
*/ */
private Integer satisfication; private Integer satisfication;
/**
* 申请开始日期
*/
private String applicantStartDate;
/**
* 申请结束日期
*/
private String applicantEndDate;
/** /**
* 办结日期 * 办结日期
*/ */
// @DateTimeFormat(pattern = "yyyy-MM-dd") // @DateTimeFormat(pattern = "yyyy-MM-dd")
// @JsonFormat(pattern = "yyyy-MM-dd") // @JsonFormat(pattern = "yyyy-MM-dd")
private String startDate; private String closeStartDate;
// @DateTimeFormat(pattern = "yyyy-MM-dd") // @DateTimeFormat(pattern = "yyyy-MM-dd")
// @JsonFormat(pattern = "yyyy-MM-dd") // @JsonFormat(pattern = "yyyy-MM-dd")
private String endDate; private String closeEndDate;
/** /**
* 未办结0已办结1 * 未办结0已办结1

6
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LingshanOfficeHallServiceRecordDao.java

@ -22,7 +22,9 @@ public interface LingshanOfficeHallServiceRecordDao extends BaseDao<LingshanOffi
@Param("categoryCode") String categoryCode, @Param("categoryCode") String categoryCode,
@Param("content") String content, @Param("content") String content,
@Param("satisfication") Integer satisfication, @Param("satisfication") Integer satisfication,
@Param("startDate") String startDate, @Param("applicantStartDate") String applicantStartDate,
@Param("endDate") String endDate, @Param("applicantEndDate") String applicantEndDate,
@Param("closeStartDate") String closeStartDate,
@Param("closeEndDate") String closeEndDate,
@Param("status") String status); @Param("status") String status);
} }

7
epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LingshanOfficeHallServiceRecordServiceImpl.java

@ -61,7 +61,12 @@ public class LingshanOfficeHallServiceRecordServiceImpl extends BaseServiceImpl<
} }
String orgIdPath = queryOrgIdPath(formDTO.getCustomerId(), formDTO.getStaffId(), formDTO.getOrgId(), formDTO.getOrgType()); String orgIdPath = queryOrgIdPath(formDTO.getCustomerId(), formDTO.getStaffId(), formDTO.getOrgId(), formDTO.getOrgType());
PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize()); PageHelper.startPage(formDTO.getPageNo(), formDTO.getPageSize());
List<LingshanOfficeHallServiceRecordDTO> resultList = baseDao.pageList(formDTO.getCustomerId(), orgIdPath, formDTO.getCategoryCode(), formDTO.getContent(), formDTO.getSatisfication(), formDTO.getStartDate(), formDTO.getEndDate(), formDTO.getStatus()); List<LingshanOfficeHallServiceRecordDTO> resultList = baseDao.pageList(formDTO.getCustomerId(), orgIdPath,
formDTO.getCategoryCode(), formDTO.getContent(),
formDTO.getSatisfication(),
formDTO.getApplicantStartDate(), formDTO.getApplicantEndDate(),
formDTO.getCloseStartDate(), formDTO.getCloseEndDate(),
formDTO.getStatus());
if (CollectionUtils.isNotEmpty(resultList)) { if (CollectionUtils.isNotEmpty(resultList)) {
Result<Map<String, String>> categoryRes = adminOpenFeignClient.dictMap(DictTypeEnum.LINGSHAN_OFFICE_HALL_SERVICE_RECORD.getCode()); Result<Map<String, String>> categoryRes = adminOpenFeignClient.dictMap(DictTypeEnum.LINGSHAN_OFFICE_HALL_SERVICE_RECORD.getCode());
resultList.forEach(dto -> { resultList.forEach(dto -> {

14
epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/LingshanOfficeHallServiceRecordDao.xml

@ -31,11 +31,17 @@
<if test="status != null and status != ''"> <if test="status != null and status != ''">
and r.STATUS = #{status} and r.STATUS = #{status}
</if> </if>
<if test='startDate != null and startDate != "" '> <if test='applicantStartDate != null and applicantStartDate != "" '>
AND DATE_FORMAT(r.CLOSE_TIME,'%Y-%m-%d') >= #{startDate} AND DATE_FORMAT(r.APPLICANT_TIME,'%Y-%m-%d') >= #{applicantStartDate}
</if> </if>
<if test='endDate != null and endDate != "" '> <if test='applicantEndDate != null and applicantEndDate != "" '>
AND DATE_FORMAT(r.CLOSE_TIME,'%Y-%m-%d') <![CDATA[ <= ]]> #{endDate} AND DATE_FORMAT(r.APPLICANT_TIME,'%Y-%m-%d') <![CDATA[ <= ]]> #{applicantEndDate}
</if>
<if test='closeStartDate != null and closeStartDate != "" '>
AND DATE_FORMAT(r.CLOSE_TIME,'%Y-%m-%d') >= #{closeStartDate}
</if>
<if test='closeEndDate != null and closeEndDate != "" '>
AND DATE_FORMAT(r.CLOSE_TIME,'%Y-%m-%d') <![CDATA[ <= ]]> #{closeEndDate}
</if> </if>
ORDER BY R.CREATED_TIME DESC ORDER BY R.CREATED_TIME DESC
</select> </select>

Loading…
Cancel
Save