48 changed files with 19701 additions and 6 deletions
@ -0,0 +1,61 @@ |
|||
# 数据源配置 |
|||
spring: |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
driverClassName: com.mysql.cj.jdbc.Driver |
|||
druid: |
|||
# 主库数据源 |
|||
master: |
|||
url: jdbc:mysql://localhost:3306/acupuncture?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 |
|||
username: root |
|||
password: q7510327 |
|||
# 从库数据源 |
|||
slave: |
|||
# 从数据源开关/默认关闭 |
|||
enabled: false |
|||
url: |
|||
username: |
|||
password: |
|||
# 初始连接数 |
|||
initialSize: 5 |
|||
# 最小连接池数量 |
|||
minIdle: 10 |
|||
# 最大连接池数量 |
|||
maxActive: 20 |
|||
# 配置获取连接等待超时的时间 |
|||
maxWait: 60000 |
|||
# 配置连接超时时间 |
|||
connectTimeout: 30000 |
|||
# 配置网络超时时间 |
|||
socketTimeout: 60000 |
|||
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒 |
|||
timeBetweenEvictionRunsMillis: 60000 |
|||
# 配置一个连接在池中最小生存的时间,单位是毫秒 |
|||
minEvictableIdleTimeMillis: 300000 |
|||
# 配置一个连接在池中最大生存的时间,单位是毫秒 |
|||
maxEvictableIdleTimeMillis: 900000 |
|||
# 配置检测连接是否有效 |
|||
validationQuery: SELECT 1 FROM DUAL |
|||
testWhileIdle: true |
|||
testOnBorrow: false |
|||
testOnReturn: false |
|||
webStatFilter: |
|||
enabled: true |
|||
statViewServlet: |
|||
enabled: true |
|||
# 设置白名单,不填则允许所有访问 |
|||
allow: |
|||
url-pattern: /druid/* |
|||
# 控制台管理用户名和密码 |
|||
login-username: acupuncture |
|||
login-password: 123456 |
|||
filter: |
|||
stat: |
|||
enabled: true |
|||
# 慢SQL记录 |
|||
log-slow-sql: true |
|||
slow-sql-millis: 1000 |
|||
merge-sql: true |
|||
wall: |
|||
config: |
|||
multi-statement-allow: true |
@ -0,0 +1,76 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE generatorConfiguration |
|||
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> |
|||
|
|||
<generatorConfiguration> |
|||
<context id="MySQL" targetRuntime="MyBatis3"> |
|||
<!-- 为生成的Java模型创建一个toString方法 --> |
|||
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"/> |
|||
|
|||
<!-- 自定义的序列化 类文件 插件 --> |
|||
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"/> |
|||
|
|||
<!-- 重新生成xml文件,而不是追加 --> |
|||
<plugin type="org.mybatis.generator.plugins.UnmergeableXmlMappersPlugin"/> |
|||
|
|||
<commentGenerator> |
|||
<!-- 是否去除自动生成的注释 true:是 : false:否 --> |
|||
<property name="suppressAllComments" value="true"/> |
|||
</commentGenerator> |
|||
|
|||
<jdbcConnection driverClass="com.mysql.jdbc.Driver" |
|||
connectionURL="jdbc:mysql://localhost:3306/acupuncture?useUnicode=true&characterEncoding=UTF-8&serverTimezone=GMT%2B8&tinyInt1isBit=false" |
|||
userId="root" |
|||
password="q7510327"> |
|||
<!--仅仅查询当前库的表,不查询其他库--> |
|||
<property name="nullCatalogMeansCurrent" value="true"/> |
|||
</jdbcConnection> |
|||
|
|||
<!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer,为 true时把JDBC DECIMAL 和 |
|||
NUMERIC 类型解析为java.math.BigDecimal --> |
|||
<javaTypeResolver> |
|||
<property name="forceBigDecimals" value="true"/> |
|||
</javaTypeResolver> |
|||
|
|||
<!-- targetProject:生成PO类的位置 --> |
|||
<javaModelGenerator targetPackage="com.acupuncture.system.domain.po" |
|||
targetProject="..\acupuncture-system\src\main\java"> |
|||
<!-- enableSubPackages:是否让schema作为包的后缀 --> |
|||
<property name="enableSubPackages" value="false"/> |
|||
<!-- 从数据库返回的值被清理前后的空格 --> |
|||
<property name="trimStrings" value="true"/> |
|||
</javaModelGenerator> |
|||
|
|||
<!-- targetProject:mapper映射文件生成的位置 --> |
|||
<sqlMapGenerator targetPackage="mapper.system" |
|||
targetProject="..\acupuncture-system\src\main\resources"> |
|||
<!-- enableSubPackages:是否让schema作为包的后缀 --> |
|||
<property name="enableSubPackages" value="false"/> |
|||
</sqlMapGenerator> |
|||
|
|||
<!-- targetPackage:mapper接口生成的位置 --> |
|||
<javaClientGenerator type="XMLMAPPER" |
|||
targetPackage="com.acupuncture.system.persist.mapper" |
|||
targetProject="..\acupuncture-system\src\main\java"> |
|||
<!-- enableSubPackages:是否让schema作为包的后缀 --> |
|||
<property name="enableSubPackages" value="false"/> |
|||
</javaClientGenerator> |
|||
|
|||
<table tableName="dms_tenant" domainObjectName="DmsTenant" enableDeleteByExample="false"/> |
|||
<table tableName="dms_user" domainObjectName="DmsUser" enableDeleteByExample="false"/> |
|||
<table tableName="fms_followup_queue" domainObjectName="FmsFollowupQueue" enableDeleteByExample="false"/> |
|||
<table tableName="fms_followup_task" domainObjectName="FmsFollowupTask" enableDeleteByExample="false"/> |
|||
<table tableName="fms_patient_queue_relation" domainObjectName="FmsPatientQueueRelation" enableDeleteByExample="false"/> |
|||
<table tableName="pms_patient" domainObjectName="Pms_patient" enableDeleteByExample="false"/> |
|||
<table tableName="pms_treatment" domainObjectName="PmsTreatment" enableDeleteByExample="false"/> |
|||
<table tableName="pms_treatment_record" domainObjectName="PmsTreatmentRecord" enableDeleteByExample="false"/> |
|||
<table tableName="rms_report_type" domainObjectName="RmsReportType" enableDeleteByExample="false"/> |
|||
<table tableName="ums_data_source" domainObjectName="UmsDataSource" enableDeleteByExample="false"/> |
|||
|
|||
<!-- 有些表的字段需要指定java类型 |
|||
<table schema="" tableName=""> |
|||
<columnOverride column="" javaType="" /> |
|||
</table> --> |
|||
</context> |
|||
</generatorConfiguration> |
@ -0,0 +1,161 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class DmsTenant implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private String name; |
|||
|
|||
private String leader; |
|||
|
|||
private String contactPhone; |
|||
|
|||
private Long dataSourceId; |
|||
|
|||
private String status; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
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 getLeader() { |
|||
return leader; |
|||
} |
|||
|
|||
public void setLeader(String leader) { |
|||
this.leader = leader == null ? null : leader.trim(); |
|||
} |
|||
|
|||
public String getContactPhone() { |
|||
return contactPhone; |
|||
} |
|||
|
|||
public void setContactPhone(String contactPhone) { |
|||
this.contactPhone = contactPhone == null ? null : contactPhone.trim(); |
|||
} |
|||
|
|||
public Long getDataSourceId() { |
|||
return dataSourceId; |
|||
} |
|||
|
|||
public void setDataSourceId(Long dataSourceId) { |
|||
this.dataSourceId = dataSourceId; |
|||
} |
|||
|
|||
public String getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(String status) { |
|||
this.status = status == null ? null : status.trim(); |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", leader=").append(leader); |
|||
sb.append(", contactPhone=").append(contactPhone); |
|||
sb.append(", dataSourceId=").append(dataSourceId); |
|||
sb.append(", status=").append(status); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,183 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class DmsUser implements Serializable { |
|||
private Integer id; |
|||
|
|||
private Long tenantId; |
|||
|
|||
private String userName; |
|||
|
|||
private String password; |
|||
|
|||
private String nickName; |
|||
|
|||
private String email; |
|||
|
|||
private String phonenumber; |
|||
|
|||
private String sex; |
|||
|
|||
private String status; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Integer getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Integer id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getTenantId() { |
|||
return tenantId; |
|||
} |
|||
|
|||
public void setTenantId(Long tenantId) { |
|||
this.tenantId = tenantId; |
|||
} |
|||
|
|||
public String getUserName() { |
|||
return userName; |
|||
} |
|||
|
|||
public void setUserName(String userName) { |
|||
this.userName = userName == null ? null : userName.trim(); |
|||
} |
|||
|
|||
public String getPassword() { |
|||
return password; |
|||
} |
|||
|
|||
public void setPassword(String password) { |
|||
this.password = password == null ? null : password.trim(); |
|||
} |
|||
|
|||
public String getNickName() { |
|||
return nickName; |
|||
} |
|||
|
|||
public void setNickName(String nickName) { |
|||
this.nickName = nickName == null ? null : nickName.trim(); |
|||
} |
|||
|
|||
public String getEmail() { |
|||
return email; |
|||
} |
|||
|
|||
public void setEmail(String email) { |
|||
this.email = email == null ? null : email.trim(); |
|||
} |
|||
|
|||
public String getPhonenumber() { |
|||
return phonenumber; |
|||
} |
|||
|
|||
public void setPhonenumber(String phonenumber) { |
|||
this.phonenumber = phonenumber == null ? null : phonenumber.trim(); |
|||
} |
|||
|
|||
public String getSex() { |
|||
return sex; |
|||
} |
|||
|
|||
public void setSex(String sex) { |
|||
this.sex = sex == null ? null : sex.trim(); |
|||
} |
|||
|
|||
public String getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(String status) { |
|||
this.status = status == null ? null : status.trim(); |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", tenantId=").append(tenantId); |
|||
sb.append(", userName=").append(userName); |
|||
sb.append(", password=").append(password); |
|||
sb.append(", nickName=").append(nickName); |
|||
sb.append(", email=").append(email); |
|||
sb.append(", phonenumber=").append(phonenumber); |
|||
sb.append(", sex=").append(sex); |
|||
sb.append(", status=").append(status); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,194 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FmsFollowupQueue implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private Byte followupMethod; |
|||
|
|||
private Byte followupType; |
|||
|
|||
private String frequency; |
|||
|
|||
private Integer followupMonth; |
|||
|
|||
private String personInCharge; |
|||
|
|||
private String personInChargeUsername; |
|||
|
|||
private Byte status; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private Long tenantId; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
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 Byte getFollowupMethod() { |
|||
return followupMethod; |
|||
} |
|||
|
|||
public void setFollowupMethod(Byte followupMethod) { |
|||
this.followupMethod = followupMethod; |
|||
} |
|||
|
|||
public Byte getFollowupType() { |
|||
return followupType; |
|||
} |
|||
|
|||
public void setFollowupType(Byte followupType) { |
|||
this.followupType = followupType; |
|||
} |
|||
|
|||
public String getFrequency() { |
|||
return frequency; |
|||
} |
|||
|
|||
public void setFrequency(String frequency) { |
|||
this.frequency = frequency == null ? null : frequency.trim(); |
|||
} |
|||
|
|||
public Integer getFollowupMonth() { |
|||
return followupMonth; |
|||
} |
|||
|
|||
public void setFollowupMonth(Integer followupMonth) { |
|||
this.followupMonth = followupMonth; |
|||
} |
|||
|
|||
public String getPersonInCharge() { |
|||
return personInCharge; |
|||
} |
|||
|
|||
public void setPersonInCharge(String personInCharge) { |
|||
this.personInCharge = personInCharge == null ? null : personInCharge.trim(); |
|||
} |
|||
|
|||
public String getPersonInChargeUsername() { |
|||
return personInChargeUsername; |
|||
} |
|||
|
|||
public void setPersonInChargeUsername(String personInChargeUsername) { |
|||
this.personInChargeUsername = personInChargeUsername == null ? null : personInChargeUsername.trim(); |
|||
} |
|||
|
|||
public Byte getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(Byte status) { |
|||
this.status = status; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public Long getTenantId() { |
|||
return tenantId; |
|||
} |
|||
|
|||
public void setTenantId(Long tenantId) { |
|||
this.tenantId = tenantId; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", followupMethod=").append(followupMethod); |
|||
sb.append(", followupType=").append(followupType); |
|||
sb.append(", frequency=").append(frequency); |
|||
sb.append(", followupMonth=").append(followupMonth); |
|||
sb.append(", personInCharge=").append(personInCharge); |
|||
sb.append(", personInChargeUsername=").append(personInChargeUsername); |
|||
sb.append(", status=").append(status); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", tenantId=").append(tenantId); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,326 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FmsFollowupTask implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientId; |
|||
|
|||
private String name; |
|||
|
|||
private String pinyinFull; |
|||
|
|||
private String pinyinSimple; |
|||
|
|||
private Byte gender; |
|||
|
|||
private Integer age; |
|||
|
|||
private String ethnicity; |
|||
|
|||
private Integer educationYears; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte idCardType; |
|||
|
|||
private String idCard; |
|||
|
|||
private Long tenantId; |
|||
|
|||
private Long queueId; |
|||
|
|||
private Integer times; |
|||
|
|||
private Date startTime; |
|||
|
|||
private Date endTime; |
|||
|
|||
private Byte status; |
|||
|
|||
private String lostReason; |
|||
|
|||
private String followuper; |
|||
|
|||
private Date followupTime; |
|||
|
|||
private String followupText; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getPinyinFull() { |
|||
return pinyinFull; |
|||
} |
|||
|
|||
public void setPinyinFull(String pinyinFull) { |
|||
this.pinyinFull = pinyinFull == null ? null : pinyinFull.trim(); |
|||
} |
|||
|
|||
public String getPinyinSimple() { |
|||
return pinyinSimple; |
|||
} |
|||
|
|||
public void setPinyinSimple(String pinyinSimple) { |
|||
this.pinyinSimple = pinyinSimple == null ? null : pinyinSimple.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public Integer getAge() { |
|||
return age; |
|||
} |
|||
|
|||
public void setAge(Integer age) { |
|||
this.age = age; |
|||
} |
|||
|
|||
public String getEthnicity() { |
|||
return ethnicity; |
|||
} |
|||
|
|||
public void setEthnicity(String ethnicity) { |
|||
this.ethnicity = ethnicity == null ? null : ethnicity.trim(); |
|||
} |
|||
|
|||
public Integer getEducationYears() { |
|||
return educationYears; |
|||
} |
|||
|
|||
public void setEducationYears(Integer educationYears) { |
|||
this.educationYears = educationYears; |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getIdCardType() { |
|||
return idCardType; |
|||
} |
|||
|
|||
public void setIdCardType(Byte idCardType) { |
|||
this.idCardType = idCardType; |
|||
} |
|||
|
|||
public String getIdCard() { |
|||
return idCard; |
|||
} |
|||
|
|||
public void setIdCard(String idCard) { |
|||
this.idCard = idCard == null ? null : idCard.trim(); |
|||
} |
|||
|
|||
public Long getTenantId() { |
|||
return tenantId; |
|||
} |
|||
|
|||
public void setTenantId(Long tenantId) { |
|||
this.tenantId = tenantId; |
|||
} |
|||
|
|||
public Long getQueueId() { |
|||
return queueId; |
|||
} |
|||
|
|||
public void setQueueId(Long queueId) { |
|||
this.queueId = queueId; |
|||
} |
|||
|
|||
public Integer getTimes() { |
|||
return times; |
|||
} |
|||
|
|||
public void setTimes(Integer times) { |
|||
this.times = times; |
|||
} |
|||
|
|||
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 Byte getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(Byte status) { |
|||
this.status = status; |
|||
} |
|||
|
|||
public String getLostReason() { |
|||
return lostReason; |
|||
} |
|||
|
|||
public void setLostReason(String lostReason) { |
|||
this.lostReason = lostReason == null ? null : lostReason.trim(); |
|||
} |
|||
|
|||
public String getFollowuper() { |
|||
return followuper; |
|||
} |
|||
|
|||
public void setFollowuper(String followuper) { |
|||
this.followuper = followuper == null ? null : followuper.trim(); |
|||
} |
|||
|
|||
public Date getFollowupTime() { |
|||
return followupTime; |
|||
} |
|||
|
|||
public void setFollowupTime(Date followupTime) { |
|||
this.followupTime = followupTime; |
|||
} |
|||
|
|||
public String getFollowupText() { |
|||
return followupText; |
|||
} |
|||
|
|||
public void setFollowupText(String followupText) { |
|||
this.followupText = followupText == null ? null : followupText.trim(); |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", name=").append(name); |
|||
sb.append(", pinyinFull=").append(pinyinFull); |
|||
sb.append(", pinyinSimple=").append(pinyinSimple); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", age=").append(age); |
|||
sb.append(", ethnicity=").append(ethnicity); |
|||
sb.append(", educationYears=").append(educationYears); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", idCardType=").append(idCardType); |
|||
sb.append(", idCard=").append(idCard); |
|||
sb.append(", tenantId=").append(tenantId); |
|||
sb.append(", queueId=").append(queueId); |
|||
sb.append(", times=").append(times); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", status=").append(status); |
|||
sb.append(", lostReason=").append(lostReason); |
|||
sb.append(", followuper=").append(followuper); |
|||
sb.append(", followupTime=").append(followupTime); |
|||
sb.append(", followupText=").append(followupText); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,205 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FmsPatientQueueRelation extends FmsPatientQueueRelationKey implements Serializable { |
|||
private String name; |
|||
|
|||
private String pinyinFull; |
|||
|
|||
private String pinyinSimple; |
|||
|
|||
private Byte gender; |
|||
|
|||
private Date birthDate; |
|||
|
|||
private String ethnicity; |
|||
|
|||
private Integer educationYears; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte idCardType; |
|||
|
|||
private String idCard; |
|||
|
|||
private Long tenantId; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getPinyinFull() { |
|||
return pinyinFull; |
|||
} |
|||
|
|||
public void setPinyinFull(String pinyinFull) { |
|||
this.pinyinFull = pinyinFull == null ? null : pinyinFull.trim(); |
|||
} |
|||
|
|||
public String getPinyinSimple() { |
|||
return pinyinSimple; |
|||
} |
|||
|
|||
public void setPinyinSimple(String pinyinSimple) { |
|||
this.pinyinSimple = pinyinSimple == null ? null : pinyinSimple.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public Date getBirthDate() { |
|||
return birthDate; |
|||
} |
|||
|
|||
public void setBirthDate(Date birthDate) { |
|||
this.birthDate = birthDate; |
|||
} |
|||
|
|||
public String getEthnicity() { |
|||
return ethnicity; |
|||
} |
|||
|
|||
public void setEthnicity(String ethnicity) { |
|||
this.ethnicity = ethnicity == null ? null : ethnicity.trim(); |
|||
} |
|||
|
|||
public Integer getEducationYears() { |
|||
return educationYears; |
|||
} |
|||
|
|||
public void setEducationYears(Integer educationYears) { |
|||
this.educationYears = educationYears; |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getIdCardType() { |
|||
return idCardType; |
|||
} |
|||
|
|||
public void setIdCardType(Byte idCardType) { |
|||
this.idCardType = idCardType; |
|||
} |
|||
|
|||
public String getIdCard() { |
|||
return idCard; |
|||
} |
|||
|
|||
public void setIdCard(String idCard) { |
|||
this.idCard = idCard == null ? null : idCard.trim(); |
|||
} |
|||
|
|||
public Long getTenantId() { |
|||
return tenantId; |
|||
} |
|||
|
|||
public void setTenantId(Long tenantId) { |
|||
this.tenantId = tenantId; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", pinyinFull=").append(pinyinFull); |
|||
sb.append(", pinyinSimple=").append(pinyinSimple); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", birthDate=").append(birthDate); |
|||
sb.append(", ethnicity=").append(ethnicity); |
|||
sb.append(", educationYears=").append(educationYears); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", idCardType=").append(idCardType); |
|||
sb.append(", idCard=").append(idCard); |
|||
sb.append(", tenantId=").append(tenantId); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,39 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
|
|||
public class FmsPatientQueueRelationKey implements Serializable { |
|||
private Long patientId; |
|||
|
|||
private Long queueId; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public Long getQueueId() { |
|||
return queueId; |
|||
} |
|||
|
|||
public void setQueueId(Long queueId) { |
|||
this.queueId = queueId; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", patientId=").append(patientId); |
|||
sb.append(", queueId=").append(queueId); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,337 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class PmsTreatment implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientId; |
|||
|
|||
private String name; |
|||
|
|||
private String pinyinFull; |
|||
|
|||
private String pinyinSimple; |
|||
|
|||
private Byte gender; |
|||
|
|||
private Integer age; |
|||
|
|||
private Date birthDate; |
|||
|
|||
private String ethnicity; |
|||
|
|||
private Integer educationYears; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte idCardType; |
|||
|
|||
private String idCard; |
|||
|
|||
private Byte visitType; |
|||
|
|||
private String visitNumber; |
|||
|
|||
private Date visitTime; |
|||
|
|||
private Date dischargeTime; |
|||
|
|||
private String doctor; |
|||
|
|||
private String deptName; |
|||
|
|||
private String diagnosisCode; |
|||
|
|||
private String diagnosisName; |
|||
|
|||
private Byte status; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private Long tenantId; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getPinyinFull() { |
|||
return pinyinFull; |
|||
} |
|||
|
|||
public void setPinyinFull(String pinyinFull) { |
|||
this.pinyinFull = pinyinFull == null ? null : pinyinFull.trim(); |
|||
} |
|||
|
|||
public String getPinyinSimple() { |
|||
return pinyinSimple; |
|||
} |
|||
|
|||
public void setPinyinSimple(String pinyinSimple) { |
|||
this.pinyinSimple = pinyinSimple == null ? null : pinyinSimple.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public Integer getAge() { |
|||
return age; |
|||
} |
|||
|
|||
public void setAge(Integer age) { |
|||
this.age = age; |
|||
} |
|||
|
|||
public Date getBirthDate() { |
|||
return birthDate; |
|||
} |
|||
|
|||
public void setBirthDate(Date birthDate) { |
|||
this.birthDate = birthDate; |
|||
} |
|||
|
|||
public String getEthnicity() { |
|||
return ethnicity; |
|||
} |
|||
|
|||
public void setEthnicity(String ethnicity) { |
|||
this.ethnicity = ethnicity == null ? null : ethnicity.trim(); |
|||
} |
|||
|
|||
public Integer getEducationYears() { |
|||
return educationYears; |
|||
} |
|||
|
|||
public void setEducationYears(Integer educationYears) { |
|||
this.educationYears = educationYears; |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getIdCardType() { |
|||
return idCardType; |
|||
} |
|||
|
|||
public void setIdCardType(Byte idCardType) { |
|||
this.idCardType = idCardType; |
|||
} |
|||
|
|||
public String getIdCard() { |
|||
return idCard; |
|||
} |
|||
|
|||
public void setIdCard(String idCard) { |
|||
this.idCard = idCard == null ? null : idCard.trim(); |
|||
} |
|||
|
|||
public Byte getVisitType() { |
|||
return visitType; |
|||
} |
|||
|
|||
public void setVisitType(Byte visitType) { |
|||
this.visitType = visitType; |
|||
} |
|||
|
|||
public String getVisitNumber() { |
|||
return visitNumber; |
|||
} |
|||
|
|||
public void setVisitNumber(String visitNumber) { |
|||
this.visitNumber = visitNumber == null ? null : visitNumber.trim(); |
|||
} |
|||
|
|||
public Date getVisitTime() { |
|||
return visitTime; |
|||
} |
|||
|
|||
public void setVisitTime(Date visitTime) { |
|||
this.visitTime = visitTime; |
|||
} |
|||
|
|||
public Date getDischargeTime() { |
|||
return dischargeTime; |
|||
} |
|||
|
|||
public void setDischargeTime(Date dischargeTime) { |
|||
this.dischargeTime = dischargeTime; |
|||
} |
|||
|
|||
public String getDoctor() { |
|||
return doctor; |
|||
} |
|||
|
|||
public void setDoctor(String doctor) { |
|||
this.doctor = doctor == null ? null : doctor.trim(); |
|||
} |
|||
|
|||
public String getDeptName() { |
|||
return deptName; |
|||
} |
|||
|
|||
public void setDeptName(String deptName) { |
|||
this.deptName = deptName == null ? null : deptName.trim(); |
|||
} |
|||
|
|||
public String getDiagnosisCode() { |
|||
return diagnosisCode; |
|||
} |
|||
|
|||
public void setDiagnosisCode(String diagnosisCode) { |
|||
this.diagnosisCode = diagnosisCode == null ? null : diagnosisCode.trim(); |
|||
} |
|||
|
|||
public String getDiagnosisName() { |
|||
return diagnosisName; |
|||
} |
|||
|
|||
public void setDiagnosisName(String diagnosisName) { |
|||
this.diagnosisName = diagnosisName == null ? null : diagnosisName.trim(); |
|||
} |
|||
|
|||
public Byte getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(Byte status) { |
|||
this.status = status; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public Long getTenantId() { |
|||
return tenantId; |
|||
} |
|||
|
|||
public void setTenantId(Long tenantId) { |
|||
this.tenantId = tenantId; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", name=").append(name); |
|||
sb.append(", pinyinFull=").append(pinyinFull); |
|||
sb.append(", pinyinSimple=").append(pinyinSimple); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", age=").append(age); |
|||
sb.append(", birthDate=").append(birthDate); |
|||
sb.append(", ethnicity=").append(ethnicity); |
|||
sb.append(", educationYears=").append(educationYears); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", idCardType=").append(idCardType); |
|||
sb.append(", idCard=").append(idCard); |
|||
sb.append(", visitType=").append(visitType); |
|||
sb.append(", visitNumber=").append(visitNumber); |
|||
sb.append(", visitTime=").append(visitTime); |
|||
sb.append(", dischargeTime=").append(dischargeTime); |
|||
sb.append(", doctor=").append(doctor); |
|||
sb.append(", deptName=").append(deptName); |
|||
sb.append(", diagnosisCode=").append(diagnosisCode); |
|||
sb.append(", diagnosisName=").append(diagnosisName); |
|||
sb.append(", status=").append(status); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", tenantId=").append(tenantId); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,150 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class PmsTreatmentRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long treatmentId; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String answer; |
|||
|
|||
private Date time; |
|||
|
|||
private String sourceId; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getTreatmentId() { |
|||
return treatmentId; |
|||
} |
|||
|
|||
public void setTreatmentId(Long treatmentId) { |
|||
this.treatmentId = treatmentId; |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Date getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Date time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public String getSourceId() { |
|||
return sourceId; |
|||
} |
|||
|
|||
public void setSourceId(String sourceId) { |
|||
this.sourceId = sourceId == null ? null : sourceId.trim(); |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", treatmentId=").append(treatmentId); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", sourceId=").append(sourceId); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,981 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class PmsTreatmentRecordExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public PmsTreatmentRecordExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdIsNull() { |
|||
addCriterion("treatment_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdIsNotNull() { |
|||
addCriterion("treatment_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdEqualTo(Long value) { |
|||
addCriterion("treatment_id =", value, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdNotEqualTo(Long value) { |
|||
addCriterion("treatment_id <>", value, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdGreaterThan(Long value) { |
|||
addCriterion("treatment_id >", value, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("treatment_id >=", value, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdLessThan(Long value) { |
|||
addCriterion("treatment_id <", value, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("treatment_id <=", value, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdIn(List<Long> values) { |
|||
addCriterion("treatment_id in", values, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdNotIn(List<Long> values) { |
|||
addCriterion("treatment_id not in", values, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdBetween(Long value1, Long value2) { |
|||
addCriterion("treatment_id between", value1, value2, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTreatmentIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("treatment_id not between", value1, value2, "treatmentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNull() { |
|||
addCriterion("question_code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNotNull() { |
|||
addCriterion("question_code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeEqualTo(String value) { |
|||
addCriterion("question_code =", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotEqualTo(String value) { |
|||
addCriterion("question_code <>", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThan(String value) { |
|||
addCriterion("question_code >", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("question_code >=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThan(String value) { |
|||
addCriterion("question_code <", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("question_code <=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLike(String value) { |
|||
addCriterion("question_code like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotLike(String value) { |
|||
addCriterion("question_code not like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIn(List<String> values) { |
|||
addCriterion("question_code in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotIn(List<String> values) { |
|||
addCriterion("question_code not in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeBetween(String value1, String value2) { |
|||
addCriterion("question_code between", value1, value2, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotBetween(String value1, String value2) { |
|||
addCriterion("question_code not between", value1, value2, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIsNull() { |
|||
addCriterion("answer is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIsNotNull() { |
|||
addCriterion("answer is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerEqualTo(String value) { |
|||
addCriterion("answer =", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotEqualTo(String value) { |
|||
addCriterion("answer <>", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerGreaterThan(String value) { |
|||
addCriterion("answer >", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerGreaterThanOrEqualTo(String value) { |
|||
addCriterion("answer >=", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLessThan(String value) { |
|||
addCriterion("answer <", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLessThanOrEqualTo(String value) { |
|||
addCriterion("answer <=", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLike(String value) { |
|||
addCriterion("answer like", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotLike(String value) { |
|||
addCriterion("answer not like", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIn(List<String> values) { |
|||
addCriterion("answer in", values, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotIn(List<String> values) { |
|||
addCriterion("answer not in", values, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerBetween(String value1, String value2) { |
|||
addCriterion("answer between", value1, value2, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotBetween(String value1, String value2) { |
|||
addCriterion("answer not between", value1, value2, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNull() { |
|||
addCriterion("time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNotNull() { |
|||
addCriterion("time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeEqualTo(Date value) { |
|||
addCriterion("time =", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotEqualTo(Date value) { |
|||
addCriterion("time <>", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThan(Date value) { |
|||
addCriterion("time >", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("time >=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThan(Date value) { |
|||
addCriterion("time <", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("time <=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIn(List<Date> values) { |
|||
addCriterion("time in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotIn(List<Date> values) { |
|||
addCriterion("time not in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeBetween(Date value1, Date value2) { |
|||
addCriterion("time between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("time not between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdIsNull() { |
|||
addCriterion("source_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdIsNotNull() { |
|||
addCriterion("source_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdEqualTo(String value) { |
|||
addCriterion("source_id =", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdNotEqualTo(String value) { |
|||
addCriterion("source_id <>", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdGreaterThan(String value) { |
|||
addCriterion("source_id >", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdGreaterThanOrEqualTo(String value) { |
|||
addCriterion("source_id >=", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdLessThan(String value) { |
|||
addCriterion("source_id <", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdLessThanOrEqualTo(String value) { |
|||
addCriterion("source_id <=", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdLike(String value) { |
|||
addCriterion("source_id like", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdNotLike(String value) { |
|||
addCriterion("source_id not like", value, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdIn(List<String> values) { |
|||
addCriterion("source_id in", values, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdNotIn(List<String> values) { |
|||
addCriterion("source_id not in", values, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdBetween(String value1, String value2) { |
|||
addCriterion("source_id between", value1, value2, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSourceIdNotBetween(String value1, String value2) { |
|||
addCriterion("source_id not between", value1, value2, "sourceId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Byte value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Byte value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Byte value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Byte value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Byte> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Byte> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNull() { |
|||
addCriterion("remark is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNotNull() { |
|||
addCriterion("remark is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkEqualTo(String value) { |
|||
addCriterion("remark =", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotEqualTo(String value) { |
|||
addCriterion("remark <>", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThan(String value) { |
|||
addCriterion("remark >", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remark >=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThan(String value) { |
|||
addCriterion("remark <", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThanOrEqualTo(String value) { |
|||
addCriterion("remark <=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLike(String value) { |
|||
addCriterion("remark like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotLike(String value) { |
|||
addCriterion("remark not like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIn(List<String> values) { |
|||
addCriterion("remark in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotIn(List<String> values) { |
|||
addCriterion("remark not in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkBetween(String value1, String value2) { |
|||
addCriterion("remark between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotBetween(String value1, String value2) { |
|||
addCriterion("remark not between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,238 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Pms_patient implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private String pinyinFull; |
|||
|
|||
private String pinyinSimple; |
|||
|
|||
private Byte gender; |
|||
|
|||
private Date birthDate; |
|||
|
|||
private String ethnicity; |
|||
|
|||
private Integer educationYears; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte idCardType; |
|||
|
|||
private String idCard; |
|||
|
|||
private Byte source; |
|||
|
|||
private String currentIllnessHistory; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private Long tenantId; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
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 getPinyinFull() { |
|||
return pinyinFull; |
|||
} |
|||
|
|||
public void setPinyinFull(String pinyinFull) { |
|||
this.pinyinFull = pinyinFull == null ? null : pinyinFull.trim(); |
|||
} |
|||
|
|||
public String getPinyinSimple() { |
|||
return pinyinSimple; |
|||
} |
|||
|
|||
public void setPinyinSimple(String pinyinSimple) { |
|||
this.pinyinSimple = pinyinSimple == null ? null : pinyinSimple.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public Date getBirthDate() { |
|||
return birthDate; |
|||
} |
|||
|
|||
public void setBirthDate(Date birthDate) { |
|||
this.birthDate = birthDate; |
|||
} |
|||
|
|||
public String getEthnicity() { |
|||
return ethnicity; |
|||
} |
|||
|
|||
public void setEthnicity(String ethnicity) { |
|||
this.ethnicity = ethnicity == null ? null : ethnicity.trim(); |
|||
} |
|||
|
|||
public Integer getEducationYears() { |
|||
return educationYears; |
|||
} |
|||
|
|||
public void setEducationYears(Integer educationYears) { |
|||
this.educationYears = educationYears; |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getIdCardType() { |
|||
return idCardType; |
|||
} |
|||
|
|||
public void setIdCardType(Byte idCardType) { |
|||
this.idCardType = idCardType; |
|||
} |
|||
|
|||
public String getIdCard() { |
|||
return idCard; |
|||
} |
|||
|
|||
public void setIdCard(String idCard) { |
|||
this.idCard = idCard == null ? null : idCard.trim(); |
|||
} |
|||
|
|||
public Byte getSource() { |
|||
return source; |
|||
} |
|||
|
|||
public void setSource(Byte source) { |
|||
this.source = source; |
|||
} |
|||
|
|||
public String getCurrentIllnessHistory() { |
|||
return currentIllnessHistory; |
|||
} |
|||
|
|||
public void setCurrentIllnessHistory(String currentIllnessHistory) { |
|||
this.currentIllnessHistory = currentIllnessHistory == null ? null : currentIllnessHistory.trim(); |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public Long getTenantId() { |
|||
return tenantId; |
|||
} |
|||
|
|||
public void setTenantId(Long tenantId) { |
|||
this.tenantId = tenantId; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", pinyinFull=").append(pinyinFull); |
|||
sb.append(", pinyinSimple=").append(pinyinSimple); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", birthDate=").append(birthDate); |
|||
sb.append(", ethnicity=").append(ethnicity); |
|||
sb.append(", educationYears=").append(educationYears); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", idCardType=").append(idCardType); |
|||
sb.append(", idCard=").append(idCard); |
|||
sb.append(", source=").append(source); |
|||
sb.append(", currentIllnessHistory=").append(currentIllnessHistory); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", tenantId=").append(tenantId); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,106 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class RmsReportType implements Serializable { |
|||
private Integer id; |
|||
|
|||
private String typeName; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private String remark; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Integer getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Integer id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getTypeName() { |
|||
return typeName; |
|||
} |
|||
|
|||
public void setTypeName(String typeName) { |
|||
this.typeName = typeName == null ? null : typeName.trim(); |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
@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(", typeName=").append(typeName); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,721 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class RmsReportTypeExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public RmsReportTypeExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Integer value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Integer value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Integer value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Integer value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Integer value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Integer> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Integer> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Integer value1, Integer value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameIsNull() { |
|||
addCriterion("type_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameIsNotNull() { |
|||
addCriterion("type_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameEqualTo(String value) { |
|||
addCriterion("type_name =", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameNotEqualTo(String value) { |
|||
addCriterion("type_name <>", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameGreaterThan(String value) { |
|||
addCriterion("type_name >", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("type_name >=", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameLessThan(String value) { |
|||
addCriterion("type_name <", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameLessThanOrEqualTo(String value) { |
|||
addCriterion("type_name <=", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameLike(String value) { |
|||
addCriterion("type_name like", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameNotLike(String value) { |
|||
addCriterion("type_name not like", value, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameIn(List<String> values) { |
|||
addCriterion("type_name in", values, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameNotIn(List<String> values) { |
|||
addCriterion("type_name not in", values, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameBetween(String value1, String value2) { |
|||
addCriterion("type_name between", value1, value2, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNameNotBetween(String value1, String value2) { |
|||
addCriterion("type_name not between", value1, value2, "typeName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Byte value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Byte value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Byte value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Byte value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Byte> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Byte> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNull() { |
|||
addCriterion("remark is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNotNull() { |
|||
addCriterion("remark is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkEqualTo(String value) { |
|||
addCriterion("remark =", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotEqualTo(String value) { |
|||
addCriterion("remark <>", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThan(String value) { |
|||
addCriterion("remark >", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remark >=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThan(String value) { |
|||
addCriterion("remark <", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThanOrEqualTo(String value) { |
|||
addCriterion("remark <=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLike(String value) { |
|||
addCriterion("remark like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotLike(String value) { |
|||
addCriterion("remark not like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIn(List<String> values) { |
|||
addCriterion("remark in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotIn(List<String> values) { |
|||
addCriterion("remark not in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkBetween(String value1, String value2) { |
|||
addCriterion("remark between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotBetween(String value1, String value2) { |
|||
addCriterion("remark not between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,139 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class UmsDataSource implements Serializable { |
|||
private Long id; |
|||
|
|||
private String dataSourceKey; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private String url; |
|||
|
|||
private String username; |
|||
|
|||
private String password; |
|||
|
|||
private String createBy; |
|||
|
|||
private Date createTime; |
|||
|
|||
private String updateBy; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte delFlag; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getDataSourceKey() { |
|||
return dataSourceKey; |
|||
} |
|||
|
|||
public void setDataSourceKey(String dataSourceKey) { |
|||
this.dataSourceKey = dataSourceKey == null ? null : dataSourceKey.trim(); |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public String getUrl() { |
|||
return url; |
|||
} |
|||
|
|||
public void setUrl(String url) { |
|||
this.url = url == null ? null : url.trim(); |
|||
} |
|||
|
|||
public String getUsername() { |
|||
return username; |
|||
} |
|||
|
|||
public void setUsername(String username) { |
|||
this.username = username == null ? null : username.trim(); |
|||
} |
|||
|
|||
public String getPassword() { |
|||
return password; |
|||
} |
|||
|
|||
public void setPassword(String password) { |
|||
this.password = password == null ? null : password.trim(); |
|||
} |
|||
|
|||
public String getCreateBy() { |
|||
return createBy; |
|||
} |
|||
|
|||
public void setCreateBy(String createBy) { |
|||
this.createBy = createBy == null ? null : createBy.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public String getUpdateBy() { |
|||
return updateBy; |
|||
} |
|||
|
|||
public void setUpdateBy(String updateBy) { |
|||
this.updateBy = updateBy == null ? null : updateBy.trim(); |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getDelFlag() { |
|||
return delFlag; |
|||
} |
|||
|
|||
public void setDelFlag(Byte delFlag) { |
|||
this.delFlag = delFlag; |
|||
} |
|||
|
|||
@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(", dataSourceKey=").append(dataSourceKey); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", url=").append(url); |
|||
sb.append(", username=").append(username); |
|||
sb.append(", password=").append(password); |
|||
sb.append(", createBy=").append(createBy); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateBy=").append(updateBy); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", delFlag=").append(delFlag); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,921 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class UmsDataSourceExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public UmsDataSourceExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyIsNull() { |
|||
addCriterion("data_source_key is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyIsNotNull() { |
|||
addCriterion("data_source_key is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyEqualTo(String value) { |
|||
addCriterion("data_source_key =", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyNotEqualTo(String value) { |
|||
addCriterion("data_source_key <>", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyGreaterThan(String value) { |
|||
addCriterion("data_source_key >", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyGreaterThanOrEqualTo(String value) { |
|||
addCriterion("data_source_key >=", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyLessThan(String value) { |
|||
addCriterion("data_source_key <", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyLessThanOrEqualTo(String value) { |
|||
addCriterion("data_source_key <=", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyLike(String value) { |
|||
addCriterion("data_source_key like", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyNotLike(String value) { |
|||
addCriterion("data_source_key not like", value, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyIn(List<String> values) { |
|||
addCriterion("data_source_key in", values, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyNotIn(List<String> values) { |
|||
addCriterion("data_source_key not in", values, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyBetween(String value1, String value2) { |
|||
addCriterion("data_source_key between", value1, value2, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataSourceKeyNotBetween(String value1, String value2) { |
|||
addCriterion("data_source_key not between", value1, value2, "dataSourceKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNull() { |
|||
addCriterion("hospital_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNotNull() { |
|||
addCriterion("hospital_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdEqualTo(Long value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Long value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Long value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Long value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Long> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Long> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlIsNull() { |
|||
addCriterion("url is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlIsNotNull() { |
|||
addCriterion("url is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlEqualTo(String value) { |
|||
addCriterion("url =", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlNotEqualTo(String value) { |
|||
addCriterion("url <>", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlGreaterThan(String value) { |
|||
addCriterion("url >", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlGreaterThanOrEqualTo(String value) { |
|||
addCriterion("url >=", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlLessThan(String value) { |
|||
addCriterion("url <", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlLessThanOrEqualTo(String value) { |
|||
addCriterion("url <=", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlLike(String value) { |
|||
addCriterion("url like", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlNotLike(String value) { |
|||
addCriterion("url not like", value, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlIn(List<String> values) { |
|||
addCriterion("url in", values, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlNotIn(List<String> values) { |
|||
addCriterion("url not in", values, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlBetween(String value1, String value2) { |
|||
addCriterion("url between", value1, value2, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUrlNotBetween(String value1, String value2) { |
|||
addCriterion("url not between", value1, value2, "url"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameIsNull() { |
|||
addCriterion("username is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameIsNotNull() { |
|||
addCriterion("username is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameEqualTo(String value) { |
|||
addCriterion("username =", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameNotEqualTo(String value) { |
|||
addCriterion("username <>", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameGreaterThan(String value) { |
|||
addCriterion("username >", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("username >=", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameLessThan(String value) { |
|||
addCriterion("username <", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameLessThanOrEqualTo(String value) { |
|||
addCriterion("username <=", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameLike(String value) { |
|||
addCriterion("username like", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameNotLike(String value) { |
|||
addCriterion("username not like", value, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameIn(List<String> values) { |
|||
addCriterion("username in", values, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameNotIn(List<String> values) { |
|||
addCriterion("username not in", values, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameBetween(String value1, String value2) { |
|||
addCriterion("username between", value1, value2, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUsernameNotBetween(String value1, String value2) { |
|||
addCriterion("username not between", value1, value2, "username"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordIsNull() { |
|||
addCriterion("password is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordIsNotNull() { |
|||
addCriterion("password is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordEqualTo(String value) { |
|||
addCriterion("password =", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordNotEqualTo(String value) { |
|||
addCriterion("password <>", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordGreaterThan(String value) { |
|||
addCriterion("password >", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordGreaterThanOrEqualTo(String value) { |
|||
addCriterion("password >=", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordLessThan(String value) { |
|||
addCriterion("password <", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordLessThanOrEqualTo(String value) { |
|||
addCriterion("password <=", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordLike(String value) { |
|||
addCriterion("password like", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordNotLike(String value) { |
|||
addCriterion("password not like", value, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordIn(List<String> values) { |
|||
addCriterion("password in", values, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordNotIn(List<String> values) { |
|||
addCriterion("password not in", values, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordBetween(String value1, String value2) { |
|||
addCriterion("password between", value1, value2, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPasswordNotBetween(String value1, String value2) { |
|||
addCriterion("password not between", value1, value2, "password"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNull() { |
|||
addCriterion("create_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIsNotNull() { |
|||
addCriterion("create_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByEqualTo(String value) { |
|||
addCriterion("create_by =", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotEqualTo(String value) { |
|||
addCriterion("create_by <>", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThan(String value) { |
|||
addCriterion("create_by >", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("create_by >=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThan(String value) { |
|||
addCriterion("create_by <", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLessThanOrEqualTo(String value) { |
|||
addCriterion("create_by <=", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByLike(String value) { |
|||
addCriterion("create_by like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotLike(String value) { |
|||
addCriterion("create_by not like", value, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByIn(List<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNull() { |
|||
addCriterion("del_flag is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIsNotNull() { |
|||
addCriterion("del_flag is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagEqualTo(Byte value) { |
|||
addCriterion("del_flag =", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotEqualTo(Byte value) { |
|||
addCriterion("del_flag <>", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThan(Byte value) { |
|||
addCriterion("del_flag >", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag >=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThan(Byte value) { |
|||
addCriterion("del_flag <", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagLessThanOrEqualTo(Byte value) { |
|||
addCriterion("del_flag <=", value, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagIn(List<Byte> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<Byte> values) { |
|||
addCriterion("del_flag not in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("del_flag not between", value1, value2, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.DmsTenant; |
|||
import com.acupuncture.system.domain.po.DmsTenantExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface DmsTenantMapper { |
|||
long countByExample(DmsTenantExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(DmsTenant record); |
|||
|
|||
int insertSelective(DmsTenant record); |
|||
|
|||
List<DmsTenant> selectByExample(DmsTenantExample example); |
|||
|
|||
DmsTenant selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") DmsTenant record, @Param("example") DmsTenantExample example); |
|||
|
|||
int updateByExample(@Param("record") DmsTenant record, @Param("example") DmsTenantExample example); |
|||
|
|||
int updateByPrimaryKeySelective(DmsTenant record); |
|||
|
|||
int updateByPrimaryKey(DmsTenant record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.DmsUser; |
|||
import com.acupuncture.system.domain.po.DmsUserExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface DmsUserMapper { |
|||
long countByExample(DmsUserExample example); |
|||
|
|||
int deleteByPrimaryKey(Integer id); |
|||
|
|||
int insert(DmsUser record); |
|||
|
|||
int insertSelective(DmsUser record); |
|||
|
|||
List<DmsUser> selectByExample(DmsUserExample example); |
|||
|
|||
DmsUser selectByPrimaryKey(Integer id); |
|||
|
|||
int updateByExampleSelective(@Param("record") DmsUser record, @Param("example") DmsUserExample example); |
|||
|
|||
int updateByExample(@Param("record") DmsUser record, @Param("example") DmsUserExample example); |
|||
|
|||
int updateByPrimaryKeySelective(DmsUser record); |
|||
|
|||
int updateByPrimaryKey(DmsUser record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.FmsFollowupQueue; |
|||
import com.acupuncture.system.domain.po.FmsFollowupQueueExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FmsFollowupQueueMapper { |
|||
long countByExample(FmsFollowupQueueExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FmsFollowupQueue record); |
|||
|
|||
int insertSelective(FmsFollowupQueue record); |
|||
|
|||
List<FmsFollowupQueue> selectByExample(FmsFollowupQueueExample example); |
|||
|
|||
FmsFollowupQueue selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FmsFollowupQueue record, @Param("example") FmsFollowupQueueExample example); |
|||
|
|||
int updateByExample(@Param("record") FmsFollowupQueue record, @Param("example") FmsFollowupQueueExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FmsFollowupQueue record); |
|||
|
|||
int updateByPrimaryKey(FmsFollowupQueue record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.FmsFollowupTask; |
|||
import com.acupuncture.system.domain.po.FmsFollowupTaskExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FmsFollowupTaskMapper { |
|||
long countByExample(FmsFollowupTaskExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FmsFollowupTask record); |
|||
|
|||
int insertSelective(FmsFollowupTask record); |
|||
|
|||
List<FmsFollowupTask> selectByExample(FmsFollowupTaskExample example); |
|||
|
|||
FmsFollowupTask selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FmsFollowupTask record, @Param("example") FmsFollowupTaskExample example); |
|||
|
|||
int updateByExample(@Param("record") FmsFollowupTask record, @Param("example") FmsFollowupTaskExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FmsFollowupTask record); |
|||
|
|||
int updateByPrimaryKey(FmsFollowupTask record); |
|||
} |
@ -0,0 +1,29 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.FmsPatientQueueRelation; |
|||
import com.acupuncture.system.domain.po.FmsPatientQueueRelationExample; |
|||
import com.acupuncture.system.domain.po.FmsPatientQueueRelationKey; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FmsPatientQueueRelationMapper { |
|||
long countByExample(FmsPatientQueueRelationExample example); |
|||
|
|||
int deleteByPrimaryKey(FmsPatientQueueRelationKey key); |
|||
|
|||
int insert(FmsPatientQueueRelation record); |
|||
|
|||
int insertSelective(FmsPatientQueueRelation record); |
|||
|
|||
List<FmsPatientQueueRelation> selectByExample(FmsPatientQueueRelationExample example); |
|||
|
|||
FmsPatientQueueRelation selectByPrimaryKey(FmsPatientQueueRelationKey key); |
|||
|
|||
int updateByExampleSelective(@Param("record") FmsPatientQueueRelation record, @Param("example") FmsPatientQueueRelationExample example); |
|||
|
|||
int updateByExample(@Param("record") FmsPatientQueueRelation record, @Param("example") FmsPatientQueueRelationExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FmsPatientQueueRelation record); |
|||
|
|||
int updateByPrimaryKey(FmsPatientQueueRelation record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.PmsTreatment; |
|||
import com.acupuncture.system.domain.po.PmsTreatmentExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface PmsTreatmentMapper { |
|||
long countByExample(PmsTreatmentExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(PmsTreatment record); |
|||
|
|||
int insertSelective(PmsTreatment record); |
|||
|
|||
List<PmsTreatment> selectByExample(PmsTreatmentExample example); |
|||
|
|||
PmsTreatment selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") PmsTreatment record, @Param("example") PmsTreatmentExample example); |
|||
|
|||
int updateByExample(@Param("record") PmsTreatment record, @Param("example") PmsTreatmentExample example); |
|||
|
|||
int updateByPrimaryKeySelective(PmsTreatment record); |
|||
|
|||
int updateByPrimaryKey(PmsTreatment record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.PmsTreatmentRecord; |
|||
import com.acupuncture.system.domain.po.PmsTreatmentRecordExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface PmsTreatmentRecordMapper { |
|||
long countByExample(PmsTreatmentRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(PmsTreatmentRecord record); |
|||
|
|||
int insertSelective(PmsTreatmentRecord record); |
|||
|
|||
List<PmsTreatmentRecord> selectByExample(PmsTreatmentRecordExample example); |
|||
|
|||
PmsTreatmentRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") PmsTreatmentRecord record, @Param("example") PmsTreatmentRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") PmsTreatmentRecord record, @Param("example") PmsTreatmentRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(PmsTreatmentRecord record); |
|||
|
|||
int updateByPrimaryKey(PmsTreatmentRecord record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.Pms_patient; |
|||
import com.acupuncture.system.domain.po.Pms_patientExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface Pms_patientMapper { |
|||
long countByExample(Pms_patientExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Pms_patient record); |
|||
|
|||
int insertSelective(Pms_patient record); |
|||
|
|||
List<Pms_patient> selectByExample(Pms_patientExample example); |
|||
|
|||
Pms_patient selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Pms_patient record, @Param("example") Pms_patientExample example); |
|||
|
|||
int updateByExample(@Param("record") Pms_patient record, @Param("example") Pms_patientExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Pms_patient record); |
|||
|
|||
int updateByPrimaryKey(Pms_patient record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.RmsReportType; |
|||
import com.acupuncture.system.domain.po.RmsReportTypeExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface RmsReportTypeMapper { |
|||
long countByExample(RmsReportTypeExample example); |
|||
|
|||
int deleteByPrimaryKey(Integer id); |
|||
|
|||
int insert(RmsReportType record); |
|||
|
|||
int insertSelective(RmsReportType record); |
|||
|
|||
List<RmsReportType> selectByExample(RmsReportTypeExample example); |
|||
|
|||
RmsReportType selectByPrimaryKey(Integer id); |
|||
|
|||
int updateByExampleSelective(@Param("record") RmsReportType record, @Param("example") RmsReportTypeExample example); |
|||
|
|||
int updateByExample(@Param("record") RmsReportType record, @Param("example") RmsReportTypeExample example); |
|||
|
|||
int updateByPrimaryKeySelective(RmsReportType record); |
|||
|
|||
int updateByPrimaryKey(RmsReportType record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.UmsDataSource; |
|||
import com.acupuncture.system.domain.po.UmsDataSourceExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface UmsDataSourceMapper { |
|||
long countByExample(UmsDataSourceExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(UmsDataSource record); |
|||
|
|||
int insertSelective(UmsDataSource record); |
|||
|
|||
List<UmsDataSource> selectByExample(UmsDataSourceExample example); |
|||
|
|||
UmsDataSource selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") UmsDataSource record, @Param("example") UmsDataSourceExample example); |
|||
|
|||
int updateByExample(@Param("record") UmsDataSource record, @Param("example") UmsDataSourceExample example); |
|||
|
|||
int updateByPrimaryKeySelective(UmsDataSource record); |
|||
|
|||
int updateByPrimaryKey(UmsDataSource record); |
|||
} |
@ -0,0 +1,332 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.DmsTenantMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.DmsTenant"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="code" jdbcType="VARCHAR" property="code" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="leader" jdbcType="VARCHAR" property="leader" /> |
|||
<result column="contact_phone" jdbcType="VARCHAR" property="contactPhone" /> |
|||
<result column="data_source_id" jdbcType="BIGINT" property="dataSourceId" /> |
|||
<result column="status" jdbcType="CHAR" property="status" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, code, name, leader, contact_phone, data_source_id, status, del_flag, create_by, |
|||
create_time, update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.DmsTenantExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from dms_tenant |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from dms_tenant |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from dms_tenant |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.DmsTenant"> |
|||
insert into dms_tenant (id, code, name, |
|||
leader, contact_phone, data_source_id, |
|||
status, del_flag, create_by, |
|||
create_time, update_by, update_time, |
|||
remark) |
|||
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, |
|||
#{leader,jdbcType=VARCHAR}, #{contactPhone,jdbcType=VARCHAR}, #{dataSourceId,jdbcType=BIGINT}, |
|||
#{status,jdbcType=CHAR}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|||
#{remark,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.DmsTenant"> |
|||
insert into dms_tenant |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="code != null"> |
|||
code, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="leader != null"> |
|||
leader, |
|||
</if> |
|||
<if test="contactPhone != null"> |
|||
contact_phone, |
|||
</if> |
|||
<if test="dataSourceId != null"> |
|||
data_source_id, |
|||
</if> |
|||
<if test="status != null"> |
|||
status, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="code != null"> |
|||
#{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="leader != null"> |
|||
#{leader,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="contactPhone != null"> |
|||
#{contactPhone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="dataSourceId != null"> |
|||
#{dataSourceId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="status != null"> |
|||
#{status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.DmsTenantExample" resultType="java.lang.Long"> |
|||
select count(*) from dms_tenant |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update dms_tenant |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.code != null"> |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.leader != null"> |
|||
leader = #{record.leader,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.contactPhone != null"> |
|||
contact_phone = #{record.contactPhone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.dataSourceId != null"> |
|||
data_source_id = #{record.dataSourceId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.status != null"> |
|||
status = #{record.status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update dms_tenant |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
leader = #{record.leader,jdbcType=VARCHAR}, |
|||
contact_phone = #{record.contactPhone,jdbcType=VARCHAR}, |
|||
data_source_id = #{record.dataSourceId,jdbcType=BIGINT}, |
|||
status = #{record.status,jdbcType=CHAR}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.DmsTenant"> |
|||
update dms_tenant |
|||
<set> |
|||
<if test="code != null"> |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="leader != null"> |
|||
leader = #{leader,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="contactPhone != null"> |
|||
contact_phone = #{contactPhone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="dataSourceId != null"> |
|||
data_source_id = #{dataSourceId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="status != null"> |
|||
status = #{status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.DmsTenant"> |
|||
update dms_tenant |
|||
set code = #{code,jdbcType=VARCHAR}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
leader = #{leader,jdbcType=VARCHAR}, |
|||
contact_phone = #{contactPhone,jdbcType=VARCHAR}, |
|||
data_source_id = #{dataSourceId,jdbcType=BIGINT}, |
|||
status = #{status,jdbcType=CHAR}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,364 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.DmsUserMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.DmsUser"> |
|||
<id column="id" jdbcType="INTEGER" property="id" /> |
|||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|||
<result column="user_name" jdbcType="VARCHAR" property="userName" /> |
|||
<result column="password" jdbcType="VARCHAR" property="password" /> |
|||
<result column="nick_name" jdbcType="VARCHAR" property="nickName" /> |
|||
<result column="email" jdbcType="VARCHAR" property="email" /> |
|||
<result column="phonenumber" jdbcType="VARCHAR" property="phonenumber" /> |
|||
<result column="sex" jdbcType="CHAR" property="sex" /> |
|||
<result column="status" jdbcType="CHAR" property="status" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, tenant_id, user_name, password, nick_name, email, phonenumber, sex, status, del_flag, |
|||
create_by, create_time, update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.DmsUserExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from dms_user |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from dms_user |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> |
|||
delete from dms_user |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|||
insert into dms_user (id, tenant_id, user_name, |
|||
password, nick_name, email, |
|||
phonenumber, sex, status, |
|||
del_flag, create_by, create_time, |
|||
update_by, update_time, remark |
|||
) |
|||
values (#{id,jdbcType=INTEGER}, #{tenantId,jdbcType=BIGINT}, #{userName,jdbcType=VARCHAR}, |
|||
#{password,jdbcType=VARCHAR}, #{nickName,jdbcType=VARCHAR}, #{email,jdbcType=VARCHAR}, |
|||
#{phonenumber,jdbcType=VARCHAR}, #{sex,jdbcType=CHAR}, #{status,jdbcType=CHAR}, |
|||
#{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|||
insert into dms_user |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id, |
|||
</if> |
|||
<if test="userName != null"> |
|||
user_name, |
|||
</if> |
|||
<if test="password != null"> |
|||
password, |
|||
</if> |
|||
<if test="nickName != null"> |
|||
nick_name, |
|||
</if> |
|||
<if test="email != null"> |
|||
email, |
|||
</if> |
|||
<if test="phonenumber != null"> |
|||
phonenumber, |
|||
</if> |
|||
<if test="sex != null"> |
|||
sex, |
|||
</if> |
|||
<if test="status != null"> |
|||
status, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
#{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userName != null"> |
|||
#{userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="password != null"> |
|||
#{password,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="nickName != null"> |
|||
#{nickName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="email != null"> |
|||
#{email,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="phonenumber != null"> |
|||
#{phonenumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sex != null"> |
|||
#{sex,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="status != null"> |
|||
#{status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.DmsUserExample" resultType="java.lang.Long"> |
|||
select count(*) from dms_user |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update dms_user |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.tenantId != null"> |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userName != null"> |
|||
user_name = #{record.userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.password != null"> |
|||
password = #{record.password,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.nickName != null"> |
|||
nick_name = #{record.nickName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.email != null"> |
|||
email = #{record.email,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.phonenumber != null"> |
|||
phonenumber = #{record.phonenumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.sex != null"> |
|||
sex = #{record.sex,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.status != null"> |
|||
status = #{record.status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update dms_user |
|||
set id = #{record.id,jdbcType=INTEGER}, |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
user_name = #{record.userName,jdbcType=VARCHAR}, |
|||
password = #{record.password,jdbcType=VARCHAR}, |
|||
nick_name = #{record.nickName,jdbcType=VARCHAR}, |
|||
email = #{record.email,jdbcType=VARCHAR}, |
|||
phonenumber = #{record.phonenumber,jdbcType=VARCHAR}, |
|||
sex = #{record.sex,jdbcType=CHAR}, |
|||
status = #{record.status,jdbcType=CHAR}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|||
update dms_user |
|||
<set> |
|||
<if test="tenantId != null"> |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userName != null"> |
|||
user_name = #{userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="password != null"> |
|||
password = #{password,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="nickName != null"> |
|||
nick_name = #{nickName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="email != null"> |
|||
email = #{email,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="phonenumber != null"> |
|||
phonenumber = #{phonenumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sex != null"> |
|||
sex = #{sex,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="status != null"> |
|||
status = #{status,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.DmsUser"> |
|||
update dms_user |
|||
set tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
user_name = #{userName,jdbcType=VARCHAR}, |
|||
password = #{password,jdbcType=VARCHAR}, |
|||
nick_name = #{nickName,jdbcType=VARCHAR}, |
|||
email = #{email,jdbcType=VARCHAR}, |
|||
phonenumber = #{phonenumber,jdbcType=VARCHAR}, |
|||
sex = #{sex,jdbcType=CHAR}, |
|||
status = #{status,jdbcType=CHAR}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,380 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.FmsFollowupQueueMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.FmsFollowupQueue"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="followup_method" jdbcType="TINYINT" property="followupMethod" /> |
|||
<result column="followup_type" jdbcType="TINYINT" property="followupType" /> |
|||
<result column="frequency" jdbcType="VARCHAR" property="frequency" /> |
|||
<result column="followup_month" jdbcType="INTEGER" property="followupMonth" /> |
|||
<result column="person_in_charge" jdbcType="VARCHAR" property="personInCharge" /> |
|||
<result column="person_in_charge_username" jdbcType="VARCHAR" property="personInChargeUsername" /> |
|||
<result column="status" jdbcType="TINYINT" property="status" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, name, followup_method, followup_type, frequency, followup_month, person_in_charge, |
|||
person_in_charge_username, status, del_flag, tenant_id, create_by, create_time, update_by, |
|||
update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueueExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from fms_followup_queue |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from fms_followup_queue |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from fms_followup_queue |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue"> |
|||
insert into fms_followup_queue (id, name, followup_method, |
|||
followup_type, frequency, followup_month, |
|||
person_in_charge, person_in_charge_username, |
|||
status, del_flag, tenant_id, |
|||
create_by, create_time, update_by, |
|||
update_time, remark) |
|||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{followupMethod,jdbcType=TINYINT}, |
|||
#{followupType,jdbcType=TINYINT}, #{frequency,jdbcType=VARCHAR}, #{followupMonth,jdbcType=INTEGER}, |
|||
#{personInCharge,jdbcType=VARCHAR}, #{personInChargeUsername,jdbcType=VARCHAR}, |
|||
#{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue"> |
|||
insert into fms_followup_queue |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="followupMethod != null"> |
|||
followup_method, |
|||
</if> |
|||
<if test="followupType != null"> |
|||
followup_type, |
|||
</if> |
|||
<if test="frequency != null"> |
|||
frequency, |
|||
</if> |
|||
<if test="followupMonth != null"> |
|||
followup_month, |
|||
</if> |
|||
<if test="personInCharge != null"> |
|||
person_in_charge, |
|||
</if> |
|||
<if test="personInChargeUsername != null"> |
|||
person_in_charge_username, |
|||
</if> |
|||
<if test="status != null"> |
|||
status, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followupMethod != null"> |
|||
#{followupMethod,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="followupType != null"> |
|||
#{followupType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="frequency != null"> |
|||
#{frequency,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followupMonth != null"> |
|||
#{followupMonth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="personInCharge != null"> |
|||
#{personInCharge,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="personInChargeUsername != null"> |
|||
#{personInChargeUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="status != null"> |
|||
#{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
#{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueueExample" resultType="java.lang.Long"> |
|||
select count(*) from fms_followup_queue |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update fms_followup_queue |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.followupMethod != null"> |
|||
followup_method = #{record.followupMethod,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.followupType != null"> |
|||
followup_type = #{record.followupType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.frequency != null"> |
|||
frequency = #{record.frequency,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.followupMonth != null"> |
|||
followup_month = #{record.followupMonth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.personInCharge != null"> |
|||
person_in_charge = #{record.personInCharge,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.personInChargeUsername != null"> |
|||
person_in_charge_username = #{record.personInChargeUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.status != null"> |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.tenantId != null"> |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update fms_followup_queue |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
followup_method = #{record.followupMethod,jdbcType=TINYINT}, |
|||
followup_type = #{record.followupType,jdbcType=TINYINT}, |
|||
frequency = #{record.frequency,jdbcType=VARCHAR}, |
|||
followup_month = #{record.followupMonth,jdbcType=INTEGER}, |
|||
person_in_charge = #{record.personInCharge,jdbcType=VARCHAR}, |
|||
person_in_charge_username = #{record.personInChargeUsername,jdbcType=VARCHAR}, |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue"> |
|||
update fms_followup_queue |
|||
<set> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followupMethod != null"> |
|||
followup_method = #{followupMethod,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="followupType != null"> |
|||
followup_type = #{followupType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="frequency != null"> |
|||
frequency = #{frequency,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followupMonth != null"> |
|||
followup_month = #{followupMonth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="personInCharge != null"> |
|||
person_in_charge = #{personInCharge,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="personInChargeUsername != null"> |
|||
person_in_charge_username = #{personInChargeUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="status != null"> |
|||
status = #{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.FmsFollowupQueue"> |
|||
update fms_followup_queue |
|||
set name = #{name,jdbcType=VARCHAR}, |
|||
followup_method = #{followupMethod,jdbcType=TINYINT}, |
|||
followup_type = #{followupType,jdbcType=TINYINT}, |
|||
frequency = #{frequency,jdbcType=VARCHAR}, |
|||
followup_month = #{followupMonth,jdbcType=INTEGER}, |
|||
person_in_charge = #{personInCharge,jdbcType=VARCHAR}, |
|||
person_in_charge_username = #{personInChargeUsername,jdbcType=VARCHAR}, |
|||
status = #{status,jdbcType=TINYINT}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,569 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.FmsFollowupTaskMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.FmsFollowupTask"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="pinyin_full" jdbcType="VARCHAR" property="pinyinFull" /> |
|||
<result column="pinyin_simple" jdbcType="VARCHAR" property="pinyinSimple" /> |
|||
<result column="gender" jdbcType="TINYINT" property="gender" /> |
|||
<result column="age" jdbcType="INTEGER" property="age" /> |
|||
<result column="ethnicity" jdbcType="VARCHAR" property="ethnicity" /> |
|||
<result column="education_years" jdbcType="INTEGER" property="educationYears" /> |
|||
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|||
<result column="id_card_type" jdbcType="TINYINT" property="idCardType" /> |
|||
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|||
<result column="queue_id" jdbcType="BIGINT" property="queueId" /> |
|||
<result column="times" jdbcType="INTEGER" property="times" /> |
|||
<result column="start_time" jdbcType="TIMESTAMP" property="startTime" /> |
|||
<result column="end_time" jdbcType="TIMESTAMP" property="endTime" /> |
|||
<result column="status" jdbcType="TINYINT" property="status" /> |
|||
<result column="lost_reason" jdbcType="VARCHAR" property="lostReason" /> |
|||
<result column="followuper" jdbcType="VARCHAR" property="followuper" /> |
|||
<result column="followup_time" jdbcType="TIMESTAMP" property="followupTime" /> |
|||
<result column="followup_text" jdbcType="VARCHAR" property="followupText" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, patient_id, name, pinyin_full, pinyin_simple, gender, age, ethnicity, education_years, |
|||
phone, id_card_type, id_card, tenant_id, queue_id, times, start_time, end_time, status, |
|||
lost_reason, followuper, followup_time, followup_text, del_flag, create_by, create_time, |
|||
update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.FmsFollowupTaskExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from fms_followup_task |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from fms_followup_task |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from fms_followup_task |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.FmsFollowupTask"> |
|||
insert into fms_followup_task (id, patient_id, name, |
|||
pinyin_full, pinyin_simple, gender, |
|||
age, ethnicity, education_years, |
|||
phone, id_card_type, id_card, |
|||
tenant_id, queue_id, times, |
|||
start_time, end_time, status, |
|||
lost_reason, followuper, followup_time, |
|||
followup_text, del_flag, create_by, |
|||
create_time, update_by, update_time, |
|||
remark) |
|||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|||
#{pinyinFull,jdbcType=VARCHAR}, #{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|||
#{age,jdbcType=INTEGER}, #{ethnicity,jdbcType=VARCHAR}, #{educationYears,jdbcType=INTEGER}, |
|||
#{phone,jdbcType=VARCHAR}, #{idCardType,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR}, |
|||
#{tenantId,jdbcType=BIGINT}, #{queueId,jdbcType=BIGINT}, #{times,jdbcType=INTEGER}, |
|||
#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, #{status,jdbcType=TINYINT}, |
|||
#{lostReason,jdbcType=VARCHAR}, #{followuper,jdbcType=VARCHAR}, #{followupTime,jdbcType=TIMESTAMP}, |
|||
#{followupText,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|||
#{remark,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.FmsFollowupTask"> |
|||
insert into fms_followup_task |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender, |
|||
</if> |
|||
<if test="age != null"> |
|||
age, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id, |
|||
</if> |
|||
<if test="queueId != null"> |
|||
queue_id, |
|||
</if> |
|||
<if test="times != null"> |
|||
times, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time, |
|||
</if> |
|||
<if test="status != null"> |
|||
status, |
|||
</if> |
|||
<if test="lostReason != null"> |
|||
lost_reason, |
|||
</if> |
|||
<if test="followuper != null"> |
|||
followuper, |
|||
</if> |
|||
<if test="followupTime != null"> |
|||
followup_time, |
|||
</if> |
|||
<if test="followupText != null"> |
|||
followup_text, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
#{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
#{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
#{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="age != null"> |
|||
#{age,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
#{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
#{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
#{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
#{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
#{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
#{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="queueId != null"> |
|||
#{queueId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="times != null"> |
|||
#{times,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
#{startTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
#{endTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="status != null"> |
|||
#{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="lostReason != null"> |
|||
#{lostReason,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followuper != null"> |
|||
#{followuper,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followupTime != null"> |
|||
#{followupTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="followupText != null"> |
|||
#{followupText,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.FmsFollowupTaskExample" resultType="java.lang.Long"> |
|||
select count(*) from fms_followup_task |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update fms_followup_task |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinFull != null"> |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinSimple != null"> |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.gender != null"> |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.age != null"> |
|||
age = #{record.age,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.ethnicity != null"> |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.educationYears != null"> |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.phone != null"> |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.idCardType != null"> |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.idCard != null"> |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tenantId != null"> |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.queueId != null"> |
|||
queue_id = #{record.queueId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.times != null"> |
|||
times = #{record.times,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.startTime != null"> |
|||
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.endTime != null"> |
|||
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.status != null"> |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.lostReason != null"> |
|||
lost_reason = #{record.lostReason,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.followuper != null"> |
|||
followuper = #{record.followuper,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.followupTime != null"> |
|||
followup_time = #{record.followupTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.followupText != null"> |
|||
followup_text = #{record.followupText,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update fms_followup_task |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
age = #{record.age,jdbcType=INTEGER}, |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
queue_id = #{record.queueId,jdbcType=BIGINT}, |
|||
times = #{record.times,jdbcType=INTEGER}, |
|||
start_time = #{record.startTime,jdbcType=TIMESTAMP}, |
|||
end_time = #{record.endTime,jdbcType=TIMESTAMP}, |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
lost_reason = #{record.lostReason,jdbcType=VARCHAR}, |
|||
followuper = #{record.followuper,jdbcType=VARCHAR}, |
|||
followup_time = #{record.followupTime,jdbcType=TIMESTAMP}, |
|||
followup_text = #{record.followupText,jdbcType=VARCHAR}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.FmsFollowupTask"> |
|||
update fms_followup_task |
|||
<set> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="age != null"> |
|||
age = #{age,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="queueId != null"> |
|||
queue_id = #{queueId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="times != null"> |
|||
times = #{times,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="startTime != null"> |
|||
start_time = #{startTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="endTime != null"> |
|||
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="status != null"> |
|||
status = #{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="lostReason != null"> |
|||
lost_reason = #{lostReason,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followuper != null"> |
|||
followuper = #{followuper,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="followupTime != null"> |
|||
followup_time = #{followupTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="followupText != null"> |
|||
followup_text = #{followupText,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.FmsFollowupTask"> |
|||
update fms_followup_task |
|||
set patient_id = #{patientId,jdbcType=BIGINT}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
age = #{age,jdbcType=INTEGER}, |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
queue_id = #{queueId,jdbcType=BIGINT}, |
|||
times = #{times,jdbcType=INTEGER}, |
|||
start_time = #{startTime,jdbcType=TIMESTAMP}, |
|||
end_time = #{endTime,jdbcType=TIMESTAMP}, |
|||
status = #{status,jdbcType=TINYINT}, |
|||
lost_reason = #{lostReason,jdbcType=VARCHAR}, |
|||
followuper = #{followuper,jdbcType=VARCHAR}, |
|||
followup_time = #{followupTime,jdbcType=TIMESTAMP}, |
|||
followup_text = #{followupText,jdbcType=VARCHAR}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,427 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.FmsPatientQueueRelationMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.FmsPatientQueueRelation"> |
|||
<id column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<id column="queue_id" jdbcType="BIGINT" property="queueId" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="pinyin_full" jdbcType="VARCHAR" property="pinyinFull" /> |
|||
<result column="pinyin_simple" jdbcType="VARCHAR" property="pinyinSimple" /> |
|||
<result column="gender" jdbcType="TINYINT" property="gender" /> |
|||
<result column="birth_date" jdbcType="DATE" property="birthDate" /> |
|||
<result column="ethnicity" jdbcType="VARCHAR" property="ethnicity" /> |
|||
<result column="education_years" jdbcType="INTEGER" property="educationYears" /> |
|||
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|||
<result column="id_card_type" jdbcType="TINYINT" property="idCardType" /> |
|||
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
patient_id, queue_id, name, pinyin_full, pinyin_simple, gender, birth_date, ethnicity, |
|||
education_years, phone, id_card_type, id_card, tenant_id, del_flag, create_by, create_time, |
|||
update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelationExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from fms_patient_queue_relation |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelationKey" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from fms_patient_queue_relation |
|||
where patient_id = #{patientId,jdbcType=BIGINT} |
|||
and queue_id = #{queueId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelationKey"> |
|||
delete from fms_patient_queue_relation |
|||
where patient_id = #{patientId,jdbcType=BIGINT} |
|||
and queue_id = #{queueId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelation"> |
|||
insert into fms_patient_queue_relation (patient_id, queue_id, name, |
|||
pinyin_full, pinyin_simple, gender, |
|||
birth_date, ethnicity, education_years, |
|||
phone, id_card_type, id_card, |
|||
tenant_id, del_flag, create_by, |
|||
create_time, update_by, update_time, |
|||
remark) |
|||
values (#{patientId,jdbcType=BIGINT}, #{queueId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|||
#{pinyinFull,jdbcType=VARCHAR}, #{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|||
#{birthDate,jdbcType=DATE}, #{ethnicity,jdbcType=VARCHAR}, #{educationYears,jdbcType=INTEGER}, |
|||
#{phone,jdbcType=VARCHAR}, #{idCardType,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR}, |
|||
#{tenantId,jdbcType=BIGINT}, #{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|||
#{remark,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelation"> |
|||
insert into fms_patient_queue_relation |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="queueId != null"> |
|||
queue_id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
birth_date, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="queueId != null"> |
|||
#{queueId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
#{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
#{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
#{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
#{birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
#{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
#{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
#{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
#{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
#{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
#{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelationExample" resultType="java.lang.Long"> |
|||
select count(*) from fms_patient_queue_relation |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update fms_patient_queue_relation |
|||
<set> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.queueId != null"> |
|||
queue_id = #{record.queueId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinFull != null"> |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinSimple != null"> |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.gender != null"> |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.birthDate != null"> |
|||
birth_date = #{record.birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="record.ethnicity != null"> |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.educationYears != null"> |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.phone != null"> |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.idCardType != null"> |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.idCard != null"> |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tenantId != null"> |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update fms_patient_queue_relation |
|||
set patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
queue_id = #{record.queueId,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
birth_date = #{record.birthDate,jdbcType=DATE}, |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelation"> |
|||
update fms_patient_queue_relation |
|||
<set> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
birth_date = #{birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where patient_id = #{patientId,jdbcType=BIGINT} |
|||
and queue_id = #{queueId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.FmsPatientQueueRelation"> |
|||
update fms_patient_queue_relation |
|||
set name = #{name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
birth_date = #{birthDate,jdbcType=DATE}, |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where patient_id = #{patientId,jdbcType=BIGINT} |
|||
and queue_id = #{queueId,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,584 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.PmsTreatmentMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.PmsTreatment"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="pinyin_full" jdbcType="VARCHAR" property="pinyinFull" /> |
|||
<result column="pinyin_simple" jdbcType="VARCHAR" property="pinyinSimple" /> |
|||
<result column="gender" jdbcType="TINYINT" property="gender" /> |
|||
<result column="age" jdbcType="INTEGER" property="age" /> |
|||
<result column="birth_date" jdbcType="DATE" property="birthDate" /> |
|||
<result column="ethnicity" jdbcType="VARCHAR" property="ethnicity" /> |
|||
<result column="education_years" jdbcType="INTEGER" property="educationYears" /> |
|||
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|||
<result column="id_card_type" jdbcType="TINYINT" property="idCardType" /> |
|||
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|||
<result column="visit_type" jdbcType="TINYINT" property="visitType" /> |
|||
<result column="visit_number" jdbcType="VARCHAR" property="visitNumber" /> |
|||
<result column="visit_time" jdbcType="TIMESTAMP" property="visitTime" /> |
|||
<result column="discharge_time" jdbcType="TIMESTAMP" property="dischargeTime" /> |
|||
<result column="doctor" jdbcType="VARCHAR" property="doctor" /> |
|||
<result column="dept_name" jdbcType="VARCHAR" property="deptName" /> |
|||
<result column="diagnosis_code" jdbcType="VARCHAR" property="diagnosisCode" /> |
|||
<result column="diagnosis_name" jdbcType="VARCHAR" property="diagnosisName" /> |
|||
<result column="status" jdbcType="TINYINT" property="status" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, patient_id, name, pinyin_full, pinyin_simple, gender, age, birth_date, ethnicity, |
|||
education_years, phone, id_card_type, id_card, visit_type, visit_number, visit_time, |
|||
discharge_time, doctor, dept_name, diagnosis_code, diagnosis_name, status, del_flag, |
|||
tenant_id, create_by, create_time, update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.PmsTreatmentExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from pms_treatment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from pms_treatment |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from pms_treatment |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.PmsTreatment"> |
|||
insert into pms_treatment (id, patient_id, name, |
|||
pinyin_full, pinyin_simple, gender, |
|||
age, birth_date, ethnicity, |
|||
education_years, phone, id_card_type, |
|||
id_card, visit_type, visit_number, |
|||
visit_time, discharge_time, doctor, |
|||
dept_name, diagnosis_code, diagnosis_name, |
|||
status, del_flag, tenant_id, |
|||
create_by, create_time, update_by, |
|||
update_time, remark) |
|||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, |
|||
#{pinyinFull,jdbcType=VARCHAR}, #{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, |
|||
#{age,jdbcType=INTEGER}, #{birthDate,jdbcType=DATE}, #{ethnicity,jdbcType=VARCHAR}, |
|||
#{educationYears,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR}, #{idCardType,jdbcType=TINYINT}, |
|||
#{idCard,jdbcType=VARCHAR}, #{visitType,jdbcType=TINYINT}, #{visitNumber,jdbcType=VARCHAR}, |
|||
#{visitTime,jdbcType=TIMESTAMP}, #{dischargeTime,jdbcType=TIMESTAMP}, #{doctor,jdbcType=VARCHAR}, |
|||
#{deptName,jdbcType=VARCHAR}, #{diagnosisCode,jdbcType=VARCHAR}, #{diagnosisName,jdbcType=VARCHAR}, |
|||
#{status,jdbcType=TINYINT}, #{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.PmsTreatment"> |
|||
insert into pms_treatment |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender, |
|||
</if> |
|||
<if test="age != null"> |
|||
age, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
birth_date, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card, |
|||
</if> |
|||
<if test="visitType != null"> |
|||
visit_type, |
|||
</if> |
|||
<if test="visitNumber != null"> |
|||
visit_number, |
|||
</if> |
|||
<if test="visitTime != null"> |
|||
visit_time, |
|||
</if> |
|||
<if test="dischargeTime != null"> |
|||
discharge_time, |
|||
</if> |
|||
<if test="doctor != null"> |
|||
doctor, |
|||
</if> |
|||
<if test="deptName != null"> |
|||
dept_name, |
|||
</if> |
|||
<if test="diagnosisCode != null"> |
|||
diagnosis_code, |
|||
</if> |
|||
<if test="diagnosisName != null"> |
|||
diagnosis_name, |
|||
</if> |
|||
<if test="status != null"> |
|||
status, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
#{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
#{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
#{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="age != null"> |
|||
#{age,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
#{birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
#{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
#{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
#{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
#{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
#{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="visitType != null"> |
|||
#{visitType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="visitNumber != null"> |
|||
#{visitNumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="visitTime != null"> |
|||
#{visitTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="dischargeTime != null"> |
|||
#{dischargeTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="doctor != null"> |
|||
#{doctor,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="deptName != null"> |
|||
#{deptName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisCode != null"> |
|||
#{diagnosisCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisName != null"> |
|||
#{diagnosisName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="status != null"> |
|||
#{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
#{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.PmsTreatmentExample" resultType="java.lang.Long"> |
|||
select count(*) from pms_treatment |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update pms_treatment |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinFull != null"> |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinSimple != null"> |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.gender != null"> |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.age != null"> |
|||
age = #{record.age,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.birthDate != null"> |
|||
birth_date = #{record.birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="record.ethnicity != null"> |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.educationYears != null"> |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.phone != null"> |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.idCardType != null"> |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.idCard != null"> |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.visitType != null"> |
|||
visit_type = #{record.visitType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.visitNumber != null"> |
|||
visit_number = #{record.visitNumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.visitTime != null"> |
|||
visit_time = #{record.visitTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.dischargeTime != null"> |
|||
discharge_time = #{record.dischargeTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.doctor != null"> |
|||
doctor = #{record.doctor,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.deptName != null"> |
|||
dept_name = #{record.deptName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.diagnosisCode != null"> |
|||
diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.diagnosisName != null"> |
|||
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.status != null"> |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.tenantId != null"> |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update pms_treatment |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
age = #{record.age,jdbcType=INTEGER}, |
|||
birth_date = #{record.birthDate,jdbcType=DATE}, |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
visit_type = #{record.visitType,jdbcType=TINYINT}, |
|||
visit_number = #{record.visitNumber,jdbcType=VARCHAR}, |
|||
visit_time = #{record.visitTime,jdbcType=TIMESTAMP}, |
|||
discharge_time = #{record.dischargeTime,jdbcType=TIMESTAMP}, |
|||
doctor = #{record.doctor,jdbcType=VARCHAR}, |
|||
dept_name = #{record.deptName,jdbcType=VARCHAR}, |
|||
diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, |
|||
diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.PmsTreatment"> |
|||
update pms_treatment |
|||
<set> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="age != null"> |
|||
age = #{age,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
birth_date = #{birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="visitType != null"> |
|||
visit_type = #{visitType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="visitNumber != null"> |
|||
visit_number = #{visitNumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="visitTime != null"> |
|||
visit_time = #{visitTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="dischargeTime != null"> |
|||
discharge_time = #{dischargeTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="doctor != null"> |
|||
doctor = #{doctor,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="deptName != null"> |
|||
dept_name = #{deptName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisCode != null"> |
|||
diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="diagnosisName != null"> |
|||
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="status != null"> |
|||
status = #{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.PmsTreatment"> |
|||
update pms_treatment |
|||
set patient_id = #{patientId,jdbcType=BIGINT}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
age = #{age,jdbcType=INTEGER}, |
|||
birth_date = #{birthDate,jdbcType=DATE}, |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
visit_type = #{visitType,jdbcType=TINYINT}, |
|||
visit_number = #{visitNumber,jdbcType=VARCHAR}, |
|||
visit_time = #{visitTime,jdbcType=TIMESTAMP}, |
|||
discharge_time = #{dischargeTime,jdbcType=TIMESTAMP}, |
|||
doctor = #{doctor,jdbcType=VARCHAR}, |
|||
dept_name = #{deptName,jdbcType=VARCHAR}, |
|||
diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, |
|||
diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, |
|||
status = #{status,jdbcType=TINYINT}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,317 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.PmsTreatmentRecordMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.PmsTreatmentRecord"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="treatment_id" jdbcType="BIGINT" property="treatmentId" /> |
|||
<result column="question_code" jdbcType="VARCHAR" property="questionCode" /> |
|||
<result column="answer" jdbcType="VARCHAR" property="answer" /> |
|||
<result column="time" jdbcType="TIMESTAMP" property="time" /> |
|||
<result column="source_id" jdbcType="VARCHAR" property="sourceId" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, treatment_id, question_code, answer, time, source_id, del_flag, create_by, create_time, |
|||
update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.PmsTreatmentRecordExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from pms_treatment_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from pms_treatment_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from pms_treatment_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.PmsTreatmentRecord"> |
|||
insert into pms_treatment_record (id, treatment_id, question_code, |
|||
answer, time, source_id, |
|||
del_flag, create_by, create_time, |
|||
update_by, update_time, remark |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{treatmentId,jdbcType=BIGINT}, #{questionCode,jdbcType=VARCHAR}, |
|||
#{answer,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, #{sourceId,jdbcType=VARCHAR}, |
|||
#{delFlag,jdbcType=TINYINT}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.PmsTreatmentRecord"> |
|||
insert into pms_treatment_record |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="treatmentId != null"> |
|||
treatment_id, |
|||
</if> |
|||
<if test="questionCode != null"> |
|||
question_code, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer, |
|||
</if> |
|||
<if test="time != null"> |
|||
time, |
|||
</if> |
|||
<if test="sourceId != null"> |
|||
source_id, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="treatmentId != null"> |
|||
#{treatmentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionCode != null"> |
|||
#{questionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
#{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="time != null"> |
|||
#{time,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="sourceId != null"> |
|||
#{sourceId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.PmsTreatmentRecordExample" resultType="java.lang.Long"> |
|||
select count(*) from pms_treatment_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update pms_treatment_record |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.treatmentId != null"> |
|||
treatment_id = #{record.treatmentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionCode != null"> |
|||
question_code = #{record.questionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.answer != null"> |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.time != null"> |
|||
time = #{record.time,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.sourceId != null"> |
|||
source_id = #{record.sourceId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update pms_treatment_record |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
treatment_id = #{record.treatmentId,jdbcType=BIGINT}, |
|||
question_code = #{record.questionCode,jdbcType=VARCHAR}, |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
time = #{record.time,jdbcType=TIMESTAMP}, |
|||
source_id = #{record.sourceId,jdbcType=VARCHAR}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.PmsTreatmentRecord"> |
|||
update pms_treatment_record |
|||
<set> |
|||
<if test="treatmentId != null"> |
|||
treatment_id = #{treatmentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionCode != null"> |
|||
question_code = #{questionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="time != null"> |
|||
time = #{time,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="sourceId != null"> |
|||
source_id = #{sourceId,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.PmsTreatmentRecord"> |
|||
update pms_treatment_record |
|||
set treatment_id = #{treatmentId,jdbcType=BIGINT}, |
|||
question_code = #{questionCode,jdbcType=VARCHAR}, |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
time = #{time,jdbcType=TIMESTAMP}, |
|||
source_id = #{sourceId,jdbcType=VARCHAR}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,442 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.Pms_patientMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.Pms_patient"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="pinyin_full" jdbcType="VARCHAR" property="pinyinFull" /> |
|||
<result column="pinyin_simple" jdbcType="VARCHAR" property="pinyinSimple" /> |
|||
<result column="gender" jdbcType="TINYINT" property="gender" /> |
|||
<result column="birth_date" jdbcType="DATE" property="birthDate" /> |
|||
<result column="ethnicity" jdbcType="VARCHAR" property="ethnicity" /> |
|||
<result column="education_years" jdbcType="INTEGER" property="educationYears" /> |
|||
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|||
<result column="id_card_type" jdbcType="TINYINT" property="idCardType" /> |
|||
<result column="id_card" jdbcType="VARCHAR" property="idCard" /> |
|||
<result column="source" jdbcType="TINYINT" property="source" /> |
|||
<result column="current_illness_history" jdbcType="VARCHAR" property="currentIllnessHistory" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, name, pinyin_full, pinyin_simple, gender, birth_date, ethnicity, education_years, |
|||
phone, id_card_type, id_card, source, current_illness_history, del_flag, tenant_id, |
|||
create_by, create_time, update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.Pms_patientExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from pms_patient |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from pms_patient |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from pms_patient |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.Pms_patient"> |
|||
insert into pms_patient (id, name, pinyin_full, |
|||
pinyin_simple, gender, birth_date, |
|||
ethnicity, education_years, phone, |
|||
id_card_type, id_card, source, |
|||
current_illness_history, del_flag, tenant_id, |
|||
create_by, create_time, update_by, |
|||
update_time, remark) |
|||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{pinyinFull,jdbcType=VARCHAR}, |
|||
#{pinyinSimple,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{birthDate,jdbcType=DATE}, |
|||
#{ethnicity,jdbcType=VARCHAR}, #{educationYears,jdbcType=INTEGER}, #{phone,jdbcType=VARCHAR}, |
|||
#{idCardType,jdbcType=TINYINT}, #{idCard,jdbcType=VARCHAR}, #{source,jdbcType=TINYINT}, |
|||
#{currentIllnessHistory,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT}, #{tenantId,jdbcType=BIGINT}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.Pms_patient"> |
|||
insert into pms_patient |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
birth_date, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card, |
|||
</if> |
|||
<if test="source != null"> |
|||
source, |
|||
</if> |
|||
<if test="currentIllnessHistory != null"> |
|||
current_illness_history, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
#{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
#{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
#{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
#{birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
#{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
#{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
#{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
#{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
#{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="source != null"> |
|||
#{source,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="currentIllnessHistory != null"> |
|||
#{currentIllnessHistory,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
#{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.Pms_patientExample" resultType="java.lang.Long"> |
|||
select count(*) from pms_patient |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update pms_patient |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinFull != null"> |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.pinyinSimple != null"> |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.gender != null"> |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.birthDate != null"> |
|||
birth_date = #{record.birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="record.ethnicity != null"> |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.educationYears != null"> |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.phone != null"> |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.idCardType != null"> |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.idCard != null"> |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.source != null"> |
|||
source = #{record.source,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.currentIllnessHistory != null"> |
|||
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.tenantId != null"> |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update pms_patient |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{record.pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{record.pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
birth_date = #{record.birthDate,jdbcType=DATE}, |
|||
ethnicity = #{record.ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{record.educationYears,jdbcType=INTEGER}, |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{record.idCardType,jdbcType=TINYINT}, |
|||
id_card = #{record.idCard,jdbcType=VARCHAR}, |
|||
source = #{record.source,jdbcType=TINYINT}, |
|||
current_illness_history = #{record.currentIllnessHistory,jdbcType=VARCHAR}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.Pms_patient"> |
|||
update pms_patient |
|||
<set> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinFull != null"> |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="pinyinSimple != null"> |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="birthDate != null"> |
|||
birth_date = #{birthDate,jdbcType=DATE}, |
|||
</if> |
|||
<if test="ethnicity != null"> |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="educationYears != null"> |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="idCardType != null"> |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idCard != null"> |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="source != null"> |
|||
source = #{source,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="currentIllnessHistory != null"> |
|||
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="tenantId != null"> |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.Pms_patient"> |
|||
update pms_patient |
|||
set name = #{name,jdbcType=VARCHAR}, |
|||
pinyin_full = #{pinyinFull,jdbcType=VARCHAR}, |
|||
pinyin_simple = #{pinyinSimple,jdbcType=VARCHAR}, |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
birth_date = #{birthDate,jdbcType=DATE}, |
|||
ethnicity = #{ethnicity,jdbcType=VARCHAR}, |
|||
education_years = #{educationYears,jdbcType=INTEGER}, |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
id_card_type = #{idCardType,jdbcType=TINYINT}, |
|||
id_card = #{idCard,jdbcType=VARCHAR}, |
|||
source = #{source,jdbcType=TINYINT}, |
|||
current_illness_history = #{currentIllnessHistory,jdbcType=VARCHAR}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
tenant_id = #{tenantId,jdbcType=BIGINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,252 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.RmsReportTypeMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.RmsReportType"> |
|||
<id column="id" jdbcType="INTEGER" property="id" /> |
|||
<result column="type_name" jdbcType="VARCHAR" property="typeName" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, type_name, del_flag, create_by, create_time, update_by, update_time, remark |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.RmsReportTypeExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from rms_report_type |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from rms_report_type |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer"> |
|||
delete from rms_report_type |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.RmsReportType"> |
|||
insert into rms_report_type (id, type_name, del_flag, |
|||
create_by, create_time, update_by, |
|||
update_time, remark) |
|||
values (#{id,jdbcType=INTEGER}, #{typeName,jdbcType=VARCHAR}, #{delFlag,jdbcType=TINYINT}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.RmsReportType"> |
|||
insert into rms_report_type |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="typeName != null"> |
|||
type_name, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="typeName != null"> |
|||
#{typeName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.RmsReportTypeExample" resultType="java.lang.Long"> |
|||
select count(*) from rms_report_type |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update rms_report_type |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.typeName != null"> |
|||
type_name = #{record.typeName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update rms_report_type |
|||
set id = #{record.id,jdbcType=INTEGER}, |
|||
type_name = #{record.typeName,jdbcType=VARCHAR}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{record.remark,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.RmsReportType"> |
|||
update rms_report_type |
|||
<set> |
|||
<if test="typeName != null"> |
|||
type_name = #{typeName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.RmsReportType"> |
|||
update rms_report_type |
|||
set type_name = #{typeName,jdbcType=VARCHAR}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
remark = #{remark,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=INTEGER} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,300 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.UmsDataSourceMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.UmsDataSource"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="data_source_key" jdbcType="VARCHAR" property="dataSourceKey" /> |
|||
<result column="hospital_id" jdbcType="BIGINT" property="hospitalId" /> |
|||
<result column="url" jdbcType="VARCHAR" property="url" /> |
|||
<result column="username" jdbcType="VARCHAR" property="username" /> |
|||
<result column="password" jdbcType="VARCHAR" property="password" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, data_source_key, hospital_id, url, username, password, create_by, create_time, |
|||
update_by, update_time, del_flag |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.UmsDataSourceExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from ums_data_source |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from ums_data_source |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from ums_data_source |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.UmsDataSource"> |
|||
insert into ums_data_source (id, data_source_key, hospital_id, |
|||
url, username, password, |
|||
create_by, create_time, update_by, |
|||
update_time, del_flag) |
|||
values (#{id,jdbcType=BIGINT}, #{dataSourceKey,jdbcType=VARCHAR}, #{hospitalId,jdbcType=BIGINT}, |
|||
#{url,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.UmsDataSource"> |
|||
insert into ums_data_source |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="dataSourceKey != null"> |
|||
data_source_key, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id, |
|||
</if> |
|||
<if test="url != null"> |
|||
url, |
|||
</if> |
|||
<if test="username != null"> |
|||
username, |
|||
</if> |
|||
<if test="password != null"> |
|||
password, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="dataSourceKey != null"> |
|||
#{dataSourceKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
#{hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="url != null"> |
|||
#{url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="username != null"> |
|||
#{username,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="password != null"> |
|||
#{password,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.UmsDataSourceExample" resultType="java.lang.Long"> |
|||
select count(*) from ums_data_source |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update ums_data_source |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.dataSourceKey != null"> |
|||
data_source_key = #{record.dataSourceKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.hospitalId != null"> |
|||
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.url != null"> |
|||
url = #{record.url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.username != null"> |
|||
username = #{record.username,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.password != null"> |
|||
password = #{record.password,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update ums_data_source |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
data_source_key = #{record.dataSourceKey,jdbcType=VARCHAR}, |
|||
hospital_id = #{record.hospitalId,jdbcType=BIGINT}, |
|||
url = #{record.url,jdbcType=VARCHAR}, |
|||
username = #{record.username,jdbcType=VARCHAR}, |
|||
password = #{record.password,jdbcType=VARCHAR}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{record.delFlag,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.UmsDataSource"> |
|||
update ums_data_source |
|||
<set> |
|||
<if test="dataSourceKey != null"> |
|||
data_source_key = #{dataSourceKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospitalId != null"> |
|||
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="url != null"> |
|||
url = #{url,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="username != null"> |
|||
username = #{username,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="password != null"> |
|||
password = #{password,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.UmsDataSource"> |
|||
update ums_data_source |
|||
set data_source_key = #{dataSourceKey,jdbcType=VARCHAR}, |
|||
hospital_id = #{hospitalId,jdbcType=BIGINT}, |
|||
url = #{url,jdbcType=VARCHAR}, |
|||
username = #{username,jdbcType=VARCHAR}, |
|||
password = #{password,jdbcType=VARCHAR}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
del_flag = #{delFlag,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue