model层:
package com.syn.model; import com.alibaba.fastjson.annotation.JSONField; import org.springframework.format.annotation.DateTimeFormat; import javax.validation.constraints.Pattern; import java.util.Date; import java.util.List; public class Task { private String id; private Integer pageNum = 1; private Integer pageSize = 10; @JSONField(format = "yyyy-MM-dd HH:mm") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date launchedTimeOut; public Date getLaunchedTimeOut() { return launchedTimeOut; } public void setLaunchedTimeOut(Date launchedTimeOut) { this.launchedTimeOut = launchedTimeOut; } public Integer getPageNum() { return pageNum; } public void setPageNum(Integer pageNum) { this.pageNum = pageNum; } public Integer getPageSize() { return pageSize; } public void setPageSize(Integer pageSize) { this.pageSize = pageSize; } public String getId() { return id; } public void setId(String id) { this.id = id; } private String taskId; private String launchOrg; private Integer launchMan; @Pattern(regexp ="^[^\\/:*&?\"<|'%>\\x22]{0,20}$", message ="禁止输入\\\\/:*&?\\\"<|'%>特殊字符") private String taskName=""; private Integer responseMan; private Integer taskType; private Integer taskRegion; @Pattern(regexp ="^[^\\/:*&?\"<|'%>\\x22]{0,1000}$", message ="禁止输入\\\\/:*&?\\\"<|'%>特殊字符") private String taskDescription=""; private Integer needAudited; private Integer taskStatus; @JSONField(format = "yyyy-MM-dd HH:mm") private Date createdTime; @JSONField(format = "yyyy-MM-dd HH:mm") private Date updateTime; private Integer deleteStatus; private Integer actionMan; private String actionOrg; @Pattern(regexp ="^[^\\/:*&?\"<|'%>\\x22]{0,1000}$", message ="禁止输入\\\\/:*&?\\\"<|'%>特殊字符") private String actionDetail=""; private Integer checkMan; private Integer createUser; private Integer updateUser; private Byte checkDetail; @Pattern(regexp ="^[^\\/:*&?\"<|'%>\\x22]{0,1000}$", message ="禁止输入\\\\/:*&?\\\"<|'%>特殊字符") private String remark=""; @JSONField(format = "yyyy-MM-dd HH:mm") @DateTimeFormat(pattern = "yyyy-MM-dd") private Date launchTime; private Integer ext1; privat