56 changed files with 4719 additions and 135 deletions
@ -0,0 +1,139 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ProDeliverHistoryRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long deliverId; |
|||
|
|||
private Byte deliverType; |
|||
|
|||
private Long deliverRecordId; |
|||
|
|||
private Byte doType; |
|||
|
|||
private Long roleId; |
|||
|
|||
private String content; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Long memberId; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getDeliverId() { |
|||
return deliverId; |
|||
} |
|||
|
|||
public void setDeliverId(Long deliverId) { |
|||
this.deliverId = deliverId; |
|||
} |
|||
|
|||
public Byte getDeliverType() { |
|||
return deliverType; |
|||
} |
|||
|
|||
public void setDeliverType(Byte deliverType) { |
|||
this.deliverType = deliverType; |
|||
} |
|||
|
|||
public Long getDeliverRecordId() { |
|||
return deliverRecordId; |
|||
} |
|||
|
|||
public void setDeliverRecordId(Long deliverRecordId) { |
|||
this.deliverRecordId = deliverRecordId; |
|||
} |
|||
|
|||
public Byte getDoType() { |
|||
return doType; |
|||
} |
|||
|
|||
public void setDoType(Byte doType) { |
|||
this.doType = doType; |
|||
} |
|||
|
|||
public Long getRoleId() { |
|||
return roleId; |
|||
} |
|||
|
|||
public void setRoleId(Long roleId) { |
|||
this.roleId = roleId; |
|||
} |
|||
|
|||
public String getContent() { |
|||
return content; |
|||
} |
|||
|
|||
public void setContent(String content) { |
|||
this.content = content == null ? null : content.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 getMemberId() { |
|||
return memberId; |
|||
} |
|||
|
|||
public void setMemberId(Long memberId) { |
|||
this.memberId = memberId; |
|||
} |
|||
|
|||
@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(", deliverId=").append(deliverId); |
|||
sb.append(", deliverType=").append(deliverType); |
|||
sb.append(", deliverRecordId=").append(deliverRecordId); |
|||
sb.append(", doType=").append(doType); |
|||
sb.append(", roleId=").append(roleId); |
|||
sb.append(", content=").append(content); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", memberId=").append(memberId); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,871 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ProDeliverHistoryRecordExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ProDeliverHistoryRecordExample() { |
|||
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 andDeliverIdIsNull() { |
|||
addCriterion("deliver_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdIsNotNull() { |
|||
addCriterion("deliver_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdEqualTo(Long value) { |
|||
addCriterion("deliver_id =", value, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdNotEqualTo(Long value) { |
|||
addCriterion("deliver_id <>", value, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdGreaterThan(Long value) { |
|||
addCriterion("deliver_id >", value, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("deliver_id >=", value, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdLessThan(Long value) { |
|||
addCriterion("deliver_id <", value, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("deliver_id <=", value, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdIn(List<Long> values) { |
|||
addCriterion("deliver_id in", values, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdNotIn(List<Long> values) { |
|||
addCriterion("deliver_id not in", values, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdBetween(Long value1, Long value2) { |
|||
addCriterion("deliver_id between", value1, value2, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("deliver_id not between", value1, value2, "deliverId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeIsNull() { |
|||
addCriterion("deliver_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeIsNotNull() { |
|||
addCriterion("deliver_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeEqualTo(Byte value) { |
|||
addCriterion("deliver_type =", value, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeNotEqualTo(Byte value) { |
|||
addCriterion("deliver_type <>", value, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeGreaterThan(Byte value) { |
|||
addCriterion("deliver_type >", value, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("deliver_type >=", value, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeLessThan(Byte value) { |
|||
addCriterion("deliver_type <", value, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("deliver_type <=", value, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeIn(List<Byte> values) { |
|||
addCriterion("deliver_type in", values, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeNotIn(List<Byte> values) { |
|||
addCriterion("deliver_type not in", values, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("deliver_type between", value1, value2, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("deliver_type not between", value1, value2, "deliverType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdIsNull() { |
|||
addCriterion("deliver_record_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdIsNotNull() { |
|||
addCriterion("deliver_record_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdEqualTo(Long value) { |
|||
addCriterion("deliver_record_id =", value, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdNotEqualTo(Long value) { |
|||
addCriterion("deliver_record_id <>", value, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdGreaterThan(Long value) { |
|||
addCriterion("deliver_record_id >", value, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("deliver_record_id >=", value, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdLessThan(Long value) { |
|||
addCriterion("deliver_record_id <", value, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("deliver_record_id <=", value, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdIn(List<Long> values) { |
|||
addCriterion("deliver_record_id in", values, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdNotIn(List<Long> values) { |
|||
addCriterion("deliver_record_id not in", values, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdBetween(Long value1, Long value2) { |
|||
addCriterion("deliver_record_id between", value1, value2, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDeliverRecordIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("deliver_record_id not between", value1, value2, "deliverRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeIsNull() { |
|||
addCriterion("do_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeIsNotNull() { |
|||
addCriterion("do_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeEqualTo(Byte value) { |
|||
addCriterion("do_type =", value, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeNotEqualTo(Byte value) { |
|||
addCriterion("do_type <>", value, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeGreaterThan(Byte value) { |
|||
addCriterion("do_type >", value, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("do_type >=", value, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeLessThan(Byte value) { |
|||
addCriterion("do_type <", value, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("do_type <=", value, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeIn(List<Byte> values) { |
|||
addCriterion("do_type in", values, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeNotIn(List<Byte> values) { |
|||
addCriterion("do_type not in", values, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("do_type between", value1, value2, "doType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("do_type not between", value1, value2, "doType"); |
|||
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 andContentIsNull() { |
|||
addCriterion("content is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIsNotNull() { |
|||
addCriterion("content is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentEqualTo(String value) { |
|||
addCriterion("content =", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotEqualTo(String value) { |
|||
addCriterion("content <>", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThan(String value) { |
|||
addCriterion("content >", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThanOrEqualTo(String value) { |
|||
addCriterion("content >=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThan(String value) { |
|||
addCriterion("content <", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThanOrEqualTo(String value) { |
|||
addCriterion("content <=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLike(String value) { |
|||
addCriterion("content like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotLike(String value) { |
|||
addCriterion("content not like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIn(List<String> values) { |
|||
addCriterion("content in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotIn(List<String> values) { |
|||
addCriterion("content not in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentBetween(String value1, String value2) { |
|||
addCriterion("content between", value1, value2, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotBetween(String value1, String value2) { |
|||
addCriterion("content not between", value1, value2, "content"); |
|||
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 andMemberIdIsNull() { |
|||
addCriterion("member_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdIsNotNull() { |
|||
addCriterion("member_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdEqualTo(Long value) { |
|||
addCriterion("member_id =", value, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdNotEqualTo(Long value) { |
|||
addCriterion("member_id <>", value, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdGreaterThan(Long value) { |
|||
addCriterion("member_id >", value, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("member_id >=", value, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdLessThan(Long value) { |
|||
addCriterion("member_id <", value, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("member_id <=", value, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdIn(List<Long> values) { |
|||
addCriterion("member_id in", values, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdNotIn(List<Long> values) { |
|||
addCriterion("member_id not in", values, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdBetween(Long value1, Long value2) { |
|||
addCriterion("member_id between", value1, value2, "memberId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMemberIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("member_id not between", value1, value2, "memberId"); |
|||
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,25 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.bean.vo.InputDocVo; |
|||
import com.ccsens.tall.persist.mapper.ProDeliverHistoryRecordMapper; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author mz |
|||
*/ |
|||
public interface ProDeliverHistoryRecordDao extends ProDeliverHistoryRecordMapper { |
|||
/** |
|||
* 查询输入文档下的所有记录 |
|||
* @param deliverId 输入文档的id |
|||
* @return |
|||
*/ |
|||
List<InputDocVo.DeliverHistory> findInputHistory(Long deliverId); |
|||
|
|||
/** |
|||
* 查询输出文档下的所有记录 |
|||
* @param deliverId |
|||
* @return |
|||
*/ |
|||
List<InputDocVo.DeliverHistory> finOutPutHistory(Long deliverId); |
|||
} |
@ -0,0 +1,21 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.bean.vo.InputDocVo; |
|||
import com.ccsens.tall.persist.mapper.ProTaskInputDocMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author mz |
|||
*/ |
|||
@Repository |
|||
public interface ProTaskInputDocDao extends ProTaskInputDocMapper { |
|||
|
|||
/** |
|||
* 根据任务详情id查询输入文档 |
|||
* @param taskId |
|||
* @return 输入文档 |
|||
*/ |
|||
List<InputDocVo.InputDocInfo> selectDocByTaskId(Long taskId); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.ProDeliverHistoryRecord; |
|||
import com.ccsens.tall.bean.po.ProDeliverHistoryRecordExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ProDeliverHistoryRecordMapper { |
|||
long countByExample(ProDeliverHistoryRecordExample example); |
|||
|
|||
int deleteByExample(ProDeliverHistoryRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ProDeliverHistoryRecord record); |
|||
|
|||
int insertSelective(ProDeliverHistoryRecord record); |
|||
|
|||
List<ProDeliverHistoryRecord> selectByExample(ProDeliverHistoryRecordExample example); |
|||
|
|||
ProDeliverHistoryRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ProDeliverHistoryRecord record, @Param("example") ProDeliverHistoryRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") ProDeliverHistoryRecord record, @Param("example") ProDeliverHistoryRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ProDeliverHistoryRecord record); |
|||
|
|||
int updateByPrimaryKey(ProDeliverHistoryRecord record); |
|||
} |
@ -1,5 +1,5 @@ |
|||
spring: |
|||
profiles: |
|||
active: test |
|||
include: util-test,common |
|||
active: dev |
|||
include: util-dev,common |
|||
|
|||
|
@ -0,0 +1,47 @@ |
|||
<?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.ProDeliverHistoryRecordDao"> |
|||
|
|||
<select id="findInputHistory" resultType="com.ccsens.tall.bean.vo.InputDocVo$DeliverHistory"> |
|||
SELECT |
|||
pdhr.id AS id, |
|||
pdhr.role_id AS roleId, |
|||
pr.`name` AS roleName, |
|||
ptir.file_id AS fileIds, |
|||
ptir.remark AS remark, |
|||
pdhr.do_type AS doType, |
|||
pdhr.created_at AS createAt, |
|||
pdhr.content AS content, |
|||
pm.id AS memberId, |
|||
pm.nickname AS memberName |
|||
FROM |
|||
t_pro_deliver_history_record AS pdhr |
|||
LEFT JOIN t_pro_role AS pr ON pdhr.role_id = pr.id |
|||
LEFT JOIN t_pro_task_input_record AS ptir ON ptir.id = pdhr.deliver_record_id |
|||
LEFT JOIN t_pro_member AS pm ON pm.id = pdhr.member_id |
|||
WHERE |
|||
pdhr.deliver_id = #{deliverId} |
|||
</select> |
|||
|
|||
<select id="finOutPutHistory" resultType="com.ccsens.tall.bean.vo.InputDocVo$DeliverHistory"> |
|||
SELECT |
|||
pdhr.id, |
|||
pdhr.role_id AS roleId, |
|||
pr. NAME AS roleName, |
|||
ptdpl.files_id AS fileIds, |
|||
ptdpl.description AS remark, |
|||
pdhr.do_type AS doType, |
|||
pdhr.created_at AS createAt, |
|||
pdhr.content AS content, |
|||
pm.id AS memberId, |
|||
pm.nickname AS memberName |
|||
FROM |
|||
t_pro_deliver_history_record AS pdhr |
|||
LEFT JOIN t_pro_role AS pr ON pdhr.role_id = pr.id |
|||
LEFT JOIN t_pro_task_deliver_post_log AS ptdpl ON ptdpl.id = pdhr.deliver_record_id |
|||
LEFT JOIN t_pro_member AS pm ON pm.id = pdhr.member_id |
|||
WHERE |
|||
pdhr.deliver_id = #{deliverId} |
|||
</select> |
|||
|
|||
</mapper> |
@ -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.ProTaskInputDocDao"> |
|||
|
|||
<select id="selectDocByTaskId" resultType="com.ccsens.tall.bean.vo.InputDocVo$InputDocInfo"> |
|||
SELECT |
|||
tid.id, |
|||
tid.`name` |
|||
FROM |
|||
t_pro_task_input_doc AS tid |
|||
WHERE |
|||
tid.task_detail_id = #{taskId} |
|||
</select> |
|||
|
|||
</mapper> |
@ -0,0 +1,306 @@ |
|||
<?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.ProDeliverHistoryRecordMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.ProDeliverHistoryRecord"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="deliver_id" jdbcType="BIGINT" property="deliverId" /> |
|||
<result column="deliver_type" jdbcType="TINYINT" property="deliverType" /> |
|||
<result column="deliver_record_id" jdbcType="BIGINT" property="deliverRecordId" /> |
|||
<result column="do_type" jdbcType="TINYINT" property="doType" /> |
|||
<result column="role_id" jdbcType="BIGINT" property="roleId" /> |
|||
<result column="content" jdbcType="VARCHAR" property="content" /> |
|||
<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="member_id" jdbcType="BIGINT" property="memberId" /> |
|||
</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, deliver_id, deliver_type, deliver_record_id, do_type, role_id, content, created_at, |
|||
updated_at, rec_status, member_id |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecordExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_pro_deliver_history_record |
|||
<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_deliver_history_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_pro_deliver_history_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecordExample"> |
|||
delete from t_pro_deliver_history_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecord"> |
|||
insert into t_pro_deliver_history_record (id, deliver_id, deliver_type, |
|||
deliver_record_id, do_type, role_id, |
|||
content, created_at, updated_at, |
|||
rec_status, member_id) |
|||
values (#{id,jdbcType=BIGINT}, #{deliverId,jdbcType=BIGINT}, #{deliverType,jdbcType=TINYINT}, |
|||
#{deliverRecordId,jdbcType=BIGINT}, #{doType,jdbcType=TINYINT}, #{roleId,jdbcType=BIGINT}, |
|||
#{content,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}, #{memberId,jdbcType=BIGINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecord"> |
|||
insert into t_pro_deliver_history_record |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="deliverId != null"> |
|||
deliver_id, |
|||
</if> |
|||
<if test="deliverType != null"> |
|||
deliver_type, |
|||
</if> |
|||
<if test="deliverRecordId != null"> |
|||
deliver_record_id, |
|||
</if> |
|||
<if test="doType != null"> |
|||
do_type, |
|||
</if> |
|||
<if test="roleId != null"> |
|||
role_id, |
|||
</if> |
|||
<if test="content != null"> |
|||
content, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="memberId != null"> |
|||
member_id, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="deliverId != null"> |
|||
#{deliverId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="deliverType != null"> |
|||
#{deliverType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="deliverRecordId != null"> |
|||
#{deliverRecordId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="doType != null"> |
|||
#{doType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="roleId != null"> |
|||
#{roleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="content != null"> |
|||
#{content,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="memberId != null"> |
|||
#{memberId,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecordExample" resultType="java.lang.Long"> |
|||
select count(*) from t_pro_deliver_history_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_pro_deliver_history_record |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.deliverId != null"> |
|||
deliver_id = #{record.deliverId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.deliverType != null"> |
|||
deliver_type = #{record.deliverType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.deliverRecordId != null"> |
|||
deliver_record_id = #{record.deliverRecordId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.doType != null"> |
|||
do_type = #{record.doType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.roleId != null"> |
|||
role_id = #{record.roleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.content != null"> |
|||
content = #{record.content,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.memberId != null"> |
|||
member_id = #{record.memberId,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_deliver_history_record |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
deliver_id = #{record.deliverId,jdbcType=BIGINT}, |
|||
deliver_type = #{record.deliverType,jdbcType=TINYINT}, |
|||
deliver_record_id = #{record.deliverRecordId,jdbcType=BIGINT}, |
|||
do_type = #{record.doType,jdbcType=TINYINT}, |
|||
role_id = #{record.roleId,jdbcType=BIGINT}, |
|||
content = #{record.content,jdbcType=VARCHAR}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
member_id = #{record.memberId,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecord"> |
|||
update t_pro_deliver_history_record |
|||
<set> |
|||
<if test="deliverId != null"> |
|||
deliver_id = #{deliverId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="deliverType != null"> |
|||
deliver_type = #{deliverType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="deliverRecordId != null"> |
|||
deliver_record_id = #{deliverRecordId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="doType != null"> |
|||
do_type = #{doType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="roleId != null"> |
|||
role_id = #{roleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="content != null"> |
|||
content = #{content,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="memberId != null"> |
|||
member_id = #{memberId,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.ProDeliverHistoryRecord"> |
|||
update t_pro_deliver_history_record |
|||
set deliver_id = #{deliverId,jdbcType=BIGINT}, |
|||
deliver_type = #{deliverType,jdbcType=TINYINT}, |
|||
deliver_record_id = #{deliverRecordId,jdbcType=BIGINT}, |
|||
do_type = #{doType,jdbcType=TINYINT}, |
|||
role_id = #{roleId,jdbcType=BIGINT}, |
|||
content = #{content,jdbcType=VARCHAR}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
member_id = #{memberId,jdbcType=BIGINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,117 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class QuestionHospital implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private Byte fillType; |
|||
|
|||
private String remark; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getQuestionId() { |
|||
return questionId; |
|||
} |
|||
|
|||
public void setQuestionId(Long questionId) { |
|||
this.questionId = questionId; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Byte getFillType() { |
|||
return fillType; |
|||
} |
|||
|
|||
public void setFillType(Byte fillType) { |
|||
this.fillType = fillType; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", questionId=").append(questionId); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", fillType=").append(fillType); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,751 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class QuestionHospitalExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public QuestionHospitalExample() { |
|||
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 andQuestionIdIsNull() { |
|||
addCriterion("question_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdIsNotNull() { |
|||
addCriterion("question_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdEqualTo(Long value) { |
|||
addCriterion("question_id =", value, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdNotEqualTo(Long value) { |
|||
addCriterion("question_id <>", value, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdGreaterThan(Long value) { |
|||
addCriterion("question_id >", value, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("question_id >=", value, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdLessThan(Long value) { |
|||
addCriterion("question_id <", value, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("question_id <=", value, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdIn(List<Long> values) { |
|||
addCriterion("question_id in", values, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdNotIn(List<Long> values) { |
|||
addCriterion("question_id not in", values, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdBetween(Long value1, Long value2) { |
|||
addCriterion("question_id between", value1, value2, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("question_id not between", value1, value2, "questionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNull() { |
|||
addCriterion("hospital_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNotNull() { |
|||
addCriterion("hospital_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdEqualTo(Long value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Long value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Long value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Long value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Long> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Long> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeIsNull() { |
|||
addCriterion("fill_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeIsNotNull() { |
|||
addCriterion("fill_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeEqualTo(Byte value) { |
|||
addCriterion("fill_type =", value, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeNotEqualTo(Byte value) { |
|||
addCriterion("fill_type <>", value, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeGreaterThan(Byte value) { |
|||
addCriterion("fill_type >", value, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("fill_type >=", value, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeLessThan(Byte value) { |
|||
addCriterion("fill_type <", value, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("fill_type <=", value, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeIn(List<Byte> values) { |
|||
addCriterion("fill_type in", values, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeNotIn(List<Byte> values) { |
|||
addCriterion("fill_type not in", values, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("fill_type between", value1, value2, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFillTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("fill_type not between", value1, value2, "fillType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNull() { |
|||
addCriterion("remark is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNotNull() { |
|||
addCriterion("remark is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkEqualTo(String value) { |
|||
addCriterion("remark =", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotEqualTo(String value) { |
|||
addCriterion("remark <>", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThan(String value) { |
|||
addCriterion("remark >", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remark >=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThan(String value) { |
|||
addCriterion("remark <", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThanOrEqualTo(String value) { |
|||
addCriterion("remark <=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLike(String value) { |
|||
addCriterion("remark like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotLike(String value) { |
|||
addCriterion("remark not like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIn(List<String> values) { |
|||
addCriterion("remark in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotIn(List<String> values) { |
|||
addCriterion("remark not in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkBetween(String value1, String value2) { |
|||
addCriterion("remark between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotBetween(String value1, String value2) { |
|||
addCriterion("remark not between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class QuestionRecordTime implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private Integer recodeTime; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private String remark; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public Integer getRecodeTime() { |
|||
return recodeTime; |
|||
} |
|||
|
|||
public void setRecodeTime(Integer recodeTime) { |
|||
this.recodeTime = recodeTime; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", code=").append(code); |
|||
sb.append(", recodeTime=").append(recodeTime); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,761 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class QuestionRecordTimeExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public QuestionRecordTimeExample() { |
|||
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 andCodeIsNull() { |
|||
addCriterion("code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIsNotNull() { |
|||
addCriterion("code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeEqualTo(String value) { |
|||
addCriterion("code =", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotEqualTo(String value) { |
|||
addCriterion("code <>", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThan(String value) { |
|||
addCriterion("code >", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("code >=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThan(String value) { |
|||
addCriterion("code <", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("code <=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLike(String value) { |
|||
addCriterion("code like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotLike(String value) { |
|||
addCriterion("code not like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIn(List<String> values) { |
|||
addCriterion("code in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotIn(List<String> values) { |
|||
addCriterion("code not in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeBetween(String value1, String value2) { |
|||
addCriterion("code between", value1, value2, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotBetween(String value1, String value2) { |
|||
addCriterion("code not between", value1, value2, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeIsNull() { |
|||
addCriterion("recode_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeIsNotNull() { |
|||
addCriterion("recode_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeEqualTo(Integer value) { |
|||
addCriterion("recode_time =", value, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeNotEqualTo(Integer value) { |
|||
addCriterion("recode_time <>", value, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeGreaterThan(Integer value) { |
|||
addCriterion("recode_time >", value, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("recode_time >=", value, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeLessThan(Integer value) { |
|||
addCriterion("recode_time <", value, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeLessThanOrEqualTo(Integer value) { |
|||
addCriterion("recode_time <=", value, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeIn(List<Integer> values) { |
|||
addCriterion("recode_time in", values, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeNotIn(List<Integer> values) { |
|||
addCriterion("recode_time not in", values, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeBetween(Integer value1, Integer value2) { |
|||
addCriterion("recode_time between", value1, value2, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecodeTimeNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("recode_time not between", value1, value2, "recodeTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNull() { |
|||
addCriterion("hospital_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNotNull() { |
|||
addCriterion("hospital_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdEqualTo(Long value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Long value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Long value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Long value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Long> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Long> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNull() { |
|||
addCriterion("remark is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNotNull() { |
|||
addCriterion("remark is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkEqualTo(String value) { |
|||
addCriterion("remark =", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotEqualTo(String value) { |
|||
addCriterion("remark <>", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThan(String value) { |
|||
addCriterion("remark >", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remark >=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThan(String value) { |
|||
addCriterion("remark <", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThanOrEqualTo(String value) { |
|||
addCriterion("remark <=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLike(String value) { |
|||
addCriterion("remark like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotLike(String value) { |
|||
addCriterion("remark not like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIn(List<String> values) { |
|||
addCriterion("remark in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotIn(List<String> values) { |
|||
addCriterion("remark not in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkBetween(String value1, String value2) { |
|||
addCriterion("remark between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotBetween(String value1, String value2) { |
|||
addCriterion("remark not between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,17 @@ |
|||
package com.ccsens.tcm.persist.dao; |
|||
|
|||
import com.ccsens.tcm.bean.po.QuestionHospital; |
|||
import com.ccsens.tcm.persist.mapper.QuestionHospitalMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface QuestionHospitalDao extends QuestionHospitalMapper { |
|||
|
|||
/** |
|||
* 查询ID |
|||
* @param type 类型 0:项目 1:医院 null:全部 |
|||
* @return 医院ID |
|||
*/ |
|||
List<QuestionHospital> queryAll(@Param("type") Byte type); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.QuestionHospital; |
|||
import com.ccsens.tcm.bean.po.QuestionHospitalExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface QuestionHospitalMapper { |
|||
long countByExample(QuestionHospitalExample example); |
|||
|
|||
int deleteByExample(QuestionHospitalExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(QuestionHospital record); |
|||
|
|||
int insertSelective(QuestionHospital record); |
|||
|
|||
List<QuestionHospital> selectByExample(QuestionHospitalExample example); |
|||
|
|||
QuestionHospital selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") QuestionHospital record, @Param("example") QuestionHospitalExample example); |
|||
|
|||
int updateByExample(@Param("record") QuestionHospital record, @Param("example") QuestionHospitalExample example); |
|||
|
|||
int updateByPrimaryKeySelective(QuestionHospital record); |
|||
|
|||
int updateByPrimaryKey(QuestionHospital record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.QuestionRecordTime; |
|||
import com.ccsens.tcm.bean.po.QuestionRecordTimeExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface QuestionRecordTimeMapper { |
|||
long countByExample(QuestionRecordTimeExample example); |
|||
|
|||
int deleteByExample(QuestionRecordTimeExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(QuestionRecordTime record); |
|||
|
|||
int insertSelective(QuestionRecordTime record); |
|||
|
|||
List<QuestionRecordTime> selectByExample(QuestionRecordTimeExample example); |
|||
|
|||
QuestionRecordTime selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") QuestionRecordTime record, @Param("example") QuestionRecordTimeExample example); |
|||
|
|||
int updateByExample(@Param("record") QuestionRecordTime record, @Param("example") QuestionRecordTimeExample example); |
|||
|
|||
int updateByPrimaryKeySelective(QuestionRecordTime record); |
|||
|
|||
int updateByPrimaryKey(QuestionRecordTime record); |
|||
} |
@ -1,5 +1,5 @@ |
|||
spring: |
|||
profiles: |
|||
active: dev |
|||
include: common, util-dev |
|||
active: green |
|||
include: common, util-green |
|||
|
|||
|
@ -0,0 +1,10 @@ |
|||
<?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.tcm.persist.dao.QuestionHospitalDao"> |
|||
<select id="queryAll" resultType="com.ccsens.tcm.bean.po.QuestionHospital"> |
|||
select id from t_hospital where rec_status = 0 |
|||
<if test="type != null and type != ''"> |
|||
and hospital_type = #{type} |
|||
</if> |
|||
</select> |
|||
</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.tcm.persist.mapper.QuestionHospitalMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.QuestionHospital"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="hospital_id" jdbcType="BIGINT" property="hospitalId" /> |
|||
<result column="fill_type" jdbcType="TINYINT" property="fillType" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, question_id, hospital_id, fill_type, remark, operator, created_at, updated_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.QuestionHospitalExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_question_hospital |
|||
<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_question_hospital |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_question_hospital |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.QuestionHospitalExample"> |
|||
delete from t_question_hospital |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.QuestionHospital"> |
|||
insert into t_question_hospital (id, question_id, hospital_id, |
|||
fill_type, remark, operator, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{hospitalId,jdbcType=BIGINT}, |
|||
#{fillType,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.QuestionHospital"> |
|||
insert into t_question_hospital |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id, |
|||
</if> |
|||
<if test="fillType != null"> |
|||
fill_type, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="questionId != null"> |
|||
#{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
#{hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="fillType != null"> |
|||
#{fillType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.tcm.bean.po.QuestionHospitalExample" resultType="java.lang.Long"> |
|||
select count(*) from t_question_hospital |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_question_hospital |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionId != null"> |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.hospitalId != null"> |
|||
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.fillType != null"> |
|||
fill_type = #{record.fillType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_question_hospital |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|||
fill_type = #{record.fillType,jdbcType=TINYINT}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.tcm.bean.po.QuestionHospital"> |
|||
update t_question_hospital |
|||
<set> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="fillType != null"> |
|||
fill_type = #{fillType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.tcm.bean.po.QuestionHospital"> |
|||
update t_question_hospital |
|||
set question_id = #{questionId,jdbcType=BIGINT}, |
|||
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|||
fill_type = #{fillType,jdbcType=TINYINT}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
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.tcm.persist.mapper.QuestionRecordTimeMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.QuestionRecordTime"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="code" jdbcType="VARCHAR" property="code" /> |
|||
<result column="recode_time" jdbcType="INTEGER" property="recodeTime" /> |
|||
<result column="hospital_id" jdbcType="BIGINT" property="hospitalId" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, code, recode_time, hospital_id, remark, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.QuestionRecordTimeExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_question_record_time |
|||
<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_question_record_time |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_question_record_time |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.QuestionRecordTimeExample"> |
|||
delete from t_question_record_time |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.QuestionRecordTime"> |
|||
insert into t_question_record_time (id, code, recode_time, |
|||
hospital_id, remark, operator, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{recodeTime,jdbcType=INTEGER}, |
|||
#{hospitalId,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.QuestionRecordTime"> |
|||
insert into t_question_record_time |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="code != null"> |
|||
code, |
|||
</if> |
|||
<if test="recodeTime != null"> |
|||
recode_time, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="code != null"> |
|||
#{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="recodeTime != null"> |
|||
#{recodeTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
#{hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.tcm.bean.po.QuestionRecordTimeExample" resultType="java.lang.Long"> |
|||
select count(*) from t_question_record_time |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_question_record_time |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.code != null"> |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.recodeTime != null"> |
|||
recode_time = #{record.recodeTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.hospitalId != null"> |
|||
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_question_record_time |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
recode_time = #{record.recodeTime,jdbcType=INTEGER}, |
|||
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.tcm.bean.po.QuestionRecordTime"> |
|||
update t_question_record_time |
|||
<set> |
|||
<if test="code != null"> |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="recodeTime != null"> |
|||
recode_time = #{recodeTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.tcm.bean.po.QuestionRecordTime"> |
|||
update t_question_record_time |
|||
set code = #{code,jdbcType=VARCHAR}, |
|||
recode_time = #{recodeTime,jdbcType=INTEGER}, |
|||
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue