查询人员列表添加条件
This commit is contained in:
parent
f9a1385933
commit
558b5534bc
|
|
@ -4,6 +4,7 @@ import com.bonus.canteen.core.common.encrypt.LeNiuDecryptDataProcess;
|
|||
import com.bonus.canteen.core.common.encrypt.LeNiuDecryptField;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
|
|
@ -36,6 +37,8 @@ public class CustInfoParam {
|
|||
private String chronicIds;
|
||||
private LocalDate birthdayStartTime;
|
||||
private LocalDate birthdayEndTime;
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd")
|
||||
private LocalDate upTime;
|
||||
private String keyword;
|
||||
private List<Long> placeIdList;
|
||||
private List<Integer> healthStateList;
|
||||
|
|
@ -134,6 +137,14 @@ public class CustInfoParam {
|
|||
return this.birthdayEndTime;
|
||||
}
|
||||
|
||||
public LocalDate getUpTime() {
|
||||
return upTime;
|
||||
}
|
||||
|
||||
public void setUpTime(LocalDate upTime) {
|
||||
this.upTime = upTime;
|
||||
}
|
||||
|
||||
public String getKeyword() {
|
||||
return this.keyword;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -400,6 +400,11 @@
|
|||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="infoParam.upTime != null">
|
||||
<![CDATA[
|
||||
and ci.uptime >= #{infoParam.upTime}
|
||||
]]>
|
||||
</if>
|
||||
</where>
|
||||
order by ci.id desc
|
||||
</select>
|
||||
|
|
|
|||
Loading…
Reference in New Issue