115 changed files with 15078 additions and 3913 deletions
@ -0,0 +1,24 @@ |
|||
package com.ccsens.tall.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotEmpty; |
|||
import javax.validation.constraints.NotNull; |
|||
import javax.validation.constraints.Size; |
|||
|
|||
@Data |
|||
public class PluginDto { |
|||
@Data |
|||
@ApiModel("添加评论") |
|||
public static class AddCommentPlugin { |
|||
@ApiModelProperty("任务id") |
|||
@NotNull(message = "任务id为空") |
|||
private Long taskId; |
|||
@ApiModelProperty("评论内容") |
|||
@NotEmpty(message = "您还什么都没写") |
|||
@Size(max =140,min = 0,message = "信息格式错误") |
|||
private String description; |
|||
} |
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProTaskComment implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private Long taskSubTimeId; |
|||
|
|||
private Long time; |
|||
|
|||
private String description; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long projectid; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Long getTaskSubTimeId() { |
|||
return taskSubTimeId; |
|||
} |
|||
|
|||
public void setTaskSubTimeId(Long taskSubTimeId) { |
|||
this.taskSubTimeId = taskSubTimeId; |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
public Long getProjectid() { |
|||
return projectid; |
|||
} |
|||
|
|||
public void setProjectid(Long projectid) { |
|||
this.projectid = projectid; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", taskSubTimeId=").append(taskSubTimeId); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", description=").append(description); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", projectid=").append(projectid); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,751 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ProTaskCommentExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ProTaskCommentExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdIsNull() { |
|||
addCriterion("task_sub_time_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdIsNotNull() { |
|||
addCriterion("task_sub_time_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdEqualTo(Long value) { |
|||
addCriterion("task_sub_time_id =", value, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdNotEqualTo(Long value) { |
|||
addCriterion("task_sub_time_id <>", value, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdGreaterThan(Long value) { |
|||
addCriterion("task_sub_time_id >", value, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("task_sub_time_id >=", value, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdLessThan(Long value) { |
|||
addCriterion("task_sub_time_id <", value, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("task_sub_time_id <=", value, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdIn(List<Long> values) { |
|||
addCriterion("task_sub_time_id in", values, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdNotIn(List<Long> values) { |
|||
addCriterion("task_sub_time_id not in", values, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdBetween(Long value1, Long value2) { |
|||
addCriterion("task_sub_time_id between", value1, value2, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskSubTimeIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("task_sub_time_id not between", value1, value2, "taskSubTimeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNull() { |
|||
addCriterion("time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNotNull() { |
|||
addCriterion("time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeEqualTo(Long value) { |
|||
addCriterion("time =", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotEqualTo(Long value) { |
|||
addCriterion("time <>", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThan(Long value) { |
|||
addCriterion("time >", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("time >=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThan(Long value) { |
|||
addCriterion("time <", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("time <=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIn(List<Long> values) { |
|||
addCriterion("time in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotIn(List<Long> values) { |
|||
addCriterion("time not in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeBetween(Long value1, Long value2) { |
|||
addCriterion("time between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("time not between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNull() { |
|||
addCriterion("description is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNotNull() { |
|||
addCriterion("description is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionEqualTo(String value) { |
|||
addCriterion("description =", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotEqualTo(String value) { |
|||
addCriterion("description <>", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThan(String value) { |
|||
addCriterion("description >", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("description >=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThan(String value) { |
|||
addCriterion("description <", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThanOrEqualTo(String value) { |
|||
addCriterion("description <=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLike(String value) { |
|||
addCriterion("description like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotLike(String value) { |
|||
addCriterion("description not like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIn(List<String> values) { |
|||
addCriterion("description in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotIn(List<String> values) { |
|||
addCriterion("description not in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionBetween(String value1, String value2) { |
|||
addCriterion("description between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotBetween(String value1, String value2) { |
|||
addCriterion("description not between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidIsNull() { |
|||
addCriterion("projectId is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidIsNotNull() { |
|||
addCriterion("projectId is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidEqualTo(Long value) { |
|||
addCriterion("projectId =", value, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidNotEqualTo(Long value) { |
|||
addCriterion("projectId <>", value, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidGreaterThan(Long value) { |
|||
addCriterion("projectId >", value, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("projectId >=", value, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidLessThan(Long value) { |
|||
addCriterion("projectId <", value, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidLessThanOrEqualTo(Long value) { |
|||
addCriterion("projectId <=", value, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidIn(List<Long> values) { |
|||
addCriterion("projectId in", values, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidNotIn(List<Long> values) { |
|||
addCriterion("projectId not in", values, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidBetween(Long value1, Long value2) { |
|||
addCriterion("projectId between", value1, value2, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectidNotBetween(Long value1, Long value2) { |
|||
addCriterion("projectId not between", value1, value2, "projectid"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,150 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProTaskShow implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long taskDetailId; |
|||
|
|||
private String timeShow; |
|||
|
|||
private Byte duration; |
|||
|
|||
private Byte createTask; |
|||
|
|||
private Byte showHardware; |
|||
|
|||
private Byte showDeliver; |
|||
|
|||
private Byte showMoney; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getTaskDetailId() { |
|||
return taskDetailId; |
|||
} |
|||
|
|||
public void setTaskDetailId(Long taskDetailId) { |
|||
this.taskDetailId = taskDetailId; |
|||
} |
|||
|
|||
public String getTimeShow() { |
|||
return timeShow; |
|||
} |
|||
|
|||
public void setTimeShow(String timeShow) { |
|||
this.timeShow = timeShow == null ? null : timeShow.trim(); |
|||
} |
|||
|
|||
public Byte getDuration() { |
|||
return duration; |
|||
} |
|||
|
|||
public void setDuration(Byte duration) { |
|||
this.duration = duration; |
|||
} |
|||
|
|||
public Byte getCreateTask() { |
|||
return createTask; |
|||
} |
|||
|
|||
public void setCreateTask(Byte createTask) { |
|||
this.createTask = createTask; |
|||
} |
|||
|
|||
public Byte getShowHardware() { |
|||
return showHardware; |
|||
} |
|||
|
|||
public void setShowHardware(Byte showHardware) { |
|||
this.showHardware = showHardware; |
|||
} |
|||
|
|||
public Byte getShowDeliver() { |
|||
return showDeliver; |
|||
} |
|||
|
|||
public void setShowDeliver(Byte showDeliver) { |
|||
this.showDeliver = showDeliver; |
|||
} |
|||
|
|||
public Byte getShowMoney() { |
|||
return showMoney; |
|||
} |
|||
|
|||
public void setShowMoney(Byte showMoney) { |
|||
this.showMoney = showMoney; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", taskDetailId=").append(taskDetailId); |
|||
sb.append(", timeShow=").append(timeShow); |
|||
sb.append(", duration=").append(duration); |
|||
sb.append(", createTask=").append(createTask); |
|||
sb.append(", showHardware=").append(showHardware); |
|||
sb.append(", showDeliver=").append(showDeliver); |
|||
sb.append(", showMoney=").append(showMoney); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,931 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ProTaskShowExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ProTaskShowExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNull() { |
|||
addCriterion("project_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNotNull() { |
|||
addCriterion("project_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdEqualTo(Long value) { |
|||
addCriterion("project_id =", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotEqualTo(Long value) { |
|||
addCriterion("project_id <>", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThan(Long value) { |
|||
addCriterion("project_id >", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_id >=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThan(Long value) { |
|||
addCriterion("project_id <", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_id <=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIn(List<Long> values) { |
|||
addCriterion("project_id in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotIn(List<Long> values) { |
|||
addCriterion("project_id not in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_id between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_id not between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdIsNull() { |
|||
addCriterion("task_detail_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdIsNotNull() { |
|||
addCriterion("task_detail_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdEqualTo(Long value) { |
|||
addCriterion("task_detail_id =", value, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdNotEqualTo(Long value) { |
|||
addCriterion("task_detail_id <>", value, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdGreaterThan(Long value) { |
|||
addCriterion("task_detail_id >", value, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("task_detail_id >=", value, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdLessThan(Long value) { |
|||
addCriterion("task_detail_id <", value, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("task_detail_id <=", value, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdIn(List<Long> values) { |
|||
addCriterion("task_detail_id in", values, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdNotIn(List<Long> values) { |
|||
addCriterion("task_detail_id not in", values, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdBetween(Long value1, Long value2) { |
|||
addCriterion("task_detail_id between", value1, value2, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskDetailIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("task_detail_id not between", value1, value2, "taskDetailId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowIsNull() { |
|||
addCriterion("time_show is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowIsNotNull() { |
|||
addCriterion("time_show is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowEqualTo(String value) { |
|||
addCriterion("time_show =", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowNotEqualTo(String value) { |
|||
addCriterion("time_show <>", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowGreaterThan(String value) { |
|||
addCriterion("time_show >", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowGreaterThanOrEqualTo(String value) { |
|||
addCriterion("time_show >=", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowLessThan(String value) { |
|||
addCriterion("time_show <", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowLessThanOrEqualTo(String value) { |
|||
addCriterion("time_show <=", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowLike(String value) { |
|||
addCriterion("time_show like", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowNotLike(String value) { |
|||
addCriterion("time_show not like", value, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowIn(List<String> values) { |
|||
addCriterion("time_show in", values, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowNotIn(List<String> values) { |
|||
addCriterion("time_show not in", values, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowBetween(String value1, String value2) { |
|||
addCriterion("time_show between", value1, value2, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeShowNotBetween(String value1, String value2) { |
|||
addCriterion("time_show not between", value1, value2, "timeShow"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationIsNull() { |
|||
addCriterion("duration is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationIsNotNull() { |
|||
addCriterion("duration is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationEqualTo(Byte value) { |
|||
addCriterion("duration =", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationNotEqualTo(Byte value) { |
|||
addCriterion("duration <>", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationGreaterThan(Byte value) { |
|||
addCriterion("duration >", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("duration >=", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationLessThan(Byte value) { |
|||
addCriterion("duration <", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationLessThanOrEqualTo(Byte value) { |
|||
addCriterion("duration <=", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationIn(List<Byte> values) { |
|||
addCriterion("duration in", values, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationNotIn(List<Byte> values) { |
|||
addCriterion("duration not in", values, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationBetween(Byte value1, Byte value2) { |
|||
addCriterion("duration between", value1, value2, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("duration not between", value1, value2, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskIsNull() { |
|||
addCriterion("create_task is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskIsNotNull() { |
|||
addCriterion("create_task is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskEqualTo(Byte value) { |
|||
addCriterion("create_task =", value, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskNotEqualTo(Byte value) { |
|||
addCriterion("create_task <>", value, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskGreaterThan(Byte value) { |
|||
addCriterion("create_task >", value, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("create_task >=", value, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskLessThan(Byte value) { |
|||
addCriterion("create_task <", value, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskLessThanOrEqualTo(Byte value) { |
|||
addCriterion("create_task <=", value, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskIn(List<Byte> values) { |
|||
addCriterion("create_task in", values, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskNotIn(List<Byte> values) { |
|||
addCriterion("create_task not in", values, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskBetween(Byte value1, Byte value2) { |
|||
addCriterion("create_task between", value1, value2, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTaskNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("create_task not between", value1, value2, "createTask"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareIsNull() { |
|||
addCriterion("show_hardware is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareIsNotNull() { |
|||
addCriterion("show_hardware is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareEqualTo(Byte value) { |
|||
addCriterion("show_hardware =", value, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareNotEqualTo(Byte value) { |
|||
addCriterion("show_hardware <>", value, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareGreaterThan(Byte value) { |
|||
addCriterion("show_hardware >", value, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("show_hardware >=", value, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareLessThan(Byte value) { |
|||
addCriterion("show_hardware <", value, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareLessThanOrEqualTo(Byte value) { |
|||
addCriterion("show_hardware <=", value, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareIn(List<Byte> values) { |
|||
addCriterion("show_hardware in", values, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareNotIn(List<Byte> values) { |
|||
addCriterion("show_hardware not in", values, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareBetween(Byte value1, Byte value2) { |
|||
addCriterion("show_hardware between", value1, value2, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowHardwareNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("show_hardware not between", value1, value2, "showHardware"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverIsNull() { |
|||
addCriterion("show_deliver is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverIsNotNull() { |
|||
addCriterion("show_deliver is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverEqualTo(Byte value) { |
|||
addCriterion("show_deliver =", value, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverNotEqualTo(Byte value) { |
|||
addCriterion("show_deliver <>", value, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverGreaterThan(Byte value) { |
|||
addCriterion("show_deliver >", value, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("show_deliver >=", value, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverLessThan(Byte value) { |
|||
addCriterion("show_deliver <", value, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverLessThanOrEqualTo(Byte value) { |
|||
addCriterion("show_deliver <=", value, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverIn(List<Byte> values) { |
|||
addCriterion("show_deliver in", values, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverNotIn(List<Byte> values) { |
|||
addCriterion("show_deliver not in", values, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverBetween(Byte value1, Byte value2) { |
|||
addCriterion("show_deliver between", value1, value2, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowDeliverNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("show_deliver not between", value1, value2, "showDeliver"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyIsNull() { |
|||
addCriterion("show_money is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyIsNotNull() { |
|||
addCriterion("show_money is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyEqualTo(Byte value) { |
|||
addCriterion("show_money =", value, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyNotEqualTo(Byte value) { |
|||
addCriterion("show_money <>", value, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyGreaterThan(Byte value) { |
|||
addCriterion("show_money >", value, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("show_money >=", value, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyLessThan(Byte value) { |
|||
addCriterion("show_money <", value, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyLessThanOrEqualTo(Byte value) { |
|||
addCriterion("show_money <=", value, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyIn(List<Byte> values) { |
|||
addCriterion("show_money in", values, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyNotIn(List<Byte> values) { |
|||
addCriterion("show_money not in", values, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyBetween(Byte value1, Byte value2) { |
|||
addCriterion("show_money between", value1, value2, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowMoneyNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("show_money not between", value1, value2, "showMoney"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysMessageType implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private String path; |
|||
|
|||
private Byte operateType; |
|||
|
|||
private String template; |
|||
|
|||
private String description; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getPath() { |
|||
return path; |
|||
} |
|||
|
|||
public void setPath(String path) { |
|||
this.path = path == null ? null : path.trim(); |
|||
} |
|||
|
|||
public Byte getOperateType() { |
|||
return operateType; |
|||
} |
|||
|
|||
public void setOperateType(Byte operateType) { |
|||
this.operateType = operateType; |
|||
} |
|||
|
|||
public String getTemplate() { |
|||
return template; |
|||
} |
|||
|
|||
public void setTemplate(String template) { |
|||
this.template = template == null ? null : template.trim(); |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", path=").append(path); |
|||
sb.append(", operateType=").append(operateType); |
|||
sb.append(", template=").append(template); |
|||
sb.append(", description=").append(description); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,781 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class SysMessageTypeExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public SysMessageTypeExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathIsNull() { |
|||
addCriterion("path is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathIsNotNull() { |
|||
addCriterion("path is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathEqualTo(String value) { |
|||
addCriterion("path =", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotEqualTo(String value) { |
|||
addCriterion("path <>", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathGreaterThan(String value) { |
|||
addCriterion("path >", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathGreaterThanOrEqualTo(String value) { |
|||
addCriterion("path >=", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathLessThan(String value) { |
|||
addCriterion("path <", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathLessThanOrEqualTo(String value) { |
|||
addCriterion("path <=", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathLike(String value) { |
|||
addCriterion("path like", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotLike(String value) { |
|||
addCriterion("path not like", value, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathIn(List<String> values) { |
|||
addCriterion("path in", values, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotIn(List<String> values) { |
|||
addCriterion("path not in", values, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathBetween(String value1, String value2) { |
|||
addCriterion("path between", value1, value2, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPathNotBetween(String value1, String value2) { |
|||
addCriterion("path not between", value1, value2, "path"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeIsNull() { |
|||
addCriterion("operate_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeIsNotNull() { |
|||
addCriterion("operate_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeEqualTo(Byte value) { |
|||
addCriterion("operate_type =", value, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeNotEqualTo(Byte value) { |
|||
addCriterion("operate_type <>", value, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeGreaterThan(Byte value) { |
|||
addCriterion("operate_type >", value, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("operate_type >=", value, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeLessThan(Byte value) { |
|||
addCriterion("operate_type <", value, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("operate_type <=", value, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeIn(List<Byte> values) { |
|||
addCriterion("operate_type in", values, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeNotIn(List<Byte> values) { |
|||
addCriterion("operate_type not in", values, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("operate_type between", value1, value2, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperateTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("operate_type not between", value1, value2, "operateType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateIsNull() { |
|||
addCriterion("template is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateIsNotNull() { |
|||
addCriterion("template is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateEqualTo(String value) { |
|||
addCriterion("template =", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateNotEqualTo(String value) { |
|||
addCriterion("template <>", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateGreaterThan(String value) { |
|||
addCriterion("template >", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateGreaterThanOrEqualTo(String value) { |
|||
addCriterion("template >=", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateLessThan(String value) { |
|||
addCriterion("template <", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateLessThanOrEqualTo(String value) { |
|||
addCriterion("template <=", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateLike(String value) { |
|||
addCriterion("template like", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateNotLike(String value) { |
|||
addCriterion("template not like", value, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateIn(List<String> values) { |
|||
addCriterion("template in", values, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateNotIn(List<String> values) { |
|||
addCriterion("template not in", values, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateBetween(String value1, String value2) { |
|||
addCriterion("template between", value1, value2, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTemplateNotBetween(String value1, String value2) { |
|||
addCriterion("template not between", value1, value2, "template"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNull() { |
|||
addCriterion("description is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNotNull() { |
|||
addCriterion("description is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionEqualTo(String value) { |
|||
addCriterion("description =", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotEqualTo(String value) { |
|||
addCriterion("description <>", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThan(String value) { |
|||
addCriterion("description >", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("description >=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThan(String value) { |
|||
addCriterion("description <", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThanOrEqualTo(String value) { |
|||
addCriterion("description <=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLike(String value) { |
|||
addCriterion("description like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotLike(String value) { |
|||
addCriterion("description not like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIn(List<String> values) { |
|||
addCriterion("description in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotIn(List<String> values) { |
|||
addCriterion("description not in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionBetween(String value1, String value2) { |
|||
addCriterion("description between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotBetween(String value1, String value2) { |
|||
addCriterion("description not between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysProjectRobot implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long robotId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getRobotId() { |
|||
return robotId; |
|||
} |
|||
|
|||
public void setRobotId(Long robotId) { |
|||
this.robotId = robotId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", robotId=").append(robotId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,561 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class SysProjectRobotExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public SysProjectRobotExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIsNull() { |
|||
addCriterion("robot_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIsNotNull() { |
|||
addCriterion("robot_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdEqualTo(Long value) { |
|||
addCriterion("robot_id =", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotEqualTo(Long value) { |
|||
addCriterion("robot_id <>", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdGreaterThan(Long value) { |
|||
addCriterion("robot_id >", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("robot_id >=", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdLessThan(Long value) { |
|||
addCriterion("robot_id <", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("robot_id <=", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIn(List<Long> values) { |
|||
addCriterion("robot_id in", values, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotIn(List<Long> values) { |
|||
addCriterion("robot_id not in", values, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdBetween(Long value1, Long value2) { |
|||
addCriterion("robot_id between", value1, value2, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("robot_id not between", value1, value2, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNull() { |
|||
addCriterion("project_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNotNull() { |
|||
addCriterion("project_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdEqualTo(Long value) { |
|||
addCriterion("project_id =", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotEqualTo(Long value) { |
|||
addCriterion("project_id <>", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThan(Long value) { |
|||
addCriterion("project_id >", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_id >=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThan(Long value) { |
|||
addCriterion("project_id <", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_id <=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIn(List<Long> values) { |
|||
addCriterion("project_id in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotIn(List<Long> values) { |
|||
addCriterion("project_id not in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_id between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_id not between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysProjectRobotMessage implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long projectRobotId; |
|||
|
|||
private Long messageId; |
|||
|
|||
private Byte allMessage; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getProjectRobotId() { |
|||
return projectRobotId; |
|||
} |
|||
|
|||
public void setProjectRobotId(Long projectRobotId) { |
|||
this.projectRobotId = projectRobotId; |
|||
} |
|||
|
|||
public Long getMessageId() { |
|||
return messageId; |
|||
} |
|||
|
|||
public void setMessageId(Long messageId) { |
|||
this.messageId = messageId; |
|||
} |
|||
|
|||
public Byte getAllMessage() { |
|||
return allMessage; |
|||
} |
|||
|
|||
public void setAllMessage(Byte allMessage) { |
|||
this.allMessage = allMessage; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", projectRobotId=").append(projectRobotId); |
|||
sb.append(", messageId=").append(messageId); |
|||
sb.append(", allMessage=").append(allMessage); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,621 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class SysProjectRobotMessageExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public SysProjectRobotMessageExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdIsNull() { |
|||
addCriterion("project_robot_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdIsNotNull() { |
|||
addCriterion("project_robot_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdEqualTo(Long value) { |
|||
addCriterion("project_robot_id =", value, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdNotEqualTo(Long value) { |
|||
addCriterion("project_robot_id <>", value, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdGreaterThan(Long value) { |
|||
addCriterion("project_robot_id >", value, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_robot_id >=", value, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdLessThan(Long value) { |
|||
addCriterion("project_robot_id <", value, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_robot_id <=", value, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdIn(List<Long> values) { |
|||
addCriterion("project_robot_id in", values, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdNotIn(List<Long> values) { |
|||
addCriterion("project_robot_id not in", values, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_robot_id between", value1, value2, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectRobotIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_robot_id not between", value1, value2, "projectRobotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdIsNull() { |
|||
addCriterion("message_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdIsNotNull() { |
|||
addCriterion("message_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdEqualTo(Long value) { |
|||
addCriterion("message_id =", value, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdNotEqualTo(Long value) { |
|||
addCriterion("message_id <>", value, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdGreaterThan(Long value) { |
|||
addCriterion("message_id >", value, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("message_id >=", value, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdLessThan(Long value) { |
|||
addCriterion("message_id <", value, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("message_id <=", value, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdIn(List<Long> values) { |
|||
addCriterion("message_id in", values, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdNotIn(List<Long> values) { |
|||
addCriterion("message_id not in", values, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdBetween(Long value1, Long value2) { |
|||
addCriterion("message_id between", value1, value2, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("message_id not between", value1, value2, "messageId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageIsNull() { |
|||
addCriterion("all_message is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageIsNotNull() { |
|||
addCriterion("all_message is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageEqualTo(Byte value) { |
|||
addCriterion("all_message =", value, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageNotEqualTo(Byte value) { |
|||
addCriterion("all_message <>", value, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageGreaterThan(Byte value) { |
|||
addCriterion("all_message >", value, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("all_message >=", value, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageLessThan(Byte value) { |
|||
addCriterion("all_message <", value, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageLessThanOrEqualTo(Byte value) { |
|||
addCriterion("all_message <=", value, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageIn(List<Byte> values) { |
|||
addCriterion("all_message in", values, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageNotIn(List<Byte> values) { |
|||
addCriterion("all_message not in", values, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageBetween(Byte value1, Byte value2) { |
|||
addCriterion("all_message between", value1, value2, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAllMessageNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("all_message not between", value1, value2, "allMessage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,84 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysProject_robot implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long robotId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getRobotId() { |
|||
return robotId; |
|||
} |
|||
|
|||
public void setRobotId(Long robotId) { |
|||
this.robotId = robotId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", robotId=").append(robotId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,561 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class SysProject_robotExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public SysProject_robotExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIsNull() { |
|||
addCriterion("robot_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIsNotNull() { |
|||
addCriterion("robot_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdEqualTo(Long value) { |
|||
addCriterion("robot_id =", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotEqualTo(Long value) { |
|||
addCriterion("robot_id <>", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdGreaterThan(Long value) { |
|||
addCriterion("robot_id >", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("robot_id >=", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdLessThan(Long value) { |
|||
addCriterion("robot_id <", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("robot_id <=", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIn(List<Long> values) { |
|||
addCriterion("robot_id in", values, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotIn(List<Long> values) { |
|||
addCriterion("robot_id not in", values, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdBetween(Long value1, Long value2) { |
|||
addCriterion("robot_id between", value1, value2, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("robot_id not between", value1, value2, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNull() { |
|||
addCriterion("project_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNotNull() { |
|||
addCriterion("project_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdEqualTo(Long value) { |
|||
addCriterion("project_id =", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotEqualTo(Long value) { |
|||
addCriterion("project_id <>", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThan(Long value) { |
|||
addCriterion("project_id >", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_id >=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThan(Long value) { |
|||
addCriterion("project_id <", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_id <=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIn(List<Long> values) { |
|||
addCriterion("project_id in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotIn(List<Long> values) { |
|||
addCriterion("project_id not in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_id between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_id not between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,95 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysRobot implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private String webHook; |
|||
|
|||
private Byte clientType; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getWebHook() { |
|||
return webHook; |
|||
} |
|||
|
|||
public void setWebHook(String webHook) { |
|||
this.webHook = webHook == null ? null : webHook.trim(); |
|||
} |
|||
|
|||
public Byte getClientType() { |
|||
return clientType; |
|||
} |
|||
|
|||
public void setClientType(Byte clientType) { |
|||
this.clientType = clientType; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", webHook=").append(webHook); |
|||
sb.append(", clientType=").append(clientType); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,641 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class SysRobotExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public SysRobotExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookIsNull() { |
|||
addCriterion("web_hook is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookIsNotNull() { |
|||
addCriterion("web_hook is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookEqualTo(String value) { |
|||
addCriterion("web_hook =", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookNotEqualTo(String value) { |
|||
addCriterion("web_hook <>", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookGreaterThan(String value) { |
|||
addCriterion("web_hook >", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookGreaterThanOrEqualTo(String value) { |
|||
addCriterion("web_hook >=", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookLessThan(String value) { |
|||
addCriterion("web_hook <", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookLessThanOrEqualTo(String value) { |
|||
addCriterion("web_hook <=", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookLike(String value) { |
|||
addCriterion("web_hook like", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookNotLike(String value) { |
|||
addCriterion("web_hook not like", value, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookIn(List<String> values) { |
|||
addCriterion("web_hook in", values, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookNotIn(List<String> values) { |
|||
addCriterion("web_hook not in", values, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookBetween(String value1, String value2) { |
|||
addCriterion("web_hook between", value1, value2, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebHookNotBetween(String value1, String value2) { |
|||
addCriterion("web_hook not between", value1, value2, "webHook"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeIsNull() { |
|||
addCriterion("client_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeIsNotNull() { |
|||
addCriterion("client_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeEqualTo(Byte value) { |
|||
addCriterion("client_type =", value, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeNotEqualTo(Byte value) { |
|||
addCriterion("client_type <>", value, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeGreaterThan(Byte value) { |
|||
addCriterion("client_type >", value, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("client_type >=", value, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeLessThan(Byte value) { |
|||
addCriterion("client_type <", value, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("client_type <=", value, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeIn(List<Byte> values) { |
|||
addCriterion("client_type in", values, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeNotIn(List<Byte> values) { |
|||
addCriterion("client_type not in", values, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("client_type between", value1, value2, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andClientTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("client_type not between", value1, value2, "clientType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,150 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysRobotLog implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long robotId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Long taskId; |
|||
|
|||
private Long userId; |
|||
|
|||
private Long roleId; |
|||
|
|||
private Long messageTypeId; |
|||
|
|||
private Long sendTime; |
|||
|
|||
private Byte complete; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getRobotId() { |
|||
return robotId; |
|||
} |
|||
|
|||
public void setRobotId(Long robotId) { |
|||
this.robotId = robotId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Long getTaskId() { |
|||
return taskId; |
|||
} |
|||
|
|||
public void setTaskId(Long taskId) { |
|||
this.taskId = taskId; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Long getRoleId() { |
|||
return roleId; |
|||
} |
|||
|
|||
public void setRoleId(Long roleId) { |
|||
this.roleId = roleId; |
|||
} |
|||
|
|||
public Long getMessageTypeId() { |
|||
return messageTypeId; |
|||
} |
|||
|
|||
public void setMessageTypeId(Long messageTypeId) { |
|||
this.messageTypeId = messageTypeId; |
|||
} |
|||
|
|||
public Long getSendTime() { |
|||
return sendTime; |
|||
} |
|||
|
|||
public void setSendTime(Long sendTime) { |
|||
this.sendTime = sendTime; |
|||
} |
|||
|
|||
public Byte getComplete() { |
|||
return complete; |
|||
} |
|||
|
|||
public void setComplete(Byte complete) { |
|||
this.complete = complete; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", robotId=").append(robotId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", taskId=").append(taskId); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", roleId=").append(roleId); |
|||
sb.append(", messageTypeId=").append(messageTypeId); |
|||
sb.append(", sendTime=").append(sendTime); |
|||
sb.append(", complete=").append(complete); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,921 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class SysRobotLogExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public SysRobotLogExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIsNull() { |
|||
addCriterion("robot_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIsNotNull() { |
|||
addCriterion("robot_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdEqualTo(Long value) { |
|||
addCriterion("robot_id =", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotEqualTo(Long value) { |
|||
addCriterion("robot_id <>", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdGreaterThan(Long value) { |
|||
addCriterion("robot_id >", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("robot_id >=", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdLessThan(Long value) { |
|||
addCriterion("robot_id <", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("robot_id <=", value, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdIn(List<Long> values) { |
|||
addCriterion("robot_id in", values, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotIn(List<Long> values) { |
|||
addCriterion("robot_id not in", values, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdBetween(Long value1, Long value2) { |
|||
addCriterion("robot_id between", value1, value2, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRobotIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("robot_id not between", value1, value2, "robotId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNull() { |
|||
addCriterion("project_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIsNotNull() { |
|||
addCriterion("project_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdEqualTo(Long value) { |
|||
addCriterion("project_id =", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotEqualTo(Long value) { |
|||
addCriterion("project_id <>", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThan(Long value) { |
|||
addCriterion("project_id >", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("project_id >=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThan(Long value) { |
|||
addCriterion("project_id <", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("project_id <=", value, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdIn(List<Long> values) { |
|||
addCriterion("project_id in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotIn(List<Long> values) { |
|||
addCriterion("project_id not in", values, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdBetween(Long value1, Long value2) { |
|||
addCriterion("project_id between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andProjectIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("project_id not between", value1, value2, "projectId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdIsNull() { |
|||
addCriterion("task_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdIsNotNull() { |
|||
addCriterion("task_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdEqualTo(Long value) { |
|||
addCriterion("task_id =", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdNotEqualTo(Long value) { |
|||
addCriterion("task_id <>", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdGreaterThan(Long value) { |
|||
addCriterion("task_id >", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("task_id >=", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdLessThan(Long value) { |
|||
addCriterion("task_id <", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("task_id <=", value, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdIn(List<Long> values) { |
|||
addCriterion("task_id in", values, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdNotIn(List<Long> values) { |
|||
addCriterion("task_id not in", values, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdBetween(Long value1, Long value2) { |
|||
addCriterion("task_id between", value1, value2, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("task_id not between", value1, value2, "taskId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdIsNull() { |
|||
addCriterion("role_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdIsNotNull() { |
|||
addCriterion("role_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdEqualTo(Long value) { |
|||
addCriterion("role_id =", value, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdNotEqualTo(Long value) { |
|||
addCriterion("role_id <>", value, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdGreaterThan(Long value) { |
|||
addCriterion("role_id >", value, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("role_id >=", value, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdLessThan(Long value) { |
|||
addCriterion("role_id <", value, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("role_id <=", value, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdIn(List<Long> values) { |
|||
addCriterion("role_id in", values, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdNotIn(List<Long> values) { |
|||
addCriterion("role_id not in", values, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdBetween(Long value1, Long value2) { |
|||
addCriterion("role_id between", value1, value2, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRoleIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("role_id not between", value1, value2, "roleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdIsNull() { |
|||
addCriterion("message_type_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdIsNotNull() { |
|||
addCriterion("message_type_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdEqualTo(Long value) { |
|||
addCriterion("message_type_id =", value, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdNotEqualTo(Long value) { |
|||
addCriterion("message_type_id <>", value, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdGreaterThan(Long value) { |
|||
addCriterion("message_type_id >", value, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("message_type_id >=", value, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdLessThan(Long value) { |
|||
addCriterion("message_type_id <", value, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("message_type_id <=", value, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdIn(List<Long> values) { |
|||
addCriterion("message_type_id in", values, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdNotIn(List<Long> values) { |
|||
addCriterion("message_type_id not in", values, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdBetween(Long value1, Long value2) { |
|||
addCriterion("message_type_id between", value1, value2, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMessageTypeIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("message_type_id not between", value1, value2, "messageTypeId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeIsNull() { |
|||
addCriterion("send_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeIsNotNull() { |
|||
addCriterion("send_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeEqualTo(Long value) { |
|||
addCriterion("send_time =", value, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeNotEqualTo(Long value) { |
|||
addCriterion("send_time <>", value, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeGreaterThan(Long value) { |
|||
addCriterion("send_time >", value, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("send_time >=", value, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeLessThan(Long value) { |
|||
addCriterion("send_time <", value, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("send_time <=", value, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeIn(List<Long> values) { |
|||
addCriterion("send_time in", values, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeNotIn(List<Long> values) { |
|||
addCriterion("send_time not in", values, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeBetween(Long value1, Long value2) { |
|||
addCriterion("send_time between", value1, value2, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSendTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("send_time not between", value1, value2, "sendTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteIsNull() { |
|||
addCriterion("complete is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteIsNotNull() { |
|||
addCriterion("complete is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteEqualTo(Byte value) { |
|||
addCriterion("complete =", value, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteNotEqualTo(Byte value) { |
|||
addCriterion("complete <>", value, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteGreaterThan(Byte value) { |
|||
addCriterion("complete >", value, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("complete >=", value, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteLessThan(Byte value) { |
|||
addCriterion("complete <", value, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteLessThanOrEqualTo(Byte value) { |
|||
addCriterion("complete <=", value, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteIn(List<Byte> values) { |
|||
addCriterion("complete in", values, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteNotIn(List<Byte> values) { |
|||
addCriterion("complete not in", values, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteBetween(Byte value1, Byte value2) { |
|||
addCriterion("complete between", value1, value2, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompleteNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("complete not between", value1, value2, "complete"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,225 @@ |
|||
package com.ccsens.tall.bean.vo; |
|||
|
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class WbsVo { |
|||
/** |
|||
* 项目信息 |
|||
*/ |
|||
@Data |
|||
public static class ProjectInfo{ |
|||
private String name; |
|||
private String description; |
|||
private String address; |
|||
private Long beginTime; |
|||
private String strBeginTime; |
|||
private Long endTime; |
|||
private String strEndTime; |
|||
|
|||
public String getStrBeginTime(){ |
|||
if(ObjectUtil.isNotNull(beginTime)){ |
|||
return new SimpleDateFormat("yyyy/MM/dd HH:mm").format(beginTime); |
|||
}else{ |
|||
return null; |
|||
} |
|||
} |
|||
public String getStrEndTime(){ |
|||
if(ObjectUtil.isNotNull(endTime)){ |
|||
return new SimpleDateFormat("yyyy/MM/dd HH:mm").format(endTime); |
|||
}else{ |
|||
return null; |
|||
} |
|||
} |
|||
} |
|||
/** |
|||
* 成员及奖惩干系人 |
|||
*/ |
|||
@Data |
|||
public static class MemberAndStakeholder{ |
|||
private String memberName; |
|||
private String memberPhone; |
|||
private String stakeholderName; |
|||
private String stakeholderPhone; |
|||
} |
|||
/** |
|||
* 一级角色 |
|||
*/ |
|||
@Data |
|||
public static class FirstRole{ |
|||
private Long id; |
|||
private String name; |
|||
private List<SecondRole> secondRoleList = new ArrayList<>(); |
|||
} |
|||
|
|||
/** |
|||
* 二级角色 |
|||
*/ |
|||
@Data |
|||
public static class SecondRole{ |
|||
private Long id; |
|||
private String name; |
|||
//对谁不可见
|
|||
private String roleExclude; |
|||
private List<Member> memberList; |
|||
} |
|||
|
|||
/** |
|||
* 角色下的成员 |
|||
*/ |
|||
@Data |
|||
public static class Member{ |
|||
private Long id; |
|||
private String name; |
|||
} |
|||
|
|||
/** |
|||
* 一级任务 |
|||
*/ |
|||
@Data |
|||
public static class FirstTask{ |
|||
private Long id; |
|||
private String taskName; |
|||
private List<SecondTask> secondTaskList = new ArrayList<>(); |
|||
} |
|||
/** |
|||
* 二级任务 |
|||
*/ |
|||
@Data |
|||
public static class SecondTask{ |
|||
private Long id; |
|||
private String name; |
|||
private String description; |
|||
private Long beginTime; |
|||
private Long endTime; |
|||
private Long duration; |
|||
private String cycle; |
|||
private String subTaskSheetName; |
|||
private String subProjectName; |
|||
private List<DeliverInfo> deliverInfoList; |
|||
private String executorRoleName; |
|||
private String checkerRoleName; |
|||
private BigDecimal money; |
|||
private String delay; |
|||
private Long delayTime; |
|||
private List<SubTask> subTaskList = new ArrayList<>(); |
|||
public Long getDuration(){ |
|||
if(ObjectUtil.isNotNull(beginTime) && ObjectUtil.isNotNull(endTime)) { |
|||
return endTime - beginTime; |
|||
} |
|||
return null; |
|||
} |
|||
} |
|||
/** |
|||
* 分组下的任务 |
|||
*/ |
|||
@Data |
|||
public static class SubTask{ |
|||
private Long id; |
|||
private String name; |
|||
private Long beginTime; |
|||
private Long endTime; |
|||
private String cycle; |
|||
private Long duration; |
|||
private String memberName; |
|||
private String checkerRoleName; |
|||
private String description; |
|||
public Long getDuration(){ |
|||
if(ObjectUtil.isNotNull(beginTime) && ObjectUtil.isNotNull(endTime)) { |
|||
return endTime - beginTime; |
|||
} |
|||
return null; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 交付物名字及文件地址 |
|||
*/ |
|||
@Data |
|||
public static class DeliverInfo{ |
|||
private String name; |
|||
private List<String> pathList; |
|||
} |
|||
|
|||
/** |
|||
* 插件信息 |
|||
*/ |
|||
@Data |
|||
public static class PluginInfo{ |
|||
private String secondTaskName; |
|||
private String pluginName; |
|||
} |
|||
|
|||
/** |
|||
* 项目里的任务清单 |
|||
*/ |
|||
@Data |
|||
public static class ChecklistByProjectId{ |
|||
private String projectName; |
|||
private String taskName; |
|||
private Long taskId; |
|||
private String roleName; |
|||
private Long beginTime; |
|||
private Long endTime; |
|||
private String cycle; |
|||
private Long duration; |
|||
private Long completeTime; |
|||
//"状态:0-未开始,1-进行中,2-已完成"
|
|||
private String process; |
|||
|
|||
public Long getDuration(){ |
|||
if(ObjectUtil.isNotNull(beginTime) && ObjectUtil.isNotNull(endTime)) { |
|||
return endTime - beginTime; |
|||
} |
|||
return null; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 项目内的交付物信息 |
|||
*/ |
|||
@Data |
|||
public static class DeliverWithExcel{ |
|||
private String projectName; |
|||
private String taskName; |
|||
private Long taskBeginTime; |
|||
private Long taskEndTime; |
|||
private Long taskDuration; |
|||
private String taskCycle; |
|||
private Long deliverId; |
|||
private String deliverName; |
|||
private String jumpPath; |
|||
public Long getTaskDuration(){ |
|||
if(ObjectUtil.isNotNull(taskBeginTime) && ObjectUtil.isNotNull(taskEndTime)) { |
|||
return taskEndTime - taskBeginTime; |
|||
} |
|||
return null; |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 有交付物的subTime |
|||
*/ |
|||
@Data |
|||
public static class SubTime { |
|||
private Long subBeginTime; |
|||
private Long subEndTime; |
|||
private List<SubTimeDeliverInfo> subTimeDeliverInfoList; |
|||
} |
|||
/** |
|||
* 交付物详情 |
|||
*/ |
|||
@Data |
|||
public static class SubTimeDeliverInfo { |
|||
private String fileName; |
|||
private String filePath; |
|||
} |
|||
} |
@ -1,8 +1,10 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.persist.mapper.ProRoleExcludeMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface ProRoleExcludeDao extends ProRoleExcludeMapper { |
|||
String selectStrByRoleId(@Param("roleId") Long roleId); |
|||
} |
|||
|
@ -0,0 +1,14 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.bean.vo.PluginVo; |
|||
import com.ccsens.tall.persist.mapper.ProTaskCommentMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Repository |
|||
public interface ProTaskCommentDao extends ProTaskCommentMapper { |
|||
List<PluginVo.CommentInfo> getCommentByTaskId(@Param("taskId") Long taskId); |
|||
|
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.bean.vo.TaskVo; |
|||
import com.ccsens.tall.persist.mapper.ProTaskShowMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface ProTaskShowDao extends ProTaskShowMapper { |
|||
TaskVo.ProTaskShow getProTaskShowByTaskId(@Param("taskId") Long taskId); |
|||
} |
@ -0,0 +1,8 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.persist.mapper.SysRobotMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface SysRobotDao extends SysRobotMapper { |
|||
} |
@ -1,8 +1,15 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.bean.po.ProTaskSubTime; |
|||
import com.ccsens.tall.persist.mapper.ProTaskSubTimeMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
@Repository |
|||
public interface TaskSubTimeDao extends ProTaskSubTimeMapper{ |
|||
List<ProTaskSubTime> getUnderwayTaskByRoleId(@Param("subTaskId") Long subTaskId, @Param("roleId") Long roleId); |
|||
|
|||
void clearTaskRealTime(@Param("projectId")Long projectId); |
|||
} |
|||
|
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.ProTaskComment; |
|||
import com.ccsens.tall.bean.po.ProTaskCommentExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProTaskCommentMapper { |
|||
long countByExample(ProTaskCommentExample example); |
|||
|
|||
int deleteByExample(ProTaskCommentExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProTaskComment record); |
|||
|
|||
int insertSelective(ProTaskComment record); |
|||
|
|||
List<ProTaskComment> selectByExample(ProTaskCommentExample example); |
|||
|
|||
ProTaskComment selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProTaskComment record, @Param("example") ProTaskCommentExample example); |
|||
|
|||
int updateByExample(@Param("record") ProTaskComment record, @Param("example") ProTaskCommentExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProTaskComment record); |
|||
|
|||
int updateByPrimaryKey(ProTaskComment record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.ProTaskShow; |
|||
import com.ccsens.tall.bean.po.ProTaskShowExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProTaskShowMapper { |
|||
long countByExample(ProTaskShowExample example); |
|||
|
|||
int deleteByExample(ProTaskShowExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProTaskShow record); |
|||
|
|||
int insertSelective(ProTaskShow record); |
|||
|
|||
List<ProTaskShow> selectByExample(ProTaskShowExample example); |
|||
|
|||
ProTaskShow selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProTaskShow record, @Param("example") ProTaskShowExample example); |
|||
|
|||
int updateByExample(@Param("record") ProTaskShow record, @Param("example") ProTaskShowExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProTaskShow record); |
|||
|
|||
int updateByPrimaryKey(ProTaskShow record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.SysMessageType; |
|||
import com.ccsens.tall.bean.po.SysMessageTypeExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SysMessageTypeMapper { |
|||
long countByExample(SysMessageTypeExample example); |
|||
|
|||
int deleteByExample(SysMessageTypeExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(SysMessageType record); |
|||
|
|||
int insertSelective(SysMessageType record); |
|||
|
|||
List<SysMessageType> selectByExample(SysMessageTypeExample example); |
|||
|
|||
SysMessageType selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") SysMessageType record, @Param("example") SysMessageTypeExample example); |
|||
|
|||
int updateByExample(@Param("record") SysMessageType record, @Param("example") SysMessageTypeExample example); |
|||
|
|||
int updateByPrimaryKeySelective(SysMessageType record); |
|||
|
|||
int updateByPrimaryKey(SysMessageType record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.SysProjectRobot; |
|||
import com.ccsens.tall.bean.po.SysProjectRobotExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SysProjectRobotMapper { |
|||
long countByExample(SysProjectRobotExample example); |
|||
|
|||
int deleteByExample(SysProjectRobotExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(SysProjectRobot record); |
|||
|
|||
int insertSelective(SysProjectRobot record); |
|||
|
|||
List<SysProjectRobot> selectByExample(SysProjectRobotExample example); |
|||
|
|||
SysProjectRobot selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") SysProjectRobot record, @Param("example") SysProjectRobotExample example); |
|||
|
|||
int updateByExample(@Param("record") SysProjectRobot record, @Param("example") SysProjectRobotExample example); |
|||
|
|||
int updateByPrimaryKeySelective(SysProjectRobot record); |
|||
|
|||
int updateByPrimaryKey(SysProjectRobot record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.SysProjectRobotMessage; |
|||
import com.ccsens.tall.bean.po.SysProjectRobotMessageExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SysProjectRobotMessageMapper { |
|||
long countByExample(SysProjectRobotMessageExample example); |
|||
|
|||
int deleteByExample(SysProjectRobotMessageExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(SysProjectRobotMessage record); |
|||
|
|||
int insertSelective(SysProjectRobotMessage record); |
|||
|
|||
List<SysProjectRobotMessage> selectByExample(SysProjectRobotMessageExample example); |
|||
|
|||
SysProjectRobotMessage selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") SysProjectRobotMessage record, @Param("example") SysProjectRobotMessageExample example); |
|||
|
|||
int updateByExample(@Param("record") SysProjectRobotMessage record, @Param("example") SysProjectRobotMessageExample example); |
|||
|
|||
int updateByPrimaryKeySelective(SysProjectRobotMessage record); |
|||
|
|||
int updateByPrimaryKey(SysProjectRobotMessage record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.SysRobotLog; |
|||
import com.ccsens.tall.bean.po.SysRobotLogExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SysRobotLogMapper { |
|||
long countByExample(SysRobotLogExample example); |
|||
|
|||
int deleteByExample(SysRobotLogExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(SysRobotLog record); |
|||
|
|||
int insertSelective(SysRobotLog record); |
|||
|
|||
List<SysRobotLog> selectByExample(SysRobotLogExample example); |
|||
|
|||
SysRobotLog selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") SysRobotLog record, @Param("example") SysRobotLogExample example); |
|||
|
|||
int updateByExample(@Param("record") SysRobotLog record, @Param("example") SysRobotLogExample example); |
|||
|
|||
int updateByPrimaryKeySelective(SysRobotLog record); |
|||
|
|||
int updateByPrimaryKey(SysRobotLog record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.SysRobot; |
|||
import com.ccsens.tall.bean.po.SysRobotExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SysRobotMapper { |
|||
long countByExample(SysRobotExample example); |
|||
|
|||
int deleteByExample(SysRobotExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(SysRobot record); |
|||
|
|||
int insertSelective(SysRobot record); |
|||
|
|||
List<SysRobot> selectByExample(SysRobotExample example); |
|||
|
|||
SysRobot selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") SysRobot record, @Param("example") SysRobotExample example); |
|||
|
|||
int updateByExample(@Param("record") SysRobot record, @Param("example") SysRobotExample example); |
|||
|
|||
int updateByPrimaryKeySelective(SysRobot record); |
|||
|
|||
int updateByPrimaryKey(SysRobot record); |
|||
} |
@ -0,0 +1,906 @@ |
|||
package com.ccsens.tall.service; |
|||
|
|||
import cn.hutool.core.bean.BeanUtil; |
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.date.DateUtil; |
|||
import cn.hutool.core.io.FileUtil; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import cn.hutool.core.util.ZipUtil; |
|||
import cn.hutool.crypto.SecureUtil; |
|||
import com.ccsens.tall.bean.po.*; |
|||
import com.ccsens.tall.bean.vo.WbsVo; |
|||
import com.ccsens.tall.persist.dao.*; |
|||
import com.ccsens.util.PoiUtil; |
|||
import com.ccsens.util.WebConstant; |
|||
import lombok.Data; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.apache.poi.ss.usermodel.Workbook; |
|||
import org.apache.poi.xssf.usermodel.XSSFWorkbook; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.core.io.DefaultResourceLoader; |
|||
import org.springframework.core.io.ResourceLoader; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Propagation; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
import org.springframework.util.unit.DataUnit; |
|||
|
|||
import java.io.*; |
|||
import java.math.BigDecimal; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.*; |
|||
|
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class) |
|||
public class ExportWbsService implements IExportWbsService{ |
|||
@Autowired |
|||
private SysProjectDao sysProjectDao; |
|||
@Autowired |
|||
private ProMemberDao proMemberDao; |
|||
@Autowired |
|||
private ProRoleDao proRoleDao; |
|||
@Autowired |
|||
private ProRoleExcludeDao proRoleExcludeDao; |
|||
@Autowired |
|||
private TaskDetailDao taskDetailDao; |
|||
@Autowired |
|||
private TaskDeliverDao taskDeliverDao; |
|||
@Autowired |
|||
private SysPluginDao sysPluginDao; |
|||
@Autowired |
|||
private TaskDeliverService taskDeliverService; |
|||
@Autowired |
|||
private ProTaskDetailService taskDetailService; |
|||
@Autowired |
|||
private ProRoleService proRoleService; |
|||
|
|||
@Override |
|||
public String exportWbs(Long projectId) throws Exception { |
|||
//1、查找项目信息
|
|||
SysProject sysProject = sysProjectDao.selectByPrimaryKey(projectId); |
|||
WbsVo.ProjectInfo projectInfo = new WbsVo.ProjectInfo(); |
|||
BeanUtil.copyProperties(sysProject,projectInfo); |
|||
//2、查找所有成员信息
|
|||
List<WbsVo.MemberAndStakeholder> memberList = getMemberAndStakeholder(projectId); |
|||
//3、查找所有角色及角色下的成员,对谁不可见
|
|||
List<WbsVo.FirstRole> roleList = getAllRole(projectId); |
|||
//4、查找任务信息
|
|||
List<WbsVo.FirstTask> taskList = getAllTask(projectId); |
|||
//5、查找插件信息
|
|||
List<String> roleName = proRoleDao.selectSecondRoleName(projectId); |
|||
List<WbsVo.PluginInfo> pluginInfoList = sysPluginDao.getPluginNameAndTaskName(projectId); |
|||
|
|||
//6、写入WBS
|
|||
Workbook wb = new XSSFWorkbook(); |
|||
//wbsSheet
|
|||
List<List<PoiUtil.PoiUtilCell>> wbsSheet = new ArrayList<>(); |
|||
writeProjectInfo(wbsSheet,projectInfo); |
|||
writeRoleInfo(wbsSheet,roleList); |
|||
Map<String,List<List<PoiUtil.PoiUtilCell>>> subSheetMap = writeTaskInfo(wbsSheet,taskList); |
|||
PoiUtil.exportWB("WBS", wbsSheet, wb); |
|||
|
|||
//项目成员sheet
|
|||
List<List<PoiUtil.PoiUtilCell>> memberSheet = new ArrayList<>(); |
|||
writeMemberInfo(memberSheet,memberList); |
|||
PoiUtil.exportWB("项目成员表", memberSheet, wb); |
|||
//插件sheet
|
|||
List<List<PoiUtil.PoiUtilCell>> pluginSheet = new ArrayList<>(); |
|||
writePluginInfo(pluginSheet,roleName,pluginInfoList); |
|||
PoiUtil.exportWB("插件", pluginSheet, wb); |
|||
//子任务sheet
|
|||
if(CollectionUtil.isNotEmpty(subSheetMap)){ |
|||
for (Map.Entry<String, List<List<PoiUtil.PoiUtilCell>>> entry : subSheetMap.entrySet()) { |
|||
PoiUtil.exportWB(entry.getKey(), entry.getValue(), wb); |
|||
} |
|||
} |
|||
//写入文件
|
|||
String fileName = "/exportWbs/" + DateUtil.today() + "/" + System.currentTimeMillis() + ".xlsx"; |
|||
String path = WebConstant.UPLOAD_PATH_BASE + fileName; |
|||
File tmpFile = new File(path); |
|||
if (!tmpFile.getParentFile().exists()) { |
|||
tmpFile.getParentFile().mkdirs(); |
|||
} |
|||
OutputStream stream = new FileOutputStream(tmpFile); |
|||
wb.write(stream); |
|||
stream.close(); |
|||
|
|||
return WebConstant.TEST_URL_BASE + fileName; |
|||
} |
|||
/** |
|||
* 查找所有成员及奖惩干系人 |
|||
*/ |
|||
private List<WbsVo.MemberAndStakeholder> getMemberAndStakeholder(Long projectId) { |
|||
return proMemberDao.getMemberAndStakeholder(projectId); |
|||
} |
|||
|
|||
/** |
|||
* 查找所有任务 |
|||
* @param projectId |
|||
* @return |
|||
*/ |
|||
private List<WbsVo.FirstTask> getAllTask(Long projectId) { |
|||
Map<Long,WbsVo.FirstTask> taskMap = new HashMap<>(); |
|||
List<WbsVo.FirstTask> firstTaskList = new ArrayList<>(); |
|||
|
|||
Map<Long,WbsVo.SecondTask> secondTaskMap = new HashMap<>(); |
|||
|
|||
//获取项目下所有任务
|
|||
// ProTaskDetailExample proTaskDetailExample = new ProTaskDetailExample();
|
|||
// proTaskDetailExample.createCriteria().andProjectIdEqualTo(projectId).andLevelNotEqualTo((byte) 0);
|
|||
// proTaskDetailExample.setOrderByClause("level");
|
|||
// List<ProTaskDetail> taskDetailList = taskDetailDao.selectByExample(proTaskDetailExample);
|
|||
List<ProTaskDetail> taskDetailList = taskDetailDao.selectAllByProject(projectId); |
|||
if(CollectionUtil.isNotEmpty(taskDetailList)){ |
|||
for(ProTaskDetail taskDetail : taskDetailList){ |
|||
if(taskDetail.getLevel() == 1){ |
|||
WbsVo.FirstTask firstTask = new WbsVo.FirstTask(); |
|||
firstTask.setId(taskDetail.getId()); |
|||
firstTask.setTaskName(taskDetail.getName()); |
|||
|
|||
taskMap.put(taskDetail.getId(),firstTask); |
|||
firstTaskList.add(firstTask); |
|||
}else if(taskDetail.getLevel() == 2){ |
|||
WbsVo.FirstTask firstTask = taskMap.get(taskDetail.getParentId()); |
|||
if(ObjectUtil.isNotNull(firstTask)) { |
|||
WbsVo.SecondTask secondTask = new WbsVo.SecondTask(); |
|||
BeanUtil.copyProperties(taskDetail, secondTask); |
|||
//处理子项目
|
|||
if(StrUtil.isNotEmpty(taskDetail.getSubProject()) && "0".equalsIgnoreCase(taskDetail.getSubProject())){ |
|||
secondTask.setSubProjectName(taskDetail.getSubProject()); |
|||
} |
|||
//查询负责人姓名,检查人姓名
|
|||
secondTask.setExecutorRoleName(getNameByRoleId(taskDetail.getExecutorRole())); |
|||
secondTask.setCheckerRoleName(getNameByRoleId(taskDetail.getCheckerRole())); |
|||
//处理交付物
|
|||
secondTask.setDeliverInfoList(getDeliverByTaskId(taskDetail.getId())); |
|||
//处理奖惩金额
|
|||
if(ObjectUtil.isNotNull(taskDetail.getMoney())) { |
|||
secondTask.setMoney(BigDecimal.valueOf(taskDetail.getMoney()).divide(BigDecimal.valueOf(100))); |
|||
} |
|||
//处理延时模式
|
|||
secondTask.setDelay(WebConstant.TASK_DELAY.valueOf(taskDetail.getDelay()).phase); |
|||
|
|||
secondTaskMap.put(taskDetail.getId(),secondTask); |
|||
firstTask.getSecondTaskList().add(secondTask); |
|||
} |
|||
}else if(taskDetail.getLevel() == 3){ |
|||
WbsVo.SecondTask secondTask = secondTaskMap.get(taskDetail.getParentId()); |
|||
if(ObjectUtil.isNotNull(secondTask)) { |
|||
WbsVo.SubTask subTask = new WbsVo.SubTask(); |
|||
BeanUtil.copyProperties(taskDetail,subTask); |
|||
//处理成员
|
|||
if(taskDetail.getAllMember() == 0){ |
|||
String memberName = taskDetailDao.getTaskMemberNameByTaskId(taskDetail.getId()); |
|||
if(StrUtil.isNotEmpty(memberName)) { |
|||
String[] memberNames = memberName.split(","); |
|||
memberName = ""; |
|||
for (int i = 0; i < memberNames.length; i++) { |
|||
if(i == 0){ |
|||
memberName = memberName + "("+memberNames[i]+")"; |
|||
}else { |
|||
memberName = memberName + "和"+"("+memberNames[i]+")"; |
|||
} |
|||
} |
|||
} |
|||
subTask.setMemberName(memberName); |
|||
} |
|||
//添加至二级任务中
|
|||
secondTask.getSubTaskList().add(subTask); |
|||
if(StrUtil.isEmpty(secondTask.getSubTaskSheetName())){ |
|||
secondTask.setSubTaskSheetName(secondTask.getName()+"表"); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
return firstTaskList; |
|||
} |
|||
|
|||
/** |
|||
* 根据id查角色名 |
|||
*/ |
|||
private String getNameByRoleId(Long roleId){ |
|||
ProRole role = proRoleDao.selectByPrimaryKey(roleId); |
|||
if(ObjectUtil.isNotNull(role)){ |
|||
return role.getName(); |
|||
} |
|||
return null; |
|||
} |
|||
|
|||
/** |
|||
* 获取交付物名称和上传的文件的路径 |
|||
*/ |
|||
private List<WbsVo.DeliverInfo> getDeliverByTaskId(Long taskId){ |
|||
List<WbsVo.DeliverInfo> deliverInfoList = new ArrayList<>(); |
|||
|
|||
ProTaskDeliverExample deliverExample = new ProTaskDeliverExample(); |
|||
deliverExample.createCriteria().andTaskDetailIdEqualTo(taskId); |
|||
List<ProTaskDeliver> deliverList = taskDeliverDao.selectByExample(deliverExample); |
|||
if(CollectionUtil.isNotEmpty(deliverList)){ |
|||
for(ProTaskDeliver taskDeliver : deliverList){ |
|||
WbsVo.DeliverInfo deliverInfo = new WbsVo.DeliverInfo(); |
|||
deliverInfo.setName(taskDeliver.getName()); |
|||
deliverInfoList.add(deliverInfo); |
|||
} |
|||
} |
|||
return deliverInfoList; |
|||
} |
|||
|
|||
/** |
|||
* 查找所有角色 |
|||
* @param projectId |
|||
* @return |
|||
*/ |
|||
private List<WbsVo.FirstRole> getAllRole(Long projectId) { |
|||
Map<Long,WbsVo.FirstRole> firstMap = new HashMap<>(); |
|||
List<WbsVo.FirstRole> firstRoleList = new ArrayList<>(); |
|||
//查角色
|
|||
List<String> notInName = new ArrayList<>(); |
|||
notInName.add("MVP"); |
|||
notInName.add("Creator"); |
|||
notInName.add("MoneyStakeholder"); |
|||
notInName.add("Attention"); |
|||
ProRoleExample proRoleExample = new ProRoleExample(); |
|||
proRoleExample.createCriteria().andProjectIdEqualTo(projectId).andNameNotIn(notInName); |
|||
proRoleExample.setOrderByClause("parent_id"); |
|||
List<ProRole> proRoleList = proRoleDao.selectByExample(proRoleExample); |
|||
if(CollectionUtil.isNotEmpty(proRoleList)){ |
|||
for(ProRole proRole : proRoleList){ |
|||
if(proRole.getParentId() == 0){ |
|||
WbsVo.FirstRole firstRole = new WbsVo.FirstRole(); |
|||
firstRole.setId(proRole.getId()); |
|||
firstRole.setName(proRole.getDescription()); |
|||
|
|||
firstMap.put(proRole.getId(),firstRole); |
|||
firstRoleList.add(firstRole); |
|||
}else { |
|||
WbsVo.FirstRole firstRole = firstMap.get(proRole.getParentId()); |
|||
if(ObjectUtil.isNotNull(firstRole)){ |
|||
WbsVo.SecondRole secondRole = new WbsVo.SecondRole(); |
|||
secondRole.setId(proRole.getId()); |
|||
secondRole.setName(proRole.getName()); |
|||
//查找角色下的成员
|
|||
List<WbsVo.Member> memberList = proMemberDao.selectByRoleId(secondRole.getId()); |
|||
secondRole.setMemberList(memberList); |
|||
//查找对谁不可见信息
|
|||
String exclude = proRoleExcludeDao.selectStrByRoleId(secondRole.getId()); |
|||
secondRole.setRoleExclude(exclude); |
|||
firstRole.getSecondRoleList().add(secondRole); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
return firstRoleList; |
|||
} |
|||
|
|||
/** |
|||
* 将项目数据写入excel |
|||
*/ |
|||
private void writeProjectInfo( List<List<PoiUtil.PoiUtilCell>> wbsInfo ,WbsVo.ProjectInfo sysProject) throws Exception { |
|||
List<PoiUtil.PoiUtilCell> projectHeader = new ArrayList<>(); |
|||
projectHeader.add(new PoiUtil.PoiUtilCell("项目信息(Project Information)",5,1)); |
|||
wbsInfo.add(projectHeader); |
|||
|
|||
List<PoiUtil.PoiUtilCell> projectTitle = new ArrayList<>(); |
|||
projectTitle.add(new PoiUtil.PoiUtilCell("名称")); |
|||
projectTitle.add(new PoiUtil.PoiUtilCell("描述")); |
|||
projectTitle.add(new PoiUtil.PoiUtilCell("地点")); |
|||
projectTitle.add(new PoiUtil.PoiUtilCell("开始时间")); |
|||
projectTitle.add(new PoiUtil.PoiUtilCell("结束时间")); |
|||
wbsInfo.add(projectTitle); |
|||
|
|||
List<PoiUtil.PoiUtilCell> projectInfo = new ArrayList<>(); |
|||
projectInfo.add(new PoiUtil.PoiUtilCell(sysProject.getName())); |
|||
projectInfo.add(new PoiUtil.PoiUtilCell(sysProject.getDescription())); |
|||
projectInfo.add(new PoiUtil.PoiUtilCell(sysProject.getAddress())); |
|||
projectInfo.add(new PoiUtil.PoiUtilCell(sysProject.getStrBeginTime())); |
|||
projectInfo.add(new PoiUtil.PoiUtilCell(sysProject.getStrEndTime())); |
|||
wbsInfo.add(projectInfo); |
|||
|
|||
List<PoiUtil.PoiUtilCell> s1 = new ArrayList<>(); |
|||
List<PoiUtil.PoiUtilCell> s2 = new ArrayList<>(); |
|||
wbsInfo.add(s1); |
|||
wbsInfo.add(s2); |
|||
} |
|||
|
|||
/** |
|||
* 将角色成员数据写入excel |
|||
*/ |
|||
private void writeRoleInfo(List<List<PoiUtil.PoiUtilCell>> wbsInfo, List<WbsVo.FirstRole> roleList) { |
|||
List<PoiUtil.PoiUtilCell> roleHeader = new ArrayList<>(); |
|||
roleHeader.add(new PoiUtil.PoiUtilCell("项目成员(Project Members)",6,1)); |
|||
wbsInfo.add(roleHeader); |
|||
|
|||
List<PoiUtil.PoiUtilCell> roleTitle = new ArrayList<>(); |
|||
roleTitle.add(new PoiUtil.PoiUtilCell("序号")); |
|||
roleTitle.add(new PoiUtil.PoiUtilCell("系统角色")); |
|||
roleTitle.add(new PoiUtil.PoiUtilCell("角色")); |
|||
roleTitle.add(new PoiUtil.PoiUtilCell("成员")); |
|||
roleTitle.add(new PoiUtil.PoiUtilCell("对谁不可见")); |
|||
roleTitle.add(new PoiUtil.PoiUtilCell("备注")); |
|||
wbsInfo.add(roleTitle); |
|||
|
|||
int index = 1; |
|||
//一级角色
|
|||
if(CollectionUtil.isNotEmpty(roleList)) { |
|||
for(WbsVo.FirstRole firstRole : roleList){ |
|||
//计算一级角色的合并单元格数量
|
|||
int r = 0; |
|||
if (CollectionUtil.isNotEmpty(firstRole.getSecondRoleList())) { |
|||
for (WbsVo.SecondRole secondRole : firstRole.getSecondRoleList()) { |
|||
if (CollectionUtil.isNotEmpty(secondRole.getMemberList())) { |
|||
r += secondRole.getMemberList().size(); |
|||
}else { |
|||
r++; |
|||
} |
|||
} |
|||
r = r == 0 ? 1 : r; |
|||
} |
|||
//二级角色
|
|||
if (CollectionUtil.isNotEmpty(firstRole.getSecondRoleList())) { |
|||
for (int i = 0; i < firstRole.getSecondRoleList().size(); i++) { |
|||
WbsVo.SecondRole secondRole = firstRole.getSecondRoleList().get(i); |
|||
//成员
|
|||
if (CollectionUtil.isNotEmpty(secondRole.getMemberList())) { |
|||
for(int j = 0; j < secondRole.getMemberList().size(); j++){ |
|||
WbsVo.Member member = secondRole.getMemberList().get(j); |
|||
|
|||
List<PoiUtil.PoiUtilCell> roleInfo = new ArrayList<>(); |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
//写入一级角色
|
|||
if(i == 0 && j == 0){ |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(firstRole.getName(),1,r)); |
|||
}else{ |
|||
roleInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
//写入二级角色
|
|||
if(j == 0){ |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(secondRole.getName(),1,secondRole.getMemberList().size())); |
|||
}else{ |
|||
roleInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
//写入成员名
|
|||
roleInfo.add(new PoiUtil.PoiUtilCell(member.getName())); |
|||
//写入对谁不可见
|
|||
if(j == 0){ |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(secondRole.getRoleExclude(),1,secondRole.getMemberList().size())); |
|||
}else{ |
|||
roleInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
wbsInfo.add(roleInfo); |
|||
index++; |
|||
} |
|||
} else { |
|||
List<PoiUtil.PoiUtilCell> roleInfo = new ArrayList<>(); |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
if(i == 0){ |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(firstRole.getName(),1,firstRole.getSecondRoleList().size())); |
|||
}else { |
|||
roleInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(secondRole.getName())); |
|||
roleInfo.add(new PoiUtil.PoiUtilCell()); |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(secondRole.getRoleExclude())); |
|||
wbsInfo.add(roleInfo); |
|||
index++; |
|||
} |
|||
} |
|||
} else { |
|||
List<PoiUtil.PoiUtilCell> roleInfo = new ArrayList<>(); |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
roleInfo.add(new PoiUtil.PoiUtilCell(firstRole.getName())); |
|||
wbsInfo.add(roleInfo); |
|||
index++; |
|||
} |
|||
} |
|||
} |
|||
|
|||
// List<PoiUtil.PoiUtilCell> s1 = new ArrayList<>();
|
|||
// List<PoiUtil.PoiUtilCell> s2 = new ArrayList<>();
|
|||
// wbsInfo.add(s1);
|
|||
// wbsInfo.add(s2);
|
|||
} |
|||
|
|||
/** |
|||
* 将任务数据写入excel 返回子任务表的数据和交付物的数据 |
|||
*/ |
|||
private Map<String,List<List<PoiUtil.PoiUtilCell>>> writeTaskInfo(List<List<PoiUtil.PoiUtilCell>> wbsInfo, List<WbsVo.FirstTask> taskList) { |
|||
//返回子任务的数据map
|
|||
Map<String,List<List<PoiUtil.PoiUtilCell>>> subSheetMap = new HashMap<>(); |
|||
|
|||
List<PoiUtil.PoiUtilCell> taskHeader = new ArrayList<>(); |
|||
taskHeader.add(new PoiUtil.PoiUtilCell("项目任务分解(WBS)",19,1)); |
|||
wbsInfo.add(taskHeader); |
|||
|
|||
List<PoiUtil.PoiUtilCell> taskTitle = new ArrayList<>(); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("序号")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("任务(节点)")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("二级任务(节点)")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("任务描述/要求")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("开始时间")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("结束时间")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("任务时长(小时)")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("重复")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("关联子日程表")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("关联子项目表")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("交付物/MVP项")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("负责人")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("检查人")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("即时奖惩(元)")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("任务切换模式")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("延迟时间"+"\n"+"(自动延迟模式可用)")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("跳转任务")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("跳转次数")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("执行时间(小时)")); |
|||
wbsInfo.add(taskTitle); |
|||
|
|||
int index = 1; |
|||
|
|||
if(CollectionUtil.isNotEmpty(taskList)){ |
|||
for(WbsVo.FirstTask firstTask : taskList){ |
|||
if(CollectionUtil.isNotEmpty(firstTask.getSecondTaskList())){ |
|||
for(int i = 0; i < firstTask.getSecondTaskList().size(); i++){ |
|||
WbsVo.SecondTask secondTask = firstTask.getSecondTaskList().get(i); |
|||
List<PoiUtil.PoiUtilCell> taskInfo = new ArrayList<>(); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
if(i == 0) { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(firstTask.getTaskName(),1,firstTask.getSecondTaskList().size())); |
|||
}else{ |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getName())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getDescription())); |
|||
if(StrUtil.isEmpty(secondTask.getCycle())) { |
|||
if(ObjectUtil.isNotNull(secondTask.getBeginTime())){ |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(secondTask.getBeginTime()))); |
|||
}else { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
if(ObjectUtil.isNotNull(secondTask.getEndTime())){ |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(secondTask.getEndTime()))); |
|||
}else { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
if(ObjectUtil.isNotNull(secondTask.getDuration())){ |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(secondTask.getDuration() / 1000 / 3600))); |
|||
}else { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
}else { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getCycle())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getSubTaskSheetName())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getSubProjectName())); |
|||
//如果有子任务,创建子表
|
|||
List<List<PoiUtil.PoiUtilCell>> subTaskList = null; |
|||
if(CollectionUtil.isNotEmpty(secondTask.getSubTaskList())){ |
|||
subTaskList = writeSubTask(secondTask.getSubTaskSheetName(),secondTask.getSubTaskList()); |
|||
subSheetMap.put(secondTask.getSubTaskSheetName(),subTaskList); |
|||
} |
|||
//TODO 交付物
|
|||
if(CollectionUtil.isNotEmpty(secondTask.getDeliverInfoList())){ |
|||
if(secondTask.getDeliverInfoList().size() > 1){ |
|||
taskInfo.add(new PoiUtil.PoiUtilCell("关联表-"+secondTask.getName()+"进程表")); |
|||
List<List<PoiUtil.PoiUtilCell>> deliverList = writeDeliver(secondTask.getDeliverInfoList(),secondTask.getName()+"进程表",secondTask.getExecutorRoleName()); |
|||
subSheetMap.put(secondTask.getName()+"进程表",deliverList); |
|||
}else { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getDeliverInfoList().get(0).getName())); |
|||
} |
|||
}else { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getExecutorRoleName())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getCheckerRoleName())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(secondTask.getMoney()))); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getDelay())); |
|||
if(secondTask.getDelayTime() == 0){ |
|||
taskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
}else { |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(secondTask.getDelayTime() / 1000 / 60 + "分钟")); |
|||
} |
|||
wbsInfo.add(taskInfo); |
|||
index++; |
|||
} |
|||
}else { |
|||
List<PoiUtil.PoiUtilCell> taskInfo = new ArrayList<>(); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(firstTask.getTaskName())); |
|||
wbsInfo.add(taskInfo); |
|||
index++; |
|||
} |
|||
} |
|||
} |
|||
return subSheetMap; |
|||
} |
|||
|
|||
/** |
|||
* 生成交付物表的写入数据 |
|||
*/ |
|||
private List<List<PoiUtil.PoiUtilCell>> writeDeliver(List<WbsVo.DeliverInfo> deliverInfoList, String sheetName, String executorRoleName) { |
|||
List<List<PoiUtil.PoiUtilCell>> list = new ArrayList<>(); |
|||
|
|||
List<PoiUtil.PoiUtilCell> deliverHeader = new ArrayList<>(); |
|||
deliverHeader.add(new PoiUtil.PoiUtilCell(sheetName,4,1)); |
|||
list.add(deliverHeader); |
|||
|
|||
List<PoiUtil.PoiUtilCell> deliverTitle = new ArrayList<>(); |
|||
deliverTitle.add(new PoiUtil.PoiUtilCell("序号")); |
|||
deliverTitle.add(new PoiUtil.PoiUtilCell("交付物")); |
|||
deliverTitle.add(new PoiUtil.PoiUtilCell("成员")); |
|||
deliverTitle.add(new PoiUtil.PoiUtilCell("备注")); |
|||
list.add(deliverTitle); |
|||
|
|||
int index = 1; |
|||
for(WbsVo.DeliverInfo deliver : deliverInfoList) { |
|||
List<PoiUtil.PoiUtilCell> deliverInfo = new ArrayList<>(); |
|||
deliverInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
deliverInfo.add(new PoiUtil.PoiUtilCell(deliver.getName())); |
|||
deliverInfo.add(new PoiUtil.PoiUtilCell(executorRoleName)); |
|||
list.add(deliverInfo); |
|||
index++; |
|||
} |
|||
return list; |
|||
} |
|||
|
|||
/** |
|||
* 生成子任务表的写入数据 |
|||
*/ |
|||
private List<List<PoiUtil.PoiUtilCell>> writeSubTask(String subTaskSheetName,List<WbsVo.SubTask> subTaskList) { |
|||
List<List<PoiUtil.PoiUtilCell>> list = new ArrayList<>(); |
|||
|
|||
List<PoiUtil.PoiUtilCell> subTaskHeader = new ArrayList<>(); |
|||
subTaskHeader.add(new PoiUtil.PoiUtilCell(subTaskSheetName,9,1)); |
|||
list.add(subTaskHeader); |
|||
|
|||
List<PoiUtil.PoiUtilCell> subTaskTitle = new ArrayList<>(); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("序号")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("任务")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("开始时间")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("结束时间")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("重复时间")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("持续时间")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("成员")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("检查人")); |
|||
subTaskTitle.add(new PoiUtil.PoiUtilCell("备注")); |
|||
list.add(subTaskTitle); |
|||
|
|||
int index = 1; |
|||
for(WbsVo.SubTask subTask : subTaskList){ |
|||
List<PoiUtil.PoiUtilCell> subTaskInfo = new ArrayList<>(); |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(subTask.getName())); |
|||
if(StrUtil.isNotEmpty(subTask.getCycle())){ |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(subTask.getCycle())); |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
}else { |
|||
if(ObjectUtil.isNotNull(subTask.getBeginTime())){ |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(subTask.getBeginTime()))); |
|||
}else { |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
if(ObjectUtil.isNotNull(subTask.getEndTime())){ |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(subTask.getEndTime()))); |
|||
}else { |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
if(ObjectUtil.isNotNull(subTask.getDuration())){ |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(subTask.getDuration() / 1000 / 3600 + "小时")); |
|||
}else { |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
} |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(subTask.getMemberName())); |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(subTask.getCheckerRoleName())); |
|||
subTaskInfo.add(new PoiUtil.PoiUtilCell(subTask.getDescription())); |
|||
list.add(subTaskInfo); |
|||
index++; |
|||
} |
|||
return list; |
|||
} |
|||
|
|||
/** |
|||
* 将项目成员数据写入excel |
|||
*/ |
|||
private void writeMemberInfo(List<List<PoiUtil.PoiUtilCell>> memberSheet,List<WbsVo.MemberAndStakeholder> memberList) { |
|||
List<PoiUtil.PoiUtilCell> taskTitle = new ArrayList<>(); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("序号")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("成员名")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("电话/账号")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("奖惩干系人")); |
|||
taskTitle.add(new PoiUtil.PoiUtilCell("干系人账号")); |
|||
memberSheet.add(taskTitle); |
|||
|
|||
int index = 1; |
|||
if(CollectionUtil.isNotEmpty(memberList)){ |
|||
for(WbsVo.MemberAndStakeholder member : memberList){ |
|||
List<PoiUtil.PoiUtilCell> taskInfo = new ArrayList<>(); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(member.getMemberName())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(member.getMemberPhone())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(member.getStakeholderName())); |
|||
taskInfo.add(new PoiUtil.PoiUtilCell(member.getStakeholderPhone())); |
|||
memberSheet.add(taskInfo); |
|||
index++; |
|||
} |
|||
} |
|||
} |
|||
|
|||
/** |
|||
* 将插件数据写入excel |
|||
*/ |
|||
private void writePluginInfo(List<List<PoiUtil.PoiUtilCell>> pluginSheet, List<String> roleName, List<WbsVo.PluginInfo> pluginInfoList) { |
|||
List<PoiUtil.PoiUtilCell> pluginHeader = new ArrayList<>(); |
|||
pluginHeader.add(new PoiUtil.PoiUtilCell("插件信息",roleName.size()+2,1)); |
|||
pluginSheet.add(pluginHeader); |
|||
|
|||
List<PoiUtil.PoiUtilCell> pluginTitle = new ArrayList<>(); |
|||
pluginTitle.add(new PoiUtil.PoiUtilCell("序号")); |
|||
pluginTitle.add(new PoiUtil.PoiUtilCell("任务/节点")); |
|||
pluginTitle.add(new PoiUtil.PoiUtilCell("插件名",roleName.size(),1)); |
|||
pluginSheet.add(pluginTitle); |
|||
|
|||
List<PoiUtil.PoiUtilCell> pluginRoleName = new ArrayList<>(); |
|||
pluginRoleName.add(new PoiUtil.PoiUtilCell()); |
|||
pluginRoleName.add(new PoiUtil.PoiUtilCell()); |
|||
if(CollectionUtil.isNotEmpty(roleName)){ |
|||
for(String role : roleName){ |
|||
pluginRoleName.add(new PoiUtil.PoiUtilCell(role)); |
|||
} |
|||
} |
|||
pluginSheet.add(pluginRoleName); |
|||
|
|||
int index = 1; |
|||
if(CollectionUtil.isNotEmpty(pluginInfoList)){ |
|||
String taskName = pluginInfoList.get(0).getSecondTaskName(); |
|||
List<PoiUtil.PoiUtilCell> pluginInfo = new ArrayList<>(); |
|||
pluginInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
pluginInfo.add(new PoiUtil.PoiUtilCell(pluginInfoList.get(0).getSecondTaskName())); |
|||
|
|||
for(WbsVo.PluginInfo plugin : pluginInfoList){ |
|||
if(plugin.getSecondTaskName().equalsIgnoreCase(taskName)){ |
|||
pluginInfo.add(new PoiUtil.PoiUtilCell(plugin.getPluginName())); |
|||
}else { |
|||
pluginSheet.add(pluginInfo); |
|||
index++; |
|||
|
|||
taskName = plugin.getSecondTaskName(); |
|||
pluginInfo = new ArrayList<>(); |
|||
pluginInfo.add(new PoiUtil.PoiUtilCell(String.valueOf(index))); |
|||
pluginInfo.add(new PoiUtil.PoiUtilCell(plugin.getSecondTaskName())); |
|||
pluginInfo.add(new PoiUtil.PoiUtilCell(plugin.getPluginName())); |
|||
} |
|||
} |
|||
pluginSheet.add(pluginInfo); |
|||
index++; |
|||
} |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 导出项目清单 |
|||
*/ |
|||
@Override |
|||
public String exportChecklist(Long userId,Long projectId,Long roleId,Long startTime,Long endTime) throws Exception { |
|||
//获取“全体成员”角色
|
|||
ProRole allMember = proRoleService.getAllMember(projectId); |
|||
Long allMemberId = null; |
|||
if (ObjectUtil.isNotNull(allMember)) { |
|||
allMemberId = allMember.getId(); |
|||
} |
|||
//获取清单信息
|
|||
List<WbsVo.ChecklistByProjectId> checklists = taskDetailDao.getChecklistsByProjectId(projectId,roleId,allMemberId,startTime,endTime); |
|||
//转换成写入excel的数据
|
|||
List<List<PoiUtil.PoiUtilCell>> list = writeCheckList(userId,checklists); |
|||
|
|||
//读取模板
|
|||
ResourceLoader resourceLoader = new DefaultResourceLoader(); |
|||
InputStream is = resourceLoader.getResource("classpath:template/checklistTemplate.xlsx").getInputStream(); |
|||
XSSFWorkbook wb = new XSSFWorkbook(is); |
|||
//写入数据
|
|||
PoiUtil.exportWB("单项目", list, wb); |
|||
//生成文件
|
|||
String fileName = "/exportWbs/" + DateUtil.today() + "/" + System.currentTimeMillis() + ".xlsx"; |
|||
String path = WebConstant.UPLOAD_PATH_BASE + fileName; |
|||
File tmpFile = new File(path); |
|||
if (!tmpFile.getParentFile().exists()) { |
|||
tmpFile.getParentFile().mkdirs(); |
|||
} |
|||
OutputStream stream = new FileOutputStream(tmpFile); |
|||
wb.write(stream); |
|||
stream.close(); |
|||
|
|||
return WebConstant.TEST_URL_BASE + fileName; |
|||
} |
|||
/** |
|||
* 生成清单excel的写入数据 |
|||
*/ |
|||
private List<List<PoiUtil.PoiUtilCell>> writeCheckList(Long userId,List<WbsVo.ChecklistByProjectId> checklists) throws Exception { |
|||
//转换成写入excel的数据
|
|||
List<List<PoiUtil.PoiUtilCell>> list = new ArrayList<>(); |
|||
if(CollectionUtil.isNotEmpty(checklists)){ |
|||
List<PoiUtil.PoiUtilCell> row1 = new ArrayList<>(); |
|||
list.add(row1); |
|||
list.add(row1); |
|||
list.add(row1); |
|||
List<PoiUtil.PoiUtilCell> row3 = new ArrayList<>(); |
|||
row3.add(new PoiUtil.PoiUtilCell("时间",null,null)); |
|||
row3.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis()),null,null)); |
|||
row3.add(new PoiUtil.PoiUtilCell()); |
|||
row3.add(new PoiUtil.PoiUtilCell("项目",null,null)); |
|||
row3.add(new PoiUtil.PoiUtilCell(checklists.get(0).getProjectName(),null,null)); |
|||
list.add(row3); |
|||
list.add(row1); |
|||
int index = 1; |
|||
for(WbsVo.ChecklistByProjectId checklist : checklists){ |
|||
//获取任务的完成状态和完成时间
|
|||
Long subTimeId = taskDeliverService.isTaskOrSubTime(checklist.getTaskId()); |
|||
if(ObjectUtil.isNotNull(subTimeId)) { |
|||
ProSubTimeMember subTimeMember = taskDetailService.getProcessByUserIdAndTask(userId, subTimeId); |
|||
if (ObjectUtil.isNotNull(subTimeMember)) { |
|||
checklist.setCompleteTime(subTimeMember.getRealFinishTime()); |
|||
checklist.setProcess(WebConstant.EVENT_PROCESS.valueOf(subTimeMember.getComplatedStatus()).phase); |
|||
} |
|||
} |
|||
List<PoiUtil.PoiUtilCell> checkList = new ArrayList<>(); |
|||
checkList.add(new PoiUtil.PoiUtilCell(String.valueOf(index),null,null)); |
|||
checkList.add(new PoiUtil.PoiUtilCell(checklist.getTaskName(),null,null)); |
|||
checkList.add(new PoiUtil.PoiUtilCell(checklist.getRoleName(),null,null)); |
|||
if(StrUtil.isNotEmpty(checklist.getCycle()) && !"不重复".equalsIgnoreCase(checklist.getCycle())){ |
|||
checkList.add(new PoiUtil.PoiUtilCell()); |
|||
checkList.add(new PoiUtil.PoiUtilCell(checklist.getCycle())); |
|||
}else { |
|||
checkList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(checklist.getBeginTime()), null, null)); |
|||
String duration = null; |
|||
if (checklist.getDuration() / 1000 / 3600 >= 2) { |
|||
duration = checklist.getDuration() / 1000 / 3600 + "小时"; |
|||
} else { |
|||
duration = checklist.getDuration() / 1000 / 60 + "分钟"; |
|||
} |
|||
checkList.add(new PoiUtil.PoiUtilCell(duration, null, null)); |
|||
} |
|||
if(ObjectUtil.isNotNull(checklist.getCompleteTime())) { |
|||
checkList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(checklist.getCompleteTime()), null, null)); |
|||
}else { |
|||
checkList.add(new PoiUtil.PoiUtilCell()); |
|||
} |
|||
checkList.add(new PoiUtil.PoiUtilCell(checklist.getProcess(),null,null)); |
|||
list.add(checkList); |
|||
index++; |
|||
} |
|||
} |
|||
return list; |
|||
} |
|||
|
|||
/** |
|||
* 导出MVP |
|||
* @param currentUserId |
|||
* @param projectId |
|||
* @return |
|||
* @throws Exception |
|||
*/ |
|||
@Override |
|||
public String exportDeliver(Long currentUserId, Long projectId) throws Exception { |
|||
String path = ""; |
|||
//查找所有交付物的信息
|
|||
List<WbsVo.DeliverWithExcel> deliverWithExcelList = taskDeliverDao.getDeliverAllByProject(projectId); |
|||
if(CollectionUtil.isNotEmpty(deliverWithExcelList)) { |
|||
//找出交付物文件
|
|||
String filePath = getZip(deliverWithExcelList); |
|||
//生成excel表格
|
|||
writeMvpList(deliverWithExcelList,filePath); |
|||
//生成压缩包并返回下载路径
|
|||
String zipPath = "/project/" + DateUtil.today() +"/"+ deliverWithExcelList.get(0).getProjectName()+".zip"; |
|||
ZipUtil.zip(WebConstant.UPLOAD_PATH_BASE + "/"+filePath, WebConstant.UPLOAD_PATH_BASE + zipPath); |
|||
path = WebConstant.TEST_URL_BASE + zipPath; |
|||
//删除压缩前的文件
|
|||
FileUtil.del(WebConstant.UPLOAD_PATH_BASE + "/"+filePath); |
|||
} |
|||
//返回
|
|||
return path; |
|||
} |
|||
private String getZip(List<WbsVo.DeliverWithExcel> deliverWithExcelList)throws Exception { |
|||
String uuid = SecureUtil.simpleUUID(); |
|||
if(CollectionUtil.isNotEmpty(deliverWithExcelList)){ |
|||
for(WbsVo.DeliverWithExcel deliverWithExcel : deliverWithExcelList) { |
|||
if (ObjectUtil.isNotNull(deliverWithExcel.getDeliverId())) { |
|||
List<WbsVo.SubTime> subTimeList = taskDeliverDao.selectFileInfoByDeliverId(deliverWithExcel.getDeliverId()); |
|||
if(CollectionUtil.isNotEmpty(subTimeList)){ |
|||
deliverWithExcel.setJumpPath(deliverWithExcel.getTaskName() + "/" + deliverWithExcel.getDeliverName()); |
|||
for(WbsVo.SubTime subTime : subTimeList){ |
|||
if(CollectionUtil.isNotEmpty(subTime.getSubTimeDeliverInfoList())){ |
|||
for(WbsVo.SubTimeDeliverInfo subTimeDeliverInfo : subTime.getSubTimeDeliverInfoList()){ |
|||
File file = new File(WebConstant.UPLOAD_PATH_BASE + "/" + subTimeDeliverInfo.getFilePath()); |
|||
if(!file.exists()){ |
|||
continue; |
|||
} |
|||
InputStream is = new FileInputStream(file); |
|||
String uploadTime = new SimpleDateFormat("yyyy-MM-dd").format(subTime.getSubBeginTime()); |
|||
String fileName = "/"+uuid+"/" + deliverWithExcel.getTaskName() + "/" + deliverWithExcel.getDeliverName() + "/" +uploadTime+"/"+ subTimeDeliverInfo.getFileName(); |
|||
String path = WebConstant.UPLOAD_PATH_BASE + fileName; |
|||
File tmpFile = new File(path); |
|||
if (!tmpFile.getParentFile().exists()) { |
|||
tmpFile.getParentFile().mkdirs(); |
|||
} |
|||
FileUtil.writeFromStream(is,path); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
} |
|||
return uuid; |
|||
} |
|||
private void writeMvpList(List<WbsVo.DeliverWithExcel> deliverWithExcelList,String filePath) throws Exception { |
|||
//转换成写入excel的数据
|
|||
List<List<PoiUtil.PoiUtilCell>> list = new ArrayList<>(); |
|||
if(CollectionUtil.isNotEmpty(deliverWithExcelList)){ |
|||
List<PoiUtil.PoiUtilCell> row1 = new ArrayList<>(); |
|||
list.add(row1); |
|||
list.add(row1); |
|||
list.add(row1); |
|||
List<PoiUtil.PoiUtilCell> row3 = new ArrayList<>(); |
|||
row3.add(new PoiUtil.PoiUtilCell("时间",null,null)); |
|||
row3.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(System.currentTimeMillis()),null,null)); |
|||
row3.add(new PoiUtil.PoiUtilCell()); |
|||
row3.add(new PoiUtil.PoiUtilCell("项目",null,null)); |
|||
row3.add(new PoiUtil.PoiUtilCell(deliverWithExcelList.get(0).getProjectName(),null,null)); |
|||
list.add(row3); |
|||
list.add(row1); |
|||
int index = 1; |
|||
for(WbsVo.DeliverWithExcel deliverWithExcel : deliverWithExcelList){ |
|||
|
|||
List<PoiUtil.PoiUtilCell> mvpList = new ArrayList<>(); |
|||
mvpList.add(new PoiUtil.PoiUtilCell(String.valueOf(index),null,null)); |
|||
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getTaskName(),2,1,null,null)); |
|||
mvpList.add(new PoiUtil.PoiUtilCell()); |
|||
if(StrUtil.isNotEmpty(deliverWithExcel.getTaskCycle()) && !"不重复".equalsIgnoreCase(deliverWithExcel.getTaskCycle())){ |
|||
mvpList.add(new PoiUtil.PoiUtilCell()); |
|||
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getTaskCycle())); |
|||
}else { |
|||
mvpList.add(new PoiUtil.PoiUtilCell(new SimpleDateFormat("yyyy/MM/dd HH:mm").format(deliverWithExcel.getTaskBeginTime()), null, null)); |
|||
String duration = null; |
|||
if (deliverWithExcel.getTaskDuration() / 1000 / 3600 >= 2) { |
|||
duration = deliverWithExcel.getTaskDuration() / 1000 / 3600 + "小时"; |
|||
} else { |
|||
duration = deliverWithExcel.getTaskDuration() / 1000 / 60 + "分钟"; |
|||
} |
|||
mvpList.add(new PoiUtil.PoiUtilCell(duration, null, null)); |
|||
} |
|||
if(StrUtil.isEmpty(deliverWithExcel.getJumpPath())) { |
|||
mvpList.add(new PoiUtil.PoiUtilCell(deliverWithExcel.getDeliverName(), null, null)); |
|||
}else { |
|||
PoiUtil.PoiUtilCell poiUtilCell = new PoiUtil.PoiUtilCell(deliverWithExcel.getDeliverName(), null, null); |
|||
poiUtilCell.setPath(deliverWithExcel.getJumpPath()); |
|||
mvpList.add(poiUtilCell); |
|||
} |
|||
list.add(mvpList); |
|||
index++; |
|||
} |
|||
} |
|||
//读取模板文件
|
|||
ResourceLoader resourceLoader = new DefaultResourceLoader(); |
|||
InputStream is = resourceLoader.getResource("classpath:template/mvpTemplate.xlsx").getInputStream(); |
|||
XSSFWorkbook wb = new XSSFWorkbook(is); |
|||
//写入数据
|
|||
PoiUtil.exportWB("MVP", list, wb); |
|||
//生成文件
|
|||
String fileName = "/"+filePath+"/" + "MVP" + ".xlsx"; |
|||
String path = WebConstant.UPLOAD_PATH_BASE + fileName; |
|||
File tmpFile = new File(path); |
|||
if (!tmpFile.getParentFile().exists()) { |
|||
tmpFile.getParentFile().mkdirs(); |
|||
} |
|||
OutputStream stream = new FileOutputStream(tmpFile); |
|||
wb.write(stream); |
|||
stream.close(); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,11 @@ |
|||
package com.ccsens.tall.service; |
|||
|
|||
import java.io.IOException; |
|||
|
|||
public interface IExportWbsService { |
|||
String exportWbs(Long projectId) throws Exception; |
|||
|
|||
String exportChecklist(Long userId,Long projectId,Long roleId,Long startTime,Long endTime) throws Exception; |
|||
|
|||
String exportDeliver(Long currentUserId, Long projectId) throws Exception; |
|||
} |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: dev |
|||
include: util-dev,common |
|||
active: test |
|||
include: util-test,common |
|||
|
@ -0,0 +1,15 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.dao.ProRoleExcludeDao"> |
|||
|
|||
<select id="selectStrByRoleId" parameterType="java.util.Map" resultType="String"> |
|||
SELECT |
|||
GROUP_CONCAT(name) |
|||
FROM |
|||
t_pro_role r join (SELECT other_role_id FROM `t_pro_role_execlude` WHERE role_id = #{roleId}) t |
|||
on r.id = t.other_role_id |
|||
WHERE |
|||
r.rec_status = 0 |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,25 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.dao.ProTaskCommentDao"> |
|||
|
|||
<select id="getCommentByTaskId" parameterType="java.util.Map" resultType="com.ccsens.tall.bean.vo.PluginVo$CommentInfo"> |
|||
SELECT |
|||
c.id as id, |
|||
c.user_id as userId, |
|||
if(s.nickname = '',a.identifier,s.nickname) as userName, |
|||
s.avatar_url as avatarUrl, |
|||
c.task_sub_time_id as taskId, |
|||
c.`time` as commentTime, |
|||
c.description as description |
|||
FROM |
|||
`t_pro_task_comment` c left join t_sys_user s on c.user_id = s.id left join t_sys_auth a on s.id = a.user_id and a.identify_type = 3 |
|||
WHERE |
|||
c.rec_status = 0 |
|||
and |
|||
a.rec_status = 0 |
|||
and |
|||
c.task_sub_time_id = #{taskId} |
|||
order by c.`time` DESC |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,17 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.dao.ProTaskShowDao"> |
|||
|
|||
<select id="getProTaskShowByTaskId" parameterType="java.util.Map" resultType="com.ccsens.tall.bean.vo.TaskVo$ProTaskShow"> |
|||
SELECT |
|||
* |
|||
FROM |
|||
`t_pro_task_show` |
|||
WHERE |
|||
rec_status = 0 |
|||
and |
|||
task_detail_id = #{taskId} |
|||
</select> |
|||
|
|||
|
|||
</mapper> |
@ -0,0 +1,31 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.dao.TaskSubTimeDao"> |
|||
|
|||
<select id="getUnderwayTaskByRoleId" parameterType="java.util.Map" resultType="com.ccsens.tall.bean.po.ProTaskSubTime"> |
|||
SELECT |
|||
* |
|||
FROM |
|||
`t_pro_task_sub_time` s LEFT JOIN `t_pro_task_detail` t ON s.task_detail_id = t.id |
|||
WHERE |
|||
s.rec_status = 0 |
|||
and |
|||
s.complated_status = 1 |
|||
and |
|||
t.executor_role = #{roleId} |
|||
and |
|||
s.id != #{subTaskId} |
|||
</select> |
|||
|
|||
<update id="clearTaskRealTime" parameterType="java.util.Map"> |
|||
UPDATE |
|||
t_pro_task_sub_time s LEFT JOIN t_pro_task_detail d on s.task_detail_id = d.id LEFT JOIN t_sys_project p on d.project_id = p.id |
|||
SET |
|||
s.real_begin_time = 0, |
|||
s.real_end_time = 0, |
|||
s.complated_status = 0 |
|||
WHERE |
|||
p.id = #{projectId} |
|||
</update> |
|||
|
|||
</mapper> |
@ -0,0 +1,276 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.mapper.ProTaskCommentMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProTaskComment"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="task_sub_time_id" jdbcType="BIGINT" property="taskSubTimeId" /> |
|||
<result column="time" jdbcType="BIGINT" property="time" /> |
|||
<result column="description" jdbcType="VARCHAR" property="description" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
<result column="projectId" jdbcType="BIGINT" property="projectid" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, user_id, task_sub_time_id, time, description, created_at, updated_at, rec_status, |
|||
projectId |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProTaskCommentExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_task_comment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_task_comment |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_pro_task_comment |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProTaskCommentExample"> |
|||
delete from t_pro_task_comment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProTaskComment"> |
|||
insert into t_pro_task_comment (id, user_id, task_sub_time_id, |
|||
time, description, created_at, |
|||
updated_at, rec_status, projectId |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{taskSubTimeId,jdbcType=BIGINT}, |
|||
#{time,jdbcType=BIGINT}, #{description,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{projectid,jdbcType=BIGINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProTaskComment"> |
|||
insert into t_pro_task_comment |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="taskSubTimeId != null"> |
|||
task_sub_time_id, |
|||
</if> |
|||
<if test="time != null"> |
|||
time, |
|||
</if> |
|||
<if test="description != null"> |
|||
description, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="projectid != null"> |
|||
projectId, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="taskSubTimeId != null"> |
|||
#{taskSubTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="time != null"> |
|||
#{time,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="description != null"> |
|||
#{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="projectid != null"> |
|||
#{projectid,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProTaskCommentExample" resultType="java.lang.Long"> |
|||
select count(*) from t_pro_task_comment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_pro_task_comment |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.taskSubTimeId != null"> |
|||
task_sub_time_id = #{record.taskSubTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.time != null"> |
|||
time = #{record.time,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.description != null"> |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.projectid != null"> |
|||
projectId = #{record.projectid,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_pro_task_comment |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
task_sub_time_id = #{record.taskSubTimeId,jdbcType=BIGINT}, |
|||
time = #{record.time,jdbcType=BIGINT}, |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
projectId = #{record.projectid,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProTaskComment"> |
|||
update t_pro_task_comment |
|||
<set> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="taskSubTimeId != null"> |
|||
task_sub_time_id = #{taskSubTimeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="time != null"> |
|||
time = #{time,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="description != null"> |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="projectid != null"> |
|||
projectId = #{projectid,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProTaskComment"> |
|||
update t_pro_task_comment |
|||
set user_id = #{userId,jdbcType=BIGINT}, |
|||
task_sub_time_id = #{taskSubTimeId,jdbcType=BIGINT}, |
|||
time = #{time,jdbcType=BIGINT}, |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
projectId = #{projectid,jdbcType=BIGINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,323 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.mapper.ProTaskShowMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProTaskShow"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="project_id" jdbcType="BIGINT" property="projectId" /> |
|||
<result column="task_detail_id" jdbcType="BIGINT" property="taskDetailId" /> |
|||
<result column="time_show" jdbcType="VARCHAR" property="timeShow" /> |
|||
<result column="duration" jdbcType="TINYINT" property="duration" /> |
|||
<result column="create_task" jdbcType="TINYINT" property="createTask" /> |
|||
<result column="show_hardware" jdbcType="TINYINT" property="showHardware" /> |
|||
<result column="show_deliver" jdbcType="TINYINT" property="showDeliver" /> |
|||
<result column="show_money" jdbcType="TINYINT" property="showMoney" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, project_id, task_detail_id, time_show, duration, create_task, show_hardware, |
|||
show_deliver, show_money, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProTaskShowExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_task_show |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_task_show |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_pro_task_show |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProTaskShowExample"> |
|||
delete from t_pro_task_show |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProTaskShow"> |
|||
insert into t_pro_task_show (id, project_id, task_detail_id, |
|||
time_show, duration, create_task, |
|||
show_hardware, show_deliver, show_money, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{taskDetailId,jdbcType=BIGINT}, |
|||
#{timeShow,jdbcType=VARCHAR}, #{duration,jdbcType=TINYINT}, #{createTask,jdbcType=TINYINT}, |
|||
#{showHardware,jdbcType=TINYINT}, #{showDeliver,jdbcType=TINYINT}, #{showMoney,jdbcType=TINYINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProTaskShow"> |
|||
insert into t_pro_task_show |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
project_id, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
task_detail_id, |
|||
</if> |
|||
<if test="timeShow != null"> |
|||
time_show, |
|||
</if> |
|||
<if test="duration != null"> |
|||
duration, |
|||
</if> |
|||
<if test="createTask != null"> |
|||
create_task, |
|||
</if> |
|||
<if test="showHardware != null"> |
|||
show_hardware, |
|||
</if> |
|||
<if test="showDeliver != null"> |
|||
show_deliver, |
|||
</if> |
|||
<if test="showMoney != null"> |
|||
show_money, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="projectId != null"> |
|||
#{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
#{taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="timeShow != null"> |
|||
#{timeShow,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="duration != null"> |
|||
#{duration,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createTask != null"> |
|||
#{createTask,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showHardware != null"> |
|||
#{showHardware,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showDeliver != null"> |
|||
#{showDeliver,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showMoney != null"> |
|||
#{showMoney,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProTaskShowExample" resultType="java.lang.Long"> |
|||
select count(*) from t_pro_task_show |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_pro_task_show |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.projectId != null"> |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.taskDetailId != null"> |
|||
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.timeShow != null"> |
|||
time_show = #{record.timeShow,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.duration != null"> |
|||
duration = #{record.duration,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createTask != null"> |
|||
create_task = #{record.createTask,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.showHardware != null"> |
|||
show_hardware = #{record.showHardware,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.showDeliver != null"> |
|||
show_deliver = #{record.showDeliver,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.showMoney != null"> |
|||
show_money = #{record.showMoney,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_pro_task_show |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
project_id = #{record.projectId,jdbcType=BIGINT}, |
|||
task_detail_id = #{record.taskDetailId,jdbcType=BIGINT}, |
|||
time_show = #{record.timeShow,jdbcType=VARCHAR}, |
|||
duration = #{record.duration,jdbcType=TINYINT}, |
|||
create_task = #{record.createTask,jdbcType=TINYINT}, |
|||
show_hardware = #{record.showHardware,jdbcType=TINYINT}, |
|||
show_deliver = #{record.showDeliver,jdbcType=TINYINT}, |
|||
show_money = #{record.showMoney,jdbcType=TINYINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProTaskShow"> |
|||
update t_pro_task_show |
|||
<set> |
|||
<if test="projectId != null"> |
|||
project_id = #{projectId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="taskDetailId != null"> |
|||
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="timeShow != null"> |
|||
time_show = #{timeShow,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="duration != null"> |
|||
duration = #{duration,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createTask != null"> |
|||
create_task = #{createTask,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showHardware != null"> |
|||
show_hardware = #{showHardware,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showDeliver != null"> |
|||
show_deliver = #{showDeliver,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showMoney != null"> |
|||
show_money = #{showMoney,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProTaskShow"> |
|||
update t_pro_task_show |
|||
set project_id = #{projectId,jdbcType=BIGINT}, |
|||
task_detail_id = #{taskDetailId,jdbcType=BIGINT}, |
|||
time_show = #{timeShow,jdbcType=VARCHAR}, |
|||
duration = #{duration,jdbcType=TINYINT}, |
|||
create_task = #{createTask,jdbcType=TINYINT}, |
|||
show_hardware = #{showHardware,jdbcType=TINYINT}, |
|||
show_deliver = #{showDeliver,jdbcType=TINYINT}, |
|||
show_money = #{showMoney,jdbcType=TINYINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,275 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.mapper.SysMessageTypeMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SysMessageType"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="path" jdbcType="VARCHAR" property="path" /> |
|||
<result column="operate_type" jdbcType="TINYINT" property="operateType" /> |
|||
<result column="template" jdbcType="VARCHAR" property="template" /> |
|||
<result column="description" jdbcType="VARCHAR" property="description" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, name, path, operate_type, template, description, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysMessageTypeExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_message_type |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_message_type |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_sys_message_type |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SysMessageTypeExample"> |
|||
delete from t_sys_message_type |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysMessageType"> |
|||
insert into t_sys_message_type (id, name, path, |
|||
operate_type, template, description, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{path,jdbcType=VARCHAR}, |
|||
#{operateType,jdbcType=TINYINT}, #{template,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysMessageType"> |
|||
insert into t_sys_message_type |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="path != null"> |
|||
path, |
|||
</if> |
|||
<if test="operateType != null"> |
|||
operate_type, |
|||
</if> |
|||
<if test="template != null"> |
|||
template, |
|||
</if> |
|||
<if test="description != null"> |
|||
description, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="path != null"> |
|||
#{path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operateType != null"> |
|||
#{operateType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="template != null"> |
|||
#{template,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="description != null"> |
|||
#{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysMessageTypeExample" resultType="java.lang.Long"> |
|||
select count(*) from t_sys_message_type |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_sys_message_type |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.path != null"> |
|||
path = #{record.path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operateType != null"> |
|||
operate_type = #{record.operateType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.template != null"> |
|||
template = #{record.template,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.description != null"> |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_sys_message_type |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
path = #{record.path,jdbcType=VARCHAR}, |
|||
operate_type = #{record.operateType,jdbcType=TINYINT}, |
|||
template = #{record.template,jdbcType=VARCHAR}, |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SysMessageType"> |
|||
update t_sys_message_type |
|||
<set> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="path != null"> |
|||
path = #{path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operateType != null"> |
|||
operate_type = #{operateType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="template != null"> |
|||
template = #{template,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="description != null"> |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SysMessageType"> |
|||
update t_sys_message_type |
|||
set name = #{name,jdbcType=VARCHAR}, |
|||
path = #{path,jdbcType=VARCHAR}, |
|||
operate_type = #{operateType,jdbcType=TINYINT}, |
|||
template = #{template,jdbcType=VARCHAR}, |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue