diff --git a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/ErrorConstant.java b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/ErrorConstant.java index 2a19c2b..65f5b8a 100644 --- a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/ErrorConstant.java +++ b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/ErrorConstant.java @@ -128,7 +128,10 @@ public enum ErrorConstant implements BaseEnum { KEY_RE(50016, "KEY重复"), EXPORT_SCALE_IS_NULL(50017, "请选择要导出的量表类型"), EXPORT_REPORT_IS_NULL(50018, "没有可以导出的报告单"), + DCS_RUNNING_ERROR(50019, "数据治理服务正在运行中"), + DateRangeError (50020, "日期范围错误"), + DcsLogError (50021, "lastSyncId和lastMakeupDate不应该为null"), ; private Integer code; diff --git a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/UserConstants.java b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/UserConstants.java index fa07c66..e1229ef 100644 --- a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/UserConstants.java +++ b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/constant/UserConstants.java @@ -247,4 +247,16 @@ public class UserConstants { private String key; private String desc; } + + @Getter + @AllArgsConstructor + public enum DcsRunningStatus implements BaseEnum { + Processing(0, "进行中", ""), Success(1, "成功", ""), Failed(2, "失败", ""), + ; + private Integer code; + private String desc; + + private String key; + + } } diff --git a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysDept.java b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysDept.java index ea9a2b5..31c8fca 100644 --- a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysDept.java +++ b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysDept.java @@ -74,6 +74,8 @@ public class SysDept extends BaseEntity { */ private String parentName; + private String deptCode; + /** * 子部门 */ @@ -181,6 +183,14 @@ public class SysDept extends BaseEntity { this.children = children; } + public String getDeptCode() { + return deptCode; + } + + public void setDeptCode(String deptCode) { + this.deptCode = deptCode; + } + @Override public String toString() { return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) diff --git a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysUser.java b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysUser.java index 99cec3e..eed53fd 100644 --- a/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysUser.java +++ b/ruisi_java/ruisi-cc-common/src/main/java/com/ccsens/common/core/domain/entity/SysUser.java @@ -68,6 +68,12 @@ public class SysUser extends BaseEntity { @ExcelTable(name = "登录名称") private String userName; + /** + * 工号 + */ + @ExcelTable(name = "工号") + private String emplCode; + /** * 用户昵称 */ @@ -296,6 +302,14 @@ public class SysUser extends BaseEntity { this.userName = userName; } + public String getEmplCode() { + return emplCode; + } + + public void setEmplCode(String emplCode) { + this.emplCode = emplCode; + } + @Email(message = "邮箱格式不正确") @Size(min = 0, max = 50, message = "邮箱长度不能超过50个字符") public String getEmail() { diff --git a/ruisi_java/ruisi-cc-generator/src/main/resources/mbg.xml b/ruisi_java/ruisi-cc-generator/src/main/resources/mbg.xml index 62462c1..25fbf34 100644 --- a/ruisi_java/ruisi-cc-generator/src/main/resources/mbg.xml +++ b/ruisi_java/ruisi-cc-generator/src/main/resources/mbg.xml @@ -64,13 +64,19 @@ - + - +
+
+
+
+
+
+ @@ -115,7 +121,7 @@ -
+ diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/dto/DockDto.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/dto/DockDto.java new file mode 100644 index 0000000..d09d8a1 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/dto/DockDto.java @@ -0,0 +1,298 @@ +package com.ccsens.system.domain.dto; + +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.StrUtil; +import com.ccsens.system.domain.po.DockEmpl; +import com.ccsens.system.domain.po.DockPatientBaseInfo; +import com.ccsens.system.domain.po.DockPatientVisitInfo; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; +import java.math.BigDecimal; +import java.util.Date; +import java.util.List; + +/** + * @Author zzc + * @Package com.ccsens.system.domain.dto + * @Date 2026/2/9 11:00 + * @description: + */ +public class DockDto { + + @Data + public static class AddPatientDto { + @ApiModelProperty("患者信息") + private PatientInfo basicInfo; + @ApiModelProperty("就诊信息") + private Jiuzhen visitInfo; + + } + + + @Data + public static class PatientInfo { + @ApiModelProperty("主键") + private Long id; + @ApiModelProperty("姓名") + private String name; + @NotNull(message = "证件号码不能为空") + @ApiModelProperty("证件号码") + private String idCard; + @ApiModelProperty("联系电话") + private String phone; + @ApiModelProperty("性别") + private String sex; + @ApiModelProperty("出生日期") + private String birthday; + @ApiModelProperty("受教育程度 0文盲、1小学、2初中、3高中/技校/中专、4大学/专科及以上") + private String educationalStatus; + @ApiModelProperty("职业类型 1:农林牧渔水利生产人员 2:教师 3:医务工作者 4:专业技术人员 5:生产、运输设备操作人员及有关人员6:商业、服务业人员7:国家机关、事业单位、企业负责人8:国家机关、事业单位、企业办事人员和有关人员9:军人 10:媒体、文体类工作人员 11:在校学生 12:未就业 13:家务 14:其他") + private String career; + @ApiModelProperty("婚姻状况 0已婚、1未婚、2离婚、3丧偶、4未知") + private String maritalStatus; + @ApiModelProperty("民族") + private String nation; + @ApiModelProperty("籍贯") + private String nativePlace; + @ApiModelProperty("现住址") + private String address; + @ApiModelProperty("居住状态 0独居、1夫妻同住、2多代加入同住、3养老院、4其他") + private String dwellingState; + @ApiModelProperty("联系人姓名") + private String contactName; + @ApiModelProperty("联系人电话") + private String contactMobile; + @ApiModelProperty("与联系人关系") + private String contactRelation; + @ApiModelProperty("ABO血型") + private String aboBloodType; + @ApiModelProperty("Rh血型") + private String rhBloodType; + @ApiModelProperty("信仰") + private String belief; + @ApiModelProperty("爱好") + private String hobby; + + public static DockPatientBaseInfo toPatientInfo(PatientInfo patientInfo) { + DockPatientBaseInfo info = new DockPatientBaseInfo(); + info.setId(patientInfo.getId()); + info.setName(patientInfo.getName()); + info.setIdCard(patientInfo.getIdCard()); + info.setPhone(patientInfo.getPhone()); + info.setSex(patientInfo.getSex()); + info.setBirthday(DateUtil.parse(patientInfo.getBirthday(), "yyyy-MM-dd")); + info.setEducationalStatus(patientInfo.getEducationalStatus()); + info.setCareer(patientInfo.getCareer()); + info.setMaritalStatus(patientInfo.getMaritalStatus()); + info.setNation(patientInfo.getNation()); + info.setNativePlace(patientInfo.getNativePlace()); + info.setAddress(patientInfo.getAddress()); + info.setDwellingState(patientInfo.getDwellingState()); + info.setContactName(patientInfo.getContactName()); + info.setContactMobile(patientInfo.getContactMobile()); + info.setContactRelation(patientInfo.getContactRelation()); + info.setAboBloodType(patientInfo.getAboBloodType()); + info.setRhBloodType(patientInfo.getRhBloodType()); + info.setBelief(patientInfo.getBelief()); + info.setHobby(patientInfo.getHobby()); + return info; + } + } + + @Data + public static class Jiuzhen { + @ApiModelProperty("") + private String id; + @ApiModelProperty("证件号码") + private String idCard; + @ApiModelProperty("就诊类型") + private String visitType; + @ApiModelProperty("就诊流水号") + private String visitNo; + @ApiModelProperty("年龄") + private String age; + @ApiModelProperty("就诊/住院科室") + private String department; + @ApiModelProperty("就诊/主治医师") + private String doctor; + @ApiModelProperty("就诊/入院日期") + private String admissionDate; + @ApiModelProperty("住院次数") + private String admissionCount; + @ApiModelProperty("床位号") + private String bedNumber; + @ApiModelProperty("出院日期") + private String dischargeDate; + @ApiModelProperty("入院途径") + private String admissionMethod; + @ApiModelProperty("离院方式") + private String dischargeMethod; + @ApiModelProperty("身高") + private String height; + @ApiModelProperty("体重") + private String weight; + @ApiModelProperty("T值") + private String tz; + @ApiModelProperty("体温") + private String temperature; + @ApiModelProperty("收缩压") + private String bloodPressureShrink; + @ApiModelProperty("舒张压") + private String bloodPressureDiastole; + @ApiModelProperty("脉搏") + private String pulse; + @ApiModelProperty("肌酐") + private String creatinine; + @ApiModelProperty("血氧饱和度") + private String oxygenSaturation; + @ApiModelProperty("白蛋白") + private String albumin; + @ApiModelProperty("总蛋白") + private String totalProtein; + @ApiModelProperty("维生素D3测定") + private String vitaminD3; + @ApiModelProperty("凝血酶原时间") + private String hematocrit; + @ApiModelProperty("D-二聚体") + private String dimer; + @ApiModelProperty("是否吸烟") + private String smokingHistory; + @ApiModelProperty("吸烟年限") + private String smokingYear; + @ApiModelProperty("是否戒烟") + private String smokingQuit; + @ApiModelProperty("戒烟年限") + private String smokingQuitYear; + @ApiModelProperty("是否饮酒") + private String drinkHistory; + @ApiModelProperty("饮酒年限") + private String drinkYear; + @ApiModelProperty("是否戒酒") + private String drinkQuit; + @ApiModelProperty("戒酒年限") + private String drinkQuitYear; + @ApiModelProperty("是否过敏") + private String hasAllergy; + @ApiModelProperty("过敏药") + private String allergyDrug; + @ApiModelProperty("诊断信息") + private List diagnosis; + @ApiModelProperty("用药信息") + private List medications; + + public List getDiagnosis() { + if (CollUtil.isNotEmpty(diagnosis)) { + diagnosis.forEach(z -> { + z.setVisitNo(visitNo); + }); + } + return diagnosis; + } + + public List getMedications() { + if (CollUtil.isNotEmpty(medications)) { + medications.forEach(z -> { + z.setVisitNo(visitNo); + }); + } + return medications; + } + + public static DockPatientVisitInfo toJiuzhen(Jiuzhen jiuzhen) { + DockPatientVisitInfo dockPatientVisitInfo = new DockPatientVisitInfo(); + dockPatientVisitInfo.setIdCard(jiuzhen.getIdCard()); + dockPatientVisitInfo.setVisitType(jiuzhen.getVisitType()); + dockPatientVisitInfo.setVisitNo(jiuzhen.getVisitNo()); + dockPatientVisitInfo.setAge(Integer.parseInt(jiuzhen.getAge())); + dockPatientVisitInfo.setDepartment(jiuzhen.getDepartment()); + dockPatientVisitInfo.setDoctor(jiuzhen.getDoctor()); + dockPatientVisitInfo.setAdmissionDate(DateUtil.parse(jiuzhen.getAdmissionDate())); + dockPatientVisitInfo.setAdmissionCount(Integer.parseInt(jiuzhen.getAdmissionCount())); + dockPatientVisitInfo.setBedNumber(jiuzhen.getBedNumber()); + dockPatientVisitInfo.setDischargeDate(DateUtil.parse(jiuzhen.getDischargeDate())); + dockPatientVisitInfo.setAdmissionMethod(jiuzhen.getAdmissionMethod()); + dockPatientVisitInfo.setDischargeMethod(jiuzhen.getDischargeMethod()); + dockPatientVisitInfo.setHeight(new BigDecimal(jiuzhen.getHeight())); + dockPatientVisitInfo.setWeight(new BigDecimal(jiuzhen.getWeight())); + dockPatientVisitInfo.setTz(new BigDecimal(jiuzhen.getTz())); + dockPatientVisitInfo.setTemperature(new BigDecimal(jiuzhen.getTemperature())); + dockPatientVisitInfo.setBloodPressureShrink(Integer.parseInt(jiuzhen.getBloodPressureShrink())); + dockPatientVisitInfo.setBloodPressureDiastole(Integer.parseInt(jiuzhen.getBloodPressureDiastole())); + dockPatientVisitInfo.setPulse(Integer.parseInt(jiuzhen.getPulse())); + dockPatientVisitInfo.setCreatinine(new BigDecimal(jiuzhen.getCreatinine())); + dockPatientVisitInfo.setOxygenSaturation(new BigDecimal(jiuzhen.getOxygenSaturation())); + dockPatientVisitInfo.setAlbumin(new BigDecimal(jiuzhen.getAlbumin())); + dockPatientVisitInfo.setTotalProtein(new BigDecimal(jiuzhen.getTotalProtein())); + dockPatientVisitInfo.setVitaminD3(new BigDecimal(jiuzhen.getVitaminD3())); + dockPatientVisitInfo.setHematocrit(new BigDecimal(jiuzhen.getHematocrit())); + dockPatientVisitInfo.setDimer(new BigDecimal(jiuzhen.getDimer())); + dockPatientVisitInfo.setSmokingHistory(Byte.parseByte(jiuzhen.getSmokingHistory())); + dockPatientVisitInfo.setSmokingYear(Integer.parseInt(jiuzhen.getSmokingYear())); + dockPatientVisitInfo.setSmokingQuit(Byte.parseByte(jiuzhen.getSmokingQuit())); + dockPatientVisitInfo.setSmokingQuitYear(Integer.parseInt(jiuzhen.getSmokingQuitYear())); + dockPatientVisitInfo.setDrinkHistory(Byte.parseByte(jiuzhen.getDrinkHistory())); + dockPatientVisitInfo.setDrinkYear(StrUtil.isNotEmpty(jiuzhen.getDrinkYear()) ? Integer.parseInt(jiuzhen.getDrinkYear()) : null); + dockPatientVisitInfo.setDrinkQuit(StrUtil.isNotEmpty(jiuzhen.getDrinkQuit()) ? Byte.parseByte(jiuzhen.getDrinkQuit()) : null); + dockPatientVisitInfo.setDrinkQuitYear(StrUtil.isNotEmpty(jiuzhen.getDrinkQuitYear()) ? Integer.parseInt(jiuzhen.getDrinkQuitYear()) : null); + dockPatientVisitInfo.setHasAllergy(StrUtil.isNotEmpty(jiuzhen.getHasAllergy()) ? Byte.parseByte(jiuzhen.getHasAllergy()) : null); + dockPatientVisitInfo.setAllergyDrug(StrUtil.isNotEmpty(jiuzhen.getAllergyDrug()) ? jiuzhen.getAllergyDrug() : null); + return dockPatientVisitInfo; + + } + } + + @Data + public static class Zhenduan { + private Long id; + @ApiModelProperty("门诊/住院号") + private String visitNo; + @ApiModelProperty("诊断类型") + private String diagnosisType; + @ApiModelProperty("是否主要诊断") + private String isMainDiagnosis; + @ApiModelProperty("诊断名称") + private String diagnosisName; + @ApiModelProperty("诊断编码") + private String diagnosisCode; + @ApiModelProperty("诊断日期") + private String diagnosisDate; + } + + @Data + public static class Yongyao { + private Long id; + @ApiModelProperty("门诊/住院号") + private String visitNo; + @ApiModelProperty("药物名称") + private String drugName; + @ApiModelProperty("剂量") + private String dose; + @ApiModelProperty("单位") + private String unit; + @ApiModelProperty("频率") + private String frequency; + } + + @Data + public static class DockDeptInfo { + @ApiModelProperty("编号") + private String deptCode; + @ApiModelProperty("姓名") + private String deptName; + } + + @Data + public static class DockEmplInfo { + @ApiModelProperty("编号") + private String emplCode; + @ApiModelProperty("姓名") + private String emplName; + @ApiModelProperty("医生/护士") + private String emplType; + @ApiModelProperty("部门编号") + private String deptCode; + } +} diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/dto/RmsDto.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/dto/RmsDto.java index db20d7b..dc5bd5a 100644 --- a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/dto/RmsDto.java +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/dto/RmsDto.java @@ -17,7 +17,7 @@ public class RmsDto { @ApiModel("PatientReportDtoGenerate") @Data - public static class Generate { + public static class Generate{ @ApiModelProperty("病人ID") @NotNull(message = "病人ID不能为空") private Long patientId; @@ -31,7 +31,7 @@ public class RmsDto { @ApiModel("PatientReportDtoQueryDetail") @Data - public static class QueryDetail { + public static class QueryDetail{ @NotNull(message = "测评ID不能为空") @ApiModelProperty("测评ID") private Long evaluationId; @@ -261,11 +261,24 @@ public class RmsDto { @ApiModel("导出历史报告单-DTO") @Data - public static class ReportPDF { - @ApiModelProperty("患者的就诊流水号") + public static class ReportPDF{ + @ApiModelProperty("患者唯一标识") private String patientNo; - @ApiModelProperty("医护人员工号") - private String emplCode; + @ApiModelProperty("就诊流水号") + private String visitNo; + } + + @ApiModel("导出历史报告单(查看详细的报告单文件)-DTO") + @Data + public static class queryPdfUrl{ + @ApiModelProperty("报告单ID") + private Long reportId; + @ApiModelProperty("测评ID") + private Long evaluationId; + @ApiModelProperty("导出类型 0医生版 1个人版 2阳性版") + private String version; + @ApiModelProperty("评估医生id") + private Long assessorId; } @Data diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DmsRunningLog.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DmsRunningLog.java new file mode 100644 index 0000000..24efac9 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DmsRunningLog.java @@ -0,0 +1,161 @@ +package com.ccsens.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class DmsRunningLog implements Serializable { + private Long id; + + private Date startTime; + + private Date endTime; + + private Long syncRecords; + + private Long syncSeconds; + + private Date lastSyncDate; + + private String remark; + + private Byte status; + + private Date createdAt; + + private Date updatedAt; + + private String createdBy; + + private String updatedBy; + + private Byte delStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Date getStartTime() { + return startTime; + } + + public void setStartTime(Date startTime) { + this.startTime = startTime; + } + + public Date getEndTime() { + return endTime; + } + + public void setEndTime(Date endTime) { + this.endTime = endTime; + } + + public Long getSyncRecords() { + return syncRecords; + } + + public void setSyncRecords(Long syncRecords) { + this.syncRecords = syncRecords; + } + + public Long getSyncSeconds() { + return syncSeconds; + } + + public void setSyncSeconds(Long syncSeconds) { + this.syncSeconds = syncSeconds; + } + + public Date getLastSyncDate() { + return lastSyncDate; + } + + public void setLastSyncDate(Date lastSyncDate) { + this.lastSyncDate = lastSyncDate; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + public Byte getStatus() { + return status; + } + + public void setStatus(Byte status) { + this.status = status; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public String getCreatedBy() { + return createdBy; + } + + public void setCreatedBy(String createdBy) { + this.createdBy = createdBy == null ? null : createdBy.trim(); + } + + public String getUpdatedBy() { + return updatedBy; + } + + public void setUpdatedBy(String updatedBy) { + this.updatedBy = updatedBy == null ? null : updatedBy.trim(); + } + + public Byte getDelStatus() { + return delStatus; + } + + public void setDelStatus(Byte delStatus) { + this.delStatus = delStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", startTime=").append(startTime); + sb.append(", endTime=").append(endTime); + sb.append(", syncRecords=").append(syncRecords); + sb.append(", syncSeconds=").append(syncSeconds); + sb.append(", lastSyncDate=").append(lastSyncDate); + sb.append(", remark=").append(remark); + sb.append(", status=").append(status); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", createdBy=").append(createdBy); + sb.append(", updatedBy=").append(updatedBy); + sb.append(", delStatus=").append(delStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DmsRunningLogExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DmsRunningLogExample.java new file mode 100644 index 0000000..bf1f2df --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DmsRunningLogExample.java @@ -0,0 +1,1011 @@ +package com.ccsens.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DmsRunningLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DmsRunningLogExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNull() { + addCriterion("start_time is null"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNotNull() { + addCriterion("start_time is not null"); + return (Criteria) this; + } + + public Criteria andStartTimeEqualTo(Date value) { + addCriterion("start_time =", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotEqualTo(Date value) { + addCriterion("start_time <>", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThan(Date value) { + addCriterion("start_time >", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThanOrEqualTo(Date value) { + addCriterion("start_time >=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThan(Date value) { + addCriterion("start_time <", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThanOrEqualTo(Date value) { + addCriterion("start_time <=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeIn(List values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List values) { + addCriterion("start_time not in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeBetween(Date value1, Date value2) { + addCriterion("start_time between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotBetween(Date value1, Date value2) { + addCriterion("start_time not between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNull() { + addCriterion("end_time is null"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNotNull() { + addCriterion("end_time is not null"); + return (Criteria) this; + } + + public Criteria andEndTimeEqualTo(Date value) { + addCriterion("end_time =", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotEqualTo(Date value) { + addCriterion("end_time <>", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThan(Date value) { + addCriterion("end_time >", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThanOrEqualTo(Date value) { + addCriterion("end_time >=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThan(Date value) { + addCriterion("end_time <", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThanOrEqualTo(Date value) { + addCriterion("end_time <=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIn(List values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List values) { + addCriterion("end_time not in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeBetween(Date value1, Date value2) { + addCriterion("end_time between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotBetween(Date value1, Date value2) { + addCriterion("end_time not between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andSyncRecordsIsNull() { + addCriterion("sync_records is null"); + return (Criteria) this; + } + + public Criteria andSyncRecordsIsNotNull() { + addCriterion("sync_records is not null"); + return (Criteria) this; + } + + public Criteria andSyncRecordsEqualTo(Long value) { + addCriterion("sync_records =", value, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsNotEqualTo(Long value) { + addCriterion("sync_records <>", value, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsGreaterThan(Long value) { + addCriterion("sync_records >", value, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsGreaterThanOrEqualTo(Long value) { + addCriterion("sync_records >=", value, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsLessThan(Long value) { + addCriterion("sync_records <", value, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsLessThanOrEqualTo(Long value) { + addCriterion("sync_records <=", value, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsIn(List values) { + addCriterion("sync_records in", values, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsNotIn(List values) { + addCriterion("sync_records not in", values, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsBetween(Long value1, Long value2) { + addCriterion("sync_records between", value1, value2, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncRecordsNotBetween(Long value1, Long value2) { + addCriterion("sync_records not between", value1, value2, "syncRecords"); + return (Criteria) this; + } + + public Criteria andSyncSecondsIsNull() { + addCriterion("sync_seconds is null"); + return (Criteria) this; + } + + public Criteria andSyncSecondsIsNotNull() { + addCriterion("sync_seconds is not null"); + return (Criteria) this; + } + + public Criteria andSyncSecondsEqualTo(Long value) { + addCriterion("sync_seconds =", value, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsNotEqualTo(Long value) { + addCriterion("sync_seconds <>", value, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsGreaterThan(Long value) { + addCriterion("sync_seconds >", value, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsGreaterThanOrEqualTo(Long value) { + addCriterion("sync_seconds >=", value, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsLessThan(Long value) { + addCriterion("sync_seconds <", value, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsLessThanOrEqualTo(Long value) { + addCriterion("sync_seconds <=", value, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsIn(List values) { + addCriterion("sync_seconds in", values, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsNotIn(List values) { + addCriterion("sync_seconds not in", values, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsBetween(Long value1, Long value2) { + addCriterion("sync_seconds between", value1, value2, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andSyncSecondsNotBetween(Long value1, Long value2) { + addCriterion("sync_seconds not between", value1, value2, "syncSeconds"); + return (Criteria) this; + } + + public Criteria andLastSyncDateIsNull() { + addCriterion("last_sync_date is null"); + return (Criteria) this; + } + + public Criteria andLastSyncDateIsNotNull() { + addCriterion("last_sync_date is not null"); + return (Criteria) this; + } + + public Criteria andLastSyncDateEqualTo(Date value) { + addCriterion("last_sync_date =", value, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateNotEqualTo(Date value) { + addCriterion("last_sync_date <>", value, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateGreaterThan(Date value) { + addCriterion("last_sync_date >", value, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateGreaterThanOrEqualTo(Date value) { + addCriterion("last_sync_date >=", value, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateLessThan(Date value) { + addCriterion("last_sync_date <", value, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateLessThanOrEqualTo(Date value) { + addCriterion("last_sync_date <=", value, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateIn(List values) { + addCriterion("last_sync_date in", values, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateNotIn(List values) { + addCriterion("last_sync_date not in", values, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateBetween(Date value1, Date value2) { + addCriterion("last_sync_date between", value1, value2, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andLastSyncDateNotBetween(Date value1, Date value2) { + addCriterion("last_sync_date not between", value1, value2, "lastSyncDate"); + return (Criteria) this; + } + + public Criteria andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("status is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("status is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Byte value) { + addCriterion("status =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Byte value) { + addCriterion("status <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Byte value) { + addCriterion("status >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("status >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Byte value) { + addCriterion("status <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Byte value) { + addCriterion("status <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("status not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Byte value1, Byte value2) { + addCriterion("status between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Byte value1, Byte value2) { + addCriterion("status not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andCreatedByIsNull() { + addCriterion("created_by is null"); + return (Criteria) this; + } + + public Criteria andCreatedByIsNotNull() { + addCriterion("created_by is not null"); + return (Criteria) this; + } + + public Criteria andCreatedByEqualTo(String value) { + addCriterion("created_by =", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByNotEqualTo(String value) { + addCriterion("created_by <>", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByGreaterThan(String value) { + addCriterion("created_by >", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByGreaterThanOrEqualTo(String value) { + addCriterion("created_by >=", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByLessThan(String value) { + addCriterion("created_by <", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByLessThanOrEqualTo(String value) { + addCriterion("created_by <=", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByLike(String value) { + addCriterion("created_by like", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByNotLike(String value) { + addCriterion("created_by not like", value, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByIn(List values) { + addCriterion("created_by in", values, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByNotIn(List values) { + addCriterion("created_by not in", values, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByBetween(String value1, String value2) { + addCriterion("created_by between", value1, value2, "createdBy"); + return (Criteria) this; + } + + public Criteria andCreatedByNotBetween(String value1, String value2) { + addCriterion("created_by not between", value1, value2, "createdBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByIsNull() { + addCriterion("updated_by is null"); + return (Criteria) this; + } + + public Criteria andUpdatedByIsNotNull() { + addCriterion("updated_by is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedByEqualTo(String value) { + addCriterion("updated_by =", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByNotEqualTo(String value) { + addCriterion("updated_by <>", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByGreaterThan(String value) { + addCriterion("updated_by >", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByGreaterThanOrEqualTo(String value) { + addCriterion("updated_by >=", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByLessThan(String value) { + addCriterion("updated_by <", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByLessThanOrEqualTo(String value) { + addCriterion("updated_by <=", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByLike(String value) { + addCriterion("updated_by like", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByNotLike(String value) { + addCriterion("updated_by not like", value, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByIn(List values) { + addCriterion("updated_by in", values, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByNotIn(List values) { + addCriterion("updated_by not in", values, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByBetween(String value1, String value2) { + addCriterion("updated_by between", value1, value2, "updatedBy"); + return (Criteria) this; + } + + public Criteria andUpdatedByNotBetween(String value1, String value2) { + addCriterion("updated_by not between", value1, value2, "updatedBy"); + return (Criteria) this; + } + + public Criteria andDelStatusIsNull() { + addCriterion("del_status is null"); + return (Criteria) this; + } + + public Criteria andDelStatusIsNotNull() { + addCriterion("del_status is not null"); + return (Criteria) this; + } + + public Criteria andDelStatusEqualTo(Byte value) { + addCriterion("del_status =", value, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusNotEqualTo(Byte value) { + addCriterion("del_status <>", value, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusGreaterThan(Byte value) { + addCriterion("del_status >", value, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("del_status >=", value, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusLessThan(Byte value) { + addCriterion("del_status <", value, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusLessThanOrEqualTo(Byte value) { + addCriterion("del_status <=", value, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusIn(List values) { + addCriterion("del_status in", values, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusNotIn(List values) { + addCriterion("del_status not in", values, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusBetween(Byte value1, Byte value2) { + addCriterion("del_status between", value1, value2, "delStatus"); + return (Criteria) this; + } + + public Criteria andDelStatusNotBetween(Byte value1, Byte value2) { + addCriterion("del_status not between", value1, value2, "delStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockDept.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockDept.java new file mode 100644 index 0000000..0020164 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockDept.java @@ -0,0 +1,117 @@ +package com.ccsens.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class DockDept implements Serializable { + private Long id; + + private String deptName; + + private String deptCode; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private String sync; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getDeptName() { + return deptName; + } + + public void setDeptName(String deptName) { + this.deptName = deptName == null ? null : deptName.trim(); + } + + public String getDeptCode() { + return deptCode; + } + + public void setDeptCode(String deptCode) { + this.deptCode = deptCode == null ? null : deptCode.trim(); + } + + public String getDelFlag() { + return delFlag; + } + + public void setDelFlag(String delFlag) { + this.delFlag = delFlag == null ? null : delFlag.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 String getSync() { + return sync; + } + + public void setSync(String sync) { + this.sync = sync == null ? null : sync.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(", deptName=").append(deptName); + sb.append(", deptCode=").append(deptCode); + 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(", sync=").append(sync); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockDeptExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockDeptExample.java new file mode 100644 index 0000000..a2c6110 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockDeptExample.java @@ -0,0 +1,801 @@ +package com.ccsens.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DockDeptExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DockDeptExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andDeptNameIsNull() { + addCriterion("dept_name is null"); + return (Criteria) this; + } + + public Criteria andDeptNameIsNotNull() { + addCriterion("dept_name is not null"); + return (Criteria) this; + } + + public Criteria andDeptNameEqualTo(String value) { + addCriterion("dept_name =", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameNotEqualTo(String value) { + addCriterion("dept_name <>", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameGreaterThan(String value) { + addCriterion("dept_name >", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameGreaterThanOrEqualTo(String value) { + addCriterion("dept_name >=", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameLessThan(String value) { + addCriterion("dept_name <", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameLessThanOrEqualTo(String value) { + addCriterion("dept_name <=", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameLike(String value) { + addCriterion("dept_name like", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameNotLike(String value) { + addCriterion("dept_name not like", value, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameIn(List values) { + addCriterion("dept_name in", values, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameNotIn(List values) { + addCriterion("dept_name not in", values, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameBetween(String value1, String value2) { + addCriterion("dept_name between", value1, value2, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptNameNotBetween(String value1, String value2) { + addCriterion("dept_name not between", value1, value2, "deptName"); + return (Criteria) this; + } + + public Criteria andDeptCodeIsNull() { + addCriterion("dept_code is null"); + return (Criteria) this; + } + + public Criteria andDeptCodeIsNotNull() { + addCriterion("dept_code is not null"); + return (Criteria) this; + } + + public Criteria andDeptCodeEqualTo(String value) { + addCriterion("dept_code =", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotEqualTo(String value) { + addCriterion("dept_code <>", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeGreaterThan(String value) { + addCriterion("dept_code >", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeGreaterThanOrEqualTo(String value) { + addCriterion("dept_code >=", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeLessThan(String value) { + addCriterion("dept_code <", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeLessThanOrEqualTo(String value) { + addCriterion("dept_code <=", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeLike(String value) { + addCriterion("dept_code like", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotLike(String value) { + addCriterion("dept_code not like", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeIn(List values) { + addCriterion("dept_code in", values, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotIn(List values) { + addCriterion("dept_code not in", values, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeBetween(String value1, String value2) { + addCriterion("dept_code between", value1, value2, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotBetween(String value1, String value2) { + addCriterion("dept_code not between", value1, value2, "deptCode"); + 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(String value) { + addCriterion("del_flag =", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotEqualTo(String value) { + addCriterion("del_flag <>", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagGreaterThan(String value) { + addCriterion("del_flag >", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagGreaterThanOrEqualTo(String value) { + addCriterion("del_flag >=", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagLessThan(String value) { + addCriterion("del_flag <", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagLessThanOrEqualTo(String value) { + addCriterion("del_flag <=", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagLike(String value) { + addCriterion("del_flag like", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotLike(String value) { + addCriterion("del_flag not like", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagIn(List values) { + addCriterion("del_flag in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotIn(List values) { + addCriterion("del_flag not in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagBetween(String value1, String value2) { + addCriterion("del_flag between", value1, value2, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotBetween(String value1, String 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 values) { + addCriterion("create_by in", values, "createBy"); + return (Criteria) this; + } + + public Criteria andCreateByNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("update_by in", values, "updateBy"); + return (Criteria) this; + } + + public Criteria andUpdateByNotIn(List 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 andSyncIsNull() { + addCriterion("sync is null"); + return (Criteria) this; + } + + public Criteria andSyncIsNotNull() { + addCriterion("sync is not null"); + return (Criteria) this; + } + + public Criteria andSyncEqualTo(String value) { + addCriterion("sync =", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotEqualTo(String value) { + addCriterion("sync <>", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThan(String value) { + addCriterion("sync >", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThanOrEqualTo(String value) { + addCriterion("sync >=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThan(String value) { + addCriterion("sync <", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThanOrEqualTo(String value) { + addCriterion("sync <=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLike(String value) { + addCriterion("sync like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotLike(String value) { + addCriterion("sync not like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncIn(List values) { + addCriterion("sync in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotIn(List values) { + addCriterion("sync not in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncBetween(String value1, String value2) { + addCriterion("sync between", value1, value2, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotBetween(String value1, String value2) { + addCriterion("sync not between", value1, value2, "sync"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockEmpl.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockEmpl.java new file mode 100644 index 0000000..8b78ad0 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockEmpl.java @@ -0,0 +1,139 @@ +package com.ccsens.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class DockEmpl implements Serializable { + private Long id; + + private String emplName; + + private String emplCode; + + private String emplType; + + private String deptCode; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private String sync; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getEmplName() { + return emplName; + } + + public void setEmplName(String emplName) { + this.emplName = emplName == null ? null : emplName.trim(); + } + + public String getEmplCode() { + return emplCode; + } + + public void setEmplCode(String emplCode) { + this.emplCode = emplCode == null ? null : emplCode.trim(); + } + + public String getEmplType() { + return emplType; + } + + public void setEmplType(String emplType) { + this.emplType = emplType == null ? null : emplType.trim(); + } + + public String getDeptCode() { + return deptCode; + } + + public void setDeptCode(String deptCode) { + this.deptCode = deptCode == null ? null : deptCode.trim(); + } + + public String getDelFlag() { + return delFlag; + } + + public void setDelFlag(String delFlag) { + this.delFlag = delFlag == null ? null : delFlag.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 String getSync() { + return sync; + } + + public void setSync(String sync) { + this.sync = sync == null ? null : sync.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(", emplName=").append(emplName); + sb.append(", emplCode=").append(emplCode); + sb.append(", emplType=").append(emplType); + sb.append(", deptCode=").append(deptCode); + 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(", sync=").append(sync); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockEmplExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockEmplExample.java new file mode 100644 index 0000000..37a6528 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockEmplExample.java @@ -0,0 +1,941 @@ +package com.ccsens.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DockEmplExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DockEmplExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andEmplNameIsNull() { + addCriterion("empl_name is null"); + return (Criteria) this; + } + + public Criteria andEmplNameIsNotNull() { + addCriterion("empl_name is not null"); + return (Criteria) this; + } + + public Criteria andEmplNameEqualTo(String value) { + addCriterion("empl_name =", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameNotEqualTo(String value) { + addCriterion("empl_name <>", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameGreaterThan(String value) { + addCriterion("empl_name >", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameGreaterThanOrEqualTo(String value) { + addCriterion("empl_name >=", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameLessThan(String value) { + addCriterion("empl_name <", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameLessThanOrEqualTo(String value) { + addCriterion("empl_name <=", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameLike(String value) { + addCriterion("empl_name like", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameNotLike(String value) { + addCriterion("empl_name not like", value, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameIn(List values) { + addCriterion("empl_name in", values, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameNotIn(List values) { + addCriterion("empl_name not in", values, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameBetween(String value1, String value2) { + addCriterion("empl_name between", value1, value2, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplNameNotBetween(String value1, String value2) { + addCriterion("empl_name not between", value1, value2, "emplName"); + return (Criteria) this; + } + + public Criteria andEmplCodeIsNull() { + addCriterion("empl_code is null"); + return (Criteria) this; + } + + public Criteria andEmplCodeIsNotNull() { + addCriterion("empl_code is not null"); + return (Criteria) this; + } + + public Criteria andEmplCodeEqualTo(String value) { + addCriterion("empl_code =", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeNotEqualTo(String value) { + addCriterion("empl_code <>", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeGreaterThan(String value) { + addCriterion("empl_code >", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeGreaterThanOrEqualTo(String value) { + addCriterion("empl_code >=", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeLessThan(String value) { + addCriterion("empl_code <", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeLessThanOrEqualTo(String value) { + addCriterion("empl_code <=", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeLike(String value) { + addCriterion("empl_code like", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeNotLike(String value) { + addCriterion("empl_code not like", value, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeIn(List values) { + addCriterion("empl_code in", values, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeNotIn(List values) { + addCriterion("empl_code not in", values, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeBetween(String value1, String value2) { + addCriterion("empl_code between", value1, value2, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplCodeNotBetween(String value1, String value2) { + addCriterion("empl_code not between", value1, value2, "emplCode"); + return (Criteria) this; + } + + public Criteria andEmplTypeIsNull() { + addCriterion("empl_type is null"); + return (Criteria) this; + } + + public Criteria andEmplTypeIsNotNull() { + addCriterion("empl_type is not null"); + return (Criteria) this; + } + + public Criteria andEmplTypeEqualTo(String value) { + addCriterion("empl_type =", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeNotEqualTo(String value) { + addCriterion("empl_type <>", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeGreaterThan(String value) { + addCriterion("empl_type >", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeGreaterThanOrEqualTo(String value) { + addCriterion("empl_type >=", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeLessThan(String value) { + addCriterion("empl_type <", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeLessThanOrEqualTo(String value) { + addCriterion("empl_type <=", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeLike(String value) { + addCriterion("empl_type like", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeNotLike(String value) { + addCriterion("empl_type not like", value, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeIn(List values) { + addCriterion("empl_type in", values, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeNotIn(List values) { + addCriterion("empl_type not in", values, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeBetween(String value1, String value2) { + addCriterion("empl_type between", value1, value2, "emplType"); + return (Criteria) this; + } + + public Criteria andEmplTypeNotBetween(String value1, String value2) { + addCriterion("empl_type not between", value1, value2, "emplType"); + return (Criteria) this; + } + + public Criteria andDeptCodeIsNull() { + addCriterion("dept_code is null"); + return (Criteria) this; + } + + public Criteria andDeptCodeIsNotNull() { + addCriterion("dept_code is not null"); + return (Criteria) this; + } + + public Criteria andDeptCodeEqualTo(String value) { + addCriterion("dept_code =", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotEqualTo(String value) { + addCriterion("dept_code <>", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeGreaterThan(String value) { + addCriterion("dept_code >", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeGreaterThanOrEqualTo(String value) { + addCriterion("dept_code >=", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeLessThan(String value) { + addCriterion("dept_code <", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeLessThanOrEqualTo(String value) { + addCriterion("dept_code <=", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeLike(String value) { + addCriterion("dept_code like", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotLike(String value) { + addCriterion("dept_code not like", value, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeIn(List values) { + addCriterion("dept_code in", values, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotIn(List values) { + addCriterion("dept_code not in", values, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeBetween(String value1, String value2) { + addCriterion("dept_code between", value1, value2, "deptCode"); + return (Criteria) this; + } + + public Criteria andDeptCodeNotBetween(String value1, String value2) { + addCriterion("dept_code not between", value1, value2, "deptCode"); + 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(String value) { + addCriterion("del_flag =", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotEqualTo(String value) { + addCriterion("del_flag <>", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagGreaterThan(String value) { + addCriterion("del_flag >", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagGreaterThanOrEqualTo(String value) { + addCriterion("del_flag >=", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagLessThan(String value) { + addCriterion("del_flag <", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagLessThanOrEqualTo(String value) { + addCriterion("del_flag <=", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagLike(String value) { + addCriterion("del_flag like", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotLike(String value) { + addCriterion("del_flag not like", value, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagIn(List values) { + addCriterion("del_flag in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotIn(List values) { + addCriterion("del_flag not in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagBetween(String value1, String value2) { + addCriterion("del_flag between", value1, value2, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotBetween(String value1, String 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 values) { + addCriterion("create_by in", values, "createBy"); + return (Criteria) this; + } + + public Criteria andCreateByNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("update_by in", values, "updateBy"); + return (Criteria) this; + } + + public Criteria andUpdateByNotIn(List 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 andSyncIsNull() { + addCriterion("sync is null"); + return (Criteria) this; + } + + public Criteria andSyncIsNotNull() { + addCriterion("sync is not null"); + return (Criteria) this; + } + + public Criteria andSyncEqualTo(String value) { + addCriterion("sync =", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotEqualTo(String value) { + addCriterion("sync <>", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThan(String value) { + addCriterion("sync >", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThanOrEqualTo(String value) { + addCriterion("sync >=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThan(String value) { + addCriterion("sync <", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThanOrEqualTo(String value) { + addCriterion("sync <=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLike(String value) { + addCriterion("sync like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotLike(String value) { + addCriterion("sync not like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncIn(List values) { + addCriterion("sync in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotIn(List values) { + addCriterion("sync not in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncBetween(String value1, String value2) { + addCriterion("sync between", value1, value2, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotBetween(String value1, String value2) { + addCriterion("sync not between", value1, value2, "sync"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientBaseInfo.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientBaseInfo.java new file mode 100644 index 0000000..c4d4fad --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientBaseInfo.java @@ -0,0 +1,326 @@ +package com.ccsens.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class DockPatientBaseInfo implements Serializable { + private Long id; + + private String name; + + private String patientNo; + + private String idCard; + + private String phone; + + private String sex; + + private Date birthday; + + private String educationalStatus; + + private String career; + + private String maritalStatus; + + private String nation; + + private String nativePlace; + + private String address; + + private String dwellingState; + + private String contactName; + + private String contactMobile; + + private String contactRelation; + + private String aboBloodType; + + private String rhBloodType; + + private String belief; + + private String hobby; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private Byte delFlag; + + private String remark; + + private String sync; + + 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 getPatientNo() { + return patientNo; + } + + public void setPatientNo(String patientNo) { + this.patientNo = patientNo == null ? null : patientNo.trim(); + } + + public String getIdCard() { + return idCard; + } + + public void setIdCard(String idCard) { + this.idCard = idCard == null ? null : idCard.trim(); + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone == null ? null : phone.trim(); + } + + public String getSex() { + return sex; + } + + public void setSex(String sex) { + this.sex = sex == null ? null : sex.trim(); + } + + public Date getBirthday() { + return birthday; + } + + public void setBirthday(Date birthday) { + this.birthday = birthday; + } + + public String getEducationalStatus() { + return educationalStatus; + } + + public void setEducationalStatus(String educationalStatus) { + this.educationalStatus = educationalStatus == null ? null : educationalStatus.trim(); + } + + public String getCareer() { + return career; + } + + public void setCareer(String career) { + this.career = career == null ? null : career.trim(); + } + + public String getMaritalStatus() { + return maritalStatus; + } + + public void setMaritalStatus(String maritalStatus) { + this.maritalStatus = maritalStatus == null ? null : maritalStatus.trim(); + } + + public String getNation() { + return nation; + } + + public void setNation(String nation) { + this.nation = nation == null ? null : nation.trim(); + } + + public String getNativePlace() { + return nativePlace; + } + + public void setNativePlace(String nativePlace) { + this.nativePlace = nativePlace == null ? null : nativePlace.trim(); + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + public String getDwellingState() { + return dwellingState; + } + + public void setDwellingState(String dwellingState) { + this.dwellingState = dwellingState == null ? null : dwellingState.trim(); + } + + public String getContactName() { + return contactName; + } + + public void setContactName(String contactName) { + this.contactName = contactName == null ? null : contactName.trim(); + } + + public String getContactMobile() { + return contactMobile; + } + + public void setContactMobile(String contactMobile) { + this.contactMobile = contactMobile == null ? null : contactMobile.trim(); + } + + public String getContactRelation() { + return contactRelation; + } + + public void setContactRelation(String contactRelation) { + this.contactRelation = contactRelation == null ? null : contactRelation.trim(); + } + + public String getAboBloodType() { + return aboBloodType; + } + + public void setAboBloodType(String aboBloodType) { + this.aboBloodType = aboBloodType == null ? null : aboBloodType.trim(); + } + + public String getRhBloodType() { + return rhBloodType; + } + + public void setRhBloodType(String rhBloodType) { + this.rhBloodType = rhBloodType == null ? null : rhBloodType.trim(); + } + + public String getBelief() { + return belief; + } + + public void setBelief(String belief) { + this.belief = belief == null ? null : belief.trim(); + } + + public String getHobby() { + return hobby; + } + + public void setHobby(String hobby) { + this.hobby = hobby == null ? null : hobby.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; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + public String getSync() { + return sync; + } + + public void setSync(String sync) { + this.sync = sync == null ? null : sync.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(", patientNo=").append(patientNo); + sb.append(", idCard=").append(idCard); + sb.append(", phone=").append(phone); + sb.append(", sex=").append(sex); + sb.append(", birthday=").append(birthday); + sb.append(", educationalStatus=").append(educationalStatus); + sb.append(", career=").append(career); + sb.append(", maritalStatus=").append(maritalStatus); + sb.append(", nation=").append(nation); + sb.append(", nativePlace=").append(nativePlace); + sb.append(", address=").append(address); + sb.append(", dwellingState=").append(dwellingState); + sb.append(", contactName=").append(contactName); + sb.append(", contactMobile=").append(contactMobile); + sb.append(", contactRelation=").append(contactRelation); + sb.append(", aboBloodType=").append(aboBloodType); + sb.append(", rhBloodType=").append(rhBloodType); + sb.append(", belief=").append(belief); + sb.append(", hobby=").append(hobby); + 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(", remark=").append(remark); + sb.append(", sync=").append(sync); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientBaseInfoExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientBaseInfoExample.java new file mode 100644 index 0000000..a715339 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientBaseInfoExample.java @@ -0,0 +1,2138 @@ +package com.ccsens.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +public class DockPatientBaseInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DockPatientBaseInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + protected void addCriterionForJDBCDate(String condition, Date value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value.getTime()), property); + } + + protected void addCriterionForJDBCDate(String condition, List values, String property) { + if (values == null || values.size() == 0) { + throw new RuntimeException("Value list for " + property + " cannot be null or empty"); + } + List dateList = new ArrayList(); + Iterator iter = values.iterator(); + while (iter.hasNext()) { + dateList.add(new java.sql.Date(iter.next().getTime())); + } + addCriterion(condition, dateList, property); + } + + protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andPatientNoIsNull() { + addCriterion("patient_no is null"); + return (Criteria) this; + } + + public Criteria andPatientNoIsNotNull() { + addCriterion("patient_no is not null"); + return (Criteria) this; + } + + public Criteria andPatientNoEqualTo(String value) { + addCriterion("patient_no =", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotEqualTo(String value) { + addCriterion("patient_no <>", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoGreaterThan(String value) { + addCriterion("patient_no >", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoGreaterThanOrEqualTo(String value) { + addCriterion("patient_no >=", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLessThan(String value) { + addCriterion("patient_no <", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLessThanOrEqualTo(String value) { + addCriterion("patient_no <=", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLike(String value) { + addCriterion("patient_no like", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotLike(String value) { + addCriterion("patient_no not like", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoIn(List values) { + addCriterion("patient_no in", values, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotIn(List values) { + addCriterion("patient_no not in", values, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoBetween(String value1, String value2) { + addCriterion("patient_no between", value1, value2, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotBetween(String value1, String value2) { + addCriterion("patient_no not between", value1, value2, "patientNo"); + return (Criteria) this; + } + + public Criteria andIdCardIsNull() { + addCriterion("id_card is null"); + return (Criteria) this; + } + + public Criteria andIdCardIsNotNull() { + addCriterion("id_card is not null"); + return (Criteria) this; + } + + public Criteria andIdCardEqualTo(String value) { + addCriterion("id_card =", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotEqualTo(String value) { + addCriterion("id_card <>", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThan(String value) { + addCriterion("id_card >", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThanOrEqualTo(String value) { + addCriterion("id_card >=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThan(String value) { + addCriterion("id_card <", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThanOrEqualTo(String value) { + addCriterion("id_card <=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLike(String value) { + addCriterion("id_card like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotLike(String value) { + addCriterion("id_card not like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardIn(List values) { + addCriterion("id_card in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotIn(List values) { + addCriterion("id_card not in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardBetween(String value1, String value2) { + addCriterion("id_card between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotBetween(String value1, String value2) { + addCriterion("id_card not between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andSexIsNull() { + addCriterion("sex is null"); + return (Criteria) this; + } + + public Criteria andSexIsNotNull() { + addCriterion("sex is not null"); + return (Criteria) this; + } + + public Criteria andSexEqualTo(String value) { + addCriterion("sex =", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexNotEqualTo(String value) { + addCriterion("sex <>", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexGreaterThan(String value) { + addCriterion("sex >", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexGreaterThanOrEqualTo(String value) { + addCriterion("sex >=", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexLessThan(String value) { + addCriterion("sex <", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexLessThanOrEqualTo(String value) { + addCriterion("sex <=", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexLike(String value) { + addCriterion("sex like", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexNotLike(String value) { + addCriterion("sex not like", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexIn(List values) { + addCriterion("sex in", values, "sex"); + return (Criteria) this; + } + + public Criteria andSexNotIn(List values) { + addCriterion("sex not in", values, "sex"); + return (Criteria) this; + } + + public Criteria andSexBetween(String value1, String value2) { + addCriterion("sex between", value1, value2, "sex"); + return (Criteria) this; + } + + public Criteria andSexNotBetween(String value1, String value2) { + addCriterion("sex not between", value1, value2, "sex"); + return (Criteria) this; + } + + public Criteria andBirthdayIsNull() { + addCriterion("birthday is null"); + return (Criteria) this; + } + + public Criteria andBirthdayIsNotNull() { + addCriterion("birthday is not null"); + return (Criteria) this; + } + + public Criteria andBirthdayEqualTo(Date value) { + addCriterionForJDBCDate("birthday =", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayNotEqualTo(Date value) { + addCriterionForJDBCDate("birthday <>", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayGreaterThan(Date value) { + addCriterionForJDBCDate("birthday >", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("birthday >=", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayLessThan(Date value) { + addCriterionForJDBCDate("birthday <", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("birthday <=", value, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayIn(List values) { + addCriterionForJDBCDate("birthday in", values, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayNotIn(List values) { + addCriterionForJDBCDate("birthday not in", values, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayBetween(Date value1, Date value2) { + addCriterionForJDBCDate("birthday between", value1, value2, "birthday"); + return (Criteria) this; + } + + public Criteria andBirthdayNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("birthday not between", value1, value2, "birthday"); + return (Criteria) this; + } + + public Criteria andEducationalStatusIsNull() { + addCriterion("educational_status is null"); + return (Criteria) this; + } + + public Criteria andEducationalStatusIsNotNull() { + addCriterion("educational_status is not null"); + return (Criteria) this; + } + + public Criteria andEducationalStatusEqualTo(String value) { + addCriterion("educational_status =", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusNotEqualTo(String value) { + addCriterion("educational_status <>", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusGreaterThan(String value) { + addCriterion("educational_status >", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusGreaterThanOrEqualTo(String value) { + addCriterion("educational_status >=", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusLessThan(String value) { + addCriterion("educational_status <", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusLessThanOrEqualTo(String value) { + addCriterion("educational_status <=", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusLike(String value) { + addCriterion("educational_status like", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusNotLike(String value) { + addCriterion("educational_status not like", value, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusIn(List values) { + addCriterion("educational_status in", values, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusNotIn(List values) { + addCriterion("educational_status not in", values, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusBetween(String value1, String value2) { + addCriterion("educational_status between", value1, value2, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andEducationalStatusNotBetween(String value1, String value2) { + addCriterion("educational_status not between", value1, value2, "educationalStatus"); + return (Criteria) this; + } + + public Criteria andCareerIsNull() { + addCriterion("career is null"); + return (Criteria) this; + } + + public Criteria andCareerIsNotNull() { + addCriterion("career is not null"); + return (Criteria) this; + } + + public Criteria andCareerEqualTo(String value) { + addCriterion("career =", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotEqualTo(String value) { + addCriterion("career <>", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerGreaterThan(String value) { + addCriterion("career >", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerGreaterThanOrEqualTo(String value) { + addCriterion("career >=", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerLessThan(String value) { + addCriterion("career <", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerLessThanOrEqualTo(String value) { + addCriterion("career <=", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerLike(String value) { + addCriterion("career like", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotLike(String value) { + addCriterion("career not like", value, "career"); + return (Criteria) this; + } + + public Criteria andCareerIn(List values) { + addCriterion("career in", values, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotIn(List values) { + addCriterion("career not in", values, "career"); + return (Criteria) this; + } + + public Criteria andCareerBetween(String value1, String value2) { + addCriterion("career between", value1, value2, "career"); + return (Criteria) this; + } + + public Criteria andCareerNotBetween(String value1, String value2) { + addCriterion("career not between", value1, value2, "career"); + return (Criteria) this; + } + + public Criteria andMaritalStatusIsNull() { + addCriterion("marital_status is null"); + return (Criteria) this; + } + + public Criteria andMaritalStatusIsNotNull() { + addCriterion("marital_status is not null"); + return (Criteria) this; + } + + public Criteria andMaritalStatusEqualTo(String value) { + addCriterion("marital_status =", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotEqualTo(String value) { + addCriterion("marital_status <>", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusGreaterThan(String value) { + addCriterion("marital_status >", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusGreaterThanOrEqualTo(String value) { + addCriterion("marital_status >=", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusLessThan(String value) { + addCriterion("marital_status <", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusLessThanOrEqualTo(String value) { + addCriterion("marital_status <=", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusLike(String value) { + addCriterion("marital_status like", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotLike(String value) { + addCriterion("marital_status not like", value, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusIn(List values) { + addCriterion("marital_status in", values, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotIn(List values) { + addCriterion("marital_status not in", values, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusBetween(String value1, String value2) { + addCriterion("marital_status between", value1, value2, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andMaritalStatusNotBetween(String value1, String value2) { + addCriterion("marital_status not between", value1, value2, "maritalStatus"); + return (Criteria) this; + } + + public Criteria andNationIsNull() { + addCriterion("nation is null"); + return (Criteria) this; + } + + public Criteria andNationIsNotNull() { + addCriterion("nation is not null"); + return (Criteria) this; + } + + public Criteria andNationEqualTo(String value) { + addCriterion("nation =", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotEqualTo(String value) { + addCriterion("nation <>", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationGreaterThan(String value) { + addCriterion("nation >", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationGreaterThanOrEqualTo(String value) { + addCriterion("nation >=", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationLessThan(String value) { + addCriterion("nation <", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationLessThanOrEqualTo(String value) { + addCriterion("nation <=", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationLike(String value) { + addCriterion("nation like", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotLike(String value) { + addCriterion("nation not like", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationIn(List values) { + addCriterion("nation in", values, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotIn(List values) { + addCriterion("nation not in", values, "nation"); + return (Criteria) this; + } + + public Criteria andNationBetween(String value1, String value2) { + addCriterion("nation between", value1, value2, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotBetween(String value1, String value2) { + addCriterion("nation not between", value1, value2, "nation"); + return (Criteria) this; + } + + public Criteria andNativePlaceIsNull() { + addCriterion("native_place is null"); + return (Criteria) this; + } + + public Criteria andNativePlaceIsNotNull() { + addCriterion("native_place is not null"); + return (Criteria) this; + } + + public Criteria andNativePlaceEqualTo(String value) { + addCriterion("native_place =", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceNotEqualTo(String value) { + addCriterion("native_place <>", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceGreaterThan(String value) { + addCriterion("native_place >", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceGreaterThanOrEqualTo(String value) { + addCriterion("native_place >=", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceLessThan(String value) { + addCriterion("native_place <", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceLessThanOrEqualTo(String value) { + addCriterion("native_place <=", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceLike(String value) { + addCriterion("native_place like", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceNotLike(String value) { + addCriterion("native_place not like", value, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceIn(List values) { + addCriterion("native_place in", values, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceNotIn(List values) { + addCriterion("native_place not in", values, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceBetween(String value1, String value2) { + addCriterion("native_place between", value1, value2, "nativePlace"); + return (Criteria) this; + } + + public Criteria andNativePlaceNotBetween(String value1, String value2) { + addCriterion("native_place not between", value1, value2, "nativePlace"); + return (Criteria) this; + } + + public Criteria andAddressIsNull() { + addCriterion("address is null"); + return (Criteria) this; + } + + public Criteria andAddressIsNotNull() { + addCriterion("address is not null"); + return (Criteria) this; + } + + public Criteria andAddressEqualTo(String value) { + addCriterion("address =", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotEqualTo(String value) { + addCriterion("address <>", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThan(String value) { + addCriterion("address >", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThanOrEqualTo(String value) { + addCriterion("address >=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThan(String value) { + addCriterion("address <", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThanOrEqualTo(String value) { + addCriterion("address <=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLike(String value) { + addCriterion("address like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotLike(String value) { + addCriterion("address not like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressIn(List values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List values) { + addCriterion("address not in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressBetween(String value1, String value2) { + addCriterion("address between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotBetween(String value1, String value2) { + addCriterion("address not between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andDwellingStateIsNull() { + addCriterion("dwelling_state is null"); + return (Criteria) this; + } + + public Criteria andDwellingStateIsNotNull() { + addCriterion("dwelling_state is not null"); + return (Criteria) this; + } + + public Criteria andDwellingStateEqualTo(String value) { + addCriterion("dwelling_state =", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateNotEqualTo(String value) { + addCriterion("dwelling_state <>", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateGreaterThan(String value) { + addCriterion("dwelling_state >", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateGreaterThanOrEqualTo(String value) { + addCriterion("dwelling_state >=", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateLessThan(String value) { + addCriterion("dwelling_state <", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateLessThanOrEqualTo(String value) { + addCriterion("dwelling_state <=", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateLike(String value) { + addCriterion("dwelling_state like", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateNotLike(String value) { + addCriterion("dwelling_state not like", value, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateIn(List values) { + addCriterion("dwelling_state in", values, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateNotIn(List values) { + addCriterion("dwelling_state not in", values, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateBetween(String value1, String value2) { + addCriterion("dwelling_state between", value1, value2, "dwellingState"); + return (Criteria) this; + } + + public Criteria andDwellingStateNotBetween(String value1, String value2) { + addCriterion("dwelling_state not between", value1, value2, "dwellingState"); + return (Criteria) this; + } + + public Criteria andContactNameIsNull() { + addCriterion("contact_name is null"); + return (Criteria) this; + } + + public Criteria andContactNameIsNotNull() { + addCriterion("contact_name is not null"); + return (Criteria) this; + } + + public Criteria andContactNameEqualTo(String value) { + addCriterion("contact_name =", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameNotEqualTo(String value) { + addCriterion("contact_name <>", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameGreaterThan(String value) { + addCriterion("contact_name >", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameGreaterThanOrEqualTo(String value) { + addCriterion("contact_name >=", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameLessThan(String value) { + addCriterion("contact_name <", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameLessThanOrEqualTo(String value) { + addCriterion("contact_name <=", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameLike(String value) { + addCriterion("contact_name like", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameNotLike(String value) { + addCriterion("contact_name not like", value, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameIn(List values) { + addCriterion("contact_name in", values, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameNotIn(List values) { + addCriterion("contact_name not in", values, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameBetween(String value1, String value2) { + addCriterion("contact_name between", value1, value2, "contactName"); + return (Criteria) this; + } + + public Criteria andContactNameNotBetween(String value1, String value2) { + addCriterion("contact_name not between", value1, value2, "contactName"); + return (Criteria) this; + } + + public Criteria andContactMobileIsNull() { + addCriterion("contact_mobile is null"); + return (Criteria) this; + } + + public Criteria andContactMobileIsNotNull() { + addCriterion("contact_mobile is not null"); + return (Criteria) this; + } + + public Criteria andContactMobileEqualTo(String value) { + addCriterion("contact_mobile =", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileNotEqualTo(String value) { + addCriterion("contact_mobile <>", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileGreaterThan(String value) { + addCriterion("contact_mobile >", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileGreaterThanOrEqualTo(String value) { + addCriterion("contact_mobile >=", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileLessThan(String value) { + addCriterion("contact_mobile <", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileLessThanOrEqualTo(String value) { + addCriterion("contact_mobile <=", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileLike(String value) { + addCriterion("contact_mobile like", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileNotLike(String value) { + addCriterion("contact_mobile not like", value, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileIn(List values) { + addCriterion("contact_mobile in", values, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileNotIn(List values) { + addCriterion("contact_mobile not in", values, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileBetween(String value1, String value2) { + addCriterion("contact_mobile between", value1, value2, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactMobileNotBetween(String value1, String value2) { + addCriterion("contact_mobile not between", value1, value2, "contactMobile"); + return (Criteria) this; + } + + public Criteria andContactRelationIsNull() { + addCriterion("contact_relation is null"); + return (Criteria) this; + } + + public Criteria andContactRelationIsNotNull() { + addCriterion("contact_relation is not null"); + return (Criteria) this; + } + + public Criteria andContactRelationEqualTo(String value) { + addCriterion("contact_relation =", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationNotEqualTo(String value) { + addCriterion("contact_relation <>", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationGreaterThan(String value) { + addCriterion("contact_relation >", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationGreaterThanOrEqualTo(String value) { + addCriterion("contact_relation >=", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationLessThan(String value) { + addCriterion("contact_relation <", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationLessThanOrEqualTo(String value) { + addCriterion("contact_relation <=", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationLike(String value) { + addCriterion("contact_relation like", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationNotLike(String value) { + addCriterion("contact_relation not like", value, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationIn(List values) { + addCriterion("contact_relation in", values, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationNotIn(List values) { + addCriterion("contact_relation not in", values, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationBetween(String value1, String value2) { + addCriterion("contact_relation between", value1, value2, "contactRelation"); + return (Criteria) this; + } + + public Criteria andContactRelationNotBetween(String value1, String value2) { + addCriterion("contact_relation not between", value1, value2, "contactRelation"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeIsNull() { + addCriterion("abo_blood_type is null"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeIsNotNull() { + addCriterion("abo_blood_type is not null"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeEqualTo(String value) { + addCriterion("abo_blood_type =", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeNotEqualTo(String value) { + addCriterion("abo_blood_type <>", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeGreaterThan(String value) { + addCriterion("abo_blood_type >", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeGreaterThanOrEqualTo(String value) { + addCriterion("abo_blood_type >=", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeLessThan(String value) { + addCriterion("abo_blood_type <", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeLessThanOrEqualTo(String value) { + addCriterion("abo_blood_type <=", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeLike(String value) { + addCriterion("abo_blood_type like", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeNotLike(String value) { + addCriterion("abo_blood_type not like", value, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeIn(List values) { + addCriterion("abo_blood_type in", values, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeNotIn(List values) { + addCriterion("abo_blood_type not in", values, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeBetween(String value1, String value2) { + addCriterion("abo_blood_type between", value1, value2, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andAboBloodTypeNotBetween(String value1, String value2) { + addCriterion("abo_blood_type not between", value1, value2, "aboBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeIsNull() { + addCriterion("rh_blood_type is null"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeIsNotNull() { + addCriterion("rh_blood_type is not null"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeEqualTo(String value) { + addCriterion("rh_blood_type =", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeNotEqualTo(String value) { + addCriterion("rh_blood_type <>", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeGreaterThan(String value) { + addCriterion("rh_blood_type >", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeGreaterThanOrEqualTo(String value) { + addCriterion("rh_blood_type >=", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeLessThan(String value) { + addCriterion("rh_blood_type <", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeLessThanOrEqualTo(String value) { + addCriterion("rh_blood_type <=", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeLike(String value) { + addCriterion("rh_blood_type like", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeNotLike(String value) { + addCriterion("rh_blood_type not like", value, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeIn(List values) { + addCriterion("rh_blood_type in", values, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeNotIn(List values) { + addCriterion("rh_blood_type not in", values, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeBetween(String value1, String value2) { + addCriterion("rh_blood_type between", value1, value2, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andRhBloodTypeNotBetween(String value1, String value2) { + addCriterion("rh_blood_type not between", value1, value2, "rhBloodType"); + return (Criteria) this; + } + + public Criteria andBeliefIsNull() { + addCriterion("belief is null"); + return (Criteria) this; + } + + public Criteria andBeliefIsNotNull() { + addCriterion("belief is not null"); + return (Criteria) this; + } + + public Criteria andBeliefEqualTo(String value) { + addCriterion("belief =", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefNotEqualTo(String value) { + addCriterion("belief <>", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefGreaterThan(String value) { + addCriterion("belief >", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefGreaterThanOrEqualTo(String value) { + addCriterion("belief >=", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefLessThan(String value) { + addCriterion("belief <", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefLessThanOrEqualTo(String value) { + addCriterion("belief <=", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefLike(String value) { + addCriterion("belief like", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefNotLike(String value) { + addCriterion("belief not like", value, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefIn(List values) { + addCriterion("belief in", values, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefNotIn(List values) { + addCriterion("belief not in", values, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefBetween(String value1, String value2) { + addCriterion("belief between", value1, value2, "belief"); + return (Criteria) this; + } + + public Criteria andBeliefNotBetween(String value1, String value2) { + addCriterion("belief not between", value1, value2, "belief"); + return (Criteria) this; + } + + public Criteria andHobbyIsNull() { + addCriterion("hobby is null"); + return (Criteria) this; + } + + public Criteria andHobbyIsNotNull() { + addCriterion("hobby is not null"); + return (Criteria) this; + } + + public Criteria andHobbyEqualTo(String value) { + addCriterion("hobby =", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyNotEqualTo(String value) { + addCriterion("hobby <>", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyGreaterThan(String value) { + addCriterion("hobby >", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyGreaterThanOrEqualTo(String value) { + addCriterion("hobby >=", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyLessThan(String value) { + addCriterion("hobby <", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyLessThanOrEqualTo(String value) { + addCriterion("hobby <=", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyLike(String value) { + addCriterion("hobby like", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyNotLike(String value) { + addCriterion("hobby not like", value, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyIn(List values) { + addCriterion("hobby in", values, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyNotIn(List values) { + addCriterion("hobby not in", values, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyBetween(String value1, String value2) { + addCriterion("hobby between", value1, value2, "hobby"); + return (Criteria) this; + } + + public Criteria andHobbyNotBetween(String value1, String value2) { + addCriterion("hobby not between", value1, value2, "hobby"); + 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 values) { + addCriterion("create_by in", values, "createBy"); + return (Criteria) this; + } + + public Criteria andCreateByNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("update_by in", values, "updateBy"); + return (Criteria) this; + } + + public Criteria andUpdateByNotIn(List 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 values) { + addCriterion("del_flag in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotIn(List 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 andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andSyncIsNull() { + addCriterion("sync is null"); + return (Criteria) this; + } + + public Criteria andSyncIsNotNull() { + addCriterion("sync is not null"); + return (Criteria) this; + } + + public Criteria andSyncEqualTo(String value) { + addCriterion("sync =", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotEqualTo(String value) { + addCriterion("sync <>", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThan(String value) { + addCriterion("sync >", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThanOrEqualTo(String value) { + addCriterion("sync >=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThan(String value) { + addCriterion("sync <", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThanOrEqualTo(String value) { + addCriterion("sync <=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLike(String value) { + addCriterion("sync like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotLike(String value) { + addCriterion("sync not like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncIn(List values) { + addCriterion("sync in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotIn(List values) { + addCriterion("sync not in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncBetween(String value1, String value2) { + addCriterion("sync between", value1, value2, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotBetween(String value1, String value2) { + addCriterion("sync not between", value1, value2, "sync"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientDiagnosis.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientDiagnosis.java new file mode 100644 index 0000000..1299182 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientDiagnosis.java @@ -0,0 +1,172 @@ +package com.ccsens.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class DockPatientDiagnosis implements Serializable { + private Long id; + + private String visitNo; + + private String diagnosisType; + + private Byte isMainDiagnosis; + + private String diagnosisName; + + private String diagnosisCode; + + private Date diagnosisDate; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private Byte delFlag; + + private String remark; + + private String sync; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getVisitNo() { + return visitNo; + } + + public void setVisitNo(String visitNo) { + this.visitNo = visitNo == null ? null : visitNo.trim(); + } + + public String getDiagnosisType() { + return diagnosisType; + } + + public void setDiagnosisType(String diagnosisType) { + this.diagnosisType = diagnosisType == null ? null : diagnosisType.trim(); + } + + public Byte getIsMainDiagnosis() { + return isMainDiagnosis; + } + + public void setIsMainDiagnosis(Byte isMainDiagnosis) { + this.isMainDiagnosis = isMainDiagnosis; + } + + public String getDiagnosisName() { + return diagnosisName; + } + + public void setDiagnosisName(String diagnosisName) { + this.diagnosisName = diagnosisName == null ? null : diagnosisName.trim(); + } + + public String getDiagnosisCode() { + return diagnosisCode; + } + + public void setDiagnosisCode(String diagnosisCode) { + this.diagnosisCode = diagnosisCode == null ? null : diagnosisCode.trim(); + } + + public Date getDiagnosisDate() { + return diagnosisDate; + } + + public void setDiagnosisDate(Date diagnosisDate) { + this.diagnosisDate = diagnosisDate; + } + + 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; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + public String getSync() { + return sync; + } + + public void setSync(String sync) { + this.sync = sync == null ? null : sync.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(", visitNo=").append(visitNo); + sb.append(", diagnosisType=").append(diagnosisType); + sb.append(", isMainDiagnosis=").append(isMainDiagnosis); + sb.append(", diagnosisName=").append(diagnosisName); + sb.append(", diagnosisCode=").append(diagnosisCode); + sb.append(", diagnosisDate=").append(diagnosisDate); + 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(", remark=").append(remark); + sb.append(", sync=").append(sync); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientDiagnosisExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientDiagnosisExample.java new file mode 100644 index 0000000..9297c1c --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientDiagnosisExample.java @@ -0,0 +1,1148 @@ +package com.ccsens.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.Iterator; +import java.util.List; + +public class DockPatientDiagnosisExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DockPatientDiagnosisExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + protected void addCriterionForJDBCDate(String condition, Date value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value.getTime()), property); + } + + protected void addCriterionForJDBCDate(String condition, List values, String property) { + if (values == null || values.size() == 0) { + throw new RuntimeException("Value list for " + property + " cannot be null or empty"); + } + List dateList = new ArrayList(); + Iterator iter = values.iterator(); + while (iter.hasNext()) { + dateList.add(new java.sql.Date(iter.next().getTime())); + } + addCriterion(condition, dateList, property); + } + + protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andVisitNoIsNull() { + addCriterion("visit_no is null"); + return (Criteria) this; + } + + public Criteria andVisitNoIsNotNull() { + addCriterion("visit_no is not null"); + return (Criteria) this; + } + + public Criteria andVisitNoEqualTo(String value) { + addCriterion("visit_no =", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotEqualTo(String value) { + addCriterion("visit_no <>", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoGreaterThan(String value) { + addCriterion("visit_no >", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoGreaterThanOrEqualTo(String value) { + addCriterion("visit_no >=", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLessThan(String value) { + addCriterion("visit_no <", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLessThanOrEqualTo(String value) { + addCriterion("visit_no <=", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLike(String value) { + addCriterion("visit_no like", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotLike(String value) { + addCriterion("visit_no not like", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoIn(List values) { + addCriterion("visit_no in", values, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotIn(List values) { + addCriterion("visit_no not in", values, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoBetween(String value1, String value2) { + addCriterion("visit_no between", value1, value2, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotBetween(String value1, String value2) { + addCriterion("visit_no not between", value1, value2, "visitNo"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeIsNull() { + addCriterion("diagnosis_type is null"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeIsNotNull() { + addCriterion("diagnosis_type is not null"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeEqualTo(String value) { + addCriterion("diagnosis_type =", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeNotEqualTo(String value) { + addCriterion("diagnosis_type <>", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeGreaterThan(String value) { + addCriterion("diagnosis_type >", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeGreaterThanOrEqualTo(String value) { + addCriterion("diagnosis_type >=", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeLessThan(String value) { + addCriterion("diagnosis_type <", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeLessThanOrEqualTo(String value) { + addCriterion("diagnosis_type <=", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeLike(String value) { + addCriterion("diagnosis_type like", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeNotLike(String value) { + addCriterion("diagnosis_type not like", value, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeIn(List values) { + addCriterion("diagnosis_type in", values, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeNotIn(List values) { + addCriterion("diagnosis_type not in", values, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeBetween(String value1, String value2) { + addCriterion("diagnosis_type between", value1, value2, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andDiagnosisTypeNotBetween(String value1, String value2) { + addCriterion("diagnosis_type not between", value1, value2, "diagnosisType"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisIsNull() { + addCriterion("is_main_diagnosis is null"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisIsNotNull() { + addCriterion("is_main_diagnosis is not null"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisEqualTo(Byte value) { + addCriterion("is_main_diagnosis =", value, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisNotEqualTo(Byte value) { + addCriterion("is_main_diagnosis <>", value, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisGreaterThan(Byte value) { + addCriterion("is_main_diagnosis >", value, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisGreaterThanOrEqualTo(Byte value) { + addCriterion("is_main_diagnosis >=", value, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisLessThan(Byte value) { + addCriterion("is_main_diagnosis <", value, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisLessThanOrEqualTo(Byte value) { + addCriterion("is_main_diagnosis <=", value, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisIn(List values) { + addCriterion("is_main_diagnosis in", values, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisNotIn(List values) { + addCriterion("is_main_diagnosis not in", values, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisBetween(Byte value1, Byte value2) { + addCriterion("is_main_diagnosis between", value1, value2, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andIsMainDiagnosisNotBetween(Byte value1, Byte value2) { + addCriterion("is_main_diagnosis not between", value1, value2, "isMainDiagnosis"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameIsNull() { + addCriterion("diagnosis_name is null"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameIsNotNull() { + addCriterion("diagnosis_name is not null"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameEqualTo(String value) { + addCriterion("diagnosis_name =", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameNotEqualTo(String value) { + addCriterion("diagnosis_name <>", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameGreaterThan(String value) { + addCriterion("diagnosis_name >", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameGreaterThanOrEqualTo(String value) { + addCriterion("diagnosis_name >=", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameLessThan(String value) { + addCriterion("diagnosis_name <", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameLessThanOrEqualTo(String value) { + addCriterion("diagnosis_name <=", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameLike(String value) { + addCriterion("diagnosis_name like", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameNotLike(String value) { + addCriterion("diagnosis_name not like", value, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameIn(List values) { + addCriterion("diagnosis_name in", values, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameNotIn(List values) { + addCriterion("diagnosis_name not in", values, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameBetween(String value1, String value2) { + addCriterion("diagnosis_name between", value1, value2, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisNameNotBetween(String value1, String value2) { + addCriterion("diagnosis_name not between", value1, value2, "diagnosisName"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeIsNull() { + addCriterion("diagnosis_code is null"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeIsNotNull() { + addCriterion("diagnosis_code is not null"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeEqualTo(String value) { + addCriterion("diagnosis_code =", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeNotEqualTo(String value) { + addCriterion("diagnosis_code <>", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeGreaterThan(String value) { + addCriterion("diagnosis_code >", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeGreaterThanOrEqualTo(String value) { + addCriterion("diagnosis_code >=", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeLessThan(String value) { + addCriterion("diagnosis_code <", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeLessThanOrEqualTo(String value) { + addCriterion("diagnosis_code <=", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeLike(String value) { + addCriterion("diagnosis_code like", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeNotLike(String value) { + addCriterion("diagnosis_code not like", value, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeIn(List values) { + addCriterion("diagnosis_code in", values, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeNotIn(List values) { + addCriterion("diagnosis_code not in", values, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeBetween(String value1, String value2) { + addCriterion("diagnosis_code between", value1, value2, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisCodeNotBetween(String value1, String value2) { + addCriterion("diagnosis_code not between", value1, value2, "diagnosisCode"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateIsNull() { + addCriterion("diagnosis_date is null"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateIsNotNull() { + addCriterion("diagnosis_date is not null"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateEqualTo(Date value) { + addCriterionForJDBCDate("diagnosis_date =", value, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateNotEqualTo(Date value) { + addCriterionForJDBCDate("diagnosis_date <>", value, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateGreaterThan(Date value) { + addCriterionForJDBCDate("diagnosis_date >", value, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateGreaterThanOrEqualTo(Date value) { + addCriterionForJDBCDate("diagnosis_date >=", value, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateLessThan(Date value) { + addCriterionForJDBCDate("diagnosis_date <", value, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateLessThanOrEqualTo(Date value) { + addCriterionForJDBCDate("diagnosis_date <=", value, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateIn(List values) { + addCriterionForJDBCDate("diagnosis_date in", values, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateNotIn(List values) { + addCriterionForJDBCDate("diagnosis_date not in", values, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateBetween(Date value1, Date value2) { + addCriterionForJDBCDate("diagnosis_date between", value1, value2, "diagnosisDate"); + return (Criteria) this; + } + + public Criteria andDiagnosisDateNotBetween(Date value1, Date value2) { + addCriterionForJDBCDate("diagnosis_date not between", value1, value2, "diagnosisDate"); + 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 values) { + addCriterion("create_by in", values, "createBy"); + return (Criteria) this; + } + + public Criteria andCreateByNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("update_by in", values, "updateBy"); + return (Criteria) this; + } + + public Criteria andUpdateByNotIn(List 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 values) { + addCriterion("del_flag in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotIn(List 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 andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andSyncIsNull() { + addCriterion("sync is null"); + return (Criteria) this; + } + + public Criteria andSyncIsNotNull() { + addCriterion("sync is not null"); + return (Criteria) this; + } + + public Criteria andSyncEqualTo(String value) { + addCriterion("sync =", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotEqualTo(String value) { + addCriterion("sync <>", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThan(String value) { + addCriterion("sync >", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThanOrEqualTo(String value) { + addCriterion("sync >=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThan(String value) { + addCriterion("sync <", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThanOrEqualTo(String value) { + addCriterion("sync <=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLike(String value) { + addCriterion("sync like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotLike(String value) { + addCriterion("sync not like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncIn(List values) { + addCriterion("sync in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotIn(List values) { + addCriterion("sync not in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncBetween(String value1, String value2) { + addCriterion("sync between", value1, value2, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotBetween(String value1, String value2) { + addCriterion("sync not between", value1, value2, "sync"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientMedicationInfo.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientMedicationInfo.java new file mode 100644 index 0000000..9b2a3f9 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientMedicationInfo.java @@ -0,0 +1,162 @@ +package com.ccsens.system.domain.po; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class DockPatientMedicationInfo implements Serializable { + private Long id; + + private String visitNo; + + private String drugName; + + private BigDecimal dose; + + private String unit; + + private String frequency; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private Byte delFlag; + + private String remark; + + private String sync; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getVisitNo() { + return visitNo; + } + + public void setVisitNo(String visitNo) { + this.visitNo = visitNo == null ? null : visitNo.trim(); + } + + public String getDrugName() { + return drugName; + } + + public void setDrugName(String drugName) { + this.drugName = drugName == null ? null : drugName.trim(); + } + + public BigDecimal getDose() { + return dose; + } + + public void setDose(BigDecimal dose) { + this.dose = dose; + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public String getFrequency() { + return frequency; + } + + public void setFrequency(String frequency) { + this.frequency = frequency == null ? null : frequency.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; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + public String getSync() { + return sync; + } + + public void setSync(String sync) { + this.sync = sync == null ? null : sync.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(", visitNo=").append(visitNo); + sb.append(", drugName=").append(drugName); + sb.append(", dose=").append(dose); + sb.append(", unit=").append(unit); + sb.append(", frequency=").append(frequency); + 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(", remark=").append(remark); + sb.append(", sync=").append(sync); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientMedicationInfoExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientMedicationInfoExample.java new file mode 100644 index 0000000..f58286a --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientMedicationInfoExample.java @@ -0,0 +1,1062 @@ +package com.ccsens.system.domain.po; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DockPatientMedicationInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DockPatientMedicationInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andVisitNoIsNull() { + addCriterion("visit_no is null"); + return (Criteria) this; + } + + public Criteria andVisitNoIsNotNull() { + addCriterion("visit_no is not null"); + return (Criteria) this; + } + + public Criteria andVisitNoEqualTo(String value) { + addCriterion("visit_no =", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotEqualTo(String value) { + addCriterion("visit_no <>", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoGreaterThan(String value) { + addCriterion("visit_no >", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoGreaterThanOrEqualTo(String value) { + addCriterion("visit_no >=", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLessThan(String value) { + addCriterion("visit_no <", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLessThanOrEqualTo(String value) { + addCriterion("visit_no <=", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLike(String value) { + addCriterion("visit_no like", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotLike(String value) { + addCriterion("visit_no not like", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoIn(List values) { + addCriterion("visit_no in", values, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotIn(List values) { + addCriterion("visit_no not in", values, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoBetween(String value1, String value2) { + addCriterion("visit_no between", value1, value2, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotBetween(String value1, String value2) { + addCriterion("visit_no not between", value1, value2, "visitNo"); + return (Criteria) this; + } + + public Criteria andDrugNameIsNull() { + addCriterion("drug_name is null"); + return (Criteria) this; + } + + public Criteria andDrugNameIsNotNull() { + addCriterion("drug_name is not null"); + return (Criteria) this; + } + + public Criteria andDrugNameEqualTo(String value) { + addCriterion("drug_name =", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameNotEqualTo(String value) { + addCriterion("drug_name <>", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameGreaterThan(String value) { + addCriterion("drug_name >", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameGreaterThanOrEqualTo(String value) { + addCriterion("drug_name >=", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameLessThan(String value) { + addCriterion("drug_name <", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameLessThanOrEqualTo(String value) { + addCriterion("drug_name <=", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameLike(String value) { + addCriterion("drug_name like", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameNotLike(String value) { + addCriterion("drug_name not like", value, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameIn(List values) { + addCriterion("drug_name in", values, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameNotIn(List values) { + addCriterion("drug_name not in", values, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameBetween(String value1, String value2) { + addCriterion("drug_name between", value1, value2, "drugName"); + return (Criteria) this; + } + + public Criteria andDrugNameNotBetween(String value1, String value2) { + addCriterion("drug_name not between", value1, value2, "drugName"); + return (Criteria) this; + } + + public Criteria andDoseIsNull() { + addCriterion("dose is null"); + return (Criteria) this; + } + + public Criteria andDoseIsNotNull() { + addCriterion("dose is not null"); + return (Criteria) this; + } + + public Criteria andDoseEqualTo(BigDecimal value) { + addCriterion("dose =", value, "dose"); + return (Criteria) this; + } + + public Criteria andDoseNotEqualTo(BigDecimal value) { + addCriterion("dose <>", value, "dose"); + return (Criteria) this; + } + + public Criteria andDoseGreaterThan(BigDecimal value) { + addCriterion("dose >", value, "dose"); + return (Criteria) this; + } + + public Criteria andDoseGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("dose >=", value, "dose"); + return (Criteria) this; + } + + public Criteria andDoseLessThan(BigDecimal value) { + addCriterion("dose <", value, "dose"); + return (Criteria) this; + } + + public Criteria andDoseLessThanOrEqualTo(BigDecimal value) { + addCriterion("dose <=", value, "dose"); + return (Criteria) this; + } + + public Criteria andDoseIn(List values) { + addCriterion("dose in", values, "dose"); + return (Criteria) this; + } + + public Criteria andDoseNotIn(List values) { + addCriterion("dose not in", values, "dose"); + return (Criteria) this; + } + + public Criteria andDoseBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("dose between", value1, value2, "dose"); + return (Criteria) this; + } + + public Criteria andDoseNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("dose not between", value1, value2, "dose"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andFrequencyIsNull() { + addCriterion("frequency is null"); + return (Criteria) this; + } + + public Criteria andFrequencyIsNotNull() { + addCriterion("frequency is not null"); + return (Criteria) this; + } + + public Criteria andFrequencyEqualTo(String value) { + addCriterion("frequency =", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyNotEqualTo(String value) { + addCriterion("frequency <>", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyGreaterThan(String value) { + addCriterion("frequency >", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyGreaterThanOrEqualTo(String value) { + addCriterion("frequency >=", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyLessThan(String value) { + addCriterion("frequency <", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyLessThanOrEqualTo(String value) { + addCriterion("frequency <=", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyLike(String value) { + addCriterion("frequency like", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyNotLike(String value) { + addCriterion("frequency not like", value, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyIn(List values) { + addCriterion("frequency in", values, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyNotIn(List values) { + addCriterion("frequency not in", values, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyBetween(String value1, String value2) { + addCriterion("frequency between", value1, value2, "frequency"); + return (Criteria) this; + } + + public Criteria andFrequencyNotBetween(String value1, String value2) { + addCriterion("frequency not between", value1, value2, "frequency"); + 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 values) { + addCriterion("create_by in", values, "createBy"); + return (Criteria) this; + } + + public Criteria andCreateByNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("update_by in", values, "updateBy"); + return (Criteria) this; + } + + public Criteria andUpdateByNotIn(List 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 values) { + addCriterion("del_flag in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotIn(List 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 andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andSyncIsNull() { + addCriterion("sync is null"); + return (Criteria) this; + } + + public Criteria andSyncIsNotNull() { + addCriterion("sync is not null"); + return (Criteria) this; + } + + public Criteria andSyncEqualTo(String value) { + addCriterion("sync =", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotEqualTo(String value) { + addCriterion("sync <>", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThan(String value) { + addCriterion("sync >", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThanOrEqualTo(String value) { + addCriterion("sync >=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThan(String value) { + addCriterion("sync <", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThanOrEqualTo(String value) { + addCriterion("sync <=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLike(String value) { + addCriterion("sync like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotLike(String value) { + addCriterion("sync not like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncIn(List values) { + addCriterion("sync in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotIn(List values) { + addCriterion("sync not in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncBetween(String value1, String value2) { + addCriterion("sync between", value1, value2, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotBetween(String value1, String value2) { + addCriterion("sync not between", value1, value2, "sync"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientVisitInfo.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientVisitInfo.java new file mode 100644 index 0000000..e1c25ed --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientVisitInfo.java @@ -0,0 +1,514 @@ +package com.ccsens.system.domain.po; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class DockPatientVisitInfo implements Serializable { + private Long id; + + private String idCard; + + private String patientNo; + + private String visitType; + + private String visitNo; + + private Integer age; + + private String department; + + private String doctor; + + private Date admissionDate; + + private Integer admissionCount; + + private String bedNumber; + + private Date dischargeDate; + + private String admissionMethod; + + private String dischargeMethod; + + private BigDecimal height; + + private BigDecimal weight; + + private BigDecimal tz; + + private BigDecimal temperature; + + private Integer bloodPressureShrink; + + private Integer bloodPressureDiastole; + + private Integer pulse; + + private BigDecimal creatinine; + + private BigDecimal oxygenSaturation; + + private BigDecimal albumin; + + private BigDecimal totalProtein; + + private BigDecimal vitaminD3; + + private BigDecimal hematocrit; + + private BigDecimal dimer; + + private Byte smokingHistory; + + private Integer smokingYear; + + private Byte smokingQuit; + + private Integer smokingQuitYear; + + private Byte drinkHistory; + + private Integer drinkYear; + + private Byte drinkQuit; + + private Integer drinkQuitYear; + + private Byte hasAllergy; + + private String allergyDrug; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private Byte delFlag; + + private String remark; + + private String sync; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getIdCard() { + return idCard; + } + + public void setIdCard(String idCard) { + this.idCard = idCard == null ? null : idCard.trim(); + } + + public String getPatientNo() { + return patientNo; + } + + public void setPatientNo(String patientNo) { + this.patientNo = patientNo == null ? null : patientNo.trim(); + } + + public String getVisitType() { + return visitType; + } + + public void setVisitType(String visitType) { + this.visitType = visitType == null ? null : visitType.trim(); + } + + public String getVisitNo() { + return visitNo; + } + + public void setVisitNo(String visitNo) { + this.visitNo = visitNo == null ? null : visitNo.trim(); + } + + public Integer getAge() { + return age; + } + + public void setAge(Integer age) { + this.age = age; + } + + public String getDepartment() { + return department; + } + + public void setDepartment(String department) { + this.department = department == null ? null : department.trim(); + } + + public String getDoctor() { + return doctor; + } + + public void setDoctor(String doctor) { + this.doctor = doctor == null ? null : doctor.trim(); + } + + public Date getAdmissionDate() { + return admissionDate; + } + + public void setAdmissionDate(Date admissionDate) { + this.admissionDate = admissionDate; + } + + public Integer getAdmissionCount() { + return admissionCount; + } + + public void setAdmissionCount(Integer admissionCount) { + this.admissionCount = admissionCount; + } + + public String getBedNumber() { + return bedNumber; + } + + public void setBedNumber(String bedNumber) { + this.bedNumber = bedNumber == null ? null : bedNumber.trim(); + } + + public Date getDischargeDate() { + return dischargeDate; + } + + public void setDischargeDate(Date dischargeDate) { + this.dischargeDate = dischargeDate; + } + + public String getAdmissionMethod() { + return admissionMethod; + } + + public void setAdmissionMethod(String admissionMethod) { + this.admissionMethod = admissionMethod == null ? null : admissionMethod.trim(); + } + + public String getDischargeMethod() { + return dischargeMethod; + } + + public void setDischargeMethod(String dischargeMethod) { + this.dischargeMethod = dischargeMethod == null ? null : dischargeMethod.trim(); + } + + public BigDecimal getHeight() { + return height; + } + + public void setHeight(BigDecimal height) { + this.height = height; + } + + public BigDecimal getWeight() { + return weight; + } + + public void setWeight(BigDecimal weight) { + this.weight = weight; + } + + public BigDecimal getTz() { + return tz; + } + + public void setTz(BigDecimal tz) { + this.tz = tz; + } + + public BigDecimal getTemperature() { + return temperature; + } + + public void setTemperature(BigDecimal temperature) { + this.temperature = temperature; + } + + public Integer getBloodPressureShrink() { + return bloodPressureShrink; + } + + public void setBloodPressureShrink(Integer bloodPressureShrink) { + this.bloodPressureShrink = bloodPressureShrink; + } + + public Integer getBloodPressureDiastole() { + return bloodPressureDiastole; + } + + public void setBloodPressureDiastole(Integer bloodPressureDiastole) { + this.bloodPressureDiastole = bloodPressureDiastole; + } + + public Integer getPulse() { + return pulse; + } + + public void setPulse(Integer pulse) { + this.pulse = pulse; + } + + public BigDecimal getCreatinine() { + return creatinine; + } + + public void setCreatinine(BigDecimal creatinine) { + this.creatinine = creatinine; + } + + public BigDecimal getOxygenSaturation() { + return oxygenSaturation; + } + + public void setOxygenSaturation(BigDecimal oxygenSaturation) { + this.oxygenSaturation = oxygenSaturation; + } + + public BigDecimal getAlbumin() { + return albumin; + } + + public void setAlbumin(BigDecimal albumin) { + this.albumin = albumin; + } + + public BigDecimal getTotalProtein() { + return totalProtein; + } + + public void setTotalProtein(BigDecimal totalProtein) { + this.totalProtein = totalProtein; + } + + public BigDecimal getVitaminD3() { + return vitaminD3; + } + + public void setVitaminD3(BigDecimal vitaminD3) { + this.vitaminD3 = vitaminD3; + } + + public BigDecimal getHematocrit() { + return hematocrit; + } + + public void setHematocrit(BigDecimal hematocrit) { + this.hematocrit = hematocrit; + } + + public BigDecimal getDimer() { + return dimer; + } + + public void setDimer(BigDecimal dimer) { + this.dimer = dimer; + } + + public Byte getSmokingHistory() { + return smokingHistory; + } + + public void setSmokingHistory(Byte smokingHistory) { + this.smokingHistory = smokingHistory; + } + + public Integer getSmokingYear() { + return smokingYear; + } + + public void setSmokingYear(Integer smokingYear) { + this.smokingYear = smokingYear; + } + + public Byte getSmokingQuit() { + return smokingQuit; + } + + public void setSmokingQuit(Byte smokingQuit) { + this.smokingQuit = smokingQuit; + } + + public Integer getSmokingQuitYear() { + return smokingQuitYear; + } + + public void setSmokingQuitYear(Integer smokingQuitYear) { + this.smokingQuitYear = smokingQuitYear; + } + + public Byte getDrinkHistory() { + return drinkHistory; + } + + public void setDrinkHistory(Byte drinkHistory) { + this.drinkHistory = drinkHistory; + } + + public Integer getDrinkYear() { + return drinkYear; + } + + public void setDrinkYear(Integer drinkYear) { + this.drinkYear = drinkYear; + } + + public Byte getDrinkQuit() { + return drinkQuit; + } + + public void setDrinkQuit(Byte drinkQuit) { + this.drinkQuit = drinkQuit; + } + + public Integer getDrinkQuitYear() { + return drinkQuitYear; + } + + public void setDrinkQuitYear(Integer drinkQuitYear) { + this.drinkQuitYear = drinkQuitYear; + } + + public Byte getHasAllergy() { + return hasAllergy; + } + + public void setHasAllergy(Byte hasAllergy) { + this.hasAllergy = hasAllergy; + } + + public String getAllergyDrug() { + return allergyDrug; + } + + public void setAllergyDrug(String allergyDrug) { + this.allergyDrug = allergyDrug == null ? null : allergyDrug.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; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + public String getSync() { + return sync; + } + + public void setSync(String sync) { + this.sync = sync == null ? null : sync.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(", idCard=").append(idCard); + sb.append(", patientNo=").append(patientNo); + sb.append(", visitType=").append(visitType); + sb.append(", visitNo=").append(visitNo); + sb.append(", age=").append(age); + sb.append(", department=").append(department); + sb.append(", doctor=").append(doctor); + sb.append(", admissionDate=").append(admissionDate); + sb.append(", admissionCount=").append(admissionCount); + sb.append(", bedNumber=").append(bedNumber); + sb.append(", dischargeDate=").append(dischargeDate); + sb.append(", admissionMethod=").append(admissionMethod); + sb.append(", dischargeMethod=").append(dischargeMethod); + sb.append(", height=").append(height); + sb.append(", weight=").append(weight); + sb.append(", tz=").append(tz); + sb.append(", temperature=").append(temperature); + sb.append(", bloodPressureShrink=").append(bloodPressureShrink); + sb.append(", bloodPressureDiastole=").append(bloodPressureDiastole); + sb.append(", pulse=").append(pulse); + sb.append(", creatinine=").append(creatinine); + sb.append(", oxygenSaturation=").append(oxygenSaturation); + sb.append(", albumin=").append(albumin); + sb.append(", totalProtein=").append(totalProtein); + sb.append(", vitaminD3=").append(vitaminD3); + sb.append(", hematocrit=").append(hematocrit); + sb.append(", dimer=").append(dimer); + sb.append(", smokingHistory=").append(smokingHistory); + sb.append(", smokingYear=").append(smokingYear); + sb.append(", smokingQuit=").append(smokingQuit); + sb.append(", smokingQuitYear=").append(smokingQuitYear); + sb.append(", drinkHistory=").append(drinkHistory); + sb.append(", drinkYear=").append(drinkYear); + sb.append(", drinkQuit=").append(drinkQuit); + sb.append(", drinkQuitYear=").append(drinkQuitYear); + sb.append(", hasAllergy=").append(hasAllergy); + sb.append(", allergyDrug=").append(allergyDrug); + 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(", remark=").append(remark); + sb.append(", sync=").append(sync); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientVisitInfoExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientVisitInfoExample.java new file mode 100644 index 0000000..273ce1c --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/DockPatientVisitInfoExample.java @@ -0,0 +1,3042 @@ +package com.ccsens.system.domain.po; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DockPatientVisitInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DockPatientVisitInfoExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdCardIsNull() { + addCriterion("id_card is null"); + return (Criteria) this; + } + + public Criteria andIdCardIsNotNull() { + addCriterion("id_card is not null"); + return (Criteria) this; + } + + public Criteria andIdCardEqualTo(String value) { + addCriterion("id_card =", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotEqualTo(String value) { + addCriterion("id_card <>", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThan(String value) { + addCriterion("id_card >", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThanOrEqualTo(String value) { + addCriterion("id_card >=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThan(String value) { + addCriterion("id_card <", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThanOrEqualTo(String value) { + addCriterion("id_card <=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLike(String value) { + addCriterion("id_card like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotLike(String value) { + addCriterion("id_card not like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardIn(List values) { + addCriterion("id_card in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotIn(List values) { + addCriterion("id_card not in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardBetween(String value1, String value2) { + addCriterion("id_card between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotBetween(String value1, String value2) { + addCriterion("id_card not between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andPatientNoIsNull() { + addCriterion("patient_no is null"); + return (Criteria) this; + } + + public Criteria andPatientNoIsNotNull() { + addCriterion("patient_no is not null"); + return (Criteria) this; + } + + public Criteria andPatientNoEqualTo(String value) { + addCriterion("patient_no =", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotEqualTo(String value) { + addCriterion("patient_no <>", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoGreaterThan(String value) { + addCriterion("patient_no >", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoGreaterThanOrEqualTo(String value) { + addCriterion("patient_no >=", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLessThan(String value) { + addCriterion("patient_no <", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLessThanOrEqualTo(String value) { + addCriterion("patient_no <=", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLike(String value) { + addCriterion("patient_no like", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotLike(String value) { + addCriterion("patient_no not like", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoIn(List values) { + addCriterion("patient_no in", values, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotIn(List values) { + addCriterion("patient_no not in", values, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoBetween(String value1, String value2) { + addCriterion("patient_no between", value1, value2, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotBetween(String value1, String value2) { + addCriterion("patient_no not between", value1, value2, "patientNo"); + return (Criteria) this; + } + + public Criteria andVisitTypeIsNull() { + addCriterion("visit_type is null"); + return (Criteria) this; + } + + public Criteria andVisitTypeIsNotNull() { + addCriterion("visit_type is not null"); + return (Criteria) this; + } + + public Criteria andVisitTypeEqualTo(String value) { + addCriterion("visit_type =", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeNotEqualTo(String value) { + addCriterion("visit_type <>", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeGreaterThan(String value) { + addCriterion("visit_type >", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeGreaterThanOrEqualTo(String value) { + addCriterion("visit_type >=", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeLessThan(String value) { + addCriterion("visit_type <", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeLessThanOrEqualTo(String value) { + addCriterion("visit_type <=", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeLike(String value) { + addCriterion("visit_type like", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeNotLike(String value) { + addCriterion("visit_type not like", value, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeIn(List values) { + addCriterion("visit_type in", values, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeNotIn(List values) { + addCriterion("visit_type not in", values, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeBetween(String value1, String value2) { + addCriterion("visit_type between", value1, value2, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitTypeNotBetween(String value1, String value2) { + addCriterion("visit_type not between", value1, value2, "visitType"); + return (Criteria) this; + } + + public Criteria andVisitNoIsNull() { + addCriterion("visit_no is null"); + return (Criteria) this; + } + + public Criteria andVisitNoIsNotNull() { + addCriterion("visit_no is not null"); + return (Criteria) this; + } + + public Criteria andVisitNoEqualTo(String value) { + addCriterion("visit_no =", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotEqualTo(String value) { + addCriterion("visit_no <>", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoGreaterThan(String value) { + addCriterion("visit_no >", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoGreaterThanOrEqualTo(String value) { + addCriterion("visit_no >=", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLessThan(String value) { + addCriterion("visit_no <", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLessThanOrEqualTo(String value) { + addCriterion("visit_no <=", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoLike(String value) { + addCriterion("visit_no like", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotLike(String value) { + addCriterion("visit_no not like", value, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoIn(List values) { + addCriterion("visit_no in", values, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotIn(List values) { + addCriterion("visit_no not in", values, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoBetween(String value1, String value2) { + addCriterion("visit_no between", value1, value2, "visitNo"); + return (Criteria) this; + } + + public Criteria andVisitNoNotBetween(String value1, String value2) { + addCriterion("visit_no not between", value1, value2, "visitNo"); + return (Criteria) this; + } + + public Criteria andAgeIsNull() { + addCriterion("age is null"); + return (Criteria) this; + } + + public Criteria andAgeIsNotNull() { + addCriterion("age is not null"); + return (Criteria) this; + } + + public Criteria andAgeEqualTo(Integer value) { + addCriterion("age =", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeNotEqualTo(Integer value) { + addCriterion("age <>", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeGreaterThan(Integer value) { + addCriterion("age >", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeGreaterThanOrEqualTo(Integer value) { + addCriterion("age >=", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeLessThan(Integer value) { + addCriterion("age <", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeLessThanOrEqualTo(Integer value) { + addCriterion("age <=", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeIn(List values) { + addCriterion("age in", values, "age"); + return (Criteria) this; + } + + public Criteria andAgeNotIn(List values) { + addCriterion("age not in", values, "age"); + return (Criteria) this; + } + + public Criteria andAgeBetween(Integer value1, Integer value2) { + addCriterion("age between", value1, value2, "age"); + return (Criteria) this; + } + + public Criteria andAgeNotBetween(Integer value1, Integer value2) { + addCriterion("age not between", value1, value2, "age"); + return (Criteria) this; + } + + public Criteria andDepartmentIsNull() { + addCriterion("department is null"); + return (Criteria) this; + } + + public Criteria andDepartmentIsNotNull() { + addCriterion("department is not null"); + return (Criteria) this; + } + + public Criteria andDepartmentEqualTo(String value) { + addCriterion("department =", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentNotEqualTo(String value) { + addCriterion("department <>", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentGreaterThan(String value) { + addCriterion("department >", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentGreaterThanOrEqualTo(String value) { + addCriterion("department >=", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentLessThan(String value) { + addCriterion("department <", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentLessThanOrEqualTo(String value) { + addCriterion("department <=", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentLike(String value) { + addCriterion("department like", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentNotLike(String value) { + addCriterion("department not like", value, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentIn(List values) { + addCriterion("department in", values, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentNotIn(List values) { + addCriterion("department not in", values, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentBetween(String value1, String value2) { + addCriterion("department between", value1, value2, "department"); + return (Criteria) this; + } + + public Criteria andDepartmentNotBetween(String value1, String value2) { + addCriterion("department not between", value1, value2, "department"); + return (Criteria) this; + } + + public Criteria andDoctorIsNull() { + addCriterion("doctor is null"); + return (Criteria) this; + } + + public Criteria andDoctorIsNotNull() { + addCriterion("doctor is not null"); + return (Criteria) this; + } + + public Criteria andDoctorEqualTo(String value) { + addCriterion("doctor =", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorNotEqualTo(String value) { + addCriterion("doctor <>", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorGreaterThan(String value) { + addCriterion("doctor >", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorGreaterThanOrEqualTo(String value) { + addCriterion("doctor >=", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorLessThan(String value) { + addCriterion("doctor <", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorLessThanOrEqualTo(String value) { + addCriterion("doctor <=", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorLike(String value) { + addCriterion("doctor like", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorNotLike(String value) { + addCriterion("doctor not like", value, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorIn(List values) { + addCriterion("doctor in", values, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorNotIn(List values) { + addCriterion("doctor not in", values, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorBetween(String value1, String value2) { + addCriterion("doctor between", value1, value2, "doctor"); + return (Criteria) this; + } + + public Criteria andDoctorNotBetween(String value1, String value2) { + addCriterion("doctor not between", value1, value2, "doctor"); + return (Criteria) this; + } + + public Criteria andAdmissionDateIsNull() { + addCriterion("admission_date is null"); + return (Criteria) this; + } + + public Criteria andAdmissionDateIsNotNull() { + addCriterion("admission_date is not null"); + return (Criteria) this; + } + + public Criteria andAdmissionDateEqualTo(Date value) { + addCriterion("admission_date =", value, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateNotEqualTo(Date value) { + addCriterion("admission_date <>", value, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateGreaterThan(Date value) { + addCriterion("admission_date >", value, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateGreaterThanOrEqualTo(Date value) { + addCriterion("admission_date >=", value, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateLessThan(Date value) { + addCriterion("admission_date <", value, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateLessThanOrEqualTo(Date value) { + addCriterion("admission_date <=", value, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateIn(List values) { + addCriterion("admission_date in", values, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateNotIn(List values) { + addCriterion("admission_date not in", values, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateBetween(Date value1, Date value2) { + addCriterion("admission_date between", value1, value2, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionDateNotBetween(Date value1, Date value2) { + addCriterion("admission_date not between", value1, value2, "admissionDate"); + return (Criteria) this; + } + + public Criteria andAdmissionCountIsNull() { + addCriterion("admission_count is null"); + return (Criteria) this; + } + + public Criteria andAdmissionCountIsNotNull() { + addCriterion("admission_count is not null"); + return (Criteria) this; + } + + public Criteria andAdmissionCountEqualTo(Integer value) { + addCriterion("admission_count =", value, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountNotEqualTo(Integer value) { + addCriterion("admission_count <>", value, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountGreaterThan(Integer value) { + addCriterion("admission_count >", value, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountGreaterThanOrEqualTo(Integer value) { + addCriterion("admission_count >=", value, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountLessThan(Integer value) { + addCriterion("admission_count <", value, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountLessThanOrEqualTo(Integer value) { + addCriterion("admission_count <=", value, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountIn(List values) { + addCriterion("admission_count in", values, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountNotIn(List values) { + addCriterion("admission_count not in", values, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountBetween(Integer value1, Integer value2) { + addCriterion("admission_count between", value1, value2, "admissionCount"); + return (Criteria) this; + } + + public Criteria andAdmissionCountNotBetween(Integer value1, Integer value2) { + addCriterion("admission_count not between", value1, value2, "admissionCount"); + return (Criteria) this; + } + + public Criteria andBedNumberIsNull() { + addCriterion("bed_number is null"); + return (Criteria) this; + } + + public Criteria andBedNumberIsNotNull() { + addCriterion("bed_number is not null"); + return (Criteria) this; + } + + public Criteria andBedNumberEqualTo(String value) { + addCriterion("bed_number =", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberNotEqualTo(String value) { + addCriterion("bed_number <>", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberGreaterThan(String value) { + addCriterion("bed_number >", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberGreaterThanOrEqualTo(String value) { + addCriterion("bed_number >=", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberLessThan(String value) { + addCriterion("bed_number <", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberLessThanOrEqualTo(String value) { + addCriterion("bed_number <=", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberLike(String value) { + addCriterion("bed_number like", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberNotLike(String value) { + addCriterion("bed_number not like", value, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberIn(List values) { + addCriterion("bed_number in", values, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberNotIn(List values) { + addCriterion("bed_number not in", values, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberBetween(String value1, String value2) { + addCriterion("bed_number between", value1, value2, "bedNumber"); + return (Criteria) this; + } + + public Criteria andBedNumberNotBetween(String value1, String value2) { + addCriterion("bed_number not between", value1, value2, "bedNumber"); + return (Criteria) this; + } + + public Criteria andDischargeDateIsNull() { + addCriterion("discharge_date is null"); + return (Criteria) this; + } + + public Criteria andDischargeDateIsNotNull() { + addCriterion("discharge_date is not null"); + return (Criteria) this; + } + + public Criteria andDischargeDateEqualTo(Date value) { + addCriterion("discharge_date =", value, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateNotEqualTo(Date value) { + addCriterion("discharge_date <>", value, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateGreaterThan(Date value) { + addCriterion("discharge_date >", value, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateGreaterThanOrEqualTo(Date value) { + addCriterion("discharge_date >=", value, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateLessThan(Date value) { + addCriterion("discharge_date <", value, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateLessThanOrEqualTo(Date value) { + addCriterion("discharge_date <=", value, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateIn(List values) { + addCriterion("discharge_date in", values, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateNotIn(List values) { + addCriterion("discharge_date not in", values, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateBetween(Date value1, Date value2) { + addCriterion("discharge_date between", value1, value2, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andDischargeDateNotBetween(Date value1, Date value2) { + addCriterion("discharge_date not between", value1, value2, "dischargeDate"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodIsNull() { + addCriterion("admission_method is null"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodIsNotNull() { + addCriterion("admission_method is not null"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodEqualTo(String value) { + addCriterion("admission_method =", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodNotEqualTo(String value) { + addCriterion("admission_method <>", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodGreaterThan(String value) { + addCriterion("admission_method >", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodGreaterThanOrEqualTo(String value) { + addCriterion("admission_method >=", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodLessThan(String value) { + addCriterion("admission_method <", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodLessThanOrEqualTo(String value) { + addCriterion("admission_method <=", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodLike(String value) { + addCriterion("admission_method like", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodNotLike(String value) { + addCriterion("admission_method not like", value, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodIn(List values) { + addCriterion("admission_method in", values, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodNotIn(List values) { + addCriterion("admission_method not in", values, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodBetween(String value1, String value2) { + addCriterion("admission_method between", value1, value2, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andAdmissionMethodNotBetween(String value1, String value2) { + addCriterion("admission_method not between", value1, value2, "admissionMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodIsNull() { + addCriterion("discharge_method is null"); + return (Criteria) this; + } + + public Criteria andDischargeMethodIsNotNull() { + addCriterion("discharge_method is not null"); + return (Criteria) this; + } + + public Criteria andDischargeMethodEqualTo(String value) { + addCriterion("discharge_method =", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodNotEqualTo(String value) { + addCriterion("discharge_method <>", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodGreaterThan(String value) { + addCriterion("discharge_method >", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodGreaterThanOrEqualTo(String value) { + addCriterion("discharge_method >=", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodLessThan(String value) { + addCriterion("discharge_method <", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodLessThanOrEqualTo(String value) { + addCriterion("discharge_method <=", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodLike(String value) { + addCriterion("discharge_method like", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodNotLike(String value) { + addCriterion("discharge_method not like", value, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodIn(List values) { + addCriterion("discharge_method in", values, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodNotIn(List values) { + addCriterion("discharge_method not in", values, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodBetween(String value1, String value2) { + addCriterion("discharge_method between", value1, value2, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andDischargeMethodNotBetween(String value1, String value2) { + addCriterion("discharge_method not between", value1, value2, "dischargeMethod"); + return (Criteria) this; + } + + public Criteria andHeightIsNull() { + addCriterion("height is null"); + return (Criteria) this; + } + + public Criteria andHeightIsNotNull() { + addCriterion("height is not null"); + return (Criteria) this; + } + + public Criteria andHeightEqualTo(BigDecimal value) { + addCriterion("height =", value, "height"); + return (Criteria) this; + } + + public Criteria andHeightNotEqualTo(BigDecimal value) { + addCriterion("height <>", value, "height"); + return (Criteria) this; + } + + public Criteria andHeightGreaterThan(BigDecimal value) { + addCriterion("height >", value, "height"); + return (Criteria) this; + } + + public Criteria andHeightGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("height >=", value, "height"); + return (Criteria) this; + } + + public Criteria andHeightLessThan(BigDecimal value) { + addCriterion("height <", value, "height"); + return (Criteria) this; + } + + public Criteria andHeightLessThanOrEqualTo(BigDecimal value) { + addCriterion("height <=", value, "height"); + return (Criteria) this; + } + + public Criteria andHeightIn(List values) { + addCriterion("height in", values, "height"); + return (Criteria) this; + } + + public Criteria andHeightNotIn(List values) { + addCriterion("height not in", values, "height"); + return (Criteria) this; + } + + public Criteria andHeightBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("height between", value1, value2, "height"); + return (Criteria) this; + } + + public Criteria andHeightNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("height not between", value1, value2, "height"); + return (Criteria) this; + } + + public Criteria andWeightIsNull() { + addCriterion("weight is null"); + return (Criteria) this; + } + + public Criteria andWeightIsNotNull() { + addCriterion("weight is not null"); + return (Criteria) this; + } + + public Criteria andWeightEqualTo(BigDecimal value) { + addCriterion("weight =", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotEqualTo(BigDecimal value) { + addCriterion("weight <>", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightGreaterThan(BigDecimal value) { + addCriterion("weight >", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("weight >=", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightLessThan(BigDecimal value) { + addCriterion("weight <", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightLessThanOrEqualTo(BigDecimal value) { + addCriterion("weight <=", value, "weight"); + return (Criteria) this; + } + + public Criteria andWeightIn(List values) { + addCriterion("weight in", values, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotIn(List values) { + addCriterion("weight not in", values, "weight"); + return (Criteria) this; + } + + public Criteria andWeightBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("weight between", value1, value2, "weight"); + return (Criteria) this; + } + + public Criteria andWeightNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("weight not between", value1, value2, "weight"); + return (Criteria) this; + } + + public Criteria andTzIsNull() { + addCriterion("tz is null"); + return (Criteria) this; + } + + public Criteria andTzIsNotNull() { + addCriterion("tz is not null"); + return (Criteria) this; + } + + public Criteria andTzEqualTo(BigDecimal value) { + addCriterion("tz =", value, "tz"); + return (Criteria) this; + } + + public Criteria andTzNotEqualTo(BigDecimal value) { + addCriterion("tz <>", value, "tz"); + return (Criteria) this; + } + + public Criteria andTzGreaterThan(BigDecimal value) { + addCriterion("tz >", value, "tz"); + return (Criteria) this; + } + + public Criteria andTzGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("tz >=", value, "tz"); + return (Criteria) this; + } + + public Criteria andTzLessThan(BigDecimal value) { + addCriterion("tz <", value, "tz"); + return (Criteria) this; + } + + public Criteria andTzLessThanOrEqualTo(BigDecimal value) { + addCriterion("tz <=", value, "tz"); + return (Criteria) this; + } + + public Criteria andTzIn(List values) { + addCriterion("tz in", values, "tz"); + return (Criteria) this; + } + + public Criteria andTzNotIn(List values) { + addCriterion("tz not in", values, "tz"); + return (Criteria) this; + } + + public Criteria andTzBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("tz between", value1, value2, "tz"); + return (Criteria) this; + } + + public Criteria andTzNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("tz not between", value1, value2, "tz"); + return (Criteria) this; + } + + public Criteria andTemperatureIsNull() { + addCriterion("temperature is null"); + return (Criteria) this; + } + + public Criteria andTemperatureIsNotNull() { + addCriterion("temperature is not null"); + return (Criteria) this; + } + + public Criteria andTemperatureEqualTo(BigDecimal value) { + addCriterion("temperature =", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureNotEqualTo(BigDecimal value) { + addCriterion("temperature <>", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureGreaterThan(BigDecimal value) { + addCriterion("temperature >", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("temperature >=", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureLessThan(BigDecimal value) { + addCriterion("temperature <", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureLessThanOrEqualTo(BigDecimal value) { + addCriterion("temperature <=", value, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureIn(List values) { + addCriterion("temperature in", values, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureNotIn(List values) { + addCriterion("temperature not in", values, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("temperature between", value1, value2, "temperature"); + return (Criteria) this; + } + + public Criteria andTemperatureNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("temperature not between", value1, value2, "temperature"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkIsNull() { + addCriterion("blood_pressure_shrink is null"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkIsNotNull() { + addCriterion("blood_pressure_shrink is not null"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkEqualTo(Integer value) { + addCriterion("blood_pressure_shrink =", value, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkNotEqualTo(Integer value) { + addCriterion("blood_pressure_shrink <>", value, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkGreaterThan(Integer value) { + addCriterion("blood_pressure_shrink >", value, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkGreaterThanOrEqualTo(Integer value) { + addCriterion("blood_pressure_shrink >=", value, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkLessThan(Integer value) { + addCriterion("blood_pressure_shrink <", value, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkLessThanOrEqualTo(Integer value) { + addCriterion("blood_pressure_shrink <=", value, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkIn(List values) { + addCriterion("blood_pressure_shrink in", values, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkNotIn(List values) { + addCriterion("blood_pressure_shrink not in", values, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkBetween(Integer value1, Integer value2) { + addCriterion("blood_pressure_shrink between", value1, value2, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureShrinkNotBetween(Integer value1, Integer value2) { + addCriterion("blood_pressure_shrink not between", value1, value2, "bloodPressureShrink"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleIsNull() { + addCriterion("blood_pressure_diastole is null"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleIsNotNull() { + addCriterion("blood_pressure_diastole is not null"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleEqualTo(Integer value) { + addCriterion("blood_pressure_diastole =", value, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleNotEqualTo(Integer value) { + addCriterion("blood_pressure_diastole <>", value, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleGreaterThan(Integer value) { + addCriterion("blood_pressure_diastole >", value, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleGreaterThanOrEqualTo(Integer value) { + addCriterion("blood_pressure_diastole >=", value, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleLessThan(Integer value) { + addCriterion("blood_pressure_diastole <", value, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleLessThanOrEqualTo(Integer value) { + addCriterion("blood_pressure_diastole <=", value, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleIn(List values) { + addCriterion("blood_pressure_diastole in", values, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleNotIn(List values) { + addCriterion("blood_pressure_diastole not in", values, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleBetween(Integer value1, Integer value2) { + addCriterion("blood_pressure_diastole between", value1, value2, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andBloodPressureDiastoleNotBetween(Integer value1, Integer value2) { + addCriterion("blood_pressure_diastole not between", value1, value2, "bloodPressureDiastole"); + return (Criteria) this; + } + + public Criteria andPulseIsNull() { + addCriterion("pulse is null"); + return (Criteria) this; + } + + public Criteria andPulseIsNotNull() { + addCriterion("pulse is not null"); + return (Criteria) this; + } + + public Criteria andPulseEqualTo(Integer value) { + addCriterion("pulse =", value, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseNotEqualTo(Integer value) { + addCriterion("pulse <>", value, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseGreaterThan(Integer value) { + addCriterion("pulse >", value, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseGreaterThanOrEqualTo(Integer value) { + addCriterion("pulse >=", value, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseLessThan(Integer value) { + addCriterion("pulse <", value, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseLessThanOrEqualTo(Integer value) { + addCriterion("pulse <=", value, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseIn(List values) { + addCriterion("pulse in", values, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseNotIn(List values) { + addCriterion("pulse not in", values, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseBetween(Integer value1, Integer value2) { + addCriterion("pulse between", value1, value2, "pulse"); + return (Criteria) this; + } + + public Criteria andPulseNotBetween(Integer value1, Integer value2) { + addCriterion("pulse not between", value1, value2, "pulse"); + return (Criteria) this; + } + + public Criteria andCreatinineIsNull() { + addCriterion("creatinine is null"); + return (Criteria) this; + } + + public Criteria andCreatinineIsNotNull() { + addCriterion("creatinine is not null"); + return (Criteria) this; + } + + public Criteria andCreatinineEqualTo(BigDecimal value) { + addCriterion("creatinine =", value, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineNotEqualTo(BigDecimal value) { + addCriterion("creatinine <>", value, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineGreaterThan(BigDecimal value) { + addCriterion("creatinine >", value, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("creatinine >=", value, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineLessThan(BigDecimal value) { + addCriterion("creatinine <", value, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineLessThanOrEqualTo(BigDecimal value) { + addCriterion("creatinine <=", value, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineIn(List values) { + addCriterion("creatinine in", values, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineNotIn(List values) { + addCriterion("creatinine not in", values, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("creatinine between", value1, value2, "creatinine"); + return (Criteria) this; + } + + public Criteria andCreatinineNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("creatinine not between", value1, value2, "creatinine"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationIsNull() { + addCriterion("oxygen_saturation is null"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationIsNotNull() { + addCriterion("oxygen_saturation is not null"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationEqualTo(BigDecimal value) { + addCriterion("oxygen_saturation =", value, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationNotEqualTo(BigDecimal value) { + addCriterion("oxygen_saturation <>", value, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationGreaterThan(BigDecimal value) { + addCriterion("oxygen_saturation >", value, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("oxygen_saturation >=", value, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationLessThan(BigDecimal value) { + addCriterion("oxygen_saturation <", value, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationLessThanOrEqualTo(BigDecimal value) { + addCriterion("oxygen_saturation <=", value, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationIn(List values) { + addCriterion("oxygen_saturation in", values, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationNotIn(List values) { + addCriterion("oxygen_saturation not in", values, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("oxygen_saturation between", value1, value2, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andOxygenSaturationNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("oxygen_saturation not between", value1, value2, "oxygenSaturation"); + return (Criteria) this; + } + + public Criteria andAlbuminIsNull() { + addCriterion("albumin is null"); + return (Criteria) this; + } + + public Criteria andAlbuminIsNotNull() { + addCriterion("albumin is not null"); + return (Criteria) this; + } + + public Criteria andAlbuminEqualTo(BigDecimal value) { + addCriterion("albumin =", value, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminNotEqualTo(BigDecimal value) { + addCriterion("albumin <>", value, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminGreaterThan(BigDecimal value) { + addCriterion("albumin >", value, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("albumin >=", value, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminLessThan(BigDecimal value) { + addCriterion("albumin <", value, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminLessThanOrEqualTo(BigDecimal value) { + addCriterion("albumin <=", value, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminIn(List values) { + addCriterion("albumin in", values, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminNotIn(List values) { + addCriterion("albumin not in", values, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("albumin between", value1, value2, "albumin"); + return (Criteria) this; + } + + public Criteria andAlbuminNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("albumin not between", value1, value2, "albumin"); + return (Criteria) this; + } + + public Criteria andTotalProteinIsNull() { + addCriterion("total_protein is null"); + return (Criteria) this; + } + + public Criteria andTotalProteinIsNotNull() { + addCriterion("total_protein is not null"); + return (Criteria) this; + } + + public Criteria andTotalProteinEqualTo(BigDecimal value) { + addCriterion("total_protein =", value, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinNotEqualTo(BigDecimal value) { + addCriterion("total_protein <>", value, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinGreaterThan(BigDecimal value) { + addCriterion("total_protein >", value, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("total_protein >=", value, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinLessThan(BigDecimal value) { + addCriterion("total_protein <", value, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinLessThanOrEqualTo(BigDecimal value) { + addCriterion("total_protein <=", value, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinIn(List values) { + addCriterion("total_protein in", values, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinNotIn(List values) { + addCriterion("total_protein not in", values, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_protein between", value1, value2, "totalProtein"); + return (Criteria) this; + } + + public Criteria andTotalProteinNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("total_protein not between", value1, value2, "totalProtein"); + return (Criteria) this; + } + + public Criteria andVitaminD3IsNull() { + addCriterion("vitamin_d3 is null"); + return (Criteria) this; + } + + public Criteria andVitaminD3IsNotNull() { + addCriterion("vitamin_d3 is not null"); + return (Criteria) this; + } + + public Criteria andVitaminD3EqualTo(BigDecimal value) { + addCriterion("vitamin_d3 =", value, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3NotEqualTo(BigDecimal value) { + addCriterion("vitamin_d3 <>", value, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3GreaterThan(BigDecimal value) { + addCriterion("vitamin_d3 >", value, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3GreaterThanOrEqualTo(BigDecimal value) { + addCriterion("vitamin_d3 >=", value, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3LessThan(BigDecimal value) { + addCriterion("vitamin_d3 <", value, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3LessThanOrEqualTo(BigDecimal value) { + addCriterion("vitamin_d3 <=", value, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3In(List values) { + addCriterion("vitamin_d3 in", values, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3NotIn(List values) { + addCriterion("vitamin_d3 not in", values, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3Between(BigDecimal value1, BigDecimal value2) { + addCriterion("vitamin_d3 between", value1, value2, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andVitaminD3NotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("vitamin_d3 not between", value1, value2, "vitaminD3"); + return (Criteria) this; + } + + public Criteria andHematocritIsNull() { + addCriterion("hematocrit is null"); + return (Criteria) this; + } + + public Criteria andHematocritIsNotNull() { + addCriterion("hematocrit is not null"); + return (Criteria) this; + } + + public Criteria andHematocritEqualTo(BigDecimal value) { + addCriterion("hematocrit =", value, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritNotEqualTo(BigDecimal value) { + addCriterion("hematocrit <>", value, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritGreaterThan(BigDecimal value) { + addCriterion("hematocrit >", value, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("hematocrit >=", value, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritLessThan(BigDecimal value) { + addCriterion("hematocrit <", value, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritLessThanOrEqualTo(BigDecimal value) { + addCriterion("hematocrit <=", value, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritIn(List values) { + addCriterion("hematocrit in", values, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritNotIn(List values) { + addCriterion("hematocrit not in", values, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("hematocrit between", value1, value2, "hematocrit"); + return (Criteria) this; + } + + public Criteria andHematocritNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("hematocrit not between", value1, value2, "hematocrit"); + return (Criteria) this; + } + + public Criteria andDimerIsNull() { + addCriterion("dimer is null"); + return (Criteria) this; + } + + public Criteria andDimerIsNotNull() { + addCriterion("dimer is not null"); + return (Criteria) this; + } + + public Criteria andDimerEqualTo(BigDecimal value) { + addCriterion("dimer =", value, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerNotEqualTo(BigDecimal value) { + addCriterion("dimer <>", value, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerGreaterThan(BigDecimal value) { + addCriterion("dimer >", value, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("dimer >=", value, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerLessThan(BigDecimal value) { + addCriterion("dimer <", value, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerLessThanOrEqualTo(BigDecimal value) { + addCriterion("dimer <=", value, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerIn(List values) { + addCriterion("dimer in", values, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerNotIn(List values) { + addCriterion("dimer not in", values, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("dimer between", value1, value2, "dimer"); + return (Criteria) this; + } + + public Criteria andDimerNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("dimer not between", value1, value2, "dimer"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryIsNull() { + addCriterion("smoking_history is null"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryIsNotNull() { + addCriterion("smoking_history is not null"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryEqualTo(Byte value) { + addCriterion("smoking_history =", value, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryNotEqualTo(Byte value) { + addCriterion("smoking_history <>", value, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryGreaterThan(Byte value) { + addCriterion("smoking_history >", value, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryGreaterThanOrEqualTo(Byte value) { + addCriterion("smoking_history >=", value, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryLessThan(Byte value) { + addCriterion("smoking_history <", value, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryLessThanOrEqualTo(Byte value) { + addCriterion("smoking_history <=", value, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryIn(List values) { + addCriterion("smoking_history in", values, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryNotIn(List values) { + addCriterion("smoking_history not in", values, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryBetween(Byte value1, Byte value2) { + addCriterion("smoking_history between", value1, value2, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingHistoryNotBetween(Byte value1, Byte value2) { + addCriterion("smoking_history not between", value1, value2, "smokingHistory"); + return (Criteria) this; + } + + public Criteria andSmokingYearIsNull() { + addCriterion("smoking_year is null"); + return (Criteria) this; + } + + public Criteria andSmokingYearIsNotNull() { + addCriterion("smoking_year is not null"); + return (Criteria) this; + } + + public Criteria andSmokingYearEqualTo(Integer value) { + addCriterion("smoking_year =", value, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearNotEqualTo(Integer value) { + addCriterion("smoking_year <>", value, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearGreaterThan(Integer value) { + addCriterion("smoking_year >", value, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearGreaterThanOrEqualTo(Integer value) { + addCriterion("smoking_year >=", value, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearLessThan(Integer value) { + addCriterion("smoking_year <", value, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearLessThanOrEqualTo(Integer value) { + addCriterion("smoking_year <=", value, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearIn(List values) { + addCriterion("smoking_year in", values, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearNotIn(List values) { + addCriterion("smoking_year not in", values, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearBetween(Integer value1, Integer value2) { + addCriterion("smoking_year between", value1, value2, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingYearNotBetween(Integer value1, Integer value2) { + addCriterion("smoking_year not between", value1, value2, "smokingYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitIsNull() { + addCriterion("smoking_quit is null"); + return (Criteria) this; + } + + public Criteria andSmokingQuitIsNotNull() { + addCriterion("smoking_quit is not null"); + return (Criteria) this; + } + + public Criteria andSmokingQuitEqualTo(Byte value) { + addCriterion("smoking_quit =", value, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitNotEqualTo(Byte value) { + addCriterion("smoking_quit <>", value, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitGreaterThan(Byte value) { + addCriterion("smoking_quit >", value, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitGreaterThanOrEqualTo(Byte value) { + addCriterion("smoking_quit >=", value, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitLessThan(Byte value) { + addCriterion("smoking_quit <", value, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitLessThanOrEqualTo(Byte value) { + addCriterion("smoking_quit <=", value, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitIn(List values) { + addCriterion("smoking_quit in", values, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitNotIn(List values) { + addCriterion("smoking_quit not in", values, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitBetween(Byte value1, Byte value2) { + addCriterion("smoking_quit between", value1, value2, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitNotBetween(Byte value1, Byte value2) { + addCriterion("smoking_quit not between", value1, value2, "smokingQuit"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearIsNull() { + addCriterion("smoking_quit_year is null"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearIsNotNull() { + addCriterion("smoking_quit_year is not null"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearEqualTo(Integer value) { + addCriterion("smoking_quit_year =", value, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearNotEqualTo(Integer value) { + addCriterion("smoking_quit_year <>", value, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearGreaterThan(Integer value) { + addCriterion("smoking_quit_year >", value, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearGreaterThanOrEqualTo(Integer value) { + addCriterion("smoking_quit_year >=", value, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearLessThan(Integer value) { + addCriterion("smoking_quit_year <", value, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearLessThanOrEqualTo(Integer value) { + addCriterion("smoking_quit_year <=", value, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearIn(List values) { + addCriterion("smoking_quit_year in", values, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearNotIn(List values) { + addCriterion("smoking_quit_year not in", values, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearBetween(Integer value1, Integer value2) { + addCriterion("smoking_quit_year between", value1, value2, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andSmokingQuitYearNotBetween(Integer value1, Integer value2) { + addCriterion("smoking_quit_year not between", value1, value2, "smokingQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryIsNull() { + addCriterion("drink_history is null"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryIsNotNull() { + addCriterion("drink_history is not null"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryEqualTo(Byte value) { + addCriterion("drink_history =", value, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryNotEqualTo(Byte value) { + addCriterion("drink_history <>", value, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryGreaterThan(Byte value) { + addCriterion("drink_history >", value, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryGreaterThanOrEqualTo(Byte value) { + addCriterion("drink_history >=", value, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryLessThan(Byte value) { + addCriterion("drink_history <", value, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryLessThanOrEqualTo(Byte value) { + addCriterion("drink_history <=", value, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryIn(List values) { + addCriterion("drink_history in", values, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryNotIn(List values) { + addCriterion("drink_history not in", values, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryBetween(Byte value1, Byte value2) { + addCriterion("drink_history between", value1, value2, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkHistoryNotBetween(Byte value1, Byte value2) { + addCriterion("drink_history not between", value1, value2, "drinkHistory"); + return (Criteria) this; + } + + public Criteria andDrinkYearIsNull() { + addCriterion("drink_year is null"); + return (Criteria) this; + } + + public Criteria andDrinkYearIsNotNull() { + addCriterion("drink_year is not null"); + return (Criteria) this; + } + + public Criteria andDrinkYearEqualTo(Integer value) { + addCriterion("drink_year =", value, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearNotEqualTo(Integer value) { + addCriterion("drink_year <>", value, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearGreaterThan(Integer value) { + addCriterion("drink_year >", value, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearGreaterThanOrEqualTo(Integer value) { + addCriterion("drink_year >=", value, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearLessThan(Integer value) { + addCriterion("drink_year <", value, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearLessThanOrEqualTo(Integer value) { + addCriterion("drink_year <=", value, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearIn(List values) { + addCriterion("drink_year in", values, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearNotIn(List values) { + addCriterion("drink_year not in", values, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearBetween(Integer value1, Integer value2) { + addCriterion("drink_year between", value1, value2, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkYearNotBetween(Integer value1, Integer value2) { + addCriterion("drink_year not between", value1, value2, "drinkYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitIsNull() { + addCriterion("drink_quit is null"); + return (Criteria) this; + } + + public Criteria andDrinkQuitIsNotNull() { + addCriterion("drink_quit is not null"); + return (Criteria) this; + } + + public Criteria andDrinkQuitEqualTo(Byte value) { + addCriterion("drink_quit =", value, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitNotEqualTo(Byte value) { + addCriterion("drink_quit <>", value, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitGreaterThan(Byte value) { + addCriterion("drink_quit >", value, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitGreaterThanOrEqualTo(Byte value) { + addCriterion("drink_quit >=", value, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitLessThan(Byte value) { + addCriterion("drink_quit <", value, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitLessThanOrEqualTo(Byte value) { + addCriterion("drink_quit <=", value, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitIn(List values) { + addCriterion("drink_quit in", values, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitNotIn(List values) { + addCriterion("drink_quit not in", values, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitBetween(Byte value1, Byte value2) { + addCriterion("drink_quit between", value1, value2, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitNotBetween(Byte value1, Byte value2) { + addCriterion("drink_quit not between", value1, value2, "drinkQuit"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearIsNull() { + addCriterion("drink_quit_year is null"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearIsNotNull() { + addCriterion("drink_quit_year is not null"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearEqualTo(Integer value) { + addCriterion("drink_quit_year =", value, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearNotEqualTo(Integer value) { + addCriterion("drink_quit_year <>", value, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearGreaterThan(Integer value) { + addCriterion("drink_quit_year >", value, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearGreaterThanOrEqualTo(Integer value) { + addCriterion("drink_quit_year >=", value, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearLessThan(Integer value) { + addCriterion("drink_quit_year <", value, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearLessThanOrEqualTo(Integer value) { + addCriterion("drink_quit_year <=", value, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearIn(List values) { + addCriterion("drink_quit_year in", values, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearNotIn(List values) { + addCriterion("drink_quit_year not in", values, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearBetween(Integer value1, Integer value2) { + addCriterion("drink_quit_year between", value1, value2, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andDrinkQuitYearNotBetween(Integer value1, Integer value2) { + addCriterion("drink_quit_year not between", value1, value2, "drinkQuitYear"); + return (Criteria) this; + } + + public Criteria andHasAllergyIsNull() { + addCriterion("has_allergy is null"); + return (Criteria) this; + } + + public Criteria andHasAllergyIsNotNull() { + addCriterion("has_allergy is not null"); + return (Criteria) this; + } + + public Criteria andHasAllergyEqualTo(Byte value) { + addCriterion("has_allergy =", value, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyNotEqualTo(Byte value) { + addCriterion("has_allergy <>", value, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyGreaterThan(Byte value) { + addCriterion("has_allergy >", value, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyGreaterThanOrEqualTo(Byte value) { + addCriterion("has_allergy >=", value, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyLessThan(Byte value) { + addCriterion("has_allergy <", value, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyLessThanOrEqualTo(Byte value) { + addCriterion("has_allergy <=", value, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyIn(List values) { + addCriterion("has_allergy in", values, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyNotIn(List values) { + addCriterion("has_allergy not in", values, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyBetween(Byte value1, Byte value2) { + addCriterion("has_allergy between", value1, value2, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andHasAllergyNotBetween(Byte value1, Byte value2) { + addCriterion("has_allergy not between", value1, value2, "hasAllergy"); + return (Criteria) this; + } + + public Criteria andAllergyDrugIsNull() { + addCriterion("allergy_drug is null"); + return (Criteria) this; + } + + public Criteria andAllergyDrugIsNotNull() { + addCriterion("allergy_drug is not null"); + return (Criteria) this; + } + + public Criteria andAllergyDrugEqualTo(String value) { + addCriterion("allergy_drug =", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugNotEqualTo(String value) { + addCriterion("allergy_drug <>", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugGreaterThan(String value) { + addCriterion("allergy_drug >", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugGreaterThanOrEqualTo(String value) { + addCriterion("allergy_drug >=", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugLessThan(String value) { + addCriterion("allergy_drug <", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugLessThanOrEqualTo(String value) { + addCriterion("allergy_drug <=", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugLike(String value) { + addCriterion("allergy_drug like", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugNotLike(String value) { + addCriterion("allergy_drug not like", value, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugIn(List values) { + addCriterion("allergy_drug in", values, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugNotIn(List values) { + addCriterion("allergy_drug not in", values, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugBetween(String value1, String value2) { + addCriterion("allergy_drug between", value1, value2, "allergyDrug"); + return (Criteria) this; + } + + public Criteria andAllergyDrugNotBetween(String value1, String value2) { + addCriterion("allergy_drug not between", value1, value2, "allergyDrug"); + 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 values) { + addCriterion("create_by in", values, "createBy"); + return (Criteria) this; + } + + public Criteria andCreateByNotIn(List 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 values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List 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 values) { + addCriterion("update_by in", values, "updateBy"); + return (Criteria) this; + } + + public Criteria andUpdateByNotIn(List 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 values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List 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 values) { + addCriterion("del_flag in", values, "delFlag"); + return (Criteria) this; + } + + public Criteria andDelFlagNotIn(List 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 andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andSyncIsNull() { + addCriterion("sync is null"); + return (Criteria) this; + } + + public Criteria andSyncIsNotNull() { + addCriterion("sync is not null"); + return (Criteria) this; + } + + public Criteria andSyncEqualTo(String value) { + addCriterion("sync =", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotEqualTo(String value) { + addCriterion("sync <>", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThan(String value) { + addCriterion("sync >", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncGreaterThanOrEqualTo(String value) { + addCriterion("sync >=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThan(String value) { + addCriterion("sync <", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLessThanOrEqualTo(String value) { + addCriterion("sync <=", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncLike(String value) { + addCriterion("sync like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotLike(String value) { + addCriterion("sync not like", value, "sync"); + return (Criteria) this; + } + + public Criteria andSyncIn(List values) { + addCriterion("sync in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotIn(List values) { + addCriterion("sync not in", values, "sync"); + return (Criteria) this; + } + + public Criteria andSyncBetween(String value1, String value2) { + addCriterion("sync between", value1, value2, "sync"); + return (Criteria) this; + } + + public Criteria andSyncNotBetween(String value1, String value2) { + addCriterion("sync not between", value1, value2, "sync"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatient.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatient.java index cb488b2..c0eae86 100644 --- a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatient.java +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatient.java @@ -96,6 +96,8 @@ public class PmsPatient implements Serializable { private String rhBloodType; + private String patientNo; + private static final long serialVersionUID = 1L; public Long getId() { @@ -466,6 +468,14 @@ public class PmsPatient implements Serializable { this.rhBloodType = rhBloodType == null ? null : rhBloodType.trim(); } + public String getPatientNo() { + return patientNo; + } + + public void setPatientNo(String patientNo) { + this.patientNo = patientNo == null ? null : patientNo.trim(); + } + @Override public String toString() { StringBuilder sb = new StringBuilder(); @@ -518,6 +528,7 @@ public class PmsPatient implements Serializable { sb.append(", idCardTypeOther=").append(idCardTypeOther); sb.append(", aboBloodType=").append(aboBloodType); sb.append(", rhBloodType=").append(rhBloodType); + sb.append(", patientNo=").append(patientNo); sb.append("]"); return sb.toString(); } diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatientExample.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatientExample.java index c228e16..4aa7125 100644 --- a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatientExample.java +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/po/PmsPatientExample.java @@ -3154,6 +3154,76 @@ public class PmsPatientExample { addCriterion("rh_blood_type not between", value1, value2, "rhBloodType"); return (Criteria) this; } + + public Criteria andPatientNoIsNull() { + addCriterion("patient_no is null"); + return (Criteria) this; + } + + public Criteria andPatientNoIsNotNull() { + addCriterion("patient_no is not null"); + return (Criteria) this; + } + + public Criteria andPatientNoEqualTo(String value) { + addCriterion("patient_no =", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotEqualTo(String value) { + addCriterion("patient_no <>", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoGreaterThan(String value) { + addCriterion("patient_no >", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoGreaterThanOrEqualTo(String value) { + addCriterion("patient_no >=", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLessThan(String value) { + addCriterion("patient_no <", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLessThanOrEqualTo(String value) { + addCriterion("patient_no <=", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoLike(String value) { + addCriterion("patient_no like", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotLike(String value) { + addCriterion("patient_no not like", value, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoIn(List values) { + addCriterion("patient_no in", values, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotIn(List values) { + addCriterion("patient_no not in", values, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoBetween(String value1, String value2) { + addCriterion("patient_no between", value1, value2, "patientNo"); + return (Criteria) this; + } + + public Criteria andPatientNoNotBetween(String value1, String value2) { + addCriterion("patient_no not between", value1, value2, "patientNo"); + return (Criteria) this; + } } public static class Criteria extends GeneratedCriteria { diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/vo/RmsVo.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/vo/RmsVo.java index 28e110d..eb600ed 100644 --- a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/vo/RmsVo.java +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/domain/vo/RmsVo.java @@ -1275,4 +1275,37 @@ public class RmsVo { private Byte completeStatus; } + + @ApiModel("导出历史报告单(对接)-VO") + @Data + public static class ReportPDF{ + @ApiModelProperty("报告单ID") + private Long reportId; + @ApiModelProperty("测评ID") + private Long evaluationId; + @ApiModelProperty("患者名称") + private String patientName; + @ApiModelProperty("性别") + private Byte sex; + @ApiModelProperty("年龄") + private int Age; + @ApiModelProperty("出生日期") + private String birthDate; + @ApiModelProperty("身份证号") + private String idCard; + @ApiModelProperty("就诊类型 0门诊 1住院") + private Byte visitType; + @ApiModelProperty("就诊号") + private String visitNo; + @ApiModelProperty("部门") + private String department; + @ApiModelProperty("评估医生Id") + private String assessorId; + @ApiModelProperty("评估医生") + private String assessor; + @ApiModelProperty("评估时间") + private String assessTime; + @ApiModelProperty("报告单文件路径") + private String url; + } } diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/dao/DockDao.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/dao/DockDao.java new file mode 100644 index 0000000..dff7109 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/dao/DockDao.java @@ -0,0 +1,18 @@ +package com.ccsens.system.persist.dao; + +import com.ccsens.system.domain.dto.DockDto; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @Author zzc + * @Package com.ccsens.system.persist.dao + * @Date 2026/2/9 14:59 + * @description: + */ +public interface DockDao { + void bathDiagnosis(@Param("diagnosis") List diagnosis); + + void bathMedication(@Param("medication") List medication); +} diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DmsRunningLogMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DmsRunningLogMapper.java new file mode 100644 index 0000000..d29c0fd --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DmsRunningLogMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.system.persist.mapper; + +import com.ccsens.system.domain.po.DmsRunningLog; +import com.ccsens.system.domain.po.DmsRunningLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DmsRunningLogMapper { + long countByExample(DmsRunningLogExample example); + + int deleteByExample(DmsRunningLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(DmsRunningLog record); + + int insertSelective(DmsRunningLog record); + + List selectByExample(DmsRunningLogExample example); + + DmsRunningLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") DmsRunningLog record, @Param("example") DmsRunningLogExample example); + + int updateByExample(@Param("record") DmsRunningLog record, @Param("example") DmsRunningLogExample example); + + int updateByPrimaryKeySelective(DmsRunningLog record); + + int updateByPrimaryKey(DmsRunningLog record); +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockDeptMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockDeptMapper.java new file mode 100644 index 0000000..33e7306 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockDeptMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.system.persist.mapper; + +import com.ccsens.system.domain.po.DockDept; +import com.ccsens.system.domain.po.DockDeptExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DockDeptMapper { + long countByExample(DockDeptExample example); + + int deleteByExample(DockDeptExample example); + + int deleteByPrimaryKey(Long id); + + int insert(DockDept record); + + int insertSelective(DockDept record); + + List selectByExample(DockDeptExample example); + + DockDept selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") DockDept record, @Param("example") DockDeptExample example); + + int updateByExample(@Param("record") DockDept record, @Param("example") DockDeptExample example); + + int updateByPrimaryKeySelective(DockDept record); + + int updateByPrimaryKey(DockDept record); +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockEmplMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockEmplMapper.java new file mode 100644 index 0000000..5445da5 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockEmplMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.system.persist.mapper; + +import com.ccsens.system.domain.po.DockEmpl; +import com.ccsens.system.domain.po.DockEmplExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DockEmplMapper { + long countByExample(DockEmplExample example); + + int deleteByExample(DockEmplExample example); + + int deleteByPrimaryKey(Long id); + + int insert(DockEmpl record); + + int insertSelective(DockEmpl record); + + List selectByExample(DockEmplExample example); + + DockEmpl selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") DockEmpl record, @Param("example") DockEmplExample example); + + int updateByExample(@Param("record") DockEmpl record, @Param("example") DockEmplExample example); + + int updateByPrimaryKeySelective(DockEmpl record); + + int updateByPrimaryKey(DockEmpl record); +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientBaseInfoMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientBaseInfoMapper.java new file mode 100644 index 0000000..3828252 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientBaseInfoMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.system.persist.mapper; + +import com.ccsens.system.domain.po.DockPatientBaseInfo; +import com.ccsens.system.domain.po.DockPatientBaseInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DockPatientBaseInfoMapper { + long countByExample(DockPatientBaseInfoExample example); + + int deleteByExample(DockPatientBaseInfoExample example); + + int deleteByPrimaryKey(Long id); + + int insert(DockPatientBaseInfo record); + + int insertSelective(DockPatientBaseInfo record); + + List selectByExample(DockPatientBaseInfoExample example); + + DockPatientBaseInfo selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") DockPatientBaseInfo record, @Param("example") DockPatientBaseInfoExample example); + + int updateByExample(@Param("record") DockPatientBaseInfo record, @Param("example") DockPatientBaseInfoExample example); + + int updateByPrimaryKeySelective(DockPatientBaseInfo record); + + int updateByPrimaryKey(DockPatientBaseInfo record); +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientDiagnosisMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientDiagnosisMapper.java new file mode 100644 index 0000000..3aa78bb --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientDiagnosisMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.system.persist.mapper; + +import com.ccsens.system.domain.po.DockPatientDiagnosis; +import com.ccsens.system.domain.po.DockPatientDiagnosisExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DockPatientDiagnosisMapper { + long countByExample(DockPatientDiagnosisExample example); + + int deleteByExample(DockPatientDiagnosisExample example); + + int deleteByPrimaryKey(Long id); + + int insert(DockPatientDiagnosis record); + + int insertSelective(DockPatientDiagnosis record); + + List selectByExample(DockPatientDiagnosisExample example); + + DockPatientDiagnosis selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") DockPatientDiagnosis record, @Param("example") DockPatientDiagnosisExample example); + + int updateByExample(@Param("record") DockPatientDiagnosis record, @Param("example") DockPatientDiagnosisExample example); + + int updateByPrimaryKeySelective(DockPatientDiagnosis record); + + int updateByPrimaryKey(DockPatientDiagnosis record); +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientMedicationInfoMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientMedicationInfoMapper.java new file mode 100644 index 0000000..91b1264 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientMedicationInfoMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.system.persist.mapper; + +import com.ccsens.system.domain.po.DockPatientMedicationInfo; +import com.ccsens.system.domain.po.DockPatientMedicationInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DockPatientMedicationInfoMapper { + long countByExample(DockPatientMedicationInfoExample example); + + int deleteByExample(DockPatientMedicationInfoExample example); + + int deleteByPrimaryKey(Long id); + + int insert(DockPatientMedicationInfo record); + + int insertSelective(DockPatientMedicationInfo record); + + List selectByExample(DockPatientMedicationInfoExample example); + + DockPatientMedicationInfo selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") DockPatientMedicationInfo record, @Param("example") DockPatientMedicationInfoExample example); + + int updateByExample(@Param("record") DockPatientMedicationInfo record, @Param("example") DockPatientMedicationInfoExample example); + + int updateByPrimaryKeySelective(DockPatientMedicationInfo record); + + int updateByPrimaryKey(DockPatientMedicationInfo record); +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientVisitInfoMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientVisitInfoMapper.java new file mode 100644 index 0000000..5f13b3f --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/DockPatientVisitInfoMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.system.persist.mapper; + +import com.ccsens.system.domain.po.DockPatientVisitInfo; +import com.ccsens.system.domain.po.DockPatientVisitInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DockPatientVisitInfoMapper { + long countByExample(DockPatientVisitInfoExample example); + + int deleteByExample(DockPatientVisitInfoExample example); + + int deleteByPrimaryKey(Long id); + + int insert(DockPatientVisitInfo record); + + int insertSelective(DockPatientVisitInfo record); + + List selectByExample(DockPatientVisitInfoExample example); + + DockPatientVisitInfo selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") DockPatientVisitInfo record, @Param("example") DockPatientVisitInfoExample example); + + int updateByExample(@Param("record") DockPatientVisitInfo record, @Param("example") DockPatientVisitInfoExample example); + + int updateByPrimaryKeySelective(DockPatientVisitInfo record); + + int updateByPrimaryKey(DockPatientVisitInfo record); +} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/SysUserMapper.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/SysUserMapper.java index 7771d1e..b193b24 100644 --- a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/SysUserMapper.java +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/persist/mapper/SysUserMapper.java @@ -152,4 +152,6 @@ public interface SysUserMapper { * @return */ List selectUserByRoleKey(@Param("roleKey") String roleKey); + + List getZcpsByHospitalId(@Param("hospitalId")Long hospitalId); } diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/DmsDataValueService.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/DmsDataValueService.java new file mode 100644 index 0000000..1523bf2 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/DmsDataValueService.java @@ -0,0 +1,26 @@ +package com.ccsens.system.service; + +import com.ccsens.system.domain.po.DmsRunningLog; + +import java.util.Date; + +/** + * @Author zzc + * @Package com.ccsens.system.service + * @Date 2026/2/10 14:39 + * @description: + */ +public interface DmsDataValueService { + + boolean isProcessing(); + + + DmsRunningLog getDmsRunningLogs(); + + + void insertRunningLog(DmsRunningLog dmsRunningLog); + + + void updateRunningLog(DmsRunningLog dcsRunningLog); + +} diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/DockService.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/DockService.java new file mode 100644 index 0000000..31f5d54 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/DockService.java @@ -0,0 +1,35 @@ +package com.ccsens.system.service; + +import com.ccsens.common.core.domain.entity.SysDept; +import com.ccsens.common.core.domain.entity.SysUser; +import com.ccsens.system.domain.dto.DockDto; + +import java.util.Date; +import java.util.List; + +/** + * @Author zzc + * @Package com.ccsens.system.service + * @Date 2026/2/9 14:53 + * @description: + */ +public interface DockService { + + Integer addDockPatient(DockDto.AddPatientDto dto); + + void addDept(DockDto.DockDeptInfo dto); + + void addEmpl(DockDto.DockEmplInfo dto); + + /** + * 同步三方数据到业务系统 + */ + void pulling(Date startTime, Date endTime); + + void syncHospitalData(); + + List syncUmsDeptSlave(); + void syncUmsDeptMaster(List sysDepts); + List syncUmsUserSlave(); + void syncUmsUserMaster(List sysUsers); +} diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/impl/DmsDataValueServiceImpl.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/impl/DmsDataValueServiceImpl.java new file mode 100644 index 0000000..24dd7fb --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/impl/DmsDataValueServiceImpl.java @@ -0,0 +1,63 @@ +package com.ccsens.system.service.impl; + +import cn.hutool.core.collection.CollectionUtil; +import com.ccsens.common.constant.UserConstants; +import com.ccsens.system.domain.po.DmsRunningLog; +import com.ccsens.system.domain.po.DmsRunningLogExample; +import com.ccsens.system.persist.mapper.DmsRunningLogMapper; +import com.ccsens.system.service.DmsDataValueService; +import com.github.pagehelper.PageHelper; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.Date; +import java.util.List; + +/** + * @Author zzc + * @Package com.ccsens.system.service.impl + * @Date 2026/2/10 14:39 + * @description: + */ +@Service +public class DmsDataValueServiceImpl implements DmsDataValueService { + + @Resource + private DmsRunningLogMapper dmsRunningLogMapper; + + @Override + public boolean isProcessing() { + DmsRunningLogExample example = new DmsRunningLogExample(); + example.createCriteria().andStatusEqualTo(UserConstants.DcsRunningStatus.Processing.getCode().byteValue()); + return dmsRunningLogMapper.countByExample(example) > 0; + } + + @Override + + public DmsRunningLog getDmsRunningLogs() { + DmsRunningLogExample dmsRunningLogExample = new DmsRunningLogExample(); + dmsRunningLogExample.createCriteria().andStatusEqualTo((byte) 1); + dmsRunningLogExample.setOrderByClause("created_at desc"); + PageHelper.startPage(1, 1); + List dmsRunningLogs = dmsRunningLogMapper.selectByExample(dmsRunningLogExample); + if (CollectionUtil.isNotEmpty(dmsRunningLogs)) { + return dmsRunningLogs.get(0); + } + return null; + } + + @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) + @Override + public void insertRunningLog(DmsRunningLog dmsRunningLog) { + dmsRunningLogMapper.insertSelective(dmsRunningLog); + } + + @Override + @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) + public void updateRunningLog(DmsRunningLog dcsRunningLog) { + dmsRunningLogMapper.updateByPrimaryKeySelective(dcsRunningLog); + } + +} diff --git a/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/impl/DockServiceImpl.java b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/impl/DockServiceImpl.java new file mode 100644 index 0000000..066acd5 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/java/com/ccsens/system/service/impl/DockServiceImpl.java @@ -0,0 +1,869 @@ +package com.ccsens.system.service.impl; + +import cn.hutool.core.bean.BeanUtil; +import cn.hutool.core.collection.CollUtil; +import cn.hutool.core.date.DateField; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.IdUtil; +import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.extra.pinyin.PinyinUtil; +import com.ccsens.common.annotation.DataSource; +import com.ccsens.common.constant.ErrorConstant; +import com.ccsens.common.core.domain.entity.SysDept; +import com.ccsens.common.core.domain.entity.SysUser; +import com.ccsens.common.enums.DataSourceType; +import com.ccsens.common.exception.base.BaseException; +import com.ccsens.common.utils.DateUtils; +import com.ccsens.common.utils.SecurityUtils; +import com.ccsens.common.utils.StringUtils; +import com.ccsens.system.domain.SysUserRole; +import com.ccsens.system.domain.dto.DockDto; +import com.ccsens.system.domain.po.*; +import com.ccsens.system.persist.dao.DockDao; +import com.ccsens.system.persist.mapper.*; +import com.ccsens.system.service.DmsDataValueService; +import com.ccsens.system.service.DockService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; +import java.util.Map; +import java.util.stream.Collectors; + +/** + * @Author zzc + * @Package com.ccsens.system.service.impl + * @Date 2026/2/9 14:55 + * @description: + */ +@Slf4j +@Service +public class DockServiceImpl implements DockService { + + @Resource + private DockPatientBaseInfoMapper dockPatientBaseInfoMapper; + @Resource + private DockPatientVisitInfoMapper dockPatientVisitInfoMapper; + @Resource + private DockPatientDiagnosisMapper dockPatientDiagnosisMapper; + @Resource + private DockPatientMedicationInfoMapper dockPatientMedicationInfoMapper; + @Resource + private DockDao dockDao; + @Resource + private DockDeptMapper dockDeptMapper; + @Resource + private DockEmplMapper dockEmplMapper; + @Resource + private DmsDataValueService dmsDataValueService; + private static final String DATE_FORMAT = "yyyy-MM-dd"; + @Resource + private PmsPatientMapper pmsPatientMapper; + @Resource + private PmsPatientBodyMapper pmsPatientBodyMapper; + @Resource + private PmsPatientDiagnosisMapper pmsPatientDiagnosisMapper; + @Resource + private PmsPatientParentIllnessMapper pmsPatientParentIllnessMapper; + @Resource + private SysDeptMapper sysDeptMapper; + @Resource + private SysUserMapper sysUserMapper; + @Resource + private SysUserRoleMapper userRoleMapper; + + @Value("${hospitalId:}") + private Long hospitalId; + @Value("${generalPassword:}") + private String generalPassword; + + @Override + @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) + public Integer addDockPatient(DockDto.AddPatientDto dto) { + DockDto.PatientInfo patientInfo = dto.getBasicInfo(); + + //1.根据身份证判断用户基本信息是否存在 + DockPatientBaseInfoExample dockPatientBaseInfoExample = new DockPatientBaseInfoExample(); + dockPatientBaseInfoExample.createCriteria().andIdCardEqualTo(patientInfo.getIdCard()); + List dockPatientBaseInfos = dockPatientBaseInfoMapper.selectByExample(dockPatientBaseInfoExample); + if (CollUtil.isNotEmpty(dockPatientBaseInfos)) { + //存在更新 + DockPatientBaseInfo dockPatientBaseInfo = DockDto.PatientInfo.toPatientInfo(patientInfo); + dockPatientBaseInfo.setId(dockPatientBaseInfos.get(0).getId()); + dockPatientBaseInfoMapper.updateByPrimaryKeySelective(dockPatientBaseInfo); + + //2. 根据就诊流水号查询患者就诊信息是否存在 + DockPatientVisitInfoExample dockPatientVisitInfoExample = new DockPatientVisitInfoExample(); + dockPatientVisitInfoExample.createCriteria().andVisitNoEqualTo(dto.getVisitInfo().getVisitNo()); + List dockPatientVisitInfos = dockPatientVisitInfoMapper.selectByExample(dockPatientVisitInfoExample); + if (CollUtil.isNotEmpty(dockPatientVisitInfos)) { + //存在删除 + DockPatientVisitInfo dockPatientVisitInfo = new DockPatientVisitInfo(); + dockPatientVisitInfo.setDelFlag((byte) 1); + dockPatientVisitInfoMapper.updateByExampleSelective(dockPatientVisitInfo, dockPatientVisitInfoExample); + } + //新增 + DockPatientVisitInfo dockPatientVisitInfo = DockDto.Jiuzhen.toJiuzhen(dto.getVisitInfo()); + dockPatientVisitInfoMapper.insertSelective(dockPatientVisitInfo); + + //删除旧的诊断信息和用药信息 + DockPatientDiagnosisExample dockPatientDiagnosisExample = new DockPatientDiagnosisExample(); + dockPatientDiagnosisExample.createCriteria().andVisitNoEqualTo(dto.getVisitInfo().getVisitNo()); + DockPatientDiagnosis dockPatientDiagnosis = new DockPatientDiagnosis(); + dockPatientDiagnosis.setDelFlag((byte) 1); + dockPatientDiagnosisMapper.updateByExampleSelective(dockPatientDiagnosis, dockPatientDiagnosisExample); + DockPatientMedicationInfoExample dockPatientMedicationInfoExample = new DockPatientMedicationInfoExample(); + dockPatientMedicationInfoExample.createCriteria().andVisitNoEqualTo(dto.getVisitInfo().getVisitNo()); + DockPatientMedicationInfo dockPatientMedicationInfo = new DockPatientMedicationInfo(); + dockPatientMedicationInfo.setDelFlag((byte) 1); + dockPatientMedicationInfoMapper.updateByExampleSelective(dockPatientMedicationInfo, dockPatientMedicationInfoExample); + + //新增诊断信息和用药信息 + //新增诊断信息和用药信息 + dockDao.bathDiagnosis(dto.getVisitInfo().getDiagnosis()); + dockDao.bathMedication(dto.getVisitInfo().getMedications()); + } else { + //不存在新增 + DockPatientBaseInfo dockPatientBaseInfo = DockDto.PatientInfo.toPatientInfo(patientInfo); + dockPatientBaseInfoMapper.insertSelective(dockPatientBaseInfo); + + //新增就诊信息、诊断信息和用药信息 + dockDao.bathDiagnosis(dto.getVisitInfo().getDiagnosis()); + dockDao.bathMedication(dto.getVisitInfo().getMedications()); + } + return 1; + } + + @Override + @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) + public void addDept(DockDto.DockDeptInfo dto) { + DockDept dockDept = BeanUtil.copyProperties(dto, DockDept.class); + dockDeptMapper.insertSelective(dockDept); + } + + @Override + public void addEmpl(DockDto.DockEmplInfo dto) { + DockEmpl dockEmpl = BeanUtil.copyProperties(dto, DockEmpl.class); + dockEmplMapper.insertSelective(dockEmpl); + } + + @Override + @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) + public void pulling(Date startTime, Date endTime) { + //1.判断是否有处于processing状态的操作日志 + if (dmsDataValueService.isProcessing()) { + //不允许并发执行 + throw new BaseException(ErrorConstant.DCS_RUNNING_ERROR); + } + + DmsRunningLog dmsRunningLog = dmsDataValueService.getDmsRunningLogs(); + if (dmsRunningLog != null && dmsRunningLog.getLastSyncDate() == null) { + throw new BaseException(ErrorConstant.DcsLogError); + } + Date startDate = null; + Date endDate = null; + Date lastMakeupDate = null; + + if (dmsRunningLog != null) { + lastMakeupDate = DateUtil.date(dmsRunningLog.getLastSyncDate()); + startDate = dmsRunningLog.getEndTime(); + } else { + //从头开始同步 + //最后补齐时间为昨天,相当于从今天开始补齐 + lastMakeupDate = DateUtil.yesterday(); + startDate = DateUtil.yesterday(); + } + + + //最后补齐日期的下一天 +// startDate = DateUtil.parse(DateUtil.offset(dmsRunningLog.getEndTime(), DateField.DAY_OF_YEAR, 1).toString(DATE_FORMAT), DATE_FORMAT); + //结束日期总是今天 + endDate = DateUtil.parse(DateUtil.date().toString(DATE_FORMAT), DATE_FORMAT); + + //5.开始和结束时间修正 + if (DateUtil.compare(startDate, DateUtil.date()) > 0) { + startDate = DateUtil.beginOfDay(DateUtil.date()); + } + if (DateUtil.compare(endDate, DateUtil.date()) > 0) { + endDate = DateUtil.beginOfDay(DateUtil.date()); + } + if (DateUtil.compare(startDate, endDate) > 0) { + throw new BaseException(ErrorConstant.DateRangeError); + } + //业务 + makeUp(startTime, endTime); + } + + private void makeUp(Date startTime, Date endTime) { + //1.查询上次同步到现在的三方患者信息 + DockPatientBaseInfoExample dockPatientBaseInfoExample = new DockPatientBaseInfoExample(); + dockPatientBaseInfoExample.createCriteria().andUpdateTimeBetween(startTime, endTime).andDelFlagEqualTo((byte) 0); + List dockPatientBaseInfos = dockPatientBaseInfoMapper.selectByExample(dockPatientBaseInfoExample); + if (CollUtil.isEmpty(dockPatientBaseInfos)) { + return; + } + for (DockPatientBaseInfo dockPatientBaseInfo : dockPatientBaseInfos) { + //1.根据身份证判断业务系统用户基本信息是否存在 + PmsPatientExample pmsPatientExample = new PmsPatientExample(); + pmsPatientExample.createCriteria().andIdcardEqualTo(dockPatientBaseInfo.getIdCard()).andDelFlagEqualTo((byte) 0); + List pmsPatients = pmsPatientMapper.selectByExample(pmsPatientExample); + if (CollUtil.isNotEmpty(pmsPatients)) { + //查询就诊信息 + DockPatientVisitInfoExample dockPatientVisitInfoExample = new DockPatientVisitInfoExample(); + dockPatientVisitInfoExample.createCriteria().andIdCardEqualTo(dockPatientBaseInfo.getIdCard()); + List dockPatientVisitInfos = dockPatientVisitInfoMapper.selectByExample(dockPatientVisitInfoExample); + if (CollUtil.isNotEmpty(dockPatientVisitInfos)) { + for (DockPatientVisitInfo dockPatientVisitInfo : dockPatientVisitInfos) { + //2. 查询就诊信息根据就诊流水号查询业务系统患者就诊信息是否存在 + PmsPatientBodyExample pmsPatientBodyExample = new PmsPatientBodyExample(); + pmsPatientBodyExample.createCriteria().andOutpatientNoEqualTo(dockPatientVisitInfo.getVisitNo()).andDelFlagEqualTo((byte) 0); + List pmsPatientBodies = pmsPatientBodyMapper.selectByExample(pmsPatientBodyExample); + if (CollUtil.isEmpty(pmsPatientBodies)) { + //不存在新增 + PmsPatientBody pmsPatientBody = BeanUtil.copyProperties(dockPatientVisitInfo, PmsPatientBody.class); + pmsPatientBody.setId(IdUtil.getSnowflake().nextId()); + pmsPatientBodyMapper.insertSelective(pmsPatientBody); + } + //删除旧的诊断信息和用药信息 + PmsPatientDiagnosisExample pmsPatientDiagnosisExample = new PmsPatientDiagnosisExample(); + pmsPatientDiagnosisExample.createCriteria().andVisitNoEqualTo(dockPatientVisitInfo.getVisitNo()); + PmsPatientDiagnosis pmsPatientDiagnosis = new PmsPatientDiagnosis(); + pmsPatientDiagnosis.setDelFlag((byte) 1); + pmsPatientDiagnosisMapper.updateByExampleSelective(pmsPatientDiagnosis, pmsPatientDiagnosisExample); + PmsPatientParentIllnessExample pmsPatientParentIllnessExample = new PmsPatientParentIllnessExample(); + pmsPatientParentIllnessExample.createCriteria().andVisitNoEqualTo(dockPatientVisitInfo.getVisitNo()); + PmsPatientParentIllness pmsPatientParentIllness = new PmsPatientParentIllness(); + pmsPatientParentIllness.setDelFlag((byte) 1); + pmsPatientParentIllnessMapper.updateByExampleSelective(pmsPatientParentIllness, pmsPatientParentIllnessExample); + + //新增诊断信息和用药信息 + //查询诊断信息 + DockPatientDiagnosisExample dockPatientDiagnosisExample = new DockPatientDiagnosisExample(); + dockPatientDiagnosisExample.createCriteria().andVisitNoEqualTo(dockPatientVisitInfo.getVisitNo()); + List dockPatientDiagnoses = dockPatientDiagnosisMapper.selectByExample(dockPatientDiagnosisExample); + if (CollUtil.isNotEmpty(dockPatientDiagnoses)) { + List pmsPatientDiagnoses = BeanUtil.copyToList(dockPatientDiagnoses, PmsPatientDiagnosis.class); + for (PmsPatientDiagnosis pmsPatientDiagnosis1 : pmsPatientDiagnoses) { + pmsPatientDiagnosis1.setId(IdUtil.getSnowflake().nextId()); + pmsPatientDiagnosis1.setPatientId(pmsPatients.get(0).getId()); + pmsPatientDiagnosisMapper.insertSelective(pmsPatientDiagnosis1); + } + } + DockPatientMedicationInfoExample dockPatientMedicationInfoExample = new DockPatientMedicationInfoExample(); + dockPatientMedicationInfoExample.createCriteria().andVisitNoEqualTo(dockPatientVisitInfo.getVisitNo()); + List dockPatientMedicationInfos = dockPatientMedicationInfoMapper.selectByExample(dockPatientMedicationInfoExample); + if (CollUtil.isNotEmpty(dockPatientMedicationInfos)) { + List pmsPatientParentIllnesses = BeanUtil.copyToList(dockPatientMedicationInfos, PmsPatientParentIllness.class); + for (PmsPatientParentIllness pmsPatientParentIllness1 : pmsPatientParentIllnesses) { + pmsPatientParentIllness1.setId(IdUtil.getSnowflake().nextId()); + pmsPatientParentIllness1.setPatientId(pmsPatients.get(0).getId()); + pmsPatientParentIllnessMapper.insertSelective(pmsPatientParentIllness1); + } + } + } + + } + } else { + //不存在新增 + PmsPatient pmsPatient = BeanUtil.copyProperties(dockPatientBaseInfo, PmsPatient.class); + pmsPatient.setId(IdUtil.getSnowflake().nextId()); + pmsPatientMapper.insertSelective(pmsPatient); + } + } + } + + public void syncHospitalData() { + //患者信息 + try { + syncPmsPatient(); + } catch (Exception e) { + log.error("患者信息同步失败", e); + } + //就诊信息 + try { + syncPmsPatientVisitInfo(); + } catch (Exception e) { + log.error("就诊信息同步失败", e); + } + //诊断信息 + try { + syncPmsPatientDiagnosis(); + } catch (Exception e) { + log.error("诊断信息同步失败", e); + } + //用药信息 + try { + syncPmsPatientParentIllness(); + } catch (Exception e) { + log.error("用药信息同步失败", e); + } + } + + + @DataSource(value = DataSourceType.MASTER) + @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) + public void syncUmsUserMaster(List sysUsers) { + if (CollUtil.isNotEmpty(sysUsers)) { + for (SysUser sysUser : sysUsers) { + //根据code查找用户 + SysUser user = new SysUser(); + user.setEmplCode(sysUser.getEmplCode()); + List users = sysUserMapper.selectUserList(user); + if (CollUtil.isEmpty(users)) { + sysUser.setDeptId(hospitalId); + sysUserMapper.insertUser(sysUser); + } + } + } + } + + // @DataSource(value = DataSourceType.SLAVE) +// @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) + public List syncUmsUserSlave() { + List returnUsers = new ArrayList<>(); + DockEmplExample dockEmplExample = new DockEmplExample(); + dockEmplExample.createCriteria().andSyncEqualTo("0").andDelFlagEqualTo("0"); + List dockEmpls = dockEmplMapper.selectByExample(dockEmplExample); + if (CollUtil.isEmpty(dockEmpls)) { + return returnUsers; + } + for (DockEmpl dockEmpl : dockEmpls) { + //根据code查找部门信息 + SysDept sysDept = new SysDept(); + sysDept.setDeptCode(dockEmpl.getDeptCode()); + List sysDepts = sysDeptMapper.selectDeptList(sysDept); + if (CollUtil.isEmpty(sysDepts)) { + continue; + } else { + sysDept = sysDepts.get(0); + } + SysUser sysUser = new SysUser(); + sysUser.setEmplCode(dockEmpl.getEmplCode()); + List sysUsers = sysUserMapper.selectUserList(sysUser); + if (CollUtil.isEmpty(sysUsers)) { + sysUser.setDeptId(sysDept.getDeptId()); + sysUser.setUserName("u_" + dockEmpl.getEmplCode()); + sysUser.setNickName(dockEmpl.getEmplName()); + sysUser.setEmplCode(dockEmpl.getEmplCode()); + sysUser.setPassword(SecurityUtils.encryptPassword(generalPassword)); + //获取一年后的日期 + sysUser.setValidDate(DateUtil.offset(new Date(), DateField.YEAR, 1)); + sysUserMapper.insertUser(sysUser); + + // 新增用户与角色管理 + SysUserRole ur = new SysUserRole(); + ur.setUserId(sysUser.getUserId()); + ur.setRoleId(104L); + userRoleMapper.batchUserRole(CollUtil.newArrayList(ur)); + + returnUsers.add(sysUser); + dockEmpl.setSync("1"); + dockEmplMapper.updateByPrimaryKeySelective(dockEmpl); + } + } + return returnUsers; + } + + // @DataSource(value = DataSourceType.SLAVE) +// @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) + public List syncUmsDeptSlave() { + List returnDepts = new ArrayList<>(); + //查找同步表中的部门信息 + DockDeptExample dockDeptExample = new DockDeptExample(); + dockDeptExample.createCriteria().andSyncEqualTo("0").andDelFlagEqualTo("0"); + List dockDepts = dockDeptMapper.selectByExample(dockDeptExample); + if (CollUtil.isEmpty(dockDepts)) { + return returnDepts; + } + for (DockDept dockDept : dockDepts) { + //根据code查找系统的部门信息 + SysDept sysDept = new SysDept(); + sysDept.setDeptCode(dockDept.getDeptCode()); + List sysDepts = sysDeptMapper.selectDeptList(sysDept); + if (CollUtil.isEmpty(sysDepts)) { + sysDept.setParentId(hospitalId); + sysDept.setAncestors("0," + hospitalId); + sysDept.setDeptName(dockDept.getDeptName()); + sysDept.setDeptCode(dockDept.getDeptCode()); + sysDeptMapper.insertDept(sysDept); + returnDepts.add(sysDept); + } else { + sysDept = sysDepts.get(0); + sysDept.setParentId(hospitalId); + sysDept.setAncestors("0," + hospitalId); + sysDept.setDeptName(dockDept.getDeptName()); + sysDept.setDeptCode(dockDept.getDeptCode()); + sysDeptMapper.updateDept(sysDept); + returnDepts.add(sysDept); + } + dockDept.setSync("1"); + dockDeptMapper.updateByPrimaryKeySelective(dockDept); + } + return returnDepts; + } + + @DataSource(value = DataSourceType.MASTER) + @Transactional(propagation = Propagation.REQUIRES_NEW, rollbackFor = Exception.class) + public void syncUmsDeptMaster(List sysDepts) { + if (CollUtil.isNotEmpty(sysDepts)) { + sysDepts.forEach(sysDept -> { + //根据code查找系统的部门信息 + SysDept dept = new SysDept(); + dept.setDeptCode(sysDept.getDeptCode()); + List depts = sysDeptMapper.selectDeptList(dept); + if (CollUtil.isEmpty(depts)) { + sysDeptMapper.insertDept(sysDept); + } else { + SysDept sysDept1 = depts.get(0); + sysDept.setDeptId(sysDept1.getDeptId()); + sysDeptMapper.updateDept(sysDept); + } + }); + } + } + + + private void syncPmsPatient() { + //查找医院下第一个总测评师 + List sysUserList = sysUserMapper.getZcpsByHospitalId(hospitalId); + + + DockPatientBaseInfoExample dockPatientBaseInfoExample = new DockPatientBaseInfoExample(); + dockPatientBaseInfoExample.createCriteria().andSyncEqualTo("0").andDelFlagEqualTo((byte) 0); + List dockPatientBaseInfos = dockPatientBaseInfoMapper.selectByExample(dockPatientBaseInfoExample); + if (CollUtil.isEmpty(dockPatientBaseInfos)) { + return; + } + for (DockPatientBaseInfo dockPatientBaseInfo : dockPatientBaseInfos) { + if (ObjectUtil.isNull(dockPatientBaseInfo.getPatientNo())) { + continue; + } + //根据患者患者唯一编号查询业务表内患者信息 + PmsPatient pmsPatient; + PmsPatientExample pmsPatientExample = new PmsPatientExample(); + pmsPatientExample.createCriteria().andPatientNoEqualTo(dockPatientBaseInfo.getPatientNo()).andDelFlagEqualTo((byte) 0); + List pmsPatients = pmsPatientMapper.selectByExample(pmsPatientExample); + if (CollUtil.isNotEmpty(pmsPatients)) { + //存在就更新 + pmsPatient = pmsPatients.get(0); + disposePmsPatient(dockPatientBaseInfo, pmsPatient); + pmsPatient.setHospitalId(hospitalId); + pmsPatient.setUserId(CollUtil.isEmpty(sysUserList) ? null : sysUserList.get(0).getUserId()); + pmsPatientMapper.updateByPrimaryKeySelective(pmsPatient); + } else { + //不存在则插入 + pmsPatient = new PmsPatient(); + pmsPatient.setId(IdUtil.getSnowflake().nextId()); + disposePmsPatient(dockPatientBaseInfo, pmsPatient); + pmsPatient.setHospitalId(hospitalId); + pmsPatient.setUserId(CollUtil.isEmpty(sysUserList) ? null : sysUserList.get(0).getUserId()); + pmsPatientMapper.insertSelective(pmsPatient); + } + //修改同步表数据的状态 + dockPatientBaseInfo.setSync("1"); + dockPatientBaseInfoMapper.updateByPrimaryKeySelective(dockPatientBaseInfo); + } + } + + private void syncPmsPatientVisitInfo() { + //查询同步表内的就诊信息表 + DockPatientVisitInfoExample dockPatientVisitInfoExample = new DockPatientVisitInfoExample(); + dockPatientVisitInfoExample.createCriteria().andSyncEqualTo("0"); + List dockPatientVisitInfos = dockPatientVisitInfoMapper.selectByExample(dockPatientVisitInfoExample); + if (CollUtil.isEmpty(dockPatientVisitInfos)) { + return; + } + for (DockPatientVisitInfo dockPatientVisitInfo : dockPatientVisitInfos) { + savePatientBady(dockPatientVisitInfo); + //修改同步表数据的状态 + dockPatientVisitInfo.setSync("1"); + dockPatientVisitInfoMapper.updateByPrimaryKeySelective(dockPatientVisitInfo); + } + } + + private PmsPatientBody savePatientBady(DockPatientVisitInfo dockPatientVisitInfo) { + //根据医生和部门信息查找业务表内对应的医生账号和部门id + String doctorName = ""; + Long deptId = null; + //医生用户名 + String doctor = dockPatientVisitInfo.getDoctor(); + if (StrUtil.isNotEmpty(doctor)) { + String[] split = doctor.split("/"); + if (split.length > 1) { + SysUser sysUser = new SysUser(); + sysUser.setEmplCode(split[1]); + List sysUsers = sysUserMapper.selectUserList(sysUser); + if (CollUtil.isNotEmpty(sysUsers)) { + doctorName = sysUsers.get(0).getUserName(); + } + } + } + //部门id + if (StrUtil.isNotEmpty(dockPatientVisitInfo.getDepartment())) { + SysDept sysDept = new SysDept(); + sysDept.setDeptName(dockPatientVisitInfo.getDepartment()); + List sysDepts = sysDeptMapper.selectDeptList(sysDept); + if (CollUtil.isNotEmpty(sysDepts)) { + deptId = sysDepts.get(0).getDeptId(); + } + } + + //根据患者唯一编号查找业务表内患者信息 + PmsPatient pmsPatient; + PmsPatientExample pmsPatientExample = new PmsPatientExample(); + pmsPatientExample.createCriteria().andPatientNoEqualTo(dockPatientVisitInfo.getPatientNo()).andDelFlagEqualTo((byte) 0); + List pmsPatients = pmsPatientMapper.selectByExample(pmsPatientExample); + if (CollUtil.isEmpty(pmsPatients)) { + //根据患者唯一编号查找同步表的患者信息 + DockPatientBaseInfoExample dockPatientBaseInfoExample = new DockPatientBaseInfoExample(); + dockPatientBaseInfoExample.createCriteria().andPatientNoEqualTo(dockPatientVisitInfo.getPatientNo()).andDelFlagEqualTo((byte) 0); + List dockPatientBaseInfos = dockPatientBaseInfoMapper.selectByExample(dockPatientBaseInfoExample); + if (CollUtil.isNotEmpty(dockPatientBaseInfos)) { + //存在则更新 + pmsPatient = new PmsPatient(); + pmsPatient.setId(IdUtil.getSnowflake().nextId()); + disposePmsPatient(dockPatientBaseInfos.get(0), pmsPatient); + //更新患者所属的部门和创建者信息,暂不考虑其他,每次都更新 + pmsPatient.setHospitalId(ObjectUtil.isNull(deptId) ? hospitalId : deptId); + if (StrUtil.isNotEmpty(doctorName)) { + pmsPatient.setCreateBy(doctorName); + } + pmsPatientMapper.insertSelective(pmsPatient); + } else { + //不存在表示患者确实不存在,直接跳过这个就诊信息 + return null; + } + } else { + pmsPatient = pmsPatients.get(0); + //更新患者所属的部门和创建者信息,暂不考虑其他,每次都更新 + pmsPatient.setHospitalId(ObjectUtil.isNull(deptId) ? hospitalId : deptId); + if (StrUtil.isNotEmpty(doctorName)) { + pmsPatient.setCreateBy(doctorName); + } + pmsPatientMapper.updateByPrimaryKeySelective(pmsPatient); + } + //根据就诊流水号查询业务表内患者就诊信息 + PmsPatientBody pmsPatientBody; + PmsPatientBodyExample pmsPatientBodyExample = new PmsPatientBodyExample(); + pmsPatientBodyExample.createCriteria().andOutpatientNoEqualTo(dockPatientVisitInfo.getVisitNo()).andDelFlagEqualTo((byte) 0); + List pmsPatientBodies = pmsPatientBodyMapper.selectByExample(pmsPatientBodyExample); + if (CollUtil.isNotEmpty(pmsPatientBodies)) { + pmsPatientBody = pmsPatientBodies.get(0); + pmsPatientBody.setPatientId(pmsPatient.getId()); + disposePmsPatientBody(dockPatientVisitInfo, pmsPatientBody); + pmsPatientBodyMapper.updateByPrimaryKeySelective(pmsPatientBody); + } else { + pmsPatientBody = new PmsPatientBody(); + pmsPatientBody.setId(IdUtil.getSnowflake().nextId()); + pmsPatientBody.setPatientId(pmsPatient.getId()); + disposePmsPatientBody(dockPatientVisitInfo, pmsPatientBody); + pmsPatientBodyMapper.insertSelective(pmsPatientBody); + } + return pmsPatientBody; + } + + + private void syncPmsPatientDiagnosis() { + //查找同步表的诊断信息 + DockPatientDiagnosisExample dockPatientDiagnosisExample = new DockPatientDiagnosisExample(); + dockPatientDiagnosisExample.createCriteria().andSyncEqualTo("0"); + List dockPatientDiagnosiss = dockPatientDiagnosisMapper.selectByExample(dockPatientDiagnosisExample); + if (CollUtil.isEmpty(dockPatientDiagnosiss)) { + return; + } + //将诊断数据根据就诊流水号进行分组 + Map> dockPatientDiagnosisMap = dockPatientDiagnosiss.stream().collect(Collectors.groupingBy(DockPatientDiagnosis::getVisitNo)); + for (String key : dockPatientDiagnosisMap.keySet()) { + //根据就诊流水号查找业务表内患者就诊信息 + PmsPatientBody pmsPatientBody; + PmsPatientBodyExample pmsPatientBodyExample = new PmsPatientBodyExample(); + pmsPatientBodyExample.createCriteria().andOutpatientNoEqualTo(key).andDelFlagEqualTo((byte) 0); + List pmsPatientBodies = pmsPatientBodyMapper.selectByExample(pmsPatientBodyExample); + if (CollUtil.isNotEmpty(pmsPatientBodies)) { + pmsPatientBody = pmsPatientBodies.get(0); + } else { + //不存在则查找同步表的就诊信息 + DockPatientVisitInfoExample dockPatientVisitInfoExample = new DockPatientVisitInfoExample(); + dockPatientVisitInfoExample.createCriteria().andVisitNoEqualTo(key).andDelFlagEqualTo((byte) 0); + List dockPatientVisitInfos = dockPatientVisitInfoMapper.selectByExample(dockPatientVisitInfoExample); + if (CollUtil.isNotEmpty(dockPatientVisitInfos)) { + pmsPatientBody = savePatientBady(dockPatientVisitInfos.get(0)); + if (pmsPatientBody == null) { + continue; + } + } else { + //不存在则跳过 + continue; + } + } + //根据流水号删除业务表内的旧数据 + PmsPatientDiagnosisExample pmsPatientDiagnosisExample = new PmsPatientDiagnosisExample(); + pmsPatientDiagnosisExample.createCriteria().andVisitNoEqualTo(key); + pmsPatientDiagnosisMapper.deleteByExample(pmsPatientDiagnosisExample); + for (DockPatientDiagnosis dockPatientDiagnosis : dockPatientDiagnosisMap.get(key)) { + //添加业务表 + PmsPatientDiagnosis pmsPatientDiagnosis = new PmsPatientDiagnosis(); + pmsPatientDiagnosis.setId(IdUtil.getSnowflake().nextId()); + pmsPatientDiagnosis.setPatientId(pmsPatientBody.getPatientId()); + pmsPatientDiagnosis.setVisitNo(dockPatientDiagnosis.getVisitNo()); + pmsPatientDiagnosis.setDiagnosisType(dockPatientDiagnosis.getDiagnosisType()); + pmsPatientDiagnosis.setIsMainDiagnosis(ObjectUtil.isNull(dockPatientDiagnosis.getIsMainDiagnosis()) ? "0" : dockPatientDiagnosis.getIsMainDiagnosis().toString()); + pmsPatientDiagnosis.setDiagnosisCode(dockPatientDiagnosis.getDiagnosisCode()); + pmsPatientDiagnosis.setDiagnosisName(dockPatientDiagnosis.getDiagnosisName()); + pmsPatientDiagnosis.setDiagnosisDate(DateUtil.format(dockPatientDiagnosis.getDiagnosisDate(), "yyyy-MM-dd HH:mm:ss")); + pmsPatientDiagnosisMapper.insertSelective(pmsPatientDiagnosis); + dockPatientDiagnosis.setSync("1"); + dockPatientDiagnosisMapper.updateByPrimaryKeySelective(dockPatientDiagnosis); + } + } + } + + + private void syncPmsPatientParentIllness() { + //查找同步表的疾病信息 + DockPatientMedicationInfoExample dockPatientMedicationInfoExample = new DockPatientMedicationInfoExample(); + dockPatientMedicationInfoExample.createCriteria().andSyncEqualTo("0"); + List dockPatientMedicationInfos = dockPatientMedicationInfoMapper.selectByExample(dockPatientMedicationInfoExample); + if (CollUtil.isEmpty(dockPatientMedicationInfos)) { + return; + } + //将疾病信息根据就诊流水号进行分组 + Map> dockPatientMedicationInfoMap = dockPatientMedicationInfos.stream().collect(Collectors.groupingBy(DockPatientMedicationInfo::getVisitNo)); + for (String key : dockPatientMedicationInfoMap.keySet()) { + //根据就诊流水号查找业务表内患者就诊信息 + PmsPatientBody pmsPatientBody; + PmsPatientBodyExample pmsPatientBodyExample = new PmsPatientBodyExample(); + pmsPatientBodyExample.createCriteria().andOutpatientNoEqualTo(key).andDelFlagEqualTo((byte) 0); + List pmsPatientBodies = pmsPatientBodyMapper.selectByExample(pmsPatientBodyExample); + if (CollUtil.isNotEmpty(pmsPatientBodies)) { + pmsPatientBody = pmsPatientBodies.get(0); + } else { + //不存在则查找同步表的就诊信息 + DockPatientVisitInfoExample dockPatientVisitInfoExample = new DockPatientVisitInfoExample(); + dockPatientVisitInfoExample.createCriteria().andVisitNoEqualTo(key).andDelFlagEqualTo((byte) 0); + List dockPatientVisitInfos = dockPatientVisitInfoMapper.selectByExample(dockPatientVisitInfoExample); + if (CollUtil.isNotEmpty(dockPatientVisitInfos)) { + pmsPatientBody = savePatientBady(dockPatientVisitInfos.get(0)); + if (pmsPatientBody == null) { + continue; + } + } else { + //不存在则跳过 + continue; + } + } + //根据流水号删除业务表内的旧数据 + PmsPatientParentIllnessExample pmsPatientParentIllnessExample = new PmsPatientParentIllnessExample(); + pmsPatientParentIllnessExample.createCriteria().andVisitNoEqualTo(key); + pmsPatientParentIllnessMapper.deleteByExample(pmsPatientParentIllnessExample); + for (DockPatientMedicationInfo dockPatientMedicationInfo : dockPatientMedicationInfoMap.get(key)) { + PmsPatientParentIllness pmsPatientParentIllness = new PmsPatientParentIllness(); + pmsPatientParentIllness.setId(IdUtil.getSnowflake().nextId()); + pmsPatientParentIllness.setPatientId(pmsPatientBody.getPatientId()); + pmsPatientParentIllness.setVisitNo(dockPatientMedicationInfo.getVisitNo()); + pmsPatientParentIllness.setDrugName(dockPatientMedicationInfo.getDrugName()); + pmsPatientParentIllness.setDose(ObjectUtil.isNull(dockPatientMedicationInfo.getDose()) ? "" : dockPatientMedicationInfo.getDose().toString()); + pmsPatientParentIllness.setUnit(dockPatientMedicationInfo.getUnit()); + pmsPatientParentIllness.setFrequency(dockPatientMedicationInfo.getFrequency()); + pmsPatientParentIllnessMapper.insertSelective(pmsPatientParentIllness); + //修改同步表数据的状态 + dockPatientMedicationInfo.setSync("1"); + dockPatientMedicationInfoMapper.updateByPrimaryKeySelective(dockPatientMedicationInfo); + } + } + } + + + private void disposePmsPatientBody(DockPatientVisitInfo dockPatientVisitInfo, PmsPatientBody pmsPatientBody) { + pmsPatientBody.setVisitType(dockPatientVisitInfo.getVisitType()); + pmsPatientBody.setOutpatientNo(dockPatientVisitInfo.getVisitNo()); + pmsPatientBody.setAge(dockPatientVisitInfo.getAge() != null ? String.valueOf(dockPatientVisitInfo.getAge()) : null); + pmsPatientBody.setDepartment(dockPatientVisitInfo.getDepartment()); + pmsPatientBody.setDoctor(dockPatientVisitInfo.getDoctor()); + // 入院信息 + pmsPatientBody.setAdmissionDate(dockPatientVisitInfo.getAdmissionDate() != null ? dockPatientVisitInfo.getAdmissionDate().toString() : null); + pmsPatientBody.setAdmissionCount(dockPatientVisitInfo.getAdmissionCount() != null ? String.valueOf(dockPatientVisitInfo.getAdmissionCount()) : null); + pmsPatientBody.setAdmissionMethod(dockPatientVisitInfo.getAdmissionMethod()); + pmsPatientBody.setBedNumber(dockPatientVisitInfo.getBedNumber()); + pmsPatientBody.setDischargeDate(dockPatientVisitInfo.getDischargeDate() != null ? dockPatientVisitInfo.getDischargeDate().toString() : null); + pmsPatientBody.setDischargeMethod(dockPatientVisitInfo.getDischargeMethod()); + // 身体指标 + pmsPatientBody.setHeight(dockPatientVisitInfo.getHeight() != null ? String.valueOf(dockPatientVisitInfo.getHeight()) : null); + pmsPatientBody.setWeight(dockPatientVisitInfo.getWeight() != null ? String.valueOf(dockPatientVisitInfo.getWeight()) : null); + pmsPatientBody.setTz(dockPatientVisitInfo.getTz() != null ? String.valueOf(dockPatientVisitInfo.getTz()) : null); + pmsPatientBody.setTemperature(dockPatientVisitInfo.getTemperature() != null ? String.valueOf(dockPatientVisitInfo.getTemperature()) : null); + pmsPatientBody.setBloodPressureShrink(dockPatientVisitInfo.getBloodPressureShrink() != null ? String.valueOf(dockPatientVisitInfo.getBloodPressureShrink()) : null); + pmsPatientBody.setBloodPressureDiastole(dockPatientVisitInfo.getBloodPressureDiastole() != null ? String.valueOf(dockPatientVisitInfo.getBloodPressureDiastole()) : null); + pmsPatientBody.setPulse(dockPatientVisitInfo.getPulse() != null ? String.valueOf(dockPatientVisitInfo.getPulse()) : null); + // 化验指标 + pmsPatientBody.setCreatinine(dockPatientVisitInfo.getCreatinine() != null ? String.valueOf(dockPatientVisitInfo.getCreatinine()) : null); + pmsPatientBody.setOxygenSaturation(dockPatientVisitInfo.getOxygenSaturation() != null ? String.valueOf(dockPatientVisitInfo.getOxygenSaturation()) : null); + pmsPatientBody.setAlbumin(dockPatientVisitInfo.getAlbumin() != null ? String.valueOf(dockPatientVisitInfo.getAlbumin()) : null); + pmsPatientBody.setTotalProtein(dockPatientVisitInfo.getTotalProtein() != null ? String.valueOf(dockPatientVisitInfo.getTotalProtein()) : null); + pmsPatientBody.setVitaminD3(dockPatientVisitInfo.getVitaminD3() != null ? String.valueOf(dockPatientVisitInfo.getVitaminD3()) : null); + pmsPatientBody.setHematocrit(dockPatientVisitInfo.getHematocrit() != null ? String.valueOf(dockPatientVisitInfo.getHematocrit()) : null); + pmsPatientBody.setDimer(dockPatientVisitInfo.getDimer() != null ? String.valueOf(dockPatientVisitInfo.getDimer()) : null); + } + + + private void disposePmsPatient(DockPatientBaseInfo dockPatientBaseInfo, PmsPatient pmsPatient) { + + pmsPatient.setPatientNo(dockPatientBaseInfo.getPatientNo()); + // 姓名相关 + pmsPatient.setName(dockPatientBaseInfo.getName()); + pmsPatient.setNameFull(PinyinUtil.getPinyin(pmsPatient.getName(), "")); + pmsPatient.setNameInitial(PinyinUtil.getFirstLetter(pmsPatient.getName(), "")); + + // 证件信息 + pmsPatient.setIdcard(dockPatientBaseInfo.getIdCard()); + pmsPatient.setPhone(dockPatientBaseInfo.getPhone()); + pmsPatient.setMobile(dockPatientBaseInfo.getPhone()); + + // 性别转换:将"男"/"女"转换为 0/1 + String sex = dockPatientBaseInfo.getSex(); + if ("男".equals(sex)) { + pmsPatient.setSex((byte) 0); + } else if ("女".equals(sex)) { + pmsPatient.setSex((byte) 1); + } else { + // 如果已经有数字代码,直接转换 + try { + pmsPatient.setSex(Byte.parseByte(sex)); + } catch (NumberFormatException e) { + pmsPatient.setSex((byte) 0); // 默认值 + } + } + + // 出生日期 + pmsPatient.setBirthday(DateUtil.format(dockPatientBaseInfo.getBirthday(), "yyyy-MM-dd")); + + // 教育程度转换 + String educationalStatus = dockPatientBaseInfo.getEducationalStatus(); + if ("文盲".equals(educationalStatus)) { + pmsPatient.setEducationalStatus((byte) 1); + } else if ("小学".equals(educationalStatus)) { + pmsPatient.setEducationalStatus((byte) 2); + } else if ("初中".equals(educationalStatus)) { + pmsPatient.setEducationalStatus((byte) 3); + } else if ("高中".equals(educationalStatus)) { + pmsPatient.setEducationalStatus((byte) 4); + } else if ("大学".equals(educationalStatus)) { + pmsPatient.setEducationalStatus((byte) 5); + } else if ("大学以上".equals(educationalStatus)) { + pmsPatient.setEducationalStatus((byte) 6); + } else if ("其他".equals(educationalStatus)) { + pmsPatient.setEducationalStatus((byte) 7); + } else { + try { + pmsPatient.setEducationalStatus(Byte.parseByte(educationalStatus)); + } catch (NumberFormatException e) { + pmsPatient.setEducationalStatus((byte) 7); // 默认其他 + } + } + + // 职业转换 + String career = dockPatientBaseInfo.getCareer(); + if ("农林牧渔水利生产人员".equals(career)) { + pmsPatient.setCareer((byte) 1); + } else if ("教师".equals(career)) { + pmsPatient.setCareer((byte) 2); + } else if ("医务工作者".equals(career)) { + pmsPatient.setCareer((byte) 3); + } else if ("专业技术人员".equals(career)) { + pmsPatient.setCareer((byte) 4); + } else if ("生产、运输设备操作人员及有关人员".equals(career)) { + pmsPatient.setCareer((byte) 5); + } else if ("商业、服务业人员".equals(career)) { + pmsPatient.setCareer((byte) 6); + } else if ("国家机关、事业单位、企业负责人".equals(career)) { + pmsPatient.setCareer((byte) 7); + } else if ("国家机关、事业单位、企业办事人员和有关人员".equals(career)) { + pmsPatient.setCareer((byte) 8); + } else if ("军人".equals(career)) { + pmsPatient.setCareer((byte) 9); + } else if ("媒体、文体类工作人员".equals(career)) { + pmsPatient.setCareer((byte) 10); + } else if ("在校学生".equals(career)) { + pmsPatient.setCareer((byte) 11); + } else if ("未就业".equals(career)) { + pmsPatient.setCareer((byte) 12); + } else if ("家务".equals(career)) { + pmsPatient.setCareer((byte) 13); + } else if ("其他".equals(career)) { + pmsPatient.setCareer((byte) 14); + } else { + try { + pmsPatient.setCareer(Byte.parseByte(career)); + } catch (NumberFormatException e) { + pmsPatient.setCareer(null); + } + } + + // 婚姻状况转换 + String maritalStatus = dockPatientBaseInfo.getMaritalStatus(); + if ("未婚".equals(maritalStatus)) { + pmsPatient.setMaritalStatus((byte) 1); + } else if ("已婚".equals(maritalStatus)) { + pmsPatient.setMaritalStatus((byte) 2); + } else if ("离异".equals(maritalStatus)) { + pmsPatient.setMaritalStatus((byte) 3); + } else if ("分居".equals(maritalStatus)) { + pmsPatient.setMaritalStatus((byte) 4); + } else if ("丧偶".equals(maritalStatus)) { + pmsPatient.setMaritalStatus((byte) 5); + } else if ("同居".equals(maritalStatus)) { + pmsPatient.setMaritalStatus((byte) 6); + } else if ("其他".equals(maritalStatus)) { + pmsPatient.setMaritalStatus((byte) 7); + } else { + try { + pmsPatient.setMaritalStatus(Byte.parseByte(maritalStatus)); + } catch (NumberFormatException e) { + pmsPatient.setMaritalStatus(null); + } + } + + // 其他字段直接设置 + pmsPatient.setNation(dockPatientBaseInfo.getNation()); + pmsPatient.setNativePlace(dockPatientBaseInfo.getNativePlace()); + pmsPatient.setAddress(dockPatientBaseInfo.getAddress()); + + // 居住状态转换 + String dwellingState = dockPatientBaseInfo.getDwellingState(); + if ("独居".equals(dwellingState)) { + pmsPatient.setDwellingState((byte) 1); + } else if ("与配偶或对象或子女".equals(dwellingState)) { + pmsPatient.setDwellingState((byte) 2); + } else if ("与亲戚或朋友居住".equals(dwellingState)) { + pmsPatient.setDwellingState((byte) 3); + } else { + try { + pmsPatient.setDwellingState(Byte.parseByte(dwellingState)); + } catch (NumberFormatException e) { + pmsPatient.setDwellingState(null); + } + } + + // 联系人信息 + pmsPatient.setContactName(dockPatientBaseInfo.getContactName()); + pmsPatient.setContactMobile(dockPatientBaseInfo.getContactMobile()); + pmsPatient.setContactRelation(dockPatientBaseInfo.getContactRelation()); + + // 血型信息 + pmsPatient.setAboBloodType(dockPatientBaseInfo.getAboBloodType()); + pmsPatient.setRhBloodType(dockPatientBaseInfo.getRhBloodType()); + + // 其他信息 + pmsPatient.setBelief(dockPatientBaseInfo.getBelief()); + pmsPatient.setHobby(dockPatientBaseInfo.getHobby()); + } + + +} diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/dao/DockDao.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/dao/DockDao.xml new file mode 100644 index 0000000..b9d6376 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/dao/DockDao.xml @@ -0,0 +1,30 @@ + + + + + + insert into dock_patient_diagnosis (id, visit_no, diagnosis_type, + is_main_diagnosis, diagnosis_name, diagnosis_code, + diagnosis_date) + values + + (#{item.id,jdbcType=BIGINT}, #{item.visitNo,jdbcType=VARCHAR}, #{item.diagnosisType,jdbcType=VARCHAR}, + #{item.isMainDiagnosis,jdbcType=TINYINT}, #{item.diagnosisName,jdbcType=VARCHAR}, + #{item.diagnosisCode,jdbcType=VARCHAR}, + #{item.diagnosisDate,jdbcType=DATE} + ) + + + + + insert into dock_patient_medication_info (id, visit_no, drug_name, + dose, unit, frequency + ) + values + + (#{item.id,jdbcType=BIGINT}, #{item.visitNo,jdbcType=VARCHAR}, #{item.drugName,jdbcType=VARCHAR}, + #{item.dose,jdbcType=DECIMAL}, #{item.unit,jdbcType=VARCHAR}, #{item.frequency,jdbcType=VARCHAR} + ) + + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/DmsRunningLogMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DmsRunningLogMapper.xml new file mode 100644 index 0000000..a971628 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DmsRunningLogMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, start_time, end_time, sync_records, sync_seconds, last_sync_date, remark, status, + created_at, updated_at, created_by, updated_by, del_status + + + + + delete from dms_running_log + where id = #{id,jdbcType=BIGINT} + + + delete from dms_running_log + + + + + + insert into dms_running_log (id, start_time, end_time, + sync_records, sync_seconds, last_sync_date, + remark, status, created_at, + updated_at, created_by, updated_by, + del_status) + values (#{id,jdbcType=BIGINT}, #{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, + #{syncRecords,jdbcType=BIGINT}, #{syncSeconds,jdbcType=BIGINT}, #{lastSyncDate,jdbcType=TIMESTAMP}, + #{remark,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{createdBy,jdbcType=VARCHAR}, #{updatedBy,jdbcType=VARCHAR}, + #{delStatus,jdbcType=TINYINT}) + + + insert into dms_running_log + + + id, + + + start_time, + + + end_time, + + + sync_records, + + + sync_seconds, + + + last_sync_date, + + + remark, + + + status, + + + created_at, + + + updated_at, + + + created_by, + + + updated_by, + + + del_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{startTime,jdbcType=TIMESTAMP}, + + + #{endTime,jdbcType=TIMESTAMP}, + + + #{syncRecords,jdbcType=BIGINT}, + + + #{syncSeconds,jdbcType=BIGINT}, + + + #{lastSyncDate,jdbcType=TIMESTAMP}, + + + #{remark,jdbcType=VARCHAR}, + + + #{status,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{createdBy,jdbcType=VARCHAR}, + + + #{updatedBy,jdbcType=VARCHAR}, + + + #{delStatus,jdbcType=TINYINT}, + + + + + + update dms_running_log + + + id = #{record.id,jdbcType=BIGINT}, + + + start_time = #{record.startTime,jdbcType=TIMESTAMP}, + + + end_time = #{record.endTime,jdbcType=TIMESTAMP}, + + + sync_records = #{record.syncRecords,jdbcType=BIGINT}, + + + sync_seconds = #{record.syncSeconds,jdbcType=BIGINT}, + + + last_sync_date = #{record.lastSyncDate,jdbcType=TIMESTAMP}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + status = #{record.status,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + created_by = #{record.createdBy,jdbcType=VARCHAR}, + + + updated_by = #{record.updatedBy,jdbcType=VARCHAR}, + + + del_status = #{record.delStatus,jdbcType=TINYINT}, + + + + + + + + update dms_running_log + set id = #{record.id,jdbcType=BIGINT}, + start_time = #{record.startTime,jdbcType=TIMESTAMP}, + end_time = #{record.endTime,jdbcType=TIMESTAMP}, + sync_records = #{record.syncRecords,jdbcType=BIGINT}, + sync_seconds = #{record.syncSeconds,jdbcType=BIGINT}, + last_sync_date = #{record.lastSyncDate,jdbcType=TIMESTAMP}, + remark = #{record.remark,jdbcType=VARCHAR}, + status = #{record.status,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + created_by = #{record.createdBy,jdbcType=VARCHAR}, + updated_by = #{record.updatedBy,jdbcType=VARCHAR}, + del_status = #{record.delStatus,jdbcType=TINYINT} + + + + + + update dms_running_log + + + start_time = #{startTime,jdbcType=TIMESTAMP}, + + + end_time = #{endTime,jdbcType=TIMESTAMP}, + + + sync_records = #{syncRecords,jdbcType=BIGINT}, + + + sync_seconds = #{syncSeconds,jdbcType=BIGINT}, + + + last_sync_date = #{lastSyncDate,jdbcType=TIMESTAMP}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + created_by = #{createdBy,jdbcType=VARCHAR}, + + + updated_by = #{updatedBy,jdbcType=VARCHAR}, + + + del_status = #{delStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update dms_running_log + set start_time = #{startTime,jdbcType=TIMESTAMP}, + end_time = #{endTime,jdbcType=TIMESTAMP}, + sync_records = #{syncRecords,jdbcType=BIGINT}, + sync_seconds = #{syncSeconds,jdbcType=BIGINT}, + last_sync_date = #{lastSyncDate,jdbcType=TIMESTAMP}, + remark = #{remark,jdbcType=VARCHAR}, + status = #{status,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + created_by = #{createdBy,jdbcType=VARCHAR}, + updated_by = #{updatedBy,jdbcType=VARCHAR}, + del_status = #{delStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockDeptMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockDeptMapper.xml new file mode 100644 index 0000000..39560e4 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockDeptMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, dept_name, dept_code, del_flag, create_by, create_time, update_by, update_time, + sync + + + + + delete from dock_dept + where id = #{id,jdbcType=BIGINT} + + + delete from dock_dept + + + + + + insert into dock_dept (id, dept_name, dept_code, + del_flag, create_by, create_time, + update_by, update_time, sync + ) + values (#{id,jdbcType=BIGINT}, #{deptName,jdbcType=VARCHAR}, #{deptCode,jdbcType=VARCHAR}, + #{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{sync,jdbcType=VARCHAR} + ) + + + insert into dock_dept + + + id, + + + dept_name, + + + dept_code, + + + del_flag, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + sync, + + + + + #{id,jdbcType=BIGINT}, + + + #{deptName,jdbcType=VARCHAR}, + + + #{deptCode,jdbcType=VARCHAR}, + + + #{delFlag,jdbcType=CHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{sync,jdbcType=VARCHAR}, + + + + + + update dock_dept + + + id = #{record.id,jdbcType=BIGINT}, + + + dept_name = #{record.deptName,jdbcType=VARCHAR}, + + + dept_code = #{record.deptCode,jdbcType=VARCHAR}, + + + del_flag = #{record.delFlag,jdbcType=CHAR}, + + + create_by = #{record.createBy,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_by = #{record.updateBy,jdbcType=VARCHAR}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + sync = #{record.sync,jdbcType=VARCHAR}, + + + + + + + + update dock_dept + set id = #{record.id,jdbcType=BIGINT}, + dept_name = #{record.deptName,jdbcType=VARCHAR}, + dept_code = #{record.deptCode,jdbcType=VARCHAR}, + del_flag = #{record.delFlag,jdbcType=CHAR}, + create_by = #{record.createBy,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_by = #{record.updateBy,jdbcType=VARCHAR}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + sync = #{record.sync,jdbcType=VARCHAR} + + + + + + update dock_dept + + + dept_name = #{deptName,jdbcType=VARCHAR}, + + + dept_code = #{deptCode,jdbcType=VARCHAR}, + + + del_flag = #{delFlag,jdbcType=CHAR}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + sync = #{sync,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update dock_dept + set dept_name = #{deptName,jdbcType=VARCHAR}, + dept_code = #{deptCode,jdbcType=VARCHAR}, + del_flag = #{delFlag,jdbcType=CHAR}, + create_by = #{createBy,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + sync = #{sync,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockEmplMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockEmplMapper.xml new file mode 100644 index 0000000..ece5edb --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockEmplMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, empl_name, empl_code, empl_type, dept_code, del_flag, create_by, create_time, + update_by, update_time, sync + + + + + delete from dock_empl + where id = #{id,jdbcType=BIGINT} + + + delete from dock_empl + + + + + + insert into dock_empl (id, empl_name, empl_code, + empl_type, dept_code, del_flag, + create_by, create_time, update_by, + update_time, sync) + values (#{id,jdbcType=BIGINT}, #{emplName,jdbcType=VARCHAR}, #{emplCode,jdbcType=VARCHAR}, + #{emplType,jdbcType=VARCHAR}, #{deptCode,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR}, + #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, + #{updateTime,jdbcType=TIMESTAMP}, #{sync,jdbcType=VARCHAR}) + + + insert into dock_empl + + + id, + + + empl_name, + + + empl_code, + + + empl_type, + + + dept_code, + + + del_flag, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + sync, + + + + + #{id,jdbcType=BIGINT}, + + + #{emplName,jdbcType=VARCHAR}, + + + #{emplCode,jdbcType=VARCHAR}, + + + #{emplType,jdbcType=VARCHAR}, + + + #{deptCode,jdbcType=VARCHAR}, + + + #{delFlag,jdbcType=CHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{sync,jdbcType=VARCHAR}, + + + + + + update dock_empl + + + id = #{record.id,jdbcType=BIGINT}, + + + empl_name = #{record.emplName,jdbcType=VARCHAR}, + + + empl_code = #{record.emplCode,jdbcType=VARCHAR}, + + + empl_type = #{record.emplType,jdbcType=VARCHAR}, + + + dept_code = #{record.deptCode,jdbcType=VARCHAR}, + + + del_flag = #{record.delFlag,jdbcType=CHAR}, + + + create_by = #{record.createBy,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_by = #{record.updateBy,jdbcType=VARCHAR}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + sync = #{record.sync,jdbcType=VARCHAR}, + + + + + + + + update dock_empl + set id = #{record.id,jdbcType=BIGINT}, + empl_name = #{record.emplName,jdbcType=VARCHAR}, + empl_code = #{record.emplCode,jdbcType=VARCHAR}, + empl_type = #{record.emplType,jdbcType=VARCHAR}, + dept_code = #{record.deptCode,jdbcType=VARCHAR}, + del_flag = #{record.delFlag,jdbcType=CHAR}, + create_by = #{record.createBy,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_by = #{record.updateBy,jdbcType=VARCHAR}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + sync = #{record.sync,jdbcType=VARCHAR} + + + + + + update dock_empl + + + empl_name = #{emplName,jdbcType=VARCHAR}, + + + empl_code = #{emplCode,jdbcType=VARCHAR}, + + + empl_type = #{emplType,jdbcType=VARCHAR}, + + + dept_code = #{deptCode,jdbcType=VARCHAR}, + + + del_flag = #{delFlag,jdbcType=CHAR}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + sync = #{sync,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update dock_empl + set empl_name = #{emplName,jdbcType=VARCHAR}, + empl_code = #{emplCode,jdbcType=VARCHAR}, + empl_type = #{emplType,jdbcType=VARCHAR}, + dept_code = #{deptCode,jdbcType=VARCHAR}, + del_flag = #{delFlag,jdbcType=CHAR}, + create_by = #{createBy,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + sync = #{sync,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientBaseInfoMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientBaseInfoMapper.xml new file mode 100644 index 0000000..88cf0e6 --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientBaseInfoMapper.xml @@ -0,0 +1,575 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, patient_no, id_card, phone, sex, birthday, educational_status, career, + marital_status, nation, native_place, address, dwelling_state, contact_name, contact_mobile, + contact_relation, abo_blood_type, rh_blood_type, belief, hobby, create_by, create_time, + update_by, update_time, del_flag, remark, sync + + + + + delete from dock_patient_base_info + where id = #{id,jdbcType=BIGINT} + + + delete from dock_patient_base_info + + + + + + insert into dock_patient_base_info (id, name, patient_no, + id_card, phone, sex, + birthday, educational_status, career, + marital_status, nation, native_place, + address, dwelling_state, contact_name, + contact_mobile, contact_relation, abo_blood_type, + rh_blood_type, belief, hobby, + create_by, create_time, update_by, + update_time, del_flag, remark, + sync) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{patientNo,jdbcType=VARCHAR}, + #{idCard,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{sex,jdbcType=VARCHAR}, + #{birthday,jdbcType=DATE}, #{educationalStatus,jdbcType=VARCHAR}, #{career,jdbcType=VARCHAR}, + #{maritalStatus,jdbcType=VARCHAR}, #{nation,jdbcType=VARCHAR}, #{nativePlace,jdbcType=VARCHAR}, + #{address,jdbcType=VARCHAR}, #{dwellingState,jdbcType=VARCHAR}, #{contactName,jdbcType=VARCHAR}, + #{contactMobile,jdbcType=VARCHAR}, #{contactRelation,jdbcType=VARCHAR}, #{aboBloodType,jdbcType=VARCHAR}, + #{rhBloodType,jdbcType=VARCHAR}, #{belief,jdbcType=VARCHAR}, #{hobby,jdbcType=VARCHAR}, + #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, + #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, + #{sync,jdbcType=VARCHAR}) + + + insert into dock_patient_base_info + + + id, + + + name, + + + patient_no, + + + id_card, + + + phone, + + + sex, + + + birthday, + + + educational_status, + + + career, + + + marital_status, + + + nation, + + + native_place, + + + address, + + + dwelling_state, + + + contact_name, + + + contact_mobile, + + + contact_relation, + + + abo_blood_type, + + + rh_blood_type, + + + belief, + + + hobby, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + del_flag, + + + remark, + + + sync, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{patientNo,jdbcType=VARCHAR}, + + + #{idCard,jdbcType=VARCHAR}, + + + #{phone,jdbcType=VARCHAR}, + + + #{sex,jdbcType=VARCHAR}, + + + #{birthday,jdbcType=DATE}, + + + #{educationalStatus,jdbcType=VARCHAR}, + + + #{career,jdbcType=VARCHAR}, + + + #{maritalStatus,jdbcType=VARCHAR}, + + + #{nation,jdbcType=VARCHAR}, + + + #{nativePlace,jdbcType=VARCHAR}, + + + #{address,jdbcType=VARCHAR}, + + + #{dwellingState,jdbcType=VARCHAR}, + + + #{contactName,jdbcType=VARCHAR}, + + + #{contactMobile,jdbcType=VARCHAR}, + + + #{contactRelation,jdbcType=VARCHAR}, + + + #{aboBloodType,jdbcType=VARCHAR}, + + + #{rhBloodType,jdbcType=VARCHAR}, + + + #{belief,jdbcType=VARCHAR}, + + + #{hobby,jdbcType=VARCHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{delFlag,jdbcType=TINYINT}, + + + #{remark,jdbcType=VARCHAR}, + + + #{sync,jdbcType=VARCHAR}, + + + + + + update dock_patient_base_info + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + patient_no = #{record.patientNo,jdbcType=VARCHAR}, + + + id_card = #{record.idCard,jdbcType=VARCHAR}, + + + phone = #{record.phone,jdbcType=VARCHAR}, + + + sex = #{record.sex,jdbcType=VARCHAR}, + + + birthday = #{record.birthday,jdbcType=DATE}, + + + educational_status = #{record.educationalStatus,jdbcType=VARCHAR}, + + + career = #{record.career,jdbcType=VARCHAR}, + + + marital_status = #{record.maritalStatus,jdbcType=VARCHAR}, + + + nation = #{record.nation,jdbcType=VARCHAR}, + + + native_place = #{record.nativePlace,jdbcType=VARCHAR}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + dwelling_state = #{record.dwellingState,jdbcType=VARCHAR}, + + + contact_name = #{record.contactName,jdbcType=VARCHAR}, + + + contact_mobile = #{record.contactMobile,jdbcType=VARCHAR}, + + + contact_relation = #{record.contactRelation,jdbcType=VARCHAR}, + + + abo_blood_type = #{record.aboBloodType,jdbcType=VARCHAR}, + + + rh_blood_type = #{record.rhBloodType,jdbcType=VARCHAR}, + + + belief = #{record.belief,jdbcType=VARCHAR}, + + + hobby = #{record.hobby,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}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + sync = #{record.sync,jdbcType=VARCHAR}, + + + + + + + + update dock_patient_base_info + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + patient_no = #{record.patientNo,jdbcType=VARCHAR}, + id_card = #{record.idCard,jdbcType=VARCHAR}, + phone = #{record.phone,jdbcType=VARCHAR}, + sex = #{record.sex,jdbcType=VARCHAR}, + birthday = #{record.birthday,jdbcType=DATE}, + educational_status = #{record.educationalStatus,jdbcType=VARCHAR}, + career = #{record.career,jdbcType=VARCHAR}, + marital_status = #{record.maritalStatus,jdbcType=VARCHAR}, + nation = #{record.nation,jdbcType=VARCHAR}, + native_place = #{record.nativePlace,jdbcType=VARCHAR}, + address = #{record.address,jdbcType=VARCHAR}, + dwelling_state = #{record.dwellingState,jdbcType=VARCHAR}, + contact_name = #{record.contactName,jdbcType=VARCHAR}, + contact_mobile = #{record.contactMobile,jdbcType=VARCHAR}, + contact_relation = #{record.contactRelation,jdbcType=VARCHAR}, + abo_blood_type = #{record.aboBloodType,jdbcType=VARCHAR}, + rh_blood_type = #{record.rhBloodType,jdbcType=VARCHAR}, + belief = #{record.belief,jdbcType=VARCHAR}, + hobby = #{record.hobby,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}, + remark = #{record.remark,jdbcType=VARCHAR}, + sync = #{record.sync,jdbcType=VARCHAR} + + + + + + update dock_patient_base_info + + + name = #{name,jdbcType=VARCHAR}, + + + patient_no = #{patientNo,jdbcType=VARCHAR}, + + + id_card = #{idCard,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + sex = #{sex,jdbcType=VARCHAR}, + + + birthday = #{birthday,jdbcType=DATE}, + + + educational_status = #{educationalStatus,jdbcType=VARCHAR}, + + + career = #{career,jdbcType=VARCHAR}, + + + marital_status = #{maritalStatus,jdbcType=VARCHAR}, + + + nation = #{nation,jdbcType=VARCHAR}, + + + native_place = #{nativePlace,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + dwelling_state = #{dwellingState,jdbcType=VARCHAR}, + + + contact_name = #{contactName,jdbcType=VARCHAR}, + + + contact_mobile = #{contactMobile,jdbcType=VARCHAR}, + + + contact_relation = #{contactRelation,jdbcType=VARCHAR}, + + + abo_blood_type = #{aboBloodType,jdbcType=VARCHAR}, + + + rh_blood_type = #{rhBloodType,jdbcType=VARCHAR}, + + + belief = #{belief,jdbcType=VARCHAR}, + + + hobby = #{hobby,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}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + sync = #{sync,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update dock_patient_base_info + set name = #{name,jdbcType=VARCHAR}, + patient_no = #{patientNo,jdbcType=VARCHAR}, + id_card = #{idCard,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + sex = #{sex,jdbcType=VARCHAR}, + birthday = #{birthday,jdbcType=DATE}, + educational_status = #{educationalStatus,jdbcType=VARCHAR}, + career = #{career,jdbcType=VARCHAR}, + marital_status = #{maritalStatus,jdbcType=VARCHAR}, + nation = #{nation,jdbcType=VARCHAR}, + native_place = #{nativePlace,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + dwelling_state = #{dwellingState,jdbcType=VARCHAR}, + contact_name = #{contactName,jdbcType=VARCHAR}, + contact_mobile = #{contactMobile,jdbcType=VARCHAR}, + contact_relation = #{contactRelation,jdbcType=VARCHAR}, + abo_blood_type = #{aboBloodType,jdbcType=VARCHAR}, + rh_blood_type = #{rhBloodType,jdbcType=VARCHAR}, + belief = #{belief,jdbcType=VARCHAR}, + hobby = #{hobby,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}, + remark = #{remark,jdbcType=VARCHAR}, + sync = #{sync,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientDiagnosisMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientDiagnosisMapper.xml new file mode 100644 index 0000000..b1382dc --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientDiagnosisMapper.xml @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, visit_no, diagnosis_type, is_main_diagnosis, diagnosis_name, diagnosis_code, + diagnosis_date, create_by, create_time, update_by, update_time, del_flag, remark, + sync + + + + + delete from dock_patient_diagnosis + where id = #{id,jdbcType=BIGINT} + + + delete from dock_patient_diagnosis + + + + + + insert into dock_patient_diagnosis (id, visit_no, diagnosis_type, + is_main_diagnosis, diagnosis_name, diagnosis_code, + diagnosis_date, create_by, create_time, + update_by, update_time, del_flag, + remark, sync) + values (#{id,jdbcType=BIGINT}, #{visitNo,jdbcType=VARCHAR}, #{diagnosisType,jdbcType=VARCHAR}, + #{isMainDiagnosis,jdbcType=TINYINT}, #{diagnosisName,jdbcType=VARCHAR}, #{diagnosisCode,jdbcType=VARCHAR}, + #{diagnosisDate,jdbcType=DATE}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}, + #{remark,jdbcType=VARCHAR}, #{sync,jdbcType=VARCHAR}) + + + insert into dock_patient_diagnosis + + + id, + + + visit_no, + + + diagnosis_type, + + + is_main_diagnosis, + + + diagnosis_name, + + + diagnosis_code, + + + diagnosis_date, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + del_flag, + + + remark, + + + sync, + + + + + #{id,jdbcType=BIGINT}, + + + #{visitNo,jdbcType=VARCHAR}, + + + #{diagnosisType,jdbcType=VARCHAR}, + + + #{isMainDiagnosis,jdbcType=TINYINT}, + + + #{diagnosisName,jdbcType=VARCHAR}, + + + #{diagnosisCode,jdbcType=VARCHAR}, + + + #{diagnosisDate,jdbcType=DATE}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{delFlag,jdbcType=TINYINT}, + + + #{remark,jdbcType=VARCHAR}, + + + #{sync,jdbcType=VARCHAR}, + + + + + + update dock_patient_diagnosis + + + id = #{record.id,jdbcType=BIGINT}, + + + visit_no = #{record.visitNo,jdbcType=VARCHAR}, + + + diagnosis_type = #{record.diagnosisType,jdbcType=VARCHAR}, + + + is_main_diagnosis = #{record.isMainDiagnosis,jdbcType=TINYINT}, + + + diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, + + + diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, + + + diagnosis_date = #{record.diagnosisDate,jdbcType=DATE}, + + + 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}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + sync = #{record.sync,jdbcType=VARCHAR}, + + + + + + + + update dock_patient_diagnosis + set id = #{record.id,jdbcType=BIGINT}, + visit_no = #{record.visitNo,jdbcType=VARCHAR}, + diagnosis_type = #{record.diagnosisType,jdbcType=VARCHAR}, + is_main_diagnosis = #{record.isMainDiagnosis,jdbcType=TINYINT}, + diagnosis_name = #{record.diagnosisName,jdbcType=VARCHAR}, + diagnosis_code = #{record.diagnosisCode,jdbcType=VARCHAR}, + diagnosis_date = #{record.diagnosisDate,jdbcType=DATE}, + 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}, + remark = #{record.remark,jdbcType=VARCHAR}, + sync = #{record.sync,jdbcType=VARCHAR} + + + + + + update dock_patient_diagnosis + + + visit_no = #{visitNo,jdbcType=VARCHAR}, + + + diagnosis_type = #{diagnosisType,jdbcType=VARCHAR}, + + + is_main_diagnosis = #{isMainDiagnosis,jdbcType=TINYINT}, + + + diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, + + + diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, + + + diagnosis_date = #{diagnosisDate,jdbcType=DATE}, + + + 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}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + sync = #{sync,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update dock_patient_diagnosis + set visit_no = #{visitNo,jdbcType=VARCHAR}, + diagnosis_type = #{diagnosisType,jdbcType=VARCHAR}, + is_main_diagnosis = #{isMainDiagnosis,jdbcType=TINYINT}, + diagnosis_name = #{diagnosisName,jdbcType=VARCHAR}, + diagnosis_code = #{diagnosisCode,jdbcType=VARCHAR}, + diagnosis_date = #{diagnosisDate,jdbcType=DATE}, + 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}, + remark = #{remark,jdbcType=VARCHAR}, + sync = #{sync,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientMedicationInfoMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientMedicationInfoMapper.xml new file mode 100644 index 0000000..34a285c --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientMedicationInfoMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, visit_no, drug_name, dose, unit, frequency, create_by, create_time, update_by, + update_time, del_flag, remark, sync + + + + + delete from dock_patient_medication_info + where id = #{id,jdbcType=BIGINT} + + + delete from dock_patient_medication_info + + + + + + insert into dock_patient_medication_info (id, visit_no, drug_name, + dose, unit, frequency, + create_by, create_time, update_by, + update_time, del_flag, remark, + sync) + values (#{id,jdbcType=BIGINT}, #{visitNo,jdbcType=VARCHAR}, #{drugName,jdbcType=VARCHAR}, + #{dose,jdbcType=DECIMAL}, #{unit,jdbcType=VARCHAR}, #{frequency,jdbcType=VARCHAR}, + #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, + #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, + #{sync,jdbcType=VARCHAR}) + + + insert into dock_patient_medication_info + + + id, + + + visit_no, + + + drug_name, + + + dose, + + + unit, + + + frequency, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + del_flag, + + + remark, + + + sync, + + + + + #{id,jdbcType=BIGINT}, + + + #{visitNo,jdbcType=VARCHAR}, + + + #{drugName,jdbcType=VARCHAR}, + + + #{dose,jdbcType=DECIMAL}, + + + #{unit,jdbcType=VARCHAR}, + + + #{frequency,jdbcType=VARCHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{delFlag,jdbcType=TINYINT}, + + + #{remark,jdbcType=VARCHAR}, + + + #{sync,jdbcType=VARCHAR}, + + + + + + update dock_patient_medication_info + + + id = #{record.id,jdbcType=BIGINT}, + + + visit_no = #{record.visitNo,jdbcType=VARCHAR}, + + + drug_name = #{record.drugName,jdbcType=VARCHAR}, + + + dose = #{record.dose,jdbcType=DECIMAL}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + frequency = #{record.frequency,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}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + sync = #{record.sync,jdbcType=VARCHAR}, + + + + + + + + update dock_patient_medication_info + set id = #{record.id,jdbcType=BIGINT}, + visit_no = #{record.visitNo,jdbcType=VARCHAR}, + drug_name = #{record.drugName,jdbcType=VARCHAR}, + dose = #{record.dose,jdbcType=DECIMAL}, + unit = #{record.unit,jdbcType=VARCHAR}, + frequency = #{record.frequency,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}, + remark = #{record.remark,jdbcType=VARCHAR}, + sync = #{record.sync,jdbcType=VARCHAR} + + + + + + update dock_patient_medication_info + + + visit_no = #{visitNo,jdbcType=VARCHAR}, + + + drug_name = #{drugName,jdbcType=VARCHAR}, + + + dose = #{dose,jdbcType=DECIMAL}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + frequency = #{frequency,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}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + sync = #{sync,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update dock_patient_medication_info + set visit_no = #{visitNo,jdbcType=VARCHAR}, + drug_name = #{drugName,jdbcType=VARCHAR}, + dose = #{dose,jdbcType=DECIMAL}, + unit = #{unit,jdbcType=VARCHAR}, + frequency = #{frequency,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}, + remark = #{remark,jdbcType=VARCHAR}, + sync = #{sync,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientVisitInfoMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientVisitInfoMapper.xml new file mode 100644 index 0000000..359cc5d --- /dev/null +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/DockPatientVisitInfoMapper.xml @@ -0,0 +1,845 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, id_card, patient_no, visit_type, visit_no, age, department, doctor, admission_date, + admission_count, bed_number, discharge_date, admission_method, discharge_method, + height, weight, tz, temperature, blood_pressure_shrink, blood_pressure_diastole, + pulse, creatinine, oxygen_saturation, albumin, total_protein, vitamin_d3, hematocrit, + dimer, smoking_history, smoking_year, smoking_quit, smoking_quit_year, drink_history, + drink_year, drink_quit, drink_quit_year, has_allergy, allergy_drug, create_by, create_time, + update_by, update_time, del_flag, remark, sync + + + + + delete from dock_patient_visit_info + where id = #{id,jdbcType=BIGINT} + + + delete from dock_patient_visit_info + + + + + + insert into dock_patient_visit_info (id, id_card, patient_no, + visit_type, visit_no, age, + department, doctor, admission_date, + admission_count, bed_number, discharge_date, + admission_method, discharge_method, height, + weight, tz, temperature, + blood_pressure_shrink, blood_pressure_diastole, + pulse, creatinine, oxygen_saturation, + albumin, total_protein, vitamin_d3, + hematocrit, dimer, smoking_history, + smoking_year, smoking_quit, smoking_quit_year, + drink_history, drink_year, drink_quit, + drink_quit_year, has_allergy, allergy_drug, + create_by, create_time, update_by, + update_time, del_flag, remark, + sync) + values (#{id,jdbcType=BIGINT}, #{idCard,jdbcType=VARCHAR}, #{patientNo,jdbcType=VARCHAR}, + #{visitType,jdbcType=VARCHAR}, #{visitNo,jdbcType=VARCHAR}, #{age,jdbcType=INTEGER}, + #{department,jdbcType=VARCHAR}, #{doctor,jdbcType=VARCHAR}, #{admissionDate,jdbcType=TIMESTAMP}, + #{admissionCount,jdbcType=INTEGER}, #{bedNumber,jdbcType=VARCHAR}, #{dischargeDate,jdbcType=TIMESTAMP}, + #{admissionMethod,jdbcType=VARCHAR}, #{dischargeMethod,jdbcType=VARCHAR}, #{height,jdbcType=DECIMAL}, + #{weight,jdbcType=DECIMAL}, #{tz,jdbcType=DECIMAL}, #{temperature,jdbcType=DECIMAL}, + #{bloodPressureShrink,jdbcType=INTEGER}, #{bloodPressureDiastole,jdbcType=INTEGER}, + #{pulse,jdbcType=INTEGER}, #{creatinine,jdbcType=DECIMAL}, #{oxygenSaturation,jdbcType=DECIMAL}, + #{albumin,jdbcType=DECIMAL}, #{totalProtein,jdbcType=DECIMAL}, #{vitaminD3,jdbcType=DECIMAL}, + #{hematocrit,jdbcType=DECIMAL}, #{dimer,jdbcType=DECIMAL}, #{smokingHistory,jdbcType=TINYINT}, + #{smokingYear,jdbcType=INTEGER}, #{smokingQuit,jdbcType=TINYINT}, #{smokingQuitYear,jdbcType=INTEGER}, + #{drinkHistory,jdbcType=TINYINT}, #{drinkYear,jdbcType=INTEGER}, #{drinkQuit,jdbcType=TINYINT}, + #{drinkQuitYear,jdbcType=INTEGER}, #{hasAllergy,jdbcType=TINYINT}, #{allergyDrug,jdbcType=VARCHAR}, + #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, + #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}, #{remark,jdbcType=VARCHAR}, + #{sync,jdbcType=VARCHAR}) + + + insert into dock_patient_visit_info + + + id, + + + id_card, + + + patient_no, + + + visit_type, + + + visit_no, + + + age, + + + department, + + + doctor, + + + admission_date, + + + admission_count, + + + bed_number, + + + discharge_date, + + + admission_method, + + + discharge_method, + + + height, + + + weight, + + + tz, + + + temperature, + + + blood_pressure_shrink, + + + blood_pressure_diastole, + + + pulse, + + + creatinine, + + + oxygen_saturation, + + + albumin, + + + total_protein, + + + vitamin_d3, + + + hematocrit, + + + dimer, + + + smoking_history, + + + smoking_year, + + + smoking_quit, + + + smoking_quit_year, + + + drink_history, + + + drink_year, + + + drink_quit, + + + drink_quit_year, + + + has_allergy, + + + allergy_drug, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + del_flag, + + + remark, + + + sync, + + + + + #{id,jdbcType=BIGINT}, + + + #{idCard,jdbcType=VARCHAR}, + + + #{patientNo,jdbcType=VARCHAR}, + + + #{visitType,jdbcType=VARCHAR}, + + + #{visitNo,jdbcType=VARCHAR}, + + + #{age,jdbcType=INTEGER}, + + + #{department,jdbcType=VARCHAR}, + + + #{doctor,jdbcType=VARCHAR}, + + + #{admissionDate,jdbcType=TIMESTAMP}, + + + #{admissionCount,jdbcType=INTEGER}, + + + #{bedNumber,jdbcType=VARCHAR}, + + + #{dischargeDate,jdbcType=TIMESTAMP}, + + + #{admissionMethod,jdbcType=VARCHAR}, + + + #{dischargeMethod,jdbcType=VARCHAR}, + + + #{height,jdbcType=DECIMAL}, + + + #{weight,jdbcType=DECIMAL}, + + + #{tz,jdbcType=DECIMAL}, + + + #{temperature,jdbcType=DECIMAL}, + + + #{bloodPressureShrink,jdbcType=INTEGER}, + + + #{bloodPressureDiastole,jdbcType=INTEGER}, + + + #{pulse,jdbcType=INTEGER}, + + + #{creatinine,jdbcType=DECIMAL}, + + + #{oxygenSaturation,jdbcType=DECIMAL}, + + + #{albumin,jdbcType=DECIMAL}, + + + #{totalProtein,jdbcType=DECIMAL}, + + + #{vitaminD3,jdbcType=DECIMAL}, + + + #{hematocrit,jdbcType=DECIMAL}, + + + #{dimer,jdbcType=DECIMAL}, + + + #{smokingHistory,jdbcType=TINYINT}, + + + #{smokingYear,jdbcType=INTEGER}, + + + #{smokingQuit,jdbcType=TINYINT}, + + + #{smokingQuitYear,jdbcType=INTEGER}, + + + #{drinkHistory,jdbcType=TINYINT}, + + + #{drinkYear,jdbcType=INTEGER}, + + + #{drinkQuit,jdbcType=TINYINT}, + + + #{drinkQuitYear,jdbcType=INTEGER}, + + + #{hasAllergy,jdbcType=TINYINT}, + + + #{allergyDrug,jdbcType=VARCHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{delFlag,jdbcType=TINYINT}, + + + #{remark,jdbcType=VARCHAR}, + + + #{sync,jdbcType=VARCHAR}, + + + + + + update dock_patient_visit_info + + + id = #{record.id,jdbcType=BIGINT}, + + + id_card = #{record.idCard,jdbcType=VARCHAR}, + + + patient_no = #{record.patientNo,jdbcType=VARCHAR}, + + + visit_type = #{record.visitType,jdbcType=VARCHAR}, + + + visit_no = #{record.visitNo,jdbcType=VARCHAR}, + + + age = #{record.age,jdbcType=INTEGER}, + + + department = #{record.department,jdbcType=VARCHAR}, + + + doctor = #{record.doctor,jdbcType=VARCHAR}, + + + admission_date = #{record.admissionDate,jdbcType=TIMESTAMP}, + + + admission_count = #{record.admissionCount,jdbcType=INTEGER}, + + + bed_number = #{record.bedNumber,jdbcType=VARCHAR}, + + + discharge_date = #{record.dischargeDate,jdbcType=TIMESTAMP}, + + + admission_method = #{record.admissionMethod,jdbcType=VARCHAR}, + + + discharge_method = #{record.dischargeMethod,jdbcType=VARCHAR}, + + + height = #{record.height,jdbcType=DECIMAL}, + + + weight = #{record.weight,jdbcType=DECIMAL}, + + + tz = #{record.tz,jdbcType=DECIMAL}, + + + temperature = #{record.temperature,jdbcType=DECIMAL}, + + + blood_pressure_shrink = #{record.bloodPressureShrink,jdbcType=INTEGER}, + + + blood_pressure_diastole = #{record.bloodPressureDiastole,jdbcType=INTEGER}, + + + pulse = #{record.pulse,jdbcType=INTEGER}, + + + creatinine = #{record.creatinine,jdbcType=DECIMAL}, + + + oxygen_saturation = #{record.oxygenSaturation,jdbcType=DECIMAL}, + + + albumin = #{record.albumin,jdbcType=DECIMAL}, + + + total_protein = #{record.totalProtein,jdbcType=DECIMAL}, + + + vitamin_d3 = #{record.vitaminD3,jdbcType=DECIMAL}, + + + hematocrit = #{record.hematocrit,jdbcType=DECIMAL}, + + + dimer = #{record.dimer,jdbcType=DECIMAL}, + + + smoking_history = #{record.smokingHistory,jdbcType=TINYINT}, + + + smoking_year = #{record.smokingYear,jdbcType=INTEGER}, + + + smoking_quit = #{record.smokingQuit,jdbcType=TINYINT}, + + + smoking_quit_year = #{record.smokingQuitYear,jdbcType=INTEGER}, + + + drink_history = #{record.drinkHistory,jdbcType=TINYINT}, + + + drink_year = #{record.drinkYear,jdbcType=INTEGER}, + + + drink_quit = #{record.drinkQuit,jdbcType=TINYINT}, + + + drink_quit_year = #{record.drinkQuitYear,jdbcType=INTEGER}, + + + has_allergy = #{record.hasAllergy,jdbcType=TINYINT}, + + + allergy_drug = #{record.allergyDrug,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}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + sync = #{record.sync,jdbcType=VARCHAR}, + + + + + + + + update dock_patient_visit_info + set id = #{record.id,jdbcType=BIGINT}, + id_card = #{record.idCard,jdbcType=VARCHAR}, + patient_no = #{record.patientNo,jdbcType=VARCHAR}, + visit_type = #{record.visitType,jdbcType=VARCHAR}, + visit_no = #{record.visitNo,jdbcType=VARCHAR}, + age = #{record.age,jdbcType=INTEGER}, + department = #{record.department,jdbcType=VARCHAR}, + doctor = #{record.doctor,jdbcType=VARCHAR}, + admission_date = #{record.admissionDate,jdbcType=TIMESTAMP}, + admission_count = #{record.admissionCount,jdbcType=INTEGER}, + bed_number = #{record.bedNumber,jdbcType=VARCHAR}, + discharge_date = #{record.dischargeDate,jdbcType=TIMESTAMP}, + admission_method = #{record.admissionMethod,jdbcType=VARCHAR}, + discharge_method = #{record.dischargeMethod,jdbcType=VARCHAR}, + height = #{record.height,jdbcType=DECIMAL}, + weight = #{record.weight,jdbcType=DECIMAL}, + tz = #{record.tz,jdbcType=DECIMAL}, + temperature = #{record.temperature,jdbcType=DECIMAL}, + blood_pressure_shrink = #{record.bloodPressureShrink,jdbcType=INTEGER}, + blood_pressure_diastole = #{record.bloodPressureDiastole,jdbcType=INTEGER}, + pulse = #{record.pulse,jdbcType=INTEGER}, + creatinine = #{record.creatinine,jdbcType=DECIMAL}, + oxygen_saturation = #{record.oxygenSaturation,jdbcType=DECIMAL}, + albumin = #{record.albumin,jdbcType=DECIMAL}, + total_protein = #{record.totalProtein,jdbcType=DECIMAL}, + vitamin_d3 = #{record.vitaminD3,jdbcType=DECIMAL}, + hematocrit = #{record.hematocrit,jdbcType=DECIMAL}, + dimer = #{record.dimer,jdbcType=DECIMAL}, + smoking_history = #{record.smokingHistory,jdbcType=TINYINT}, + smoking_year = #{record.smokingYear,jdbcType=INTEGER}, + smoking_quit = #{record.smokingQuit,jdbcType=TINYINT}, + smoking_quit_year = #{record.smokingQuitYear,jdbcType=INTEGER}, + drink_history = #{record.drinkHistory,jdbcType=TINYINT}, + drink_year = #{record.drinkYear,jdbcType=INTEGER}, + drink_quit = #{record.drinkQuit,jdbcType=TINYINT}, + drink_quit_year = #{record.drinkQuitYear,jdbcType=INTEGER}, + has_allergy = #{record.hasAllergy,jdbcType=TINYINT}, + allergy_drug = #{record.allergyDrug,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}, + remark = #{record.remark,jdbcType=VARCHAR}, + sync = #{record.sync,jdbcType=VARCHAR} + + + + + + update dock_patient_visit_info + + + id_card = #{idCard,jdbcType=VARCHAR}, + + + patient_no = #{patientNo,jdbcType=VARCHAR}, + + + visit_type = #{visitType,jdbcType=VARCHAR}, + + + visit_no = #{visitNo,jdbcType=VARCHAR}, + + + age = #{age,jdbcType=INTEGER}, + + + department = #{department,jdbcType=VARCHAR}, + + + doctor = #{doctor,jdbcType=VARCHAR}, + + + admission_date = #{admissionDate,jdbcType=TIMESTAMP}, + + + admission_count = #{admissionCount,jdbcType=INTEGER}, + + + bed_number = #{bedNumber,jdbcType=VARCHAR}, + + + discharge_date = #{dischargeDate,jdbcType=TIMESTAMP}, + + + admission_method = #{admissionMethod,jdbcType=VARCHAR}, + + + discharge_method = #{dischargeMethod,jdbcType=VARCHAR}, + + + height = #{height,jdbcType=DECIMAL}, + + + weight = #{weight,jdbcType=DECIMAL}, + + + tz = #{tz,jdbcType=DECIMAL}, + + + temperature = #{temperature,jdbcType=DECIMAL}, + + + blood_pressure_shrink = #{bloodPressureShrink,jdbcType=INTEGER}, + + + blood_pressure_diastole = #{bloodPressureDiastole,jdbcType=INTEGER}, + + + pulse = #{pulse,jdbcType=INTEGER}, + + + creatinine = #{creatinine,jdbcType=DECIMAL}, + + + oxygen_saturation = #{oxygenSaturation,jdbcType=DECIMAL}, + + + albumin = #{albumin,jdbcType=DECIMAL}, + + + total_protein = #{totalProtein,jdbcType=DECIMAL}, + + + vitamin_d3 = #{vitaminD3,jdbcType=DECIMAL}, + + + hematocrit = #{hematocrit,jdbcType=DECIMAL}, + + + dimer = #{dimer,jdbcType=DECIMAL}, + + + smoking_history = #{smokingHistory,jdbcType=TINYINT}, + + + smoking_year = #{smokingYear,jdbcType=INTEGER}, + + + smoking_quit = #{smokingQuit,jdbcType=TINYINT}, + + + smoking_quit_year = #{smokingQuitYear,jdbcType=INTEGER}, + + + drink_history = #{drinkHistory,jdbcType=TINYINT}, + + + drink_year = #{drinkYear,jdbcType=INTEGER}, + + + drink_quit = #{drinkQuit,jdbcType=TINYINT}, + + + drink_quit_year = #{drinkQuitYear,jdbcType=INTEGER}, + + + has_allergy = #{hasAllergy,jdbcType=TINYINT}, + + + allergy_drug = #{allergyDrug,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}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + sync = #{sync,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update dock_patient_visit_info + set id_card = #{idCard,jdbcType=VARCHAR}, + patient_no = #{patientNo,jdbcType=VARCHAR}, + visit_type = #{visitType,jdbcType=VARCHAR}, + visit_no = #{visitNo,jdbcType=VARCHAR}, + age = #{age,jdbcType=INTEGER}, + department = #{department,jdbcType=VARCHAR}, + doctor = #{doctor,jdbcType=VARCHAR}, + admission_date = #{admissionDate,jdbcType=TIMESTAMP}, + admission_count = #{admissionCount,jdbcType=INTEGER}, + bed_number = #{bedNumber,jdbcType=VARCHAR}, + discharge_date = #{dischargeDate,jdbcType=TIMESTAMP}, + admission_method = #{admissionMethod,jdbcType=VARCHAR}, + discharge_method = #{dischargeMethod,jdbcType=VARCHAR}, + height = #{height,jdbcType=DECIMAL}, + weight = #{weight,jdbcType=DECIMAL}, + tz = #{tz,jdbcType=DECIMAL}, + temperature = #{temperature,jdbcType=DECIMAL}, + blood_pressure_shrink = #{bloodPressureShrink,jdbcType=INTEGER}, + blood_pressure_diastole = #{bloodPressureDiastole,jdbcType=INTEGER}, + pulse = #{pulse,jdbcType=INTEGER}, + creatinine = #{creatinine,jdbcType=DECIMAL}, + oxygen_saturation = #{oxygenSaturation,jdbcType=DECIMAL}, + albumin = #{albumin,jdbcType=DECIMAL}, + total_protein = #{totalProtein,jdbcType=DECIMAL}, + vitamin_d3 = #{vitaminD3,jdbcType=DECIMAL}, + hematocrit = #{hematocrit,jdbcType=DECIMAL}, + dimer = #{dimer,jdbcType=DECIMAL}, + smoking_history = #{smokingHistory,jdbcType=TINYINT}, + smoking_year = #{smokingYear,jdbcType=INTEGER}, + smoking_quit = #{smokingQuit,jdbcType=TINYINT}, + smoking_quit_year = #{smokingQuitYear,jdbcType=INTEGER}, + drink_history = #{drinkHistory,jdbcType=TINYINT}, + drink_year = #{drinkYear,jdbcType=INTEGER}, + drink_quit = #{drinkQuit,jdbcType=TINYINT}, + drink_quit_year = #{drinkQuitYear,jdbcType=INTEGER}, + has_allergy = #{hasAllergy,jdbcType=TINYINT}, + allergy_drug = #{allergyDrug,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}, + remark = #{remark,jdbcType=VARCHAR}, + sync = #{sync,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/PmsPatientMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/PmsPatientMapper.xml index 99e13b9..23fd37a 100644 --- a/ruisi_java/ruisi-system/src/main/resources/mapper/system/PmsPatientMapper.xml +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/PmsPatientMapper.xml @@ -48,6 +48,7 @@ + @@ -114,7 +115,7 @@ city, address, domicile, independent_living_skills, dwelling_state, recorder, remark, create_by, create_time, update_by, update_time, del_flag, birth_year, birthday, belief, hobby, contact_name, contact_relation, contact_mobile, contact_other, id_card_type, - id_card_type_other, abo_blood_type, rh_blood_type + id_card_type_other, abo_blood_type, rh_blood_type, patient_no @@ -610,6 +617,9 @@ rh_blood_type = #{record.rhBloodType,jdbcType=VARCHAR}, + + patient_no = #{record.patientNo,jdbcType=VARCHAR}, + @@ -662,7 +672,8 @@ id_card_type = #{record.idCardType,jdbcType=VARCHAR}, id_card_type_other = #{record.idCardTypeOther,jdbcType=VARCHAR}, abo_blood_type = #{record.aboBloodType,jdbcType=VARCHAR}, - rh_blood_type = #{record.rhBloodType,jdbcType=VARCHAR} + rh_blood_type = #{record.rhBloodType,jdbcType=VARCHAR}, + patient_no = #{record.patientNo,jdbcType=VARCHAR} @@ -805,6 +816,9 @@ rh_blood_type = #{rhBloodType,jdbcType=VARCHAR}, + + patient_no = #{patientNo,jdbcType=VARCHAR}, + where id = #{id,jdbcType=BIGINT} @@ -854,7 +868,8 @@ id_card_type = #{idCardType,jdbcType=VARCHAR}, id_card_type_other = #{idCardTypeOther,jdbcType=VARCHAR}, abo_blood_type = #{aboBloodType,jdbcType=VARCHAR}, - rh_blood_type = #{rhBloodType,jdbcType=VARCHAR} + rh_blood_type = #{rhBloodType,jdbcType=VARCHAR}, + patient_no = #{patientNo,jdbcType=VARCHAR} where id = #{id,jdbcType=BIGINT} \ No newline at end of file diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysDeptMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysDeptMapper.xml index aa8bf4e..efd1783 100644 --- a/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysDeptMapper.xml +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysDeptMapper.xml @@ -42,6 +42,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND status = #{status} + + AND dept_code = #{deptCode} + ${params.dataScope} order by d.parent_id, d.order_num @@ -87,11 +90,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1 - + insert into ums_dept( dept_id, parent_id, dept_name, + dept_code, ancestors, order_num, leader, @@ -104,6 +108,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{deptId}, #{parentId}, #{deptName}, + #{deptCode}, #{ancestors}, #{orderNum}, #{leader}, @@ -120,6 +125,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" parent_id = #{parentId}, dept_name = #{deptName}, + dept_code = #{deptCode}, ancestors = #{ancestors}, order_num = #{orderNum}, leader = #{leader}, diff --git a/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysUserMapper.xml b/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysUserMapper.xml index 85aea90..98efb30 100644 --- a/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysUserMapper.xml +++ b/ruisi_java/ruisi-system/src/main/resources/mapper/system/SysUserMapper.xml @@ -104,6 +104,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" AND u.user_name like concat('%', #{userName}, '%') + + AND u.empl_code = #{emplCode} + AND u.status = #{status} @@ -160,8 +163,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" + - + insert into ums_user( user_id, dept_id, post_id, title_id, user_name, + empl_code, nick_name, email, avatar, @@ -252,6 +270,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" #{postId}, #{titleId}, #{userName}, + #{emplCode}, #{nickName}, #{email}, #{avatar}, diff --git a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/controller/ReportPdfController.java b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/controller/ReportPdfController.java index 256eabe..3bcfb7e 100644 --- a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/controller/ReportPdfController.java +++ b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/controller/ReportPdfController.java @@ -2,13 +2,17 @@ package com.ccsens.admin.controller; import com.ccsens.admin.service.IRmsService; import com.ccsens.common.annotation.Anonymous; +import com.ccsens.common.core.domain.BaseDto; import com.ccsens.common.core.domain.JsonResponse; +import com.ccsens.system.domain.dto.PmsPatientDto; import com.ccsens.system.domain.dto.RmsDto; import com.ccsens.system.domain.vo.RmsVo; +import com.github.pagehelper.PageInfo; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiParam; import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; @@ -16,6 +20,9 @@ import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; import javax.validation.Valid; +import java.util.List; + +import static com.github.pagehelper.page.PageMethod.startPage; /** * @author zy @@ -32,9 +39,19 @@ public class ReportPdfController { @Anonymous @ApiOperation(value = "通过就诊号查询患者的评估报告单",notes = "") @PostMapping(value="/reportPDF") - public JsonResponse generate(@RequestBody @ApiParam @Valid RmsDto.ReportPDF dto){ + public JsonResponse> reportPDF(@RequestBody @Validated BaseDto dto){ + log.info("通过就诊号查询患者的评估报告单:{}", dto); + startPage(dto); + List list = rmsService.viewReportPDF(dto.getParam()); + return JsonResponse.ok(new PageInfo<>(list)); + } + + @Anonymous + @ApiOperation(value = "通过就诊号查询患者的评估报告单",notes = "") + @PostMapping(value="/queryPdfUrl") + public JsonResponse queryPdfUrl(@RequestBody @Validated BaseDto dto){ log.info("通过就诊号查询患者的评估报告单:{}", dto); - String url = rmsService.viewReportPDF(dto); + String url = rmsService.queryPdfUrl(dto.getParam()); return JsonResponse.ok(url); } } diff --git a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/persist/dao/RmsDao.java b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/persist/dao/RmsDao.java index 9b8f163..24646b5 100644 --- a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/persist/dao/RmsDao.java +++ b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/persist/dao/RmsDao.java @@ -138,4 +138,8 @@ public interface RmsDao { List queryEmsScaleScore(@Param("evaId") Long evaId, @Param("scaleCodeList") List scaleCodeList); + + List viewReportPdfByVisitNo(@Param("visitNo")String visitNo); + + List viewReportPdfByPatientNo(@Param("patientNo")String patientNo); } diff --git a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/IRmsService.java b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/IRmsService.java index 6fdd7cd..7c4d406 100644 --- a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/IRmsService.java +++ b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/IRmsService.java @@ -39,9 +39,11 @@ public interface IRmsService { Workbook exportAnalyse(List ids); - String viewReportPDF(RmsDto.ReportPDF dto); + List viewReportPDF(RmsDto.ReportPDF dto); List queryReportList(RmsDto.ReportQuery param, Long userId); + String queryPdfUrl(RmsDto.queryPdfUrl param); + void exportEvaluation(RmsDto.ReportQuery param, HttpServletResponse response) throws IOException; } diff --git a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/impl/RmsServiceImpl.java b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/impl/RmsServiceImpl.java index a0f6a7e..d772fe3 100644 --- a/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/impl/RmsServiceImpl.java +++ b/ruisi_java/ruisi-web-admin/src/main/java/com/ccsens/admin/service/impl/RmsServiceImpl.java @@ -18,21 +18,20 @@ import com.ccsens.common.config.AppConfig; import com.ccsens.common.constant.CultureEnum; import com.ccsens.common.constant.ErrorConstant; import com.ccsens.common.constant.GenConstants; -import com.ccsens.common.constant.JobEnum; import com.ccsens.common.core.redis.RedisCache; -import com.ccsens.common.enums.BaseEnum; -import com.ccsens.common.exception.ServiceException; import com.ccsens.common.exception.base.BaseException; import com.ccsens.common.utils.*; import com.ccsens.system.domain.dto.AmsDto; import com.ccsens.system.domain.dto.RmsDto; import com.ccsens.system.domain.dto.message.MessageDto; import com.ccsens.system.domain.po.*; +import com.ccsens.system.domain.vo.AmsReportVo; +import com.ccsens.system.domain.vo.AmsVo; +import com.ccsens.system.domain.vo.HmsVo; +import com.ccsens.system.domain.vo.RmsVo; import com.ccsens.system.domain.vo.*; import com.ccsens.admin.domain.vo.LdPatientExportVo; import com.ccsens.system.persist.mapper.*; -import com.deepoove.poi.XWPFTemplate; -import com.deepoove.poi.data.*; import com.github.pagehelper.util.StringUtil; import com.itextpdf.text.BadElementException; import com.itextpdf.text.Image; @@ -1687,22 +1686,35 @@ public class RmsServiceImpl implements IRmsService { } @Override - public String viewReportPDF(RmsDto.ReportPDF dto) { - if(StrUtil.isBlank(dto.getPatientNo())){ - throw new ServiceException("患者就诊号不能为空"); + public List viewReportPDF(RmsDto.ReportPDF dto) { + if(StrUtil.isNotBlank(dto.getVisitNo())){ + return rmsDao.viewReportPdfByVisitNo(dto.getVisitNo()); + }else{ + return rmsDao.viewReportPdfByPatientNo(dto.getPatientNo()); } - //根据就诊流水号查询患者的 - RmsReport report; - RmsReportExample example = new RmsReportExample(); - example.createCriteria().andVisitNoEqualTo(dto.getPatientNo()).andDelFlagEqualTo((byte) 0); - List reports = rmsReportMapper.selectByExample(example); - if (CollectionUtil.isNotEmpty(reports)) { - report = reports.get(0); - if(ObjectUtil.isNotNull(report)){ - return report.getUrl(); - } + } + + @Override + public String queryPdfUrl(RmsDto.queryPdfUrl dto) { + RmsReport report = rmsReportMapper.selectByPrimaryKey(dto.getReportId()); + if (ObjectUtil.isNotNull(report) && StrUtil.isNotBlank(report.getUrl())) { + return report.getUrl(); + } + String url = ""; + //根据医生id查找医生的签名id + if(ObjectUtil.isNotNull(dto.getAssessorId())){ +// List querySigns = hmsDoctorDao.querySign(dto.getAssessorId()); +// if(CollUtil.isNotEmpty(querySigns)){ +// //生成文件 +// RmsDto.ExportReport1Dto exportReport1Dto = new RmsDto.ExportReport1Dto(); +// exportReport1Dto.setReportId(dto.getReportId()); +// exportReport1Dto.setEvaluationId(dto.getEvaluationId()); +// exportReport1Dto.setSignId(querySigns.get(0).getSignId()); +// AmsReportVo.Result result = amsReportService.exportYs(exportReport1Dto); +// url = result.getPath(); +// } } - return null; + return url; } @Override diff --git a/ruisi_java/ruisi-web-admin/src/main/resources/application-stage.yml b/ruisi_java/ruisi-web-admin/src/main/resources/application-stage.yml index a168fe8..1d46c56 100644 --- a/ruisi_java/ruisi-web-admin/src/main/resources/application-stage.yml +++ b/ruisi_java/ruisi-web-admin/src/main/resources/application-stage.yml @@ -88,7 +88,7 @@ app: # 资源访问路径前缀 示例(/profile) profileUrl: /profile # 资源存储路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) - profilePath: /home/ruisiCga/server/profile + profilePath: D:/Projects/ruisi_cga/server/profile/ # 分布式ID-WorkID workerId: 1 # 分布式ID-DataCenterID diff --git a/ruisi_java/ruisi-web-admin/src/main/resources/mapper/dao/RmsDao.xml b/ruisi_java/ruisi-web-admin/src/main/resources/mapper/dao/RmsDao.xml index a8a0c8e..336e4a9 100644 --- a/ruisi_java/ruisi-web-admin/src/main/resources/mapper/dao/RmsDao.xml +++ b/ruisi_java/ruisi-web-admin/src/main/resources/mapper/dao/RmsDao.xml @@ -1540,4 +1540,71 @@ d.dept_name as hospitalName LEFT JOIN qms_scale q on rt.scale_code = q.code ORDER BY evaluation_id, level, sort + + + + \ No newline at end of file diff --git a/ruisi_java/ruisi-web-client/src/main/java/com/ccsens/client/controller/DockController.java b/ruisi_java/ruisi-web-client/src/main/java/com/ccsens/client/controller/DockController.java new file mode 100644 index 0000000..b4bdd1a --- /dev/null +++ b/ruisi_java/ruisi-web-client/src/main/java/com/ccsens/client/controller/DockController.java @@ -0,0 +1,57 @@ +package com.ccsens.client.controller; + +import com.ccsens.common.annotation.Anonymous; +import com.ccsens.common.core.domain.JsonResponse; +import com.ccsens.system.domain.dto.DockDto; +import com.ccsens.system.service.DockService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @Author zzc + * @Package com.ccsens.client.controller + * @Date 2026/2/9 10:12 + * @description: 三方对接 + * 1. 三方查询接口 + * 2. 查询三方视图 + * 3. 三方写入数据库(提供数据库用户给三方,) + */ +@Slf4j +@Api(tags = "三方对接") +@RestController +@RequestMapping("/interface") +public class DockController { + @Resource + private DockService dockService; + + @Anonymous + @ApiOperation("接收院内推送的待评估患者") + @PostMapping("/assessments/patient") + public JsonResponse addDockPatient(@RequestBody @Validated DockDto.AddPatientDto dto){ + return JsonResponse.ok(dockService.addDockPatient(dto)); + } + + @Anonymous + @ApiOperation("对接科室基本信息") + @PostMapping("/dept") + public JsonResponse addDept(@RequestBody @Validated DockDto.DockDeptInfo dto){ + dockService.addDept(dto); + return JsonResponse.ok(); + } + + @Anonymous + @ApiOperation("对接医护人员基本信息") + @PostMapping("/empl") + public JsonResponse addEmpl(@RequestBody @Validated DockDto.DockEmplInfo dto){ + dockService.addEmpl(dto); + return JsonResponse.ok(); + } +} diff --git a/ruisi_java/ruisi-web-client/src/main/java/com/ccsens/client/controller/scheduled/SyncHospitalData.java b/ruisi_java/ruisi-web-client/src/main/java/com/ccsens/client/controller/scheduled/SyncHospitalData.java new file mode 100644 index 0000000..0d63ca7 --- /dev/null +++ b/ruisi_java/ruisi-web-client/src/main/java/com/ccsens/client/controller/scheduled/SyncHospitalData.java @@ -0,0 +1,65 @@ +package com.ccsens.client.controller.scheduled; + +import com.ccsens.common.annotation.DataSource; +import com.ccsens.common.core.domain.entity.SysDept; +import com.ccsens.common.core.domain.entity.SysUser; +import com.ccsens.common.enums.DataSourceType; +import com.ccsens.system.service.DockService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author zy + * @date 2026/2/28 16:30 + */ +@Slf4j +@Component +public class SyncHospitalData { + + @Resource + private DockService dockService; + + @DataSource(value = DataSourceType.SLAVE) + @Scheduled(cron = "0 */1 * * * ?") + public void syncHospitalData() { + dockService.syncHospitalData(); + } + + @DataSource(value = DataSourceType.SLAVE) + @Scheduled(cron = "0 */1 * * * ?") + public void syncDeptData() { + try { + List sysDepts = dockService.syncUmsDeptSlave(); + syncDeptMaster(sysDepts); + }catch (Exception e){ + log.error("部门信息同步失败",e); + } + + } + + @DataSource(value = DataSourceType.MASTER) + public void syncDeptMaster(List sysDepts) { + dockService.syncUmsDeptMaster(sysDepts); + } + + + @DataSource(value = DataSourceType.SLAVE) + @Scheduled(cron = "0 */1 * * * ?") + public void syncUserData() { + try { + List sysUsers = dockService.syncUmsUserSlave(); + syncUserMaster(sysUsers); + }catch (Exception e){ + log.error("用户信息同步失败",e); + } + } + + @DataSource(value = DataSourceType.MASTER) + public void syncUserMaster(List sysUser) { + dockService.syncUmsUserMaster(sysUser); + } +} diff --git a/ruisi_java/ruisi-web-client/src/main/resources/application-prod.yml b/ruisi_java/ruisi-web-client/src/main/resources/application-prod.yml index 076401f..fc0aaf1 100644 --- a/ruisi_java/ruisi-web-client/src/main/resources/application-prod.yml +++ b/ruisi_java/ruisi-web-client/src/main/resources/application-prod.yml @@ -12,10 +12,10 @@ spring: # 从库数据源 slave: # 从数据源开关/默认关闭 - enabled: false - url: - username: - password: + enabled: true + url: jdbc:mysql://172.16.21.24:23306/ruisi_cga_hnszyyy?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 + username: root + password: xian#2024!!! # 初始连接数 initialSize: 5 # 最小连接池数量 @@ -81,6 +81,20 @@ spring: max-active: 8 # #连接池最大阻塞等待时间(使用负值表示没有限制) max-wait: -1ms + # 核心:SpringBoot全局UTF-8编码配置 + server: + # 配置Tomcat容器UTF-8编码(关键,解决URI中文解码) + tomcat: + uri-encoding: UTF-8 # 强制Tomcat对URI进行UTF-8解码 + relaxed-path-chars: [ '%', '#', '&', '=', '|', ',', ';', '\\', ' ', '中' ] # 允许路径包含中文/特殊符号 + # 全局请求/响应编码 + servlet: + encoding: + enabled: true # 开启编码自动配置 + charset: UTF-8 # 编码格式 + force: true # 强制所有请求/响应使用UTF-8(覆盖容器默认编码) + force-request: true # 强制请求编码为UTF-8 + force-response: true # 强制响应编码为UTF-8 app: # 是否开启调式模式 @@ -117,5 +131,5 @@ informed: clientVersion: v1.8.3.0 # 医院id,不同医院部署的时候需要修改 -hospitalId: 174 +hospitalId: 178 generalPassword: cga123# \ No newline at end of file diff --git a/sql/数据对接.sql b/sql/数据对接.sql new file mode 100644 index 0000000..3385b56 --- /dev/null +++ b/sql/数据对接.sql @@ -0,0 +1,209 @@ +DROP TABLE IF EXISTS `dock_dept`; +CREATE TABLE `dock_dept` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '表ID(自增)', + `dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '科室名称', + `dept_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '编码', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `sync` varchar(20) NULL DEFAULT '0' COMMENT '是否同步 0否 1是', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '三方部门表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Table structure for dock_empl +-- ---------------------------- +DROP TABLE IF EXISTS `dock_empl`; +CREATE TABLE `dock_empl` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '表ID(自增)', + `empl_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名', + `empl_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '工号或者账号', + `empl_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '医生或者护士身份判断标识', + `dept_code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '所属科室编码', + `del_flag` char(1) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '0' COMMENT '删除标志(0代表存在 2代表删除)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '创建者', + `create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT '创建时间', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '更新者', + `update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + `sync` varchar(20) NULL DEFAULT '0' COMMENT '是否同步 0否 1是', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '三方员工表' ROW_FORMAT = DYNAMIC; + +-- ---------------------------- +-- Records of dock_empl +-- ---------------------------- + +-- ---------------------------- +-- Table structure for dock_patient_base_info +-- ---------------------------- +DROP TABLE IF EXISTS `dock_patient_base_info`; +CREATE TABLE `dock_patient_base_info` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '表ID(自增)', + `name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '姓名', + `patient_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '患者唯一编号', + `id_card` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '证件号码(身份证号)', + `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '联系电话', + `sex` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '性别:0女、1男', + `birthday` date NULL DEFAULT NULL COMMENT '出生日期', + `educational_status` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '受教育程度:0文盲、1小学、2初中、3高中/技校/中专、4大学/专科及以上', + `career` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '职业类型:1:农林牧渔水利生产人员 2:教师 3:医务工作者 4:专业技术人员 5:生产、运输设备操作人员及有关人员6:商业、服务业人员7:国家机关、事业单位、企业负责人8:国家机关、事业单位、企业办事人员和有关人员9:军人 10:媒体、文体类工作人员 11:在校学生 12:未就业 13:家务 14:其他', + `marital_status` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '婚姻状况:0已婚、1未婚、2离婚、3丧偶、4未知', + `nation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '民族', + `native_place` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '籍贯', + `address` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '现住址', + `dwelling_state` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '居住状态:0独居、1夫妻同住、2多代加入同住、3养老院、4其他', + `contact_name` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系人姓名', + `contact_mobile` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '联系人电话', + `contact_relation` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '与联系人关系', + `abo_blood_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'ABO血型', + `rh_blood_type` varchar(10) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'Rh血型', + `belief` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '信仰', + `hobby` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '爱好', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者的用户名', + `create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT ' 创建时间 ', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者的用户名', + `update_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE CURRENT_TIMESTAMP COMMENT ' 修改时间 ', + `del_flag` tinyint NULL DEFAULT 0 COMMENT '记录状态 0-正常 1-删除', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `sync` varchar(20) NULL DEFAULT '0' COMMENT '是否同步 0否 1是', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `idx_id_card`(`id_card` ASC) USING BTREE, + INDEX `idx_phone`(`phone` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 19 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '患者基础信息表' ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for dock_patient_diagnosis +-- ---------------------------- +DROP TABLE IF EXISTS `dock_patient_diagnosis`; +CREATE TABLE `dock_patient_diagnosis` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '表ID(自增)', + `visit_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '就诊流水号,关联就诊信息表的就诊号', + `diagnosis_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '诊断类型(如门诊诊断、出院诊断)', + `is_main_diagnosis` tinyint(1) NULL DEFAULT NULL COMMENT '是否主要诊断:0=否,1=是', + `diagnosis_name` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '诊断名称(如高血压2级)', + `diagnosis_code` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '诊断编码(如ICD-10编码)', + `diagnosis_date` date NULL DEFAULT NULL COMMENT '诊断日期', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者的用户名', + `create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT ' 创建时间 ', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者的用户名', + `update_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE CURRENT_TIMESTAMP COMMENT ' 修改时间 ', + `del_flag` tinyint NULL DEFAULT 0 COMMENT '记录状态 0-正常 1-删除', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `sync` varchar(20) NULL DEFAULT '0' COMMENT '是否同步 0否 1是', + PRIMARY KEY (`id`) USING BTREE, + INDEX `idx_diagnosis_visit_no`(`visit_no` ASC) USING BTREE, + INDEX `idx_diagnosis_code`(`diagnosis_code` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 9 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '患者诊断信息表' ROW_FORMAT = Dynamic; + +-- ---------------------------- +-- Table structure for dock_patient_medication_info +-- ---------------------------- +DROP TABLE IF EXISTS `dock_patient_medication_info`; +CREATE TABLE `dock_patient_medication_info` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '表ID(自增)', + `visit_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '门诊/住院号,关联就诊信息表的就诊号', + `drug_name` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '药物名称', + `dose` decimal(10, 2) NULL DEFAULT NULL COMMENT '剂量', + `unit` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '单位(如mg、ml、片)', + `frequency` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '用药频率(如每日3次、每8小时1次)', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者的用户名', + `create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT ' 创建时间 ', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者的用户名', + `update_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE CURRENT_TIMESTAMP COMMENT ' 修改时间 ', + `del_flag` tinyint NULL DEFAULT 0 COMMENT '记录状态 0-正常 1-删除', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `sync` varchar(20) NULL DEFAULT '0' COMMENT '是否同步 0否 1是', + PRIMARY KEY (`id`) USING BTREE, + INDEX `idx_med_visit_no`(`visit_no` ASC) USING BTREE, + INDEX `idx_drug_name`(`drug_name` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 2 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '患者用药信息表' ROW_FORMAT = Dynamic; + + +-- ---------------------------- +-- Table structure for dock_patient_visit_info +-- ---------------------------- +DROP TABLE IF EXISTS `dock_patient_visit_info`; +CREATE TABLE `dock_patient_visit_info` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '表ID(自增)', + `id_card` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '证件号码', + `patient_no` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '患者唯一编号', + `visit_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '就诊类型', + `visit_no` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '门诊/住院号', + `age` int NULL DEFAULT NULL COMMENT '年龄', + `department` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '就诊/住院科室', + `doctor` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '就诊/主治医师', + `admission_date` datetime NULL DEFAULT NULL COMMENT '就诊/入院日期', + `admission_count` int NULL DEFAULT NULL COMMENT '住院次数', + `bed_number` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '床位号', + `discharge_date` datetime NULL DEFAULT NULL COMMENT '出院日期', + `admission_method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '入院途径', + `discharge_method` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '离院方式', + `height` decimal(5, 2) NULL DEFAULT NULL COMMENT '身高,单位:厘米', + `weight` decimal(5, 2) NULL DEFAULT NULL COMMENT '体重,单位:千克', + `tz` decimal(5, 2) NULL DEFAULT NULL COMMENT 'T值', + `temperature` decimal(4, 2) NULL DEFAULT NULL COMMENT '体温,单位:摄氏度', + `blood_pressure_shrink` int NULL DEFAULT NULL COMMENT '收缩压', + `blood_pressure_diastole` int NULL DEFAULT NULL COMMENT '舒张压', + `pulse` int NULL DEFAULT NULL COMMENT '脉搏', + `creatinine` decimal(6, 2) NULL DEFAULT NULL COMMENT '肌酐', + `oxygen_saturation` decimal(5, 2) NULL DEFAULT NULL COMMENT '血氧饱和度', + `albumin` decimal(5, 2) NULL DEFAULT NULL COMMENT '白蛋白', + `total_protein` decimal(5, 2) NULL DEFAULT NULL COMMENT '总蛋白', + `vitamin_d3` decimal(5, 2) NULL DEFAULT NULL COMMENT '维生素D3测定', + `hematocrit` decimal(5, 2) NULL DEFAULT NULL COMMENT '凝血酶原时间', + `dimer` decimal(6, 2) NULL DEFAULT NULL COMMENT 'D-二聚体', + `smoking_history` tinyint(1) NULL DEFAULT NULL COMMENT '是否吸烟,0=否,1=是', + `smoking_year` int NULL DEFAULT NULL COMMENT '吸烟年限', + `smoking_quit` tinyint(1) NULL DEFAULT NULL COMMENT '是否戒烟,0=否,1=是', + `smoking_quit_year` int NULL DEFAULT NULL COMMENT '戒烟年限', + `drink_history` tinyint(1) NULL DEFAULT NULL COMMENT '是否饮酒,0=否,1=是', + `drink_year` int NULL DEFAULT NULL COMMENT '饮酒年限', + `drink_quit` tinyint(1) NULL DEFAULT NULL COMMENT '是否戒酒,0=否,1=是', + `drink_quit_year` int NULL DEFAULT NULL COMMENT '戒酒年限', + `has_allergy` tinyint(1) NULL DEFAULT NULL COMMENT '是否过敏,0=否,1=是', + `allergy_drug` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '过敏药', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建者的用户名', + `create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT ' 创建时间 ', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '更新者的用户名', + `update_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE CURRENT_TIMESTAMP COMMENT ' 修改时间 ', + `del_flag` tinyint NULL DEFAULT 0 COMMENT '记录状态 0-正常 1-删除', + `remark` varchar(500) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `sync` varchar(20) NULL DEFAULT '0' COMMENT '是否同步 0否 1是', + PRIMARY KEY (`id`) USING BTREE, + UNIQUE INDEX `idx_visit_no`(`visit_no` ASC) USING BTREE, + INDEX `idx_id_card`(`id_card` ASC) USING BTREE +) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '患者就诊信息表' ROW_FORMAT = Dynamic; + +-- 患者表添加字段 +ALTER TABLE `pms_patient` +ADD COLUMN `patient_no` varchar(50) COMMENT '患者院内唯一编号'; + +-- 主库从库都需要修改部门和用户表,加字段 +ALTER TABLE `ums_user` +ADD COLUMN `empl_code` varchar(30) DEFAULT '' COMMENT '工号' AFTER `nick_name`; + +ALTER TABLE `ums_dept` +ADD COLUMN `dept_code` varchar(30) DEFAULT '' COMMENT '科室编码' AFTER `dept_name`; + +CREATE TABLE `ems_evaluation_scale_cognitive_relevance` ( + `id` bigint(20) NOT NULL, + `evaluation_id` bigint(20) DEFAULT 0 COMMENT '测评id', + `scale_code` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT '' COMMENT ' 量表code ', + `parent_id` bigint(20) DEFAULT NULL COMMENT '认知域父级CODE', + `cognitive_code` varchar(20) DEFAULT '' COMMENT '认知域code', + `score` decimal(11,1) DEFAULT NULL COMMENT '得分', + `total_score` decimal(10,1) DEFAULT NULL COMMENT '总分', + `combo_id` bigint(20) DEFAULT NULL COMMENT '套餐ID', + `sort` int(11) DEFAULT 0 COMMENT ' 排序', + `create_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '创建者的用户名', + `create_time` timestamp NOT NULL DEFAULT current_timestamp() COMMENT ' 创建时间 ', + `update_by` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci DEFAULT NULL COMMENT '更新者的用户名', + `update_time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() COMMENT ' 修改时间 ', + `del_flag` tinyint(3) unsigned DEFAULT 0 COMMENT ' 是否删除(1:是 0:否) ', + PRIMARY KEY (`id`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci ROW_FORMAT=DYNAMIC COMMENT='测评量表认知域得分表'; + +ALTER TABLE `ruisi_cga_yf1`.`ems_evaluation_scale_relevance` +ADD COLUMN `combo_id` bigint NULL AFTER `scale_code`; \ No newline at end of file