37 changed files with 11462 additions and 0 deletions
@ -0,0 +1,106 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class BiologicalSamples implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte sampleType; |
|||
|
|||
private Long patientInformationId; |
|||
|
|||
private Integer collectTime; |
|||
|
|||
private Long userId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updateAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Byte getSampleType() { |
|||
return sampleType; |
|||
} |
|||
|
|||
public void setSampleType(Byte sampleType) { |
|||
this.sampleType = sampleType; |
|||
} |
|||
|
|||
public Long getPatientInformationId() { |
|||
return patientInformationId; |
|||
} |
|||
|
|||
public void setPatientInformationId(Long patientInformationId) { |
|||
this.patientInformationId = patientInformationId; |
|||
} |
|||
|
|||
public Integer getCollectTime() { |
|||
return collectTime; |
|||
} |
|||
|
|||
public void setCollectTime(Integer collectTime) { |
|||
this.collectTime = collectTime; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdateAt() { |
|||
return updateAt; |
|||
} |
|||
|
|||
public void setUpdateAt(Date updateAt) { |
|||
this.updateAt = updateAt; |
|||
} |
|||
|
|||
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(", sampleType=").append(sampleType); |
|||
sb.append(", patientInformationId=").append(patientInformationId); |
|||
sb.append(", collectTime=").append(collectTime); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updateAt=").append(updateAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,681 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class BiologicalSamplesExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public BiologicalSamplesExample() { |
|||
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 andSampleTypeIsNull() { |
|||
addCriterion("sample_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeIsNotNull() { |
|||
addCriterion("sample_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeEqualTo(Byte value) { |
|||
addCriterion("sample_type =", value, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeNotEqualTo(Byte value) { |
|||
addCriterion("sample_type <>", value, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeGreaterThan(Byte value) { |
|||
addCriterion("sample_type >", value, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("sample_type >=", value, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeLessThan(Byte value) { |
|||
addCriterion("sample_type <", value, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("sample_type <=", value, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeIn(List<Byte> values) { |
|||
addCriterion("sample_type in", values, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeNotIn(List<Byte> values) { |
|||
addCriterion("sample_type not in", values, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("sample_type between", value1, value2, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSampleTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("sample_type not between", value1, value2, "sampleType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdIsNull() { |
|||
addCriterion("patient_information_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdIsNotNull() { |
|||
addCriterion("patient_information_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdEqualTo(Long value) { |
|||
addCriterion("patient_information_id =", value, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdNotEqualTo(Long value) { |
|||
addCriterion("patient_information_id <>", value, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdGreaterThan(Long value) { |
|||
addCriterion("patient_information_id >", value, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("patient_information_id >=", value, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdLessThan(Long value) { |
|||
addCriterion("patient_information_id <", value, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("patient_information_id <=", value, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdIn(List<Long> values) { |
|||
addCriterion("patient_information_id in", values, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdNotIn(List<Long> values) { |
|||
addCriterion("patient_information_id not in", values, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdBetween(Long value1, Long value2) { |
|||
addCriterion("patient_information_id between", value1, value2, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientInformationIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("patient_information_id not between", value1, value2, "patientInformationId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeIsNull() { |
|||
addCriterion("collect_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeIsNotNull() { |
|||
addCriterion("collect_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeEqualTo(Integer value) { |
|||
addCriterion("collect_time =", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeNotEqualTo(Integer value) { |
|||
addCriterion("collect_time <>", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeGreaterThan(Integer value) { |
|||
addCriterion("collect_time >", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("collect_time >=", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeLessThan(Integer value) { |
|||
addCriterion("collect_time <", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeLessThanOrEqualTo(Integer value) { |
|||
addCriterion("collect_time <=", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeIn(List<Integer> values) { |
|||
addCriterion("collect_time in", values, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeNotIn(List<Integer> values) { |
|||
addCriterion("collect_time not in", values, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeBetween(Integer value1, Integer value2) { |
|||
addCriterion("collect_time between", value1, value2, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("collect_time not between", value1, value2, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria 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 andUpdateAtIsNull() { |
|||
addCriterion("update_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIsNotNull() { |
|||
addCriterion("update_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtEqualTo(Date value) { |
|||
addCriterion("update_at =", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotEqualTo(Date value) { |
|||
addCriterion("update_at <>", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThan(Date value) { |
|||
addCriterion("update_at >", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_at >=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThan(Date value) { |
|||
addCriterion("update_at <", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_at <=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIn(List<Date> values) { |
|||
addCriterion("update_at in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotIn(List<Date> values) { |
|||
addCriterion("update_at not in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtBetween(Date value1, Date value2) { |
|||
addCriterion("update_at between", value1, value2, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_at not between", value1, value2, "updateAt"); |
|||
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,128 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ConferenceRecords implements Serializable { |
|||
private Long id; |
|||
|
|||
private Date startTime; |
|||
|
|||
private Date endTime; |
|||
|
|||
private String place; |
|||
|
|||
private String host; |
|||
|
|||
private String participants; |
|||
|
|||
private Long userId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updateAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Date getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Date startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Date getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Date endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public String getPlace() { |
|||
return place; |
|||
} |
|||
|
|||
public void setPlace(String place) { |
|||
this.place = place == null ? null : place.trim(); |
|||
} |
|||
|
|||
public String getHost() { |
|||
return host; |
|||
} |
|||
|
|||
public void setHost(String host) { |
|||
this.host = host == null ? null : host.trim(); |
|||
} |
|||
|
|||
public String getParticipants() { |
|||
return participants; |
|||
} |
|||
|
|||
public void setParticipants(String participants) { |
|||
this.participants = participants == null ? null : participants.trim(); |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdateAt() { |
|||
return updateAt; |
|||
} |
|||
|
|||
public void setUpdateAt(Date updateAt) { |
|||
this.updateAt = updateAt; |
|||
} |
|||
|
|||
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(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", place=").append(place); |
|||
sb.append(", host=").append(host); |
|||
sb.append(", participants=").append(participants); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updateAt=").append(updateAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,831 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ConferenceRecordsExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ConferenceRecordsExample() { |
|||
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 andStartTimeIsNull() { |
|||
addCriterion("start_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIsNotNull() { |
|||
addCriterion("start_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeEqualTo(Date value) { |
|||
addCriterion("start_time =", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotEqualTo(Date value) { |
|||
addCriterion("start_time <>", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThan(Date value) { |
|||
addCriterion("start_time >", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("start_time >=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThan(Date value) { |
|||
addCriterion("start_time <", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("start_time <=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIn(List<Date> values) { |
|||
addCriterion("start_time in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotIn(List<Date> values) { |
|||
addCriterion("start_time not in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeBetween(Date value1, Date value2) { |
|||
addCriterion("start_time between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("start_time not between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNull() { |
|||
addCriterion("end_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNotNull() { |
|||
addCriterion("end_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeEqualTo(Date value) { |
|||
addCriterion("end_time =", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotEqualTo(Date value) { |
|||
addCriterion("end_time <>", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThan(Date value) { |
|||
addCriterion("end_time >", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("end_time >=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThan(Date value) { |
|||
addCriterion("end_time <", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("end_time <=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIn(List<Date> values) { |
|||
addCriterion("end_time in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotIn(List<Date> values) { |
|||
addCriterion("end_time not in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeBetween(Date value1, Date value2) { |
|||
addCriterion("end_time between", value1, value2, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("end_time not between", value1, value2, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceIsNull() { |
|||
addCriterion("place is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceIsNotNull() { |
|||
addCriterion("place is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceEqualTo(String value) { |
|||
addCriterion("place =", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceNotEqualTo(String value) { |
|||
addCriterion("place <>", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceGreaterThan(String value) { |
|||
addCriterion("place >", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceGreaterThanOrEqualTo(String value) { |
|||
addCriterion("place >=", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceLessThan(String value) { |
|||
addCriterion("place <", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceLessThanOrEqualTo(String value) { |
|||
addCriterion("place <=", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceLike(String value) { |
|||
addCriterion("place like", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceNotLike(String value) { |
|||
addCriterion("place not like", value, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceIn(List<String> values) { |
|||
addCriterion("place in", values, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceNotIn(List<String> values) { |
|||
addCriterion("place not in", values, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceBetween(String value1, String value2) { |
|||
addCriterion("place between", value1, value2, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPlaceNotBetween(String value1, String value2) { |
|||
addCriterion("place not between", value1, value2, "place"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostIsNull() { |
|||
addCriterion("host is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostIsNotNull() { |
|||
addCriterion("host is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostEqualTo(String value) { |
|||
addCriterion("host =", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostNotEqualTo(String value) { |
|||
addCriterion("host <>", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostGreaterThan(String value) { |
|||
addCriterion("host >", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostGreaterThanOrEqualTo(String value) { |
|||
addCriterion("host >=", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostLessThan(String value) { |
|||
addCriterion("host <", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostLessThanOrEqualTo(String value) { |
|||
addCriterion("host <=", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostLike(String value) { |
|||
addCriterion("host like", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostNotLike(String value) { |
|||
addCriterion("host not like", value, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostIn(List<String> values) { |
|||
addCriterion("host in", values, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostNotIn(List<String> values) { |
|||
addCriterion("host not in", values, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostBetween(String value1, String value2) { |
|||
addCriterion("host between", value1, value2, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHostNotBetween(String value1, String value2) { |
|||
addCriterion("host not between", value1, value2, "host"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsIsNull() { |
|||
addCriterion("participants is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsIsNotNull() { |
|||
addCriterion("participants is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsEqualTo(String value) { |
|||
addCriterion("participants =", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsNotEqualTo(String value) { |
|||
addCriterion("participants <>", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsGreaterThan(String value) { |
|||
addCriterion("participants >", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsGreaterThanOrEqualTo(String value) { |
|||
addCriterion("participants >=", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsLessThan(String value) { |
|||
addCriterion("participants <", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsLessThanOrEqualTo(String value) { |
|||
addCriterion("participants <=", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsLike(String value) { |
|||
addCriterion("participants like", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsNotLike(String value) { |
|||
addCriterion("participants not like", value, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsIn(List<String> values) { |
|||
addCriterion("participants in", values, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsNotIn(List<String> values) { |
|||
addCriterion("participants not in", values, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsBetween(String value1, String value2) { |
|||
addCriterion("participants between", value1, value2, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParticipantsNotBetween(String value1, String value2) { |
|||
addCriterion("participants not between", value1, value2, "participants"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria 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 andUpdateAtIsNull() { |
|||
addCriterion("update_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIsNotNull() { |
|||
addCriterion("update_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtEqualTo(Date value) { |
|||
addCriterion("update_at =", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotEqualTo(Date value) { |
|||
addCriterion("update_at <>", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThan(Date value) { |
|||
addCriterion("update_at >", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_at >=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThan(Date value) { |
|||
addCriterion("update_at <", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_at <=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIn(List<Date> values) { |
|||
addCriterion("update_at in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotIn(List<Date> values) { |
|||
addCriterion("update_at not in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtBetween(Date value1, Date value2) { |
|||
addCriterion("update_at between", value1, value2, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_at not between", value1, value2, "updateAt"); |
|||
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,39 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class ConferenceRecordsWithBLOBs extends ConferenceRecords implements Serializable { |
|||
private String discussionContent; |
|||
|
|||
private String meetingMinutes; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public String getDiscussionContent() { |
|||
return discussionContent; |
|||
} |
|||
|
|||
public void setDiscussionContent(String discussionContent) { |
|||
this.discussionContent = discussionContent == null ? null : discussionContent.trim(); |
|||
} |
|||
|
|||
public String getMeetingMinutes() { |
|||
return meetingMinutes; |
|||
} |
|||
|
|||
public void setMeetingMinutes(String meetingMinutes) { |
|||
this.meetingMinutes = meetingMinutes == null ? null : meetingMinutes.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", discussionContent=").append(discussionContent); |
|||
sb.append(", meetingMinutes=").append(meetingMinutes); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,106 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Inpatient implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private String remarks; |
|||
|
|||
private Integer collectionNum; |
|||
|
|||
private Long userId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updateAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getRemarks() { |
|||
return remarks; |
|||
} |
|||
|
|||
public void setRemarks(String remarks) { |
|||
this.remarks = remarks == null ? null : remarks.trim(); |
|||
} |
|||
|
|||
public Integer getCollectionNum() { |
|||
return collectionNum; |
|||
} |
|||
|
|||
public void setCollectionNum(Integer collectionNum) { |
|||
this.collectionNum = collectionNum; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdateAt() { |
|||
return updateAt; |
|||
} |
|||
|
|||
public void setUpdateAt(Date updateAt) { |
|||
this.updateAt = updateAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", remarks=").append(remarks); |
|||
sb.append(", collectionNum=").append(collectionNum); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updateAt=").append(updateAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,701 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class InpatientExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public InpatientExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksIsNull() { |
|||
addCriterion("remarks is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksIsNotNull() { |
|||
addCriterion("remarks is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksEqualTo(String value) { |
|||
addCriterion("remarks =", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksNotEqualTo(String value) { |
|||
addCriterion("remarks <>", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksGreaterThan(String value) { |
|||
addCriterion("remarks >", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remarks >=", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksLessThan(String value) { |
|||
addCriterion("remarks <", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksLessThanOrEqualTo(String value) { |
|||
addCriterion("remarks <=", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksLike(String value) { |
|||
addCriterion("remarks like", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksNotLike(String value) { |
|||
addCriterion("remarks not like", value, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksIn(List<String> values) { |
|||
addCriterion("remarks in", values, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksNotIn(List<String> values) { |
|||
addCriterion("remarks not in", values, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksBetween(String value1, String value2) { |
|||
addCriterion("remarks between", value1, value2, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarksNotBetween(String value1, String value2) { |
|||
addCriterion("remarks not between", value1, value2, "remarks"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumIsNull() { |
|||
addCriterion("collection_num is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumIsNotNull() { |
|||
addCriterion("collection_num is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumEqualTo(Integer value) { |
|||
addCriterion("collection_num =", value, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumNotEqualTo(Integer value) { |
|||
addCriterion("collection_num <>", value, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumGreaterThan(Integer value) { |
|||
addCriterion("collection_num >", value, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("collection_num >=", value, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumLessThan(Integer value) { |
|||
addCriterion("collection_num <", value, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumLessThanOrEqualTo(Integer value) { |
|||
addCriterion("collection_num <=", value, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumIn(List<Integer> values) { |
|||
addCriterion("collection_num in", values, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumNotIn(List<Integer> values) { |
|||
addCriterion("collection_num not in", values, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumBetween(Integer value1, Integer value2) { |
|||
addCriterion("collection_num between", value1, value2, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectionNumNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("collection_num not between", value1, value2, "collectionNum"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria 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 andUpdateAtIsNull() { |
|||
addCriterion("update_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIsNotNull() { |
|||
addCriterion("update_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtEqualTo(Date value) { |
|||
addCriterion("update_at =", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotEqualTo(Date value) { |
|||
addCriterion("update_at <>", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThan(Date value) { |
|||
addCriterion("update_at >", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_at >=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThan(Date value) { |
|||
addCriterion("update_at <", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_at <=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIn(List<Date> values) { |
|||
addCriterion("update_at in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotIn(List<Date> values) { |
|||
addCriterion("update_at not in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtBetween(Date value1, Date value2) { |
|||
addCriterion("update_at between", value1, value2, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_at not between", value1, value2, "updateAt"); |
|||
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 PatientInformation implements Serializable { |
|||
private Long id; |
|||
|
|||
private String hospitalization; |
|||
|
|||
private Integer inpatientId; |
|||
|
|||
private Byte inputStatus; |
|||
|
|||
private Integer hospitalId; |
|||
|
|||
private Long userId; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updateAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getHospitalization() { |
|||
return hospitalization; |
|||
} |
|||
|
|||
public void setHospitalization(String hospitalization) { |
|||
this.hospitalization = hospitalization == null ? null : hospitalization.trim(); |
|||
} |
|||
|
|||
public Integer getInpatientId() { |
|||
return inpatientId; |
|||
} |
|||
|
|||
public void setInpatientId(Integer inpatientId) { |
|||
this.inpatientId = inpatientId; |
|||
} |
|||
|
|||
public Byte getInputStatus() { |
|||
return inputStatus; |
|||
} |
|||
|
|||
public void setInputStatus(Byte inputStatus) { |
|||
this.inputStatus = inputStatus; |
|||
} |
|||
|
|||
public Integer getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Integer hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdateAt() { |
|||
return updateAt; |
|||
} |
|||
|
|||
public void setUpdateAt(Date updateAt) { |
|||
this.updateAt = updateAt; |
|||
} |
|||
|
|||
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(", hospitalization=").append(hospitalization); |
|||
sb.append(", inpatientId=").append(inpatientId); |
|||
sb.append(", inputStatus=").append(inputStatus); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updateAt=").append(updateAt); |
|||
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 PatientInformationExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public PatientInformationExample() { |
|||
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 andHospitalizationIsNull() { |
|||
addCriterion("hospitalization is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationIsNotNull() { |
|||
addCriterion("hospitalization is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationEqualTo(String value) { |
|||
addCriterion("hospitalization =", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationNotEqualTo(String value) { |
|||
addCriterion("hospitalization <>", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationGreaterThan(String value) { |
|||
addCriterion("hospitalization >", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationGreaterThanOrEqualTo(String value) { |
|||
addCriterion("hospitalization >=", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationLessThan(String value) { |
|||
addCriterion("hospitalization <", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationLessThanOrEqualTo(String value) { |
|||
addCriterion("hospitalization <=", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationLike(String value) { |
|||
addCriterion("hospitalization like", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationNotLike(String value) { |
|||
addCriterion("hospitalization not like", value, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationIn(List<String> values) { |
|||
addCriterion("hospitalization in", values, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationNotIn(List<String> values) { |
|||
addCriterion("hospitalization not in", values, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationBetween(String value1, String value2) { |
|||
addCriterion("hospitalization between", value1, value2, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalizationNotBetween(String value1, String value2) { |
|||
addCriterion("hospitalization not between", value1, value2, "hospitalization"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdIsNull() { |
|||
addCriterion("inpatient_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdIsNotNull() { |
|||
addCriterion("inpatient_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdEqualTo(Integer value) { |
|||
addCriterion("inpatient_id =", value, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdNotEqualTo(Integer value) { |
|||
addCriterion("inpatient_id <>", value, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdGreaterThan(Integer value) { |
|||
addCriterion("inpatient_id >", value, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("inpatient_id >=", value, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdLessThan(Integer value) { |
|||
addCriterion("inpatient_id <", value, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdLessThanOrEqualTo(Integer value) { |
|||
addCriterion("inpatient_id <=", value, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdIn(List<Integer> values) { |
|||
addCriterion("inpatient_id in", values, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdNotIn(List<Integer> values) { |
|||
addCriterion("inpatient_id not in", values, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdBetween(Integer value1, Integer value2) { |
|||
addCriterion("inpatient_id between", value1, value2, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInpatientIdNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("inpatient_id not between", value1, value2, "inpatientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusIsNull() { |
|||
addCriterion("input_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusIsNotNull() { |
|||
addCriterion("input_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusEqualTo(Byte value) { |
|||
addCriterion("input_status =", value, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusNotEqualTo(Byte value) { |
|||
addCriterion("input_status <>", value, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusGreaterThan(Byte value) { |
|||
addCriterion("input_status >", value, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("input_status >=", value, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusLessThan(Byte value) { |
|||
addCriterion("input_status <", value, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("input_status <=", value, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusIn(List<Byte> values) { |
|||
addCriterion("input_status in", values, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusNotIn(List<Byte> values) { |
|||
addCriterion("input_status not in", values, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("input_status between", value1, value2, "inputStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andInputStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("input_status not between", value1, value2, "inputStatus"); |
|||
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(Integer value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Integer value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Integer value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Integer value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Integer value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Integer> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Integer> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Integer value1, Integer value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria 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 andUpdateAtIsNull() { |
|||
addCriterion("update_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIsNotNull() { |
|||
addCriterion("update_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtEqualTo(Date value) { |
|||
addCriterion("update_at =", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotEqualTo(Date value) { |
|||
addCriterion("update_at <>", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThan(Date value) { |
|||
addCriterion("update_at >", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_at >=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThan(Date value) { |
|||
addCriterion("update_at <", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_at <=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIn(List<Date> values) { |
|||
addCriterion("update_at in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotIn(List<Date> values) { |
|||
addCriterion("update_at not in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtBetween(Date value1, Date value2) { |
|||
addCriterion("update_at between", value1, value2, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_at not between", value1, value2, "updateAt"); |
|||
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 PatientRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Integer patientId; |
|||
|
|||
private Integer testQuestionsId; |
|||
|
|||
private String contents; |
|||
|
|||
private Long userId; |
|||
|
|||
private Integer collectTime; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updateAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Integer getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Integer patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public Integer getTestQuestionsId() { |
|||
return testQuestionsId; |
|||
} |
|||
|
|||
public void setTestQuestionsId(Integer testQuestionsId) { |
|||
this.testQuestionsId = testQuestionsId; |
|||
} |
|||
|
|||
public String getContents() { |
|||
return contents; |
|||
} |
|||
|
|||
public void setContents(String contents) { |
|||
this.contents = contents == null ? null : contents.trim(); |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Integer getCollectTime() { |
|||
return collectTime; |
|||
} |
|||
|
|||
public void setCollectTime(Integer collectTime) { |
|||
this.collectTime = collectTime; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdateAt() { |
|||
return updateAt; |
|||
} |
|||
|
|||
public void setUpdateAt(Date updateAt) { |
|||
this.updateAt = updateAt; |
|||
} |
|||
|
|||
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(", patientId=").append(patientId); |
|||
sb.append(", testQuestionsId=").append(testQuestionsId); |
|||
sb.append(", contents=").append(contents); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", collectTime=").append(collectTime); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updateAt=").append(updateAt); |
|||
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 PatientRecordExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public PatientRecordExample() { |
|||
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 andPatientIdIsNull() { |
|||
addCriterion("patient_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdIsNotNull() { |
|||
addCriterion("patient_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdEqualTo(Integer value) { |
|||
addCriterion("patient_id =", value, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdNotEqualTo(Integer value) { |
|||
addCriterion("patient_id <>", value, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdGreaterThan(Integer value) { |
|||
addCriterion("patient_id >", value, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("patient_id >=", value, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdLessThan(Integer value) { |
|||
addCriterion("patient_id <", value, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdLessThanOrEqualTo(Integer value) { |
|||
addCriterion("patient_id <=", value, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdIn(List<Integer> values) { |
|||
addCriterion("patient_id in", values, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdNotIn(List<Integer> values) { |
|||
addCriterion("patient_id not in", values, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdBetween(Integer value1, Integer value2) { |
|||
addCriterion("patient_id between", value1, value2, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientIdNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("patient_id not between", value1, value2, "patientId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdIsNull() { |
|||
addCriterion("test_questions_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdIsNotNull() { |
|||
addCriterion("test_questions_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdEqualTo(Integer value) { |
|||
addCriterion("test_questions_id =", value, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdNotEqualTo(Integer value) { |
|||
addCriterion("test_questions_id <>", value, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdGreaterThan(Integer value) { |
|||
addCriterion("test_questions_id >", value, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("test_questions_id >=", value, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdLessThan(Integer value) { |
|||
addCriterion("test_questions_id <", value, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdLessThanOrEqualTo(Integer value) { |
|||
addCriterion("test_questions_id <=", value, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdIn(List<Integer> values) { |
|||
addCriterion("test_questions_id in", values, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdNotIn(List<Integer> values) { |
|||
addCriterion("test_questions_id not in", values, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdBetween(Integer value1, Integer value2) { |
|||
addCriterion("test_questions_id between", value1, value2, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTestQuestionsIdNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("test_questions_id not between", value1, value2, "testQuestionsId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsIsNull() { |
|||
addCriterion("contents is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsIsNotNull() { |
|||
addCriterion("contents is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsEqualTo(String value) { |
|||
addCriterion("contents =", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsNotEqualTo(String value) { |
|||
addCriterion("contents <>", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsGreaterThan(String value) { |
|||
addCriterion("contents >", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsGreaterThanOrEqualTo(String value) { |
|||
addCriterion("contents >=", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsLessThan(String value) { |
|||
addCriterion("contents <", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsLessThanOrEqualTo(String value) { |
|||
addCriterion("contents <=", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsLike(String value) { |
|||
addCriterion("contents like", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsNotLike(String value) { |
|||
addCriterion("contents not like", value, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsIn(List<String> values) { |
|||
addCriterion("contents in", values, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsNotIn(List<String> values) { |
|||
addCriterion("contents not in", values, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsBetween(String value1, String value2) { |
|||
addCriterion("contents between", value1, value2, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentsNotBetween(String value1, String value2) { |
|||
addCriterion("contents not between", value1, value2, "contents"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeIsNull() { |
|||
addCriterion("collect_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeIsNotNull() { |
|||
addCriterion("collect_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeEqualTo(Integer value) { |
|||
addCriterion("collect_time =", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeNotEqualTo(Integer value) { |
|||
addCriterion("collect_time <>", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeGreaterThan(Integer value) { |
|||
addCriterion("collect_time >", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("collect_time >=", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeLessThan(Integer value) { |
|||
addCriterion("collect_time <", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeLessThanOrEqualTo(Integer value) { |
|||
addCriterion("collect_time <=", value, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeIn(List<Integer> values) { |
|||
addCriterion("collect_time in", values, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeNotIn(List<Integer> values) { |
|||
addCriterion("collect_time not in", values, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeBetween(Integer value1, Integer value2) { |
|||
addCriterion("collect_time between", value1, value2, "collectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCollectTimeNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("collect_time not between", value1, value2, "collectTime"); |
|||
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 andUpdateAtIsNull() { |
|||
addCriterion("update_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIsNotNull() { |
|||
addCriterion("update_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtEqualTo(Date value) { |
|||
addCriterion("update_at =", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotEqualTo(Date value) { |
|||
addCriterion("update_at <>", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThan(Date value) { |
|||
addCriterion("update_at >", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_at >=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThan(Date value) { |
|||
addCriterion("update_at <", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_at <=", value, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtIn(List<Date> values) { |
|||
addCriterion("update_at in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotIn(List<Date> values) { |
|||
addCriterion("update_at not in", values, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtBetween(Date value1, Date value2) { |
|||
addCriterion("update_at between", value1, value2, "updateAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_at not between", value1, value2, "updateAt"); |
|||
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,161 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Question implements Serializable { |
|||
private Long id; |
|||
|
|||
private String question; |
|||
|
|||
private Long codeId; |
|||
|
|||
private Integer sort; |
|||
|
|||
private String units; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long relevanceOptionId; |
|||
|
|||
private Byte searchCriteria; |
|||
|
|||
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 getQuestion() { |
|||
return question; |
|||
} |
|||
|
|||
public void setQuestion(String question) { |
|||
this.question = question == null ? null : question.trim(); |
|||
} |
|||
|
|||
public Long getCodeId() { |
|||
return codeId; |
|||
} |
|||
|
|||
public void setCodeId(Long codeId) { |
|||
this.codeId = codeId; |
|||
} |
|||
|
|||
public Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public String getUnits() { |
|||
return units; |
|||
} |
|||
|
|||
public void setUnits(String units) { |
|||
this.units = units == null ? null : units.trim(); |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getRelevanceOptionId() { |
|||
return relevanceOptionId; |
|||
} |
|||
|
|||
public void setRelevanceOptionId(Long relevanceOptionId) { |
|||
this.relevanceOptionId = relevanceOptionId; |
|||
} |
|||
|
|||
public Byte getSearchCriteria() { |
|||
return searchCriteria; |
|||
} |
|||
|
|||
public void setSearchCriteria(Byte searchCriteria) { |
|||
this.searchCriteria = searchCriteria; |
|||
} |
|||
|
|||
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(", question=").append(question); |
|||
sb.append(", codeId=").append(codeId); |
|||
sb.append(", sort=").append(sort); |
|||
sb.append(", units=").append(units); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", relevanceOptionId=").append(relevanceOptionId); |
|||
sb.append(", searchCriteria=").append(searchCriteria); |
|||
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(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,128 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class QuestionOption implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Integer sort; |
|||
|
|||
private String showValue; |
|||
|
|||
private String submitValue; |
|||
|
|||
private Byte afterOperation; |
|||
|
|||
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 Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public String getShowValue() { |
|||
return showValue; |
|||
} |
|||
|
|||
public void setShowValue(String showValue) { |
|||
this.showValue = showValue == null ? null : showValue.trim(); |
|||
} |
|||
|
|||
public String getSubmitValue() { |
|||
return submitValue; |
|||
} |
|||
|
|||
public void setSubmitValue(String submitValue) { |
|||
this.submitValue = submitValue == null ? null : submitValue.trim(); |
|||
} |
|||
|
|||
public Byte getAfterOperation() { |
|||
return afterOperation; |
|||
} |
|||
|
|||
public void setAfterOperation(Byte afterOperation) { |
|||
this.afterOperation = afterOperation; |
|||
} |
|||
|
|||
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(", sort=").append(sort); |
|||
sb.append(", showValue=").append(showValue); |
|||
sb.append(", submitValue=").append(submitValue); |
|||
sb.append(", afterOperation=").append(afterOperation); |
|||
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,821 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class QuestionOptionExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public QuestionOptionExample() { |
|||
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 andSortIsNull() { |
|||
addCriterion("sort is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNotNull() { |
|||
addCriterion("sort is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortEqualTo(Integer value) { |
|||
addCriterion("sort =", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotEqualTo(Integer value) { |
|||
addCriterion("sort <>", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThan(Integer value) { |
|||
addCriterion("sort >", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sort >=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThan(Integer value) { |
|||
addCriterion("sort <", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sort <=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIn(List<Integer> values) { |
|||
addCriterion("sort in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotIn(List<Integer> values) { |
|||
addCriterion("sort not in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort not between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueIsNull() { |
|||
addCriterion("show_value is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueIsNotNull() { |
|||
addCriterion("show_value is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueEqualTo(String value) { |
|||
addCriterion("show_value =", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueNotEqualTo(String value) { |
|||
addCriterion("show_value <>", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueGreaterThan(String value) { |
|||
addCriterion("show_value >", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueGreaterThanOrEqualTo(String value) { |
|||
addCriterion("show_value >=", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueLessThan(String value) { |
|||
addCriterion("show_value <", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueLessThanOrEqualTo(String value) { |
|||
addCriterion("show_value <=", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueLike(String value) { |
|||
addCriterion("show_value like", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueNotLike(String value) { |
|||
addCriterion("show_value not like", value, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueIn(List<String> values) { |
|||
addCriterion("show_value in", values, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueNotIn(List<String> values) { |
|||
addCriterion("show_value not in", values, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueBetween(String value1, String value2) { |
|||
addCriterion("show_value between", value1, value2, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShowValueNotBetween(String value1, String value2) { |
|||
addCriterion("show_value not between", value1, value2, "showValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueIsNull() { |
|||
addCriterion("submit_value is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueIsNotNull() { |
|||
addCriterion("submit_value is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueEqualTo(String value) { |
|||
addCriterion("submit_value =", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueNotEqualTo(String value) { |
|||
addCriterion("submit_value <>", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueGreaterThan(String value) { |
|||
addCriterion("submit_value >", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueGreaterThanOrEqualTo(String value) { |
|||
addCriterion("submit_value >=", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueLessThan(String value) { |
|||
addCriterion("submit_value <", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueLessThanOrEqualTo(String value) { |
|||
addCriterion("submit_value <=", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueLike(String value) { |
|||
addCriterion("submit_value like", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueNotLike(String value) { |
|||
addCriterion("submit_value not like", value, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueIn(List<String> values) { |
|||
addCriterion("submit_value in", values, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueNotIn(List<String> values) { |
|||
addCriterion("submit_value not in", values, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueBetween(String value1, String value2) { |
|||
addCriterion("submit_value between", value1, value2, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitValueNotBetween(String value1, String value2) { |
|||
addCriterion("submit_value not between", value1, value2, "submitValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationIsNull() { |
|||
addCriterion("after_operation is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationIsNotNull() { |
|||
addCriterion("after_operation is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationEqualTo(Byte value) { |
|||
addCriterion("after_operation =", value, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationNotEqualTo(Byte value) { |
|||
addCriterion("after_operation <>", value, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationGreaterThan(Byte value) { |
|||
addCriterion("after_operation >", value, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("after_operation >=", value, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationLessThan(Byte value) { |
|||
addCriterion("after_operation <", value, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationLessThanOrEqualTo(Byte value) { |
|||
addCriterion("after_operation <=", value, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationIn(List<Byte> values) { |
|||
addCriterion("after_operation in", values, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationNotIn(List<Byte> values) { |
|||
addCriterion("after_operation not in", values, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationBetween(Byte value1, Byte value2) { |
|||
addCriterion("after_operation between", value1, value2, "afterOperation"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAfterOperationNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("after_operation not between", value1, value2, "afterOperation"); |
|||
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,128 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class QuestionStandard implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Integer max; |
|||
|
|||
private Integer min; |
|||
|
|||
private String description; |
|||
|
|||
private Integer sort; |
|||
|
|||
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 Integer getMax() { |
|||
return max; |
|||
} |
|||
|
|||
public void setMax(Integer max) { |
|||
this.max = max; |
|||
} |
|||
|
|||
public Integer getMin() { |
|||
return min; |
|||
} |
|||
|
|||
public void setMin(Integer min) { |
|||
this.min = min; |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.trim(); |
|||
} |
|||
|
|||
public Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
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(", max=").append(max); |
|||
sb.append(", min=").append(min); |
|||
sb.append(", description=").append(description); |
|||
sb.append(", sort=").append(sort); |
|||
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,811 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class QuestionStandardExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public QuestionStandardExample() { |
|||
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 andMaxIsNull() { |
|||
addCriterion("max is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxIsNotNull() { |
|||
addCriterion("max is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxEqualTo(Integer value) { |
|||
addCriterion("max =", value, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxNotEqualTo(Integer value) { |
|||
addCriterion("max <>", value, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxGreaterThan(Integer value) { |
|||
addCriterion("max >", value, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("max >=", value, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxLessThan(Integer value) { |
|||
addCriterion("max <", value, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxLessThanOrEqualTo(Integer value) { |
|||
addCriterion("max <=", value, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxIn(List<Integer> values) { |
|||
addCriterion("max in", values, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxNotIn(List<Integer> values) { |
|||
addCriterion("max not in", values, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxBetween(Integer value1, Integer value2) { |
|||
addCriterion("max between", value1, value2, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMaxNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("max not between", value1, value2, "max"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinIsNull() { |
|||
addCriterion("min is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinIsNotNull() { |
|||
addCriterion("min is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinEqualTo(Integer value) { |
|||
addCriterion("min =", value, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinNotEqualTo(Integer value) { |
|||
addCriterion("min <>", value, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinGreaterThan(Integer value) { |
|||
addCriterion("min >", value, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("min >=", value, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinLessThan(Integer value) { |
|||
addCriterion("min <", value, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinLessThanOrEqualTo(Integer value) { |
|||
addCriterion("min <=", value, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinIn(List<Integer> values) { |
|||
addCriterion("min in", values, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinNotIn(List<Integer> values) { |
|||
addCriterion("min not in", values, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinBetween(Integer value1, Integer value2) { |
|||
addCriterion("min between", value1, value2, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMinNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("min not between", value1, value2, "min"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNull() { |
|||
addCriterion("description is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNotNull() { |
|||
addCriterion("description is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionEqualTo(String value) { |
|||
addCriterion("description =", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotEqualTo(String value) { |
|||
addCriterion("description <>", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThan(String value) { |
|||
addCriterion("description >", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("description >=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThan(String value) { |
|||
addCriterion("description <", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThanOrEqualTo(String value) { |
|||
addCriterion("description <=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLike(String value) { |
|||
addCriterion("description like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotLike(String value) { |
|||
addCriterion("description not like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIn(List<String> values) { |
|||
addCriterion("description in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotIn(List<String> values) { |
|||
addCriterion("description not in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionBetween(String value1, String value2) { |
|||
addCriterion("description between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotBetween(String value1, String value2) { |
|||
addCriterion("description not between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNull() { |
|||
addCriterion("sort is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNotNull() { |
|||
addCriterion("sort is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortEqualTo(Integer value) { |
|||
addCriterion("sort =", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotEqualTo(Integer value) { |
|||
addCriterion("sort <>", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThan(Integer value) { |
|||
addCriterion("sort >", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sort >=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThan(Integer value) { |
|||
addCriterion("sort <", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sort <=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIn(List<Integer> values) { |
|||
addCriterion("sort in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotIn(List<Integer> values) { |
|||
addCriterion("sort not in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort not between", value1, value2, "sort"); |
|||
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,150 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ReportCode implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private String name; |
|||
|
|||
private String parentId; |
|||
|
|||
private Byte must; |
|||
|
|||
private Byte level; |
|||
|
|||
private Integer sort; |
|||
|
|||
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 String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(String parentId) { |
|||
this.parentId = parentId == null ? null : parentId.trim(); |
|||
} |
|||
|
|||
public Byte getMust() { |
|||
return must; |
|||
} |
|||
|
|||
public void setMust(Byte must) { |
|||
this.must = must; |
|||
} |
|||
|
|||
public Byte getLevel() { |
|||
return level; |
|||
} |
|||
|
|||
public void setLevel(Byte level) { |
|||
this.level = level; |
|||
} |
|||
|
|||
public Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
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(", name=").append(name); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", must=").append(must); |
|||
sb.append(", level=").append(level); |
|||
sb.append(", sort=").append(sort); |
|||
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,961 @@ |
|||
package com.ccsens.tcm.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ReportCodeExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ReportCodeExample() { |
|||
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 andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIsNull() { |
|||
addCriterion("parent_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIsNotNull() { |
|||
addCriterion("parent_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdEqualTo(String value) { |
|||
addCriterion("parent_id =", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotEqualTo(String value) { |
|||
addCriterion("parent_id <>", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThan(String value) { |
|||
addCriterion("parent_id >", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThanOrEqualTo(String value) { |
|||
addCriterion("parent_id >=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThan(String value) { |
|||
addCriterion("parent_id <", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThanOrEqualTo(String value) { |
|||
addCriterion("parent_id <=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLike(String value) { |
|||
addCriterion("parent_id like", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotLike(String value) { |
|||
addCriterion("parent_id not like", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIn(List<String> values) { |
|||
addCriterion("parent_id in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotIn(List<String> values) { |
|||
addCriterion("parent_id not in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdBetween(String value1, String value2) { |
|||
addCriterion("parent_id between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotBetween(String value1, String value2) { |
|||
addCriterion("parent_id not between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustIsNull() { |
|||
addCriterion("must is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustIsNotNull() { |
|||
addCriterion("must is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustEqualTo(Byte value) { |
|||
addCriterion("must =", value, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustNotEqualTo(Byte value) { |
|||
addCriterion("must <>", value, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustGreaterThan(Byte value) { |
|||
addCriterion("must >", value, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("must >=", value, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustLessThan(Byte value) { |
|||
addCriterion("must <", value, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustLessThanOrEqualTo(Byte value) { |
|||
addCriterion("must <=", value, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustIn(List<Byte> values) { |
|||
addCriterion("must in", values, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustNotIn(List<Byte> values) { |
|||
addCriterion("must not in", values, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustBetween(Byte value1, Byte value2) { |
|||
addCriterion("must between", value1, value2, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMustNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("must not between", value1, value2, "must"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelIsNull() { |
|||
addCriterion("level is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelIsNotNull() { |
|||
addCriterion("level is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelEqualTo(Byte value) { |
|||
addCriterion("level =", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelNotEqualTo(Byte value) { |
|||
addCriterion("level <>", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelGreaterThan(Byte value) { |
|||
addCriterion("level >", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("level >=", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelLessThan(Byte value) { |
|||
addCriterion("level <", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelLessThanOrEqualTo(Byte value) { |
|||
addCriterion("level <=", value, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelIn(List<Byte> values) { |
|||
addCriterion("level in", values, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelNotIn(List<Byte> values) { |
|||
addCriterion("level not in", values, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelBetween(Byte value1, Byte value2) { |
|||
addCriterion("level between", value1, value2, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLevelNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("level not between", value1, value2, "level"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNull() { |
|||
addCriterion("sort is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNotNull() { |
|||
addCriterion("sort is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortEqualTo(Integer value) { |
|||
addCriterion("sort =", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotEqualTo(Integer value) { |
|||
addCriterion("sort <>", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThan(Integer value) { |
|||
addCriterion("sort >", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sort >=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThan(Integer value) { |
|||
addCriterion("sort <", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sort <=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIn(List<Integer> values) { |
|||
addCriterion("sort in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotIn(List<Integer> values) { |
|||
addCriterion("sort not in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort not between", value1, value2, "sort"); |
|||
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,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.BiologicalSamples; |
|||
import com.ccsens.tcm.bean.po.BiologicalSamplesExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface BiologicalSamplesMapper { |
|||
long countByExample(BiologicalSamplesExample example); |
|||
|
|||
int deleteByExample(BiologicalSamplesExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(BiologicalSamples record); |
|||
|
|||
int insertSelective(BiologicalSamples record); |
|||
|
|||
List<BiologicalSamples> selectByExample(BiologicalSamplesExample example); |
|||
|
|||
BiologicalSamples selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") BiologicalSamples record, @Param("example") BiologicalSamplesExample example); |
|||
|
|||
int updateByExample(@Param("record") BiologicalSamples record, @Param("example") BiologicalSamplesExample example); |
|||
|
|||
int updateByPrimaryKeySelective(BiologicalSamples record); |
|||
|
|||
int updateByPrimaryKey(BiologicalSamples record); |
|||
} |
@ -0,0 +1,37 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.ConferenceRecords; |
|||
import com.ccsens.tcm.bean.po.ConferenceRecordsExample; |
|||
import com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ConferenceRecordsMapper { |
|||
long countByExample(ConferenceRecordsExample example); |
|||
|
|||
int deleteByExample(ConferenceRecordsExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ConferenceRecordsWithBLOBs record); |
|||
|
|||
int insertSelective(ConferenceRecordsWithBLOBs record); |
|||
|
|||
List<ConferenceRecordsWithBLOBs> selectByExampleWithBLOBs(ConferenceRecordsExample example); |
|||
|
|||
List<ConferenceRecords> selectByExample(ConferenceRecordsExample example); |
|||
|
|||
ConferenceRecordsWithBLOBs selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ConferenceRecordsWithBLOBs record, @Param("example") ConferenceRecordsExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") ConferenceRecordsWithBLOBs record, @Param("example") ConferenceRecordsExample example); |
|||
|
|||
int updateByExample(@Param("record") ConferenceRecords record, @Param("example") ConferenceRecordsExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ConferenceRecordsWithBLOBs record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(ConferenceRecordsWithBLOBs record); |
|||
|
|||
int updateByPrimaryKey(ConferenceRecords record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.Inpatient; |
|||
import com.ccsens.tcm.bean.po.InpatientExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface InpatientMapper { |
|||
long countByExample(InpatientExample example); |
|||
|
|||
int deleteByExample(InpatientExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Inpatient record); |
|||
|
|||
int insertSelective(Inpatient record); |
|||
|
|||
List<Inpatient> selectByExample(InpatientExample example); |
|||
|
|||
Inpatient selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Inpatient record, @Param("example") InpatientExample example); |
|||
|
|||
int updateByExample(@Param("record") Inpatient record, @Param("example") InpatientExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Inpatient record); |
|||
|
|||
int updateByPrimaryKey(Inpatient record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.PatientInformation; |
|||
import com.ccsens.tcm.bean.po.PatientInformationExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface PatientInformationMapper { |
|||
long countByExample(PatientInformationExample example); |
|||
|
|||
int deleteByExample(PatientInformationExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(PatientInformation record); |
|||
|
|||
int insertSelective(PatientInformation record); |
|||
|
|||
List<PatientInformation> selectByExample(PatientInformationExample example); |
|||
|
|||
PatientInformation selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") PatientInformation record, @Param("example") PatientInformationExample example); |
|||
|
|||
int updateByExample(@Param("record") PatientInformation record, @Param("example") PatientInformationExample example); |
|||
|
|||
int updateByPrimaryKeySelective(PatientInformation record); |
|||
|
|||
int updateByPrimaryKey(PatientInformation record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.PatientRecord; |
|||
import com.ccsens.tcm.bean.po.PatientRecordExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface PatientRecordMapper { |
|||
long countByExample(PatientRecordExample example); |
|||
|
|||
int deleteByExample(PatientRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(PatientRecord record); |
|||
|
|||
int insertSelective(PatientRecord record); |
|||
|
|||
List<PatientRecord> selectByExample(PatientRecordExample example); |
|||
|
|||
PatientRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") PatientRecord record, @Param("example") PatientRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") PatientRecord record, @Param("example") PatientRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(PatientRecord record); |
|||
|
|||
int updateByPrimaryKey(PatientRecord record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.Question; |
|||
import com.ccsens.tcm.bean.po.QuestionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface QuestionMapper { |
|||
long countByExample(QuestionExample example); |
|||
|
|||
int deleteByExample(QuestionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Question record); |
|||
|
|||
int insertSelective(Question record); |
|||
|
|||
List<Question> selectByExample(QuestionExample example); |
|||
|
|||
Question selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Question record, @Param("example") QuestionExample example); |
|||
|
|||
int updateByExample(@Param("record") Question record, @Param("example") QuestionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Question record); |
|||
|
|||
int updateByPrimaryKey(Question record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.QuestionOption; |
|||
import com.ccsens.tcm.bean.po.QuestionOptionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface QuestionOptionMapper { |
|||
long countByExample(QuestionOptionExample example); |
|||
|
|||
int deleteByExample(QuestionOptionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(QuestionOption record); |
|||
|
|||
int insertSelective(QuestionOption record); |
|||
|
|||
List<QuestionOption> selectByExample(QuestionOptionExample example); |
|||
|
|||
QuestionOption selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") QuestionOption record, @Param("example") QuestionOptionExample example); |
|||
|
|||
int updateByExample(@Param("record") QuestionOption record, @Param("example") QuestionOptionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(QuestionOption record); |
|||
|
|||
int updateByPrimaryKey(QuestionOption record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.QuestionStandard; |
|||
import com.ccsens.tcm.bean.po.QuestionStandardExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface QuestionStandardMapper { |
|||
long countByExample(QuestionStandardExample example); |
|||
|
|||
int deleteByExample(QuestionStandardExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(QuestionStandard record); |
|||
|
|||
int insertSelective(QuestionStandard record); |
|||
|
|||
List<QuestionStandard> selectByExample(QuestionStandardExample example); |
|||
|
|||
QuestionStandard selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") QuestionStandard record, @Param("example") QuestionStandardExample example); |
|||
|
|||
int updateByExample(@Param("record") QuestionStandard record, @Param("example") QuestionStandardExample example); |
|||
|
|||
int updateByPrimaryKeySelective(QuestionStandard record); |
|||
|
|||
int updateByPrimaryKey(QuestionStandard record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tcm.persist.mapper; |
|||
|
|||
import com.ccsens.tcm.bean.po.ReportCode; |
|||
import com.ccsens.tcm.bean.po.ReportCodeExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ReportCodeMapper { |
|||
long countByExample(ReportCodeExample example); |
|||
|
|||
int deleteByExample(ReportCodeExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ReportCode record); |
|||
|
|||
int insertSelective(ReportCode record); |
|||
|
|||
List<ReportCode> selectByExample(ReportCodeExample example); |
|||
|
|||
ReportCode selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ReportCode record, @Param("example") ReportCodeExample example); |
|||
|
|||
int updateByExample(@Param("record") ReportCode record, @Param("example") ReportCodeExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ReportCode record); |
|||
|
|||
int updateByPrimaryKey(ReportCode record); |
|||
} |
@ -0,0 +1,259 @@ |
|||
<?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.BiologicalSamplesMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="sample_type" jdbcType="TINYINT" property="sampleType" /> |
|||
<result column="patient_information_id" jdbcType="BIGINT" property="patientInformationId" /> |
|||
<result column="collect_time" jdbcType="INTEGER" property="collectTime" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" /> |
|||
<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, sample_type, patient_information_id, collect_time, user_id, created_at, update_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.BiologicalSamplesExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_biological_samples |
|||
<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_biological_samples |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_biological_samples |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.BiologicalSamplesExample"> |
|||
delete from t_biological_samples |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|||
insert into t_biological_samples (id, sample_type, patient_information_id, |
|||
collect_time, user_id, created_at, |
|||
update_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{sampleType,jdbcType=TINYINT}, #{patientInformationId,jdbcType=BIGINT}, |
|||
#{collectTime,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.BiologicalSamples"> |
|||
insert into t_biological_samples |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="sampleType != null"> |
|||
sample_type, |
|||
</if> |
|||
<if test="patientInformationId != null"> |
|||
patient_information_id, |
|||
</if> |
|||
<if test="collectTime != null"> |
|||
collect_time, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_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="sampleType != null"> |
|||
#{sampleType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="patientInformationId != null"> |
|||
#{patientInformationId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="collectTime != null"> |
|||
#{collectTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
#{updateAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tcm.bean.po.BiologicalSamplesExample" resultType="java.lang.Long"> |
|||
select count(*) from t_biological_samples |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_biological_samples |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sampleType != null"> |
|||
sample_type = #{record.sampleType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.patientInformationId != null"> |
|||
patient_information_id = #{record.patientInformationId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.collectTime != null"> |
|||
collect_time = #{record.collectTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateAt != null"> |
|||
update_at = #{record.updateAt,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_biological_samples |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
sample_type = #{record.sampleType,jdbcType=TINYINT}, |
|||
patient_information_id = #{record.patientInformationId,jdbcType=BIGINT}, |
|||
collect_time = #{record.collectTime,jdbcType=INTEGER}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{record.updateAt,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.BiologicalSamples"> |
|||
update t_biological_samples |
|||
<set> |
|||
<if test="sampleType != null"> |
|||
sample_type = #{sampleType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="patientInformationId != null"> |
|||
patient_information_id = #{patientInformationId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="collectTime != null"> |
|||
collect_time = #{collectTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_at = #{updateAt,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.BiologicalSamples"> |
|||
update t_biological_samples |
|||
set sample_type = #{sampleType,jdbcType=TINYINT}, |
|||
patient_information_id = #{patientInformationId,jdbcType=BIGINT}, |
|||
collect_time = #{collectTime,jdbcType=INTEGER}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,375 @@ |
|||
<?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.ConferenceRecordsMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" /> |
|||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> |
|||
<result column="place" jdbcType="VARCHAR" property="place" /> |
|||
<result column="host" jdbcType="VARCHAR" property="host" /> |
|||
<result column="participants" jdbcType="VARCHAR" property="participants" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|||
<result column="discussion_content" jdbcType="LONGVARCHAR" property="discussionContent" /> |
|||
<result column="meeting_minutes" jdbcType="LONGVARCHAR" property="meetingMinutes" /> |
|||
</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, start_time, end_time, place, host, participants, user_id, created_at, update_at, |
|||
rec_status |
|||
</sql> |
|||
<sql id="Blob_Column_List"> |
|||
discussion_content, meeting_minutes |
|||
</sql> |
|||
<select id="selectByExampleWithBLOBs" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultMap="ResultMapWithBLOBs"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from t_conference_records |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_conference_records |
|||
<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="ResultMapWithBLOBs"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from t_conference_records |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_conference_records |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample"> |
|||
delete from t_conference_records |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|||
insert into t_conference_records (id, start_time, end_time, |
|||
place, host, participants, |
|||
user_id, created_at, update_at, |
|||
rec_status, discussion_content, meeting_minutes |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, |
|||
#{place,jdbcType=VARCHAR}, #{host,jdbcType=VARCHAR}, #{participants,jdbcType=VARCHAR}, |
|||
#{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}, #{discussionContent,jdbcType=LONGVARCHAR}, #{meetingMinutes,jdbcType=LONGVARCHAR} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|||
insert into t_conference_records |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time, |
|||
</if> |
|||
<if test="place != null"> |
|||
place, |
|||
</if> |
|||
<if test="host != null"> |
|||
host, |
|||
</if> |
|||
<if test="participants != null"> |
|||
participants, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
<if test="discussionContent != null"> |
|||
discussion_content, |
|||
</if> |
|||
<if test="meetingMinutes != null"> |
|||
meeting_minutes, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
#{startTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
#{endTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="place != null"> |
|||
#{place,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="host != null"> |
|||
#{host,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="participants != null"> |
|||
#{participants,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
#{updateAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="discussionContent != null"> |
|||
#{discussionContent,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
<if test="meetingMinutes != null"> |
|||
#{meetingMinutes,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsExample" resultType="java.lang.Long"> |
|||
select count(*) from t_conference_records |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_conference_records |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.startTime != null"> |
|||
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.endTime != null"> |
|||
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.place != null"> |
|||
place = #{record.place,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.host != null"> |
|||
host = #{record.host,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.participants != null"> |
|||
participants = #{record.participants,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateAt != null"> |
|||
update_at = #{record.updateAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.discussionContent != null"> |
|||
discussion_content = #{record.discussionContent,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
<if test="record.meetingMinutes != null"> |
|||
meeting_minutes = #{record.meetingMinutes,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|||
update t_conference_records |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|||
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|||
place = #{record.place,jdbcType=VARCHAR}, |
|||
host = #{record.host,jdbcType=VARCHAR}, |
|||
participants = #{record.participants,jdbcType=VARCHAR}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{record.updateAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
discussion_content = #{record.discussionContent,jdbcType=LONGVARCHAR}, |
|||
meeting_minutes = #{record.meetingMinutes,jdbcType=LONGVARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_conference_records |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|||
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|||
place = #{record.place,jdbcType=VARCHAR}, |
|||
host = #{record.host,jdbcType=VARCHAR}, |
|||
participants = #{record.participants,jdbcType=VARCHAR}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{record.updateAt,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.ConferenceRecordsWithBLOBs"> |
|||
update t_conference_records |
|||
<set> |
|||
<if test="startTime != null"> |
|||
start_time = #{startTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="place != null"> |
|||
place = #{place,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="host != null"> |
|||
host = #{host,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="participants != null"> |
|||
participants = #{participants,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="discussionContent != null"> |
|||
discussion_content = #{discussionContent,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
<if test="meetingMinutes != null"> |
|||
meeting_minutes = #{meetingMinutes,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ccsens.tcm.bean.po.ConferenceRecordsWithBLOBs"> |
|||
update t_conference_records |
|||
set start_time = #{startTime,jdbcType=TIMESTAMP}, |
|||
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|||
place = #{place,jdbcType=VARCHAR}, |
|||
host = #{host,jdbcType=VARCHAR}, |
|||
participants = #{participants,jdbcType=VARCHAR}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
discussion_content = #{discussionContent,jdbcType=LONGVARCHAR}, |
|||
meeting_minutes = #{meetingMinutes,jdbcType=LONGVARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tcm.bean.po.ConferenceRecords"> |
|||
update t_conference_records |
|||
set start_time = #{startTime,jdbcType=TIMESTAMP}, |
|||
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|||
place = #{place,jdbcType=VARCHAR}, |
|||
host = #{host,jdbcType=VARCHAR}, |
|||
participants = #{participants,jdbcType=VARCHAR}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,258 @@ |
|||
<?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.InpatientMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.Inpatient"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="remarks" jdbcType="VARCHAR" property="remarks" /> |
|||
<result column="collection_num" jdbcType="INTEGER" property="collectionNum" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, name, remarks, collection_num, user_id, created_at, update_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.InpatientExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_inpatient |
|||
<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_inpatient |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_inpatient |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.InpatientExample"> |
|||
delete from t_inpatient |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.Inpatient"> |
|||
insert into t_inpatient (id, name, remarks, |
|||
collection_num, user_id, created_at, |
|||
update_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{remarks,jdbcType=VARCHAR}, |
|||
#{collectionNum,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.Inpatient"> |
|||
insert into t_inpatient |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="remarks != null"> |
|||
remarks, |
|||
</if> |
|||
<if test="collectionNum != null"> |
|||
collection_num, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remarks != null"> |
|||
#{remarks,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="collectionNum != null"> |
|||
#{collectionNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
#{updateAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tcm.bean.po.InpatientExample" resultType="java.lang.Long"> |
|||
select count(*) from t_inpatient |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_inpatient |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remarks != null"> |
|||
remarks = #{record.remarks,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.collectionNum != null"> |
|||
collection_num = #{record.collectionNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateAt != null"> |
|||
update_at = #{record.updateAt,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_inpatient |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
remarks = #{record.remarks,jdbcType=VARCHAR}, |
|||
collection_num = #{record.collectionNum,jdbcType=INTEGER}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{record.updateAt,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.Inpatient"> |
|||
update t_inpatient |
|||
<set> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remarks != null"> |
|||
remarks = #{remarks,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="collectionNum != null"> |
|||
collection_num = #{collectionNum,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_at = #{updateAt,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.Inpatient"> |
|||
update t_inpatient |
|||
set name = #{name,jdbcType=VARCHAR}, |
|||
remarks = #{remarks,jdbcType=VARCHAR}, |
|||
collection_num = #{collectionNum,jdbcType=INTEGER}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,276 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tcm.persist.mapper.PatientInformationMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.PatientInformation"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="hospitalization" jdbcType="VARCHAR" property="hospitalization" /> |
|||
<result column="inpatient_id" jdbcType="INTEGER" property="inpatientId" /> |
|||
<result column="input_status" jdbcType="TINYINT" property="inputStatus" /> |
|||
<result column="hospital_id" jdbcType="INTEGER" property="hospitalId" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" /> |
|||
<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, hospitalization, inpatient_id, input_status, hospital_id, user_id, created_at, |
|||
update_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.PatientInformationExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_patient_information |
|||
<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_patient_information |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_patient_information |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.PatientInformationExample"> |
|||
delete from t_patient_information |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.PatientInformation"> |
|||
insert into t_patient_information (id, hospitalization, inpatient_id, |
|||
input_status, hospital_id, user_id, |
|||
created_at, update_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{hospitalization,jdbcType=VARCHAR}, #{inpatientId,jdbcType=INTEGER}, |
|||
#{inputStatus,jdbcType=TINYINT}, #{hospitalId,jdbcType=INTEGER}, #{userId,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.PatientInformation"> |
|||
insert into t_patient_information |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="hospitalization != null"> |
|||
hospitalization, |
|||
</if> |
|||
<if test="inpatientId != null"> |
|||
inpatient_id, |
|||
</if> |
|||
<if test="inputStatus != null"> |
|||
input_status, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_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="hospitalization != null"> |
|||
#{hospitalization,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="inpatientId != null"> |
|||
#{inpatientId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="inputStatus != null"> |
|||
#{inputStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
#{hospitalId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
#{updateAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tcm.bean.po.PatientInformationExample" resultType="java.lang.Long"> |
|||
select count(*) from t_patient_information |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_patient_information |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.hospitalization != null"> |
|||
hospitalization = #{record.hospitalization,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.inpatientId != null"> |
|||
inpatient_id = #{record.inpatientId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.inputStatus != null"> |
|||
input_status = #{record.inputStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.hospitalId != null"> |
|||
hospital_id = #{record.hospitalId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateAt != null"> |
|||
update_at = #{record.updateAt,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_patient_information |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
hospitalization = #{record.hospitalization,jdbcType=VARCHAR}, |
|||
inpatient_id = #{record.inpatientId,jdbcType=INTEGER}, |
|||
input_status = #{record.inputStatus,jdbcType=TINYINT}, |
|||
hospital_id = #{record.hospitalId,jdbcType=INTEGER}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{record.updateAt,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.PatientInformation"> |
|||
update t_patient_information |
|||
<set> |
|||
<if test="hospitalization != null"> |
|||
hospitalization = #{hospitalization,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="inpatientId != null"> |
|||
inpatient_id = #{inpatientId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="inputStatus != null"> |
|||
input_status = #{inputStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id = #{hospitalId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_at = #{updateAt,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.PatientInformation"> |
|||
update t_patient_information |
|||
set hospitalization = #{hospitalization,jdbcType=VARCHAR}, |
|||
inpatient_id = #{inpatientId,jdbcType=INTEGER}, |
|||
input_status = #{inputStatus,jdbcType=TINYINT}, |
|||
hospital_id = #{hospitalId,jdbcType=INTEGER}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,276 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tcm.persist.mapper.PatientRecordMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.PatientRecord"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_id" jdbcType="INTEGER" property="patientId" /> |
|||
<result column="test_questions_id" jdbcType="INTEGER" property="testQuestionsId" /> |
|||
<result column="contents" jdbcType="VARCHAR" property="contents" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="collect_time" jdbcType="INTEGER" property="collectTime" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="update_at" jdbcType="TIMESTAMP" property="updateAt" /> |
|||
<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, patient_id, test_questions_id, contents, user_id, collect_time, created_at, update_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.PatientRecordExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_patient_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_patient_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_patient_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.PatientRecordExample"> |
|||
delete from t_patient_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.PatientRecord"> |
|||
insert into t_patient_record (id, patient_id, test_questions_id, |
|||
contents, user_id, collect_time, |
|||
created_at, update_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=INTEGER}, #{testQuestionsId,jdbcType=INTEGER}, |
|||
#{contents,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, #{collectTime,jdbcType=INTEGER}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updateAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.PatientRecord"> |
|||
insert into t_patient_record |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="testQuestionsId != null"> |
|||
test_questions_id, |
|||
</if> |
|||
<if test="contents != null"> |
|||
contents, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="collectTime != null"> |
|||
collect_time, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_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="patientId != null"> |
|||
#{patientId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="testQuestionsId != null"> |
|||
#{testQuestionsId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="contents != null"> |
|||
#{contents,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="collectTime != null"> |
|||
#{collectTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
#{updateAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tcm.bean.po.PatientRecordExample" resultType="java.lang.Long"> |
|||
select count(*) from t_patient_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_patient_record |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.testQuestionsId != null"> |
|||
test_questions_id = #{record.testQuestionsId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.contents != null"> |
|||
contents = #{record.contents,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.collectTime != null"> |
|||
collect_time = #{record.collectTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateAt != null"> |
|||
update_at = #{record.updateAt,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_patient_record |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=INTEGER}, |
|||
test_questions_id = #{record.testQuestionsId,jdbcType=INTEGER}, |
|||
contents = #{record.contents,jdbcType=VARCHAR}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
collect_time = #{record.collectTime,jdbcType=INTEGER}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{record.updateAt,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.PatientRecord"> |
|||
update t_patient_record |
|||
<set> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="testQuestionsId != null"> |
|||
test_questions_id = #{testQuestionsId,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="contents != null"> |
|||
contents = #{contents,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="collectTime != null"> |
|||
collect_time = #{collectTime,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateAt != null"> |
|||
update_at = #{updateAt,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.PatientRecord"> |
|||
update t_patient_record |
|||
set patient_id = #{patientId,jdbcType=INTEGER}, |
|||
test_questions_id = #{testQuestionsId,jdbcType=INTEGER}, |
|||
contents = #{contents,jdbcType=VARCHAR}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
collect_time = #{collectTime,jdbcType=INTEGER}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
update_at = #{updateAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,338 @@ |
|||
<?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.QuestionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.Question"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="question" jdbcType="VARCHAR" property="question" /> |
|||
<result column="code_id" jdbcType="BIGINT" property="codeId" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="units" jdbcType="VARCHAR" property="units" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="relevance_option_id" jdbcType="BIGINT" property="relevanceOptionId" /> |
|||
<result column="search_criteria" jdbcType="TINYINT" property="searchCriteria" /> |
|||
<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, code_id, sort, units, type, relevance_option_id, search_criteria, remark, |
|||
operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.QuestionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_question |
|||
<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 |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_question |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.QuestionExample"> |
|||
delete from t_question |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.Question"> |
|||
insert into t_question (id, question, code_id, |
|||
sort, units, type, |
|||
relevance_option_id, search_criteria, remark, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{question,jdbcType=VARCHAR}, #{codeId,jdbcType=BIGINT}, |
|||
#{sort,jdbcType=INTEGER}, #{units,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, |
|||
#{relevanceOptionId,jdbcType=BIGINT}, #{searchCriteria,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.Question"> |
|||
insert into t_question |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="question != null"> |
|||
question, |
|||
</if> |
|||
<if test="codeId != null"> |
|||
code_id, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="units != null"> |
|||
units, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="relevanceOptionId != null"> |
|||
relevance_option_id, |
|||
</if> |
|||
<if test="searchCriteria != null"> |
|||
search_criteria, |
|||
</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="question != null"> |
|||
#{question,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="codeId != null"> |
|||
#{codeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="units != null"> |
|||
#{units,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="relevanceOptionId != null"> |
|||
#{relevanceOptionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="searchCriteria != null"> |
|||
#{searchCriteria,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.QuestionExample" resultType="java.lang.Long"> |
|||
select count(*) from t_question |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_question |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.question != null"> |
|||
question = #{record.question,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.codeId != null"> |
|||
code_id = #{record.codeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.units != null"> |
|||
units = #{record.units,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.relevanceOptionId != null"> |
|||
relevance_option_id = #{record.relevanceOptionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.searchCriteria != null"> |
|||
search_criteria = #{record.searchCriteria,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 |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
question = #{record.question,jdbcType=VARCHAR}, |
|||
code_id = #{record.codeId,jdbcType=BIGINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
units = #{record.units,jdbcType=VARCHAR}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
relevance_option_id = #{record.relevanceOptionId,jdbcType=BIGINT}, |
|||
search_criteria = #{record.searchCriteria,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.Question"> |
|||
update t_question |
|||
<set> |
|||
<if test="question != null"> |
|||
question = #{question,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="codeId != null"> |
|||
code_id = #{codeId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="units != null"> |
|||
units = #{units,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="relevanceOptionId != null"> |
|||
relevance_option_id = #{relevanceOptionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="searchCriteria != null"> |
|||
search_criteria = #{searchCriteria,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.Question"> |
|||
update t_question |
|||
set question = #{question,jdbcType=VARCHAR}, |
|||
code_id = #{codeId,jdbcType=BIGINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
units = #{units,jdbcType=VARCHAR}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
relevance_option_id = #{relevanceOptionId,jdbcType=BIGINT}, |
|||
search_criteria = #{searchCriteria,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,291 @@ |
|||
<?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.QuestionOptionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.QuestionOption"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="show_value" jdbcType="VARCHAR" property="showValue" /> |
|||
<result column="submit_value" jdbcType="VARCHAR" property="submitValue" /> |
|||
<result column="after_operation" jdbcType="TINYINT" property="afterOperation" /> |
|||
<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, sort, show_value, submit_value, after_operation, operator, created_at, |
|||
updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.QuestionOptionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_question_option |
|||
<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_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_question_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.QuestionOptionExample"> |
|||
delete from t_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.QuestionOption"> |
|||
insert into t_question_option (id, question_id, sort, |
|||
show_value, submit_value, after_operation, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, |
|||
#{showValue,jdbcType=VARCHAR}, #{submitValue,jdbcType=VARCHAR}, #{afterOperation,jdbcType=TINYINT}, |
|||
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.QuestionOption"> |
|||
insert into t_question_option |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="showValue != null"> |
|||
show_value, |
|||
</if> |
|||
<if test="submitValue != null"> |
|||
submit_value, |
|||
</if> |
|||
<if test="afterOperation != null"> |
|||
after_operation, |
|||
</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="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="showValue != null"> |
|||
#{showValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitValue != null"> |
|||
#{submitValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="afterOperation != null"> |
|||
#{afterOperation,jdbcType=TINYINT}, |
|||
</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.QuestionOptionExample" resultType="java.lang.Long"> |
|||
select count(*) from t_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_question_option |
|||
<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.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.showValue != null"> |
|||
show_value = #{record.showValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.submitValue != null"> |
|||
submit_value = #{record.submitValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.afterOperation != null"> |
|||
after_operation = #{record.afterOperation,jdbcType=TINYINT}, |
|||
</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_option |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
show_value = #{record.showValue,jdbcType=VARCHAR}, |
|||
submit_value = #{record.submitValue,jdbcType=VARCHAR}, |
|||
after_operation = #{record.afterOperation,jdbcType=TINYINT}, |
|||
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.QuestionOption"> |
|||
update t_question_option |
|||
<set> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="showValue != null"> |
|||
show_value = #{showValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitValue != null"> |
|||
submit_value = #{submitValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="afterOperation != null"> |
|||
after_operation = #{afterOperation,jdbcType=TINYINT}, |
|||
</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.QuestionOption"> |
|||
update t_question_option |
|||
set question_id = #{questionId,jdbcType=BIGINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
show_value = #{showValue,jdbcType=VARCHAR}, |
|||
submit_value = #{submitValue,jdbcType=VARCHAR}, |
|||
after_operation = #{afterOperation,jdbcType=TINYINT}, |
|||
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,290 @@ |
|||
<?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.QuestionStandardMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.QuestionStandard"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="max" jdbcType="INTEGER" property="max" /> |
|||
<result column="min" jdbcType="INTEGER" property="min" /> |
|||
<result column="description" jdbcType="VARCHAR" property="description" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<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, max, min, description, sort, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.QuestionStandardExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_question_standard |
|||
<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_standard |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_question_standard |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.QuestionStandardExample"> |
|||
delete from t_question_standard |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.QuestionStandard"> |
|||
insert into t_question_standard (id, question_id, max, |
|||
min, description, sort, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{max,jdbcType=INTEGER}, |
|||
#{min,jdbcType=INTEGER}, #{description,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, |
|||
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tcm.bean.po.QuestionStandard"> |
|||
insert into t_question_standard |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="max != null"> |
|||
max, |
|||
</if> |
|||
<if test="min != null"> |
|||
min, |
|||
</if> |
|||
<if test="description != null"> |
|||
description, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</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="max != null"> |
|||
#{max,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="min != null"> |
|||
#{min,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="description != null"> |
|||
#{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</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.QuestionStandardExample" resultType="java.lang.Long"> |
|||
select count(*) from t_question_standard |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_question_standard |
|||
<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.max != null"> |
|||
max = #{record.max,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.min != null"> |
|||
min = #{record.min,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.description != null"> |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</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_standard |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
max = #{record.max,jdbcType=INTEGER}, |
|||
min = #{record.min,jdbcType=INTEGER}, |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
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.QuestionStandard"> |
|||
update t_question_standard |
|||
<set> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="max != null"> |
|||
max = #{max,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="min != null"> |
|||
min = #{min,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="description != null"> |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</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.QuestionStandard"> |
|||
update t_question_standard |
|||
set question_id = #{questionId,jdbcType=BIGINT}, |
|||
max = #{max,jdbcType=INTEGER}, |
|||
min = #{min,jdbcType=INTEGER}, |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
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,323 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tcm.persist.mapper.ReportCodeMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tcm.bean.po.ReportCode"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="code" jdbcType="VARCHAR" property="code" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="parent_id" jdbcType="VARCHAR" property="parentId" /> |
|||
<result column="must" jdbcType="TINYINT" property="must" /> |
|||
<result column="level" jdbcType="TINYINT" property="level" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<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, name, parent_id, must, level, sort, remark, operator, created_at, updated_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tcm.bean.po.ReportCodeExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_report_code |
|||
<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_report_code |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_report_code |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tcm.bean.po.ReportCodeExample"> |
|||
delete from t_report_code |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tcm.bean.po.ReportCode"> |
|||
insert into t_report_code (id, code, name, |
|||
parent_id, must, level, |
|||
sort, remark, operator, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, |
|||
#{parentId,jdbcType=VARCHAR}, #{must,jdbcType=TINYINT}, #{level,jdbcType=TINYINT}, |
|||
#{sort,jdbcType=INTEGER}, #{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.ReportCode"> |
|||
insert into t_report_code |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="code != null"> |
|||
code, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="parentId != null"> |
|||
parent_id, |
|||
</if> |
|||
<if test="must != null"> |
|||
must, |
|||
</if> |
|||
<if test="level != null"> |
|||
level, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</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="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="parentId != null"> |
|||
#{parentId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="must != null"> |
|||
#{must,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="level != null"> |
|||
#{level,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</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.ReportCodeExample" resultType="java.lang.Long"> |
|||
select count(*) from t_report_code |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_report_code |
|||
<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.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.parentId != null"> |
|||
parent_id = #{record.parentId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.must != null"> |
|||
must = #{record.must,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.level != null"> |
|||
level = #{record.level,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</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_report_code |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
parent_id = #{record.parentId,jdbcType=VARCHAR}, |
|||
must = #{record.must,jdbcType=TINYINT}, |
|||
level = #{record.level,jdbcType=TINYINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
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.ReportCode"> |
|||
update t_report_code |
|||
<set> |
|||
<if test="code != null"> |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="parentId != null"> |
|||
parent_id = #{parentId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="must != null"> |
|||
must = #{must,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="level != null"> |
|||
level = #{level,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</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.ReportCode"> |
|||
update t_report_code |
|||
set code = #{code,jdbcType=VARCHAR}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
parent_id = #{parentId,jdbcType=VARCHAR}, |
|||
must = #{must,jdbcType=TINYINT}, |
|||
level = #{level,jdbcType=TINYINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
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