sunyuchao 3 years ago
parent
commit
ab46a6d8c0
  1. 10
      epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/IcMoveInListFormDTO.java
  2. 4
      epmet-user/epmet-user-server/src/main/resources/mapper/IcMoveInRecordDao.xml

10
epmet-user/epmet-user-client/src/main/java/com/epmet/dto/form/IcMoveInListFormDTO.java

@ -1,10 +1,8 @@
package com.epmet.dto.form; package com.epmet.dto.form;
import lombok.Data; import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable; import java.io.Serializable;
import java.util.Date;
/** /**
* @Description 迁入管理列表--接口入参 * @Description 迁入管理列表--接口入参
@ -53,13 +51,13 @@ public class IcMoveInListFormDTO implements Serializable {
/** /**
* 起始迁入时间 * 起始迁入时间
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date startTime; private String startTime;
/** /**
* 终止迁入时间 * 终止迁入时间
*/ */
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") //@JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
private Date endTime; private String endTime;
/** /**
* 页码 * 页码
*/ */

4
epmet-user/epmet-user-server/src/main/resources/mapper/IcMoveInRecordDao.xml

@ -57,10 +57,10 @@
AND id_card = #{idCard} AND id_card = #{idCard}
</if> </if>
<if test="startTime != null and startTime != '' "> <if test="startTime != null and startTime != '' ">
AND in_time <![CDATA[>=]]> #{startTime} AND DATE_FORMAT(in_time,"%Y-%m-%d") <![CDATA[>=]]> #{startTime}
</if> </if>
<if test="endTime != null and endTime != '' "> <if test="endTime != null and endTime != '' ">
AND in_time <![CDATA[<=]]> #{endTime} AND DATE_FORMAT(in_time,"%Y-%m-%d") <![CDATA[<=]]> #{endTime}
</if> </if>
<if test="isWeifare != null and isWeifare != '' "> <if test="isWeifare != null and isWeifare != '' ">
AND is_welfare = #{isWeifare} AND is_welfare = #{isWeifare}

Loading…
Cancel
Save