From 294d5de1a6ce2ed0c36ae7b702c1b0220b8ebee6 Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Thu, 28 Jan 2021 09:33:46 +0800 Subject: [PATCH] =?UTF-8?q?20200128=E7=94=9F=E6=88=90=E5=AE=9E=E4=BD=93?= =?UTF-8?q?=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ccsens/tcm/bean/po/BiologicalSamples.java | 106 ++ .../tcm/bean/po/BiologicalSamplesExample.java | 681 +++++++++++ .../ccsens/tcm/bean/po/ConferenceRecords.java | 128 +++ .../tcm/bean/po/ConferenceRecordsExample.java | 831 ++++++++++++++ .../bean/po/ConferenceRecordsWithBLOBs.java | 39 + .../com/ccsens/tcm/bean/po/Inpatient.java | 106 ++ .../ccsens/tcm/bean/po/InpatientExample.java | 701 ++++++++++++ .../tcm/bean/po/PatientInformation.java | 117 ++ .../bean/po/PatientInformationExample.java | 751 ++++++++++++ .../com/ccsens/tcm/bean/po/PatientRecord.java | 117 ++ .../tcm/bean/po/PatientRecordExample.java | 751 ++++++++++++ .../java/com/ccsens/tcm/bean/po/Question.java | 161 +++ .../ccsens/tcm/bean/po/QuestionExample.java | 1011 +++++++++++++++++ .../ccsens/tcm/bean/po/QuestionOption.java | 128 +++ .../tcm/bean/po/QuestionOptionExample.java | 821 +++++++++++++ .../ccsens/tcm/bean/po/QuestionStandard.java | 128 +++ .../tcm/bean/po/QuestionStandardExample.java | 811 +++++++++++++ .../com/ccsens/tcm/bean/po/ReportCode.java | 150 +++ .../ccsens/tcm/bean/po/ReportCodeExample.java | 961 ++++++++++++++++ .../mapper/BiologicalSamplesMapper.java | 30 + .../mapper/ConferenceRecordsMapper.java | 37 + .../tcm/persist/mapper/InpatientMapper.java | 30 + .../mapper/PatientInformationMapper.java | 30 + .../persist/mapper/PatientRecordMapper.java | 30 + .../tcm/persist/mapper/QuestionMapper.java | 30 + .../persist/mapper/QuestionOptionMapper.java | 30 + .../mapper/QuestionStandardMapper.java | 30 + .../tcm/persist/mapper/ReportCodeMapper.java | 30 + .../mapper_raw/BiologicalSamplesMapper.xml | 259 +++++ .../mapper_raw/ConferenceRecordsMapper.xml | 375 ++++++ .../resources/mapper_raw/InpatientMapper.xml | 258 +++++ .../mapper_raw/PatientInformationMapper.xml | 276 +++++ .../mapper_raw/PatientRecordMapper.xml | 276 +++++ .../resources/mapper_raw/QuestionMapper.xml | 338 ++++++ .../mapper_raw/QuestionOptionMapper.xml | 291 +++++ .../mapper_raw/QuestionStandardMapper.xml | 290 +++++ .../resources/mapper_raw/ReportCodeMapper.xml | 323 ++++++ 37 files changed, 11462 insertions(+) create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamples.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamplesExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecords.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsWithBLOBs.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/Inpatient.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/InpatientExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformation.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformationExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecord.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecordExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/Question.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOption.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOptionExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandard.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandardExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCode.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCodeExample.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/BiologicalSamplesMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/ConferenceRecordsMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/InpatientMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientInformationMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientRecordMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionOptionMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionStandardMapper.java create mode 100644 tcm/src/main/java/com/ccsens/tcm/persist/mapper/ReportCodeMapper.java create mode 100644 tcm/src/main/resources/mapper_raw/BiologicalSamplesMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/ConferenceRecordsMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/InpatientMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/PatientInformationMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/PatientRecordMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/QuestionMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/QuestionOptionMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/QuestionStandardMapper.xml create mode 100644 tcm/src/main/resources/mapper_raw/ReportCodeMapper.xml diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamples.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamples.java new file mode 100644 index 00000000..1e36ad0d --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamples.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamplesExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamplesExample.java new file mode 100644 index 00000000..591f2da5 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/BiologicalSamplesExample.java @@ -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 oredCriteria; + + public BiologicalSamplesExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("sample_type in", values, "sampleType"); + return (Criteria) this; + } + + public Criteria andSampleTypeNotIn(List 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 values) { + addCriterion("patient_information_id in", values, "patientInformationId"); + return (Criteria) this; + } + + public Criteria andPatientInformationIdNotIn(List 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 values) { + addCriterion("collect_time in", values, "collectTime"); + return (Criteria) this; + } + + public Criteria andCollectTimeNotIn(List 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("update_at in", values, "updateAt"); + return (Criteria) this; + } + + public Criteria andUpdateAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecords.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecords.java new file mode 100644 index 00000000..d023daab --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecords.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsExample.java new file mode 100644 index 00000000..c0f390af --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsExample.java @@ -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 oredCriteria; + + public ConferenceRecordsExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List 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 values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List 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 values) { + addCriterion("place in", values, "place"); + return (Criteria) this; + } + + public Criteria andPlaceNotIn(List 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 values) { + addCriterion("host in", values, "host"); + return (Criteria) this; + } + + public Criteria andHostNotIn(List 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 values) { + addCriterion("participants in", values, "participants"); + return (Criteria) this; + } + + public Criteria andParticipantsNotIn(List 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("update_at in", values, "updateAt"); + return (Criteria) this; + } + + public Criteria andUpdateAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsWithBLOBs.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsWithBLOBs.java new file mode 100644 index 00000000..69a18558 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/ConferenceRecordsWithBLOBs.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/Inpatient.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/Inpatient.java new file mode 100644 index 00000000..8460068e --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/Inpatient.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/InpatientExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/InpatientExample.java new file mode 100644 index 00000000..fece44fd --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/InpatientExample.java @@ -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 oredCriteria; + + public InpatientExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("remarks in", values, "remarks"); + return (Criteria) this; + } + + public Criteria andRemarksNotIn(List 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 values) { + addCriterion("collection_num in", values, "collectionNum"); + return (Criteria) this; + } + + public Criteria andCollectionNumNotIn(List 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("update_at in", values, "updateAt"); + return (Criteria) this; + } + + public Criteria andUpdateAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformation.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformation.java new file mode 100644 index 00000000..1e94c2b8 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformation.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformationExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformationExample.java new file mode 100644 index 00000000..380dcb1c --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientInformationExample.java @@ -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 oredCriteria; + + public PatientInformationExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("hospitalization in", values, "hospitalization"); + return (Criteria) this; + } + + public Criteria andHospitalizationNotIn(List 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 values) { + addCriterion("inpatient_id in", values, "inpatientId"); + return (Criteria) this; + } + + public Criteria andInpatientIdNotIn(List 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 values) { + addCriterion("input_status in", values, "inputStatus"); + return (Criteria) this; + } + + public Criteria andInputStatusNotIn(List 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 values) { + addCriterion("hospital_id in", values, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdNotIn(List 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("update_at in", values, "updateAt"); + return (Criteria) this; + } + + public Criteria andUpdateAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecord.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecord.java new file mode 100644 index 00000000..ebe929d0 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecord.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecordExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecordExample.java new file mode 100644 index 00000000..b72205ca --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/PatientRecordExample.java @@ -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 oredCriteria; + + public PatientRecordExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("patient_id in", values, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdNotIn(List 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 values) { + addCriterion("test_questions_id in", values, "testQuestionsId"); + return (Criteria) this; + } + + public Criteria andTestQuestionsIdNotIn(List 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 values) { + addCriterion("contents in", values, "contents"); + return (Criteria) this; + } + + public Criteria andContentsNotIn(List 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 values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List 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 values) { + addCriterion("collect_time in", values, "collectTime"); + return (Criteria) this; + } + + public Criteria andCollectTimeNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("update_at in", values, "updateAt"); + return (Criteria) this; + } + + public Criteria andUpdateAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/Question.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/Question.java new file mode 100644 index 00000000..cd033679 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/Question.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionExample.java new file mode 100644 index 00000000..5908f930 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionExample.java @@ -0,0 +1,1011 @@ +package com.ccsens.tcm.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class QuestionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public QuestionExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 andQuestionIsNull() { + addCriterion("question is null"); + return (Criteria) this; + } + + public Criteria andQuestionIsNotNull() { + addCriterion("question is not null"); + return (Criteria) this; + } + + public Criteria andQuestionEqualTo(String value) { + addCriterion("question =", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotEqualTo(String value) { + addCriterion("question <>", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionGreaterThan(String value) { + addCriterion("question >", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionGreaterThanOrEqualTo(String value) { + addCriterion("question >=", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionLessThan(String value) { + addCriterion("question <", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionLessThanOrEqualTo(String value) { + addCriterion("question <=", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionLike(String value) { + addCriterion("question like", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotLike(String value) { + addCriterion("question not like", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionIn(List values) { + addCriterion("question in", values, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotIn(List values) { + addCriterion("question not in", values, "question"); + return (Criteria) this; + } + + public Criteria andQuestionBetween(String value1, String value2) { + addCriterion("question between", value1, value2, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotBetween(String value1, String value2) { + addCriterion("question not between", value1, value2, "question"); + return (Criteria) this; + } + + public Criteria andCodeIdIsNull() { + addCriterion("code_id is null"); + return (Criteria) this; + } + + public Criteria andCodeIdIsNotNull() { + addCriterion("code_id is not null"); + return (Criteria) this; + } + + public Criteria andCodeIdEqualTo(Long value) { + addCriterion("code_id =", value, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdNotEqualTo(Long value) { + addCriterion("code_id <>", value, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdGreaterThan(Long value) { + addCriterion("code_id >", value, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdGreaterThanOrEqualTo(Long value) { + addCriterion("code_id >=", value, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdLessThan(Long value) { + addCriterion("code_id <", value, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdLessThanOrEqualTo(Long value) { + addCriterion("code_id <=", value, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdIn(List values) { + addCriterion("code_id in", values, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdNotIn(List values) { + addCriterion("code_id not in", values, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdBetween(Long value1, Long value2) { + addCriterion("code_id between", value1, value2, "codeId"); + return (Criteria) this; + } + + public Criteria andCodeIdNotBetween(Long value1, Long value2) { + addCriterion("code_id not between", value1, value2, "codeId"); + 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 andUnitsIsNull() { + addCriterion("units is null"); + return (Criteria) this; + } + + public Criteria andUnitsIsNotNull() { + addCriterion("units is not null"); + return (Criteria) this; + } + + public Criteria andUnitsEqualTo(String value) { + addCriterion("units =", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsNotEqualTo(String value) { + addCriterion("units <>", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsGreaterThan(String value) { + addCriterion("units >", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsGreaterThanOrEqualTo(String value) { + addCriterion("units >=", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsLessThan(String value) { + addCriterion("units <", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsLessThanOrEqualTo(String value) { + addCriterion("units <=", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsLike(String value) { + addCriterion("units like", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsNotLike(String value) { + addCriterion("units not like", value, "units"); + return (Criteria) this; + } + + public Criteria andUnitsIn(List values) { + addCriterion("units in", values, "units"); + return (Criteria) this; + } + + public Criteria andUnitsNotIn(List values) { + addCriterion("units not in", values, "units"); + return (Criteria) this; + } + + public Criteria andUnitsBetween(String value1, String value2) { + addCriterion("units between", value1, value2, "units"); + return (Criteria) this; + } + + public Criteria andUnitsNotBetween(String value1, String value2) { + addCriterion("units not between", value1, value2, "units"); + return (Criteria) this; + } + + public Criteria andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(Byte value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(Byte value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(Byte value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(Byte value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(Byte value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeBetween(Byte value1, Byte value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(Byte value1, Byte value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdIsNull() { + addCriterion("relevance_option_id is null"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdIsNotNull() { + addCriterion("relevance_option_id is not null"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdEqualTo(Long value) { + addCriterion("relevance_option_id =", value, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdNotEqualTo(Long value) { + addCriterion("relevance_option_id <>", value, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdGreaterThan(Long value) { + addCriterion("relevance_option_id >", value, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdGreaterThanOrEqualTo(Long value) { + addCriterion("relevance_option_id >=", value, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdLessThan(Long value) { + addCriterion("relevance_option_id <", value, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdLessThanOrEqualTo(Long value) { + addCriterion("relevance_option_id <=", value, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdIn(List values) { + addCriterion("relevance_option_id in", values, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdNotIn(List values) { + addCriterion("relevance_option_id not in", values, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdBetween(Long value1, Long value2) { + addCriterion("relevance_option_id between", value1, value2, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andRelevanceOptionIdNotBetween(Long value1, Long value2) { + addCriterion("relevance_option_id not between", value1, value2, "relevanceOptionId"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaIsNull() { + addCriterion("search_criteria is null"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaIsNotNull() { + addCriterion("search_criteria is not null"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaEqualTo(Byte value) { + addCriterion("search_criteria =", value, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaNotEqualTo(Byte value) { + addCriterion("search_criteria <>", value, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaGreaterThan(Byte value) { + addCriterion("search_criteria >", value, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaGreaterThanOrEqualTo(Byte value) { + addCriterion("search_criteria >=", value, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaLessThan(Byte value) { + addCriterion("search_criteria <", value, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaLessThanOrEqualTo(Byte value) { + addCriterion("search_criteria <=", value, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaIn(List values) { + addCriterion("search_criteria in", values, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaNotIn(List values) { + addCriterion("search_criteria not in", values, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaBetween(Byte value1, Byte value2) { + addCriterion("search_criteria between", value1, value2, "searchCriteria"); + return (Criteria) this; + } + + public Criteria andSearchCriteriaNotBetween(Byte value1, Byte value2) { + addCriterion("search_criteria not between", value1, value2, "searchCriteria"); + 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 values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOption.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOption.java new file mode 100644 index 00000000..0ec235d7 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOption.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOptionExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOptionExample.java new file mode 100644 index 00000000..ae9ac458 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionOptionExample.java @@ -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 oredCriteria; + + public QuestionOptionExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 values) { + addCriterion("show_value in", values, "showValue"); + return (Criteria) this; + } + + public Criteria andShowValueNotIn(List 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 values) { + addCriterion("submit_value in", values, "submitValue"); + return (Criteria) this; + } + + public Criteria andSubmitValueNotIn(List 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 values) { + addCriterion("after_operation in", values, "afterOperation"); + return (Criteria) this; + } + + public Criteria andAfterOperationNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandard.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandard.java new file mode 100644 index 00000000..78cea6ee --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandard.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandardExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandardExample.java new file mode 100644 index 00000000..c217dcdc --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/QuestionStandardExample.java @@ -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 oredCriteria; + + public QuestionStandardExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("question_id in", values, "questionId"); + return (Criteria) this; + } + + public Criteria andQuestionIdNotIn(List 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 values) { + addCriterion("max in", values, "max"); + return (Criteria) this; + } + + public Criteria andMaxNotIn(List 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 values) { + addCriterion("min in", values, "min"); + return (Criteria) this; + } + + public Criteria andMinNotIn(List 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 values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCode.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCode.java new file mode 100644 index 00000000..f2ce8459 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCode.java @@ -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(); + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCodeExample.java b/tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCodeExample.java new file mode 100644 index 00000000..d17bb563 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/bean/po/ReportCodeExample.java @@ -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 oredCriteria; + + public ReportCodeExample() { + oredCriteria = new ArrayList(); + } + + 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List 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 values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List 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 values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List 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 values) { + addCriterion("must in", values, "must"); + return (Criteria) this; + } + + public Criteria andMustNotIn(List 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 values) { + addCriterion("level in", values, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotIn(List 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 values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List 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 values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/BiologicalSamplesMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/BiologicalSamplesMapper.java new file mode 100644 index 00000000..497ac6e2 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/BiologicalSamplesMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/ConferenceRecordsMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/ConferenceRecordsMapper.java new file mode 100644 index 00000000..19f83e6e --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/ConferenceRecordsMapper.java @@ -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 selectByExampleWithBLOBs(ConferenceRecordsExample example); + + List 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/InpatientMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/InpatientMapper.java new file mode 100644 index 00000000..ed7697b0 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/InpatientMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientInformationMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientInformationMapper.java new file mode 100644 index 00000000..049a3944 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientInformationMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientRecordMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientRecordMapper.java new file mode 100644 index 00000000..b440ffb7 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/PatientRecordMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionMapper.java new file mode 100644 index 00000000..c0427e61 --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionOptionMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionOptionMapper.java new file mode 100644 index 00000000..ed4aec8c --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionOptionMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionStandardMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionStandardMapper.java new file mode 100644 index 00000000..af83b62f --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/QuestionStandardMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/java/com/ccsens/tcm/persist/mapper/ReportCodeMapper.java b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/ReportCodeMapper.java new file mode 100644 index 00000000..616925cd --- /dev/null +++ b/tcm/src/main/java/com/ccsens/tcm/persist/mapper/ReportCodeMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/BiologicalSamplesMapper.xml b/tcm/src/main/resources/mapper_raw/BiologicalSamplesMapper.xml new file mode 100644 index 00000000..7d05b3f3 --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/BiologicalSamplesMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, sample_type, patient_information_id, collect_time, user_id, created_at, update_at, + rec_status + + + + + delete from t_biological_samples + where id = #{id,jdbcType=BIGINT} + + + delete from t_biological_samples + + + + + + 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 into t_biological_samples + + + id, + + + sample_type, + + + patient_information_id, + + + collect_time, + + + user_id, + + + created_at, + + + update_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{sampleType,jdbcType=TINYINT}, + + + #{patientInformationId,jdbcType=BIGINT}, + + + #{collectTime,jdbcType=INTEGER}, + + + #{userId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updateAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_biological_samples + + + 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}, + + + + + + + + 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} + + + + + + update t_biological_samples + + + 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/ConferenceRecordsMapper.xml b/tcm/src/main/resources/mapper_raw/ConferenceRecordsMapper.xml new file mode 100644 index 00000000..7c34c190 --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/ConferenceRecordsMapper.xml @@ -0,0 +1,375 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, start_time, end_time, place, host, participants, user_id, created_at, update_at, + rec_status + + + discussion_content, meeting_minutes + + + + + + delete from t_conference_records + where id = #{id,jdbcType=BIGINT} + + + delete from t_conference_records + + + + + + 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 into t_conference_records + + + id, + + + start_time, + + + end_time, + + + place, + + + host, + + + participants, + + + user_id, + + + created_at, + + + update_at, + + + rec_status, + + + discussion_content, + + + meeting_minutes, + + + + + #{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}, + + + + + + update t_conference_records + + + 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}, + + + + + + + + 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} + + + + + + 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} + + + + + + update t_conference_records + + + 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 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/InpatientMapper.xml b/tcm/src/main/resources/mapper_raw/InpatientMapper.xml new file mode 100644 index 00000000..5fb81f59 --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/InpatientMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, remarks, collection_num, user_id, created_at, update_at, rec_status + + + + + delete from t_inpatient + where id = #{id,jdbcType=BIGINT} + + + delete from t_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 into t_inpatient + + + id, + + + name, + + + remarks, + + + collection_num, + + + user_id, + + + created_at, + + + update_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{remarks,jdbcType=VARCHAR}, + + + #{collectionNum,jdbcType=INTEGER}, + + + #{userId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updateAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_inpatient + + + 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}, + + + + + + + + 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} + + + + + + update t_inpatient + + + 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/PatientInformationMapper.xml b/tcm/src/main/resources/mapper_raw/PatientInformationMapper.xml new file mode 100644 index 00000000..7a804540 --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/PatientInformationMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, hospitalization, inpatient_id, input_status, hospital_id, user_id, created_at, + update_at, rec_status + + + + + delete from t_patient_information + where id = #{id,jdbcType=BIGINT} + + + delete from t_patient_information + + + + + + 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 into t_patient_information + + + id, + + + hospitalization, + + + inpatient_id, + + + input_status, + + + hospital_id, + + + user_id, + + + created_at, + + + update_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_patient_information + + + 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}, + + + + + + + + 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} + + + + + + update t_patient_information + + + 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/PatientRecordMapper.xml b/tcm/src/main/resources/mapper_raw/PatientRecordMapper.xml new file mode 100644 index 00000000..047d1a87 --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/PatientRecordMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, patient_id, test_questions_id, contents, user_id, collect_time, created_at, update_at, + rec_status + + + + + delete from t_patient_record + where id = #{id,jdbcType=BIGINT} + + + delete from t_patient_record + + + + + + 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 into t_patient_record + + + id, + + + patient_id, + + + test_questions_id, + + + contents, + + + user_id, + + + collect_time, + + + created_at, + + + update_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_patient_record + + + 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}, + + + + + + + + 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} + + + + + + update t_patient_record + + + 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/QuestionMapper.xml b/tcm/src/main/resources/mapper_raw/QuestionMapper.xml new file mode 100644 index 00000000..6c24c88c --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/QuestionMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, question, code_id, sort, units, type, relevance_option_id, search_criteria, remark, + operator, created_at, updated_at, rec_status + + + + + delete from t_question + where id = #{id,jdbcType=BIGINT} + + + delete from t_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 into t_question + + + id, + + + question, + + + code_id, + + + sort, + + + units, + + + type, + + + relevance_option_id, + + + search_criteria, + + + remark, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_question + + + 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}, + + + + + + + + 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} + + + + + + update t_question + + + 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/QuestionOptionMapper.xml b/tcm/src/main/resources/mapper_raw/QuestionOptionMapper.xml new file mode 100644 index 00000000..b437445a --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/QuestionOptionMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, question_id, sort, show_value, submit_value, after_operation, operator, created_at, + updated_at, rec_status + + + + + delete from t_question_option + where id = #{id,jdbcType=BIGINT} + + + delete from t_question_option + + + + + + 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 into t_question_option + + + id, + + + question_id, + + + sort, + + + show_value, + + + submit_value, + + + after_operation, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_question_option + + + 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}, + + + + + + + + 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} + + + + + + update t_question_option + + + 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/QuestionStandardMapper.xml b/tcm/src/main/resources/mapper_raw/QuestionStandardMapper.xml new file mode 100644 index 00000000..9a773433 --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/QuestionStandardMapper.xml @@ -0,0 +1,290 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, question_id, max, min, description, sort, operator, created_at, updated_at, rec_status + + + + + delete from t_question_standard + where id = #{id,jdbcType=BIGINT} + + + delete from t_question_standard + + + + + + 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 into t_question_standard + + + id, + + + question_id, + + + max, + + + min, + + + description, + + + sort, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_question_standard + + + 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}, + + + + + + + + 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} + + + + + + update t_question_standard + + + 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 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} + + \ No newline at end of file diff --git a/tcm/src/main/resources/mapper_raw/ReportCodeMapper.xml b/tcm/src/main/resources/mapper_raw/ReportCodeMapper.xml new file mode 100644 index 00000000..5310c71d --- /dev/null +++ b/tcm/src/main/resources/mapper_raw/ReportCodeMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, code, name, parent_id, must, level, sort, remark, operator, created_at, updated_at, + rec_status + + + + + delete from t_report_code + where id = #{id,jdbcType=BIGINT} + + + delete from t_report_code + + + + + + 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 into t_report_code + + + id, + + + code, + + + name, + + + parent_id, + + + must, + + + level, + + + sort, + + + remark, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_report_code + + + 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}, + + + + + + + + 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} + + + + + + update t_report_code + + + 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 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} + + \ No newline at end of file