From f2cc04d640cbba858c8233efe418c202e4292fcf Mon Sep 17 00:00:00 2001 From: wzz Date: Sun, 6 Apr 2025 22:49:45 +0800 Subject: [PATCH] =?UTF-8?q?feature:=20=E4=B8=AD=E5=8C=BB=E4=BD=93=E8=B4=A8?= =?UTF-8?q?=E6=B5=8B=E8=AF=84=E5=AE=8C=E6=88=90=E3=80=81=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E6=8A=A5=E5=91=8A=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/web/ZytzController.java | 24 +- .../src/main/resources/application-dev.yml | 3 - .../src/main/resources/application-prod.yml | 2 - .../src/main/resources/application-stage.yml | 3 - .../src/main/resources/mbg.xml | 19 +- .../system/domain/dto/ZytzDto.java | 7 +- .../system/domain/po/ZytzRmsReport.java | 293 +++ .../domain/po/ZytzRmsReportExample.java | 1881 +++++++++++++++++ .../system/domain/po/ZytzRmsReportResult.java | 140 ++ .../domain/po/ZytzRmsReportResultExample.java | 912 ++++++++ .../system/domain/po/ZytzRmsReportYsjy.java | 117 + .../domain/po/ZytzRmsReportYsjyExample.java | 721 +++++++ .../acupuncture/system/domain/vo/ZytzVo.java | 29 + .../system/persist/dao/ZytzDao.java | 18 +- .../persist/mapper/ZytzRmsReportMapper.java | 28 + .../mapper/ZytzRmsReportResultMapper.java | 28 + .../mapper/ZytzRmsReportYsjyMapper.java | 34 + .../system/service/ZytzService.java | 14 + .../system/service/impl/ZytzServiceImpl.java | 232 +- .../src/main/resources/mapper/dao/ZytzDao.xml | 216 +- .../mapper/system/ZytzRmsReportMapper.xml | 522 +++++ .../system/ZytzRmsReportResultMapper.xml | 300 +++ .../mapper/system/ZytzRmsReportYsjyMapper.xml | 318 +++ 23 files changed, 5723 insertions(+), 138 deletions(-) create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReport.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResult.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResultExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjy.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjyExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportResultMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportYsjyMapper.java create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportResultMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportYsjyMapper.xml diff --git a/acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java b/acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java index e9c3c2c0..033563c5 100644 --- a/acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java +++ b/acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java @@ -53,7 +53,6 @@ public class ZytzController { return JsonResponse.ok(zytzService.evaQuestionList(dto.getParam())); } - /** * 提交测评 */ @@ -62,4 +61,27 @@ public class ZytzController { public JsonResponse evaQuestionSubmit(@Validated @RequestBody BaseDto dto) { return JsonResponse.ok(zytzService.evaQuestionSubmit(dto.getParam())); } + + /** + * 完成测评(生成报告单) + * @param dto + * @return + */ + @Anonymous + @PostMapping("/eva/complete") + public JsonResponse evaComplete(@Validated @RequestBody BaseDto dto) { + return JsonResponse.ok(zytzService.evaComplete(dto.getParam())); + } + + /** + * 查看报告单 + * @param dto + * @return + */ + @Anonymous + @PostMapping("/report/view") + public JsonResponse reportView(@Validated @RequestBody BaseDto dto) { + return JsonResponse.ok(zytzService.reportView(dto.getParam())); + } + } diff --git a/acupuncture-admin/src/main/resources/application-dev.yml b/acupuncture-admin/src/main/resources/application-dev.yml index 6d6d6007..1b9c6176 100644 --- a/acupuncture-admin/src/main/resources/application-dev.yml +++ b/acupuncture-admin/src/main/resources/application-dev.yml @@ -67,6 +67,3 @@ file: screenQrCodeTemplate: /home/acupuncture/server/profile/screenQrCodeTemplate.docx hbTemplate: /home/acupuncture/server/profile/screenHbQrCodeTemplate.docx screenPath: http://test.tall.wiki/acupuncture/web-admin/screening/H5?hospitalId=hosId&hospitalName=hosName¢erId=cId - -zytz: - mobileUrl: https://test.tall.wiki/acupuncture/client/medicalEva \ No newline at end of file diff --git a/acupuncture-admin/src/main/resources/application-prod.yml b/acupuncture-admin/src/main/resources/application-prod.yml index b918ac8b..f7db2c08 100644 --- a/acupuncture-admin/src/main/resources/application-prod.yml +++ b/acupuncture-admin/src/main/resources/application-prod.yml @@ -91,5 +91,3 @@ file: pgTemplate: /home/acupuncture/server/profile/TreamtmentPgTemplate.docx jmrsUrl: /home/acupuncture/server/profile/uploads/jmrsTemplate.docx -zytz: - mobileUrl: https://nnzjpt.ylinno.com/acupuncture/clientssl/medicalEva diff --git a/acupuncture-admin/src/main/resources/application-stage.yml b/acupuncture-admin/src/main/resources/application-stage.yml index d2fe88cd..bd811e86 100644 --- a/acupuncture-admin/src/main/resources/application-stage.yml +++ b/acupuncture-admin/src/main/resources/application-stage.yml @@ -68,6 +68,3 @@ file: screenPath: http://test.tall.wiki/acupuncture/web-admin/screening/H5?hospitalId=hosId&hospitalName=hosName¢erId=cId pgTemplate: /home/acupuncture/server/profile/TreamtmentPgTemplate.docx jmrsUrl: /home/acupuncture/server/profile/uploads/jmrsTemplate.docx - -zytz: - mobileUrl: https://test.tall.wiki/acupuncture/client/medicalEva \ No newline at end of file diff --git a/acupuncture-generator/src/main/resources/mbg.xml b/acupuncture-generator/src/main/resources/mbg.xml index 282b8de7..e2b9b78a 100644 --- a/acupuncture-generator/src/main/resources/mbg.xml +++ b/acupuncture-generator/src/main/resources/mbg.xml @@ -66,14 +66,17 @@ - -
-
-
-
-
-
-
+ + + + + + + + +
+
+
diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java index 11243f43..43918c0d 100644 --- a/acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java @@ -31,10 +31,9 @@ public class ZytzDto { //诊疗档案id @NotNull(message = "id不能为空") private Long id; - //患者姓名 - private String name; - //患者电话 - private String phone; + //路径 + @NotNull(message = "path不能为空") + private String path; //是否总是重新生成(1总是重新生成),测试用 int rewrite = 0; } diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReport.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReport.java new file mode 100644 index 00000000..df84b449 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReport.java @@ -0,0 +1,293 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class ZytzRmsReport implements Serializable { + private Long reportId; + + private Long deptId; + + private Long patientId; + + private String patientName; + + private String patientAge; + + private String patientGender; + + private String patientHeight; + + private String patientWeight; + + private String patientWaistline; + + private Long evaId; + + private String evaScaleCode; + + private Date evaTime; + + private String evaUsername; + + private String evaNickname; + + private String blh; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private String patientNamePinyin; + + private String patientNamePy; + + private String patientBirthday; + + private String patientIdcard; + + private String patientPhone; + + private static final long serialVersionUID = 1L; + + public Long getReportId() { + return reportId; + } + + public void setReportId(Long reportId) { + this.reportId = reportId; + } + + public Long getDeptId() { + return deptId; + } + + public void setDeptId(Long deptId) { + this.deptId = deptId; + } + + public Long getPatientId() { + return patientId; + } + + public void setPatientId(Long patientId) { + this.patientId = patientId; + } + + public String getPatientName() { + return patientName; + } + + public void setPatientName(String patientName) { + this.patientName = patientName == null ? null : patientName.trim(); + } + + public String getPatientAge() { + return patientAge; + } + + public void setPatientAge(String patientAge) { + this.patientAge = patientAge == null ? null : patientAge.trim(); + } + + public String getPatientGender() { + return patientGender; + } + + public void setPatientGender(String patientGender) { + this.patientGender = patientGender == null ? null : patientGender.trim(); + } + + public String getPatientHeight() { + return patientHeight; + } + + public void setPatientHeight(String patientHeight) { + this.patientHeight = patientHeight == null ? null : patientHeight.trim(); + } + + public String getPatientWeight() { + return patientWeight; + } + + public void setPatientWeight(String patientWeight) { + this.patientWeight = patientWeight == null ? null : patientWeight.trim(); + } + + public String getPatientWaistline() { + return patientWaistline; + } + + public void setPatientWaistline(String patientWaistline) { + this.patientWaistline = patientWaistline == null ? null : patientWaistline.trim(); + } + + public Long getEvaId() { + return evaId; + } + + public void setEvaId(Long evaId) { + this.evaId = evaId; + } + + public String getEvaScaleCode() { + return evaScaleCode; + } + + public void setEvaScaleCode(String evaScaleCode) { + this.evaScaleCode = evaScaleCode == null ? null : evaScaleCode.trim(); + } + + public Date getEvaTime() { + return evaTime; + } + + public void setEvaTime(Date evaTime) { + this.evaTime = evaTime; + } + + public String getEvaUsername() { + return evaUsername; + } + + public void setEvaUsername(String evaUsername) { + this.evaUsername = evaUsername == null ? null : evaUsername.trim(); + } + + public String getEvaNickname() { + return evaNickname; + } + + public void setEvaNickname(String evaNickname) { + this.evaNickname = evaNickname == null ? null : evaNickname.trim(); + } + + public String getBlh() { + return blh; + } + + public void setBlh(String blh) { + this.blh = blh == null ? null : blh.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 getPatientNamePinyin() { + return patientNamePinyin; + } + + public void setPatientNamePinyin(String patientNamePinyin) { + this.patientNamePinyin = patientNamePinyin == null ? null : patientNamePinyin.trim(); + } + + public String getPatientNamePy() { + return patientNamePy; + } + + public void setPatientNamePy(String patientNamePy) { + this.patientNamePy = patientNamePy == null ? null : patientNamePy.trim(); + } + + public String getPatientBirthday() { + return patientBirthday; + } + + public void setPatientBirthday(String patientBirthday) { + this.patientBirthday = patientBirthday == null ? null : patientBirthday.trim(); + } + + public String getPatientIdcard() { + return patientIdcard; + } + + public void setPatientIdcard(String patientIdcard) { + this.patientIdcard = patientIdcard == null ? null : patientIdcard.trim(); + } + + public String getPatientPhone() { + return patientPhone; + } + + public void setPatientPhone(String patientPhone) { + this.patientPhone = patientPhone == null ? null : patientPhone.trim(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", reportId=").append(reportId); + sb.append(", deptId=").append(deptId); + sb.append(", patientId=").append(patientId); + sb.append(", patientName=").append(patientName); + sb.append(", patientAge=").append(patientAge); + sb.append(", patientGender=").append(patientGender); + sb.append(", patientHeight=").append(patientHeight); + sb.append(", patientWeight=").append(patientWeight); + sb.append(", patientWaistline=").append(patientWaistline); + sb.append(", evaId=").append(evaId); + sb.append(", evaScaleCode=").append(evaScaleCode); + sb.append(", evaTime=").append(evaTime); + sb.append(", evaUsername=").append(evaUsername); + sb.append(", evaNickname=").append(evaNickname); + sb.append(", blh=").append(blh); + 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(", patientNamePinyin=").append(patientNamePinyin); + sb.append(", patientNamePy=").append(patientNamePy); + sb.append(", patientBirthday=").append(patientBirthday); + sb.append(", patientIdcard=").append(patientIdcard); + sb.append(", patientPhone=").append(patientPhone); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportExample.java new file mode 100644 index 00000000..81cf8475 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportExample.java @@ -0,0 +1,1881 @@ +package com.acupuncture.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzRmsReportExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzRmsReportExample() { + 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 andReportIdIsNull() { + addCriterion("report_id is null"); + return (Criteria) this; + } + + public Criteria andReportIdIsNotNull() { + addCriterion("report_id is not null"); + return (Criteria) this; + } + + public Criteria andReportIdEqualTo(Long value) { + addCriterion("report_id =", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotEqualTo(Long value) { + addCriterion("report_id <>", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThan(Long value) { + addCriterion("report_id >", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThanOrEqualTo(Long value) { + addCriterion("report_id >=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThan(Long value) { + addCriterion("report_id <", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThanOrEqualTo(Long value) { + addCriterion("report_id <=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdIn(List values) { + addCriterion("report_id in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotIn(List values) { + addCriterion("report_id not in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdBetween(Long value1, Long value2) { + addCriterion("report_id between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotBetween(Long value1, Long value2) { + addCriterion("report_id not between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andDeptIdIsNull() { + addCriterion("dept_id is null"); + return (Criteria) this; + } + + public Criteria andDeptIdIsNotNull() { + addCriterion("dept_id is not null"); + return (Criteria) this; + } + + public Criteria andDeptIdEqualTo(Long value) { + addCriterion("dept_id =", value, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdNotEqualTo(Long value) { + addCriterion("dept_id <>", value, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdGreaterThan(Long value) { + addCriterion("dept_id >", value, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdGreaterThanOrEqualTo(Long value) { + addCriterion("dept_id >=", value, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdLessThan(Long value) { + addCriterion("dept_id <", value, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdLessThanOrEqualTo(Long value) { + addCriterion("dept_id <=", value, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdIn(List values) { + addCriterion("dept_id in", values, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdNotIn(List values) { + addCriterion("dept_id not in", values, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdBetween(Long value1, Long value2) { + addCriterion("dept_id between", value1, value2, "deptId"); + return (Criteria) this; + } + + public Criteria andDeptIdNotBetween(Long value1, Long value2) { + addCriterion("dept_id not between", value1, value2, "deptId"); + return (Criteria) this; + } + + public Criteria andPatientIdIsNull() { + addCriterion("patient_id is null"); + return (Criteria) this; + } + + public Criteria andPatientIdIsNotNull() { + addCriterion("patient_id is not null"); + return (Criteria) this; + } + + public Criteria andPatientIdEqualTo(Long value) { + addCriterion("patient_id =", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdNotEqualTo(Long value) { + addCriterion("patient_id <>", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdGreaterThan(Long value) { + addCriterion("patient_id >", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdGreaterThanOrEqualTo(Long value) { + addCriterion("patient_id >=", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdLessThan(Long value) { + addCriterion("patient_id <", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdLessThanOrEqualTo(Long value) { + addCriterion("patient_id <=", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdIn(List values) { + addCriterion("patient_id in", values, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdNotIn(List values) { + addCriterion("patient_id not in", values, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdBetween(Long value1, Long value2) { + addCriterion("patient_id between", value1, value2, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdNotBetween(Long value1, Long value2) { + addCriterion("patient_id not between", value1, value2, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientNameIsNull() { + addCriterion("patient_name is null"); + return (Criteria) this; + } + + public Criteria andPatientNameIsNotNull() { + addCriterion("patient_name is not null"); + return (Criteria) this; + } + + public Criteria andPatientNameEqualTo(String value) { + addCriterion("patient_name =", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameNotEqualTo(String value) { + addCriterion("patient_name <>", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameGreaterThan(String value) { + addCriterion("patient_name >", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameGreaterThanOrEqualTo(String value) { + addCriterion("patient_name >=", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameLessThan(String value) { + addCriterion("patient_name <", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameLessThanOrEqualTo(String value) { + addCriterion("patient_name <=", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameLike(String value) { + addCriterion("patient_name like", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameNotLike(String value) { + addCriterion("patient_name not like", value, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameIn(List values) { + addCriterion("patient_name in", values, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameNotIn(List values) { + addCriterion("patient_name not in", values, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameBetween(String value1, String value2) { + addCriterion("patient_name between", value1, value2, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientNameNotBetween(String value1, String value2) { + addCriterion("patient_name not between", value1, value2, "patientName"); + return (Criteria) this; + } + + public Criteria andPatientAgeIsNull() { + addCriterion("patient_age is null"); + return (Criteria) this; + } + + public Criteria andPatientAgeIsNotNull() { + addCriterion("patient_age is not null"); + return (Criteria) this; + } + + public Criteria andPatientAgeEqualTo(String value) { + addCriterion("patient_age =", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeNotEqualTo(String value) { + addCriterion("patient_age <>", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeGreaterThan(String value) { + addCriterion("patient_age >", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeGreaterThanOrEqualTo(String value) { + addCriterion("patient_age >=", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeLessThan(String value) { + addCriterion("patient_age <", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeLessThanOrEqualTo(String value) { + addCriterion("patient_age <=", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeLike(String value) { + addCriterion("patient_age like", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeNotLike(String value) { + addCriterion("patient_age not like", value, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeIn(List values) { + addCriterion("patient_age in", values, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeNotIn(List values) { + addCriterion("patient_age not in", values, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeBetween(String value1, String value2) { + addCriterion("patient_age between", value1, value2, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientAgeNotBetween(String value1, String value2) { + addCriterion("patient_age not between", value1, value2, "patientAge"); + return (Criteria) this; + } + + public Criteria andPatientGenderIsNull() { + addCriterion("patient_gender is null"); + return (Criteria) this; + } + + public Criteria andPatientGenderIsNotNull() { + addCriterion("patient_gender is not null"); + return (Criteria) this; + } + + public Criteria andPatientGenderEqualTo(String value) { + addCriterion("patient_gender =", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderNotEqualTo(String value) { + addCriterion("patient_gender <>", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderGreaterThan(String value) { + addCriterion("patient_gender >", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderGreaterThanOrEqualTo(String value) { + addCriterion("patient_gender >=", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderLessThan(String value) { + addCriterion("patient_gender <", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderLessThanOrEqualTo(String value) { + addCriterion("patient_gender <=", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderLike(String value) { + addCriterion("patient_gender like", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderNotLike(String value) { + addCriterion("patient_gender not like", value, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderIn(List values) { + addCriterion("patient_gender in", values, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderNotIn(List values) { + addCriterion("patient_gender not in", values, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderBetween(String value1, String value2) { + addCriterion("patient_gender between", value1, value2, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientGenderNotBetween(String value1, String value2) { + addCriterion("patient_gender not between", value1, value2, "patientGender"); + return (Criteria) this; + } + + public Criteria andPatientHeightIsNull() { + addCriterion("patient_height is null"); + return (Criteria) this; + } + + public Criteria andPatientHeightIsNotNull() { + addCriterion("patient_height is not null"); + return (Criteria) this; + } + + public Criteria andPatientHeightEqualTo(String value) { + addCriterion("patient_height =", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightNotEqualTo(String value) { + addCriterion("patient_height <>", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightGreaterThan(String value) { + addCriterion("patient_height >", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightGreaterThanOrEqualTo(String value) { + addCriterion("patient_height >=", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightLessThan(String value) { + addCriterion("patient_height <", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightLessThanOrEqualTo(String value) { + addCriterion("patient_height <=", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightLike(String value) { + addCriterion("patient_height like", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightNotLike(String value) { + addCriterion("patient_height not like", value, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightIn(List values) { + addCriterion("patient_height in", values, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightNotIn(List values) { + addCriterion("patient_height not in", values, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightBetween(String value1, String value2) { + addCriterion("patient_height between", value1, value2, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientHeightNotBetween(String value1, String value2) { + addCriterion("patient_height not between", value1, value2, "patientHeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightIsNull() { + addCriterion("patient_weight is null"); + return (Criteria) this; + } + + public Criteria andPatientWeightIsNotNull() { + addCriterion("patient_weight is not null"); + return (Criteria) this; + } + + public Criteria andPatientWeightEqualTo(String value) { + addCriterion("patient_weight =", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightNotEqualTo(String value) { + addCriterion("patient_weight <>", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightGreaterThan(String value) { + addCriterion("patient_weight >", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightGreaterThanOrEqualTo(String value) { + addCriterion("patient_weight >=", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightLessThan(String value) { + addCriterion("patient_weight <", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightLessThanOrEqualTo(String value) { + addCriterion("patient_weight <=", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightLike(String value) { + addCriterion("patient_weight like", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightNotLike(String value) { + addCriterion("patient_weight not like", value, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightIn(List values) { + addCriterion("patient_weight in", values, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightNotIn(List values) { + addCriterion("patient_weight not in", values, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightBetween(String value1, String value2) { + addCriterion("patient_weight between", value1, value2, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWeightNotBetween(String value1, String value2) { + addCriterion("patient_weight not between", value1, value2, "patientWeight"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineIsNull() { + addCriterion("patient_waistline is null"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineIsNotNull() { + addCriterion("patient_waistline is not null"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineEqualTo(String value) { + addCriterion("patient_waistline =", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineNotEqualTo(String value) { + addCriterion("patient_waistline <>", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineGreaterThan(String value) { + addCriterion("patient_waistline >", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineGreaterThanOrEqualTo(String value) { + addCriterion("patient_waistline >=", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineLessThan(String value) { + addCriterion("patient_waistline <", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineLessThanOrEqualTo(String value) { + addCriterion("patient_waistline <=", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineLike(String value) { + addCriterion("patient_waistline like", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineNotLike(String value) { + addCriterion("patient_waistline not like", value, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineIn(List values) { + addCriterion("patient_waistline in", values, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineNotIn(List values) { + addCriterion("patient_waistline not in", values, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineBetween(String value1, String value2) { + addCriterion("patient_waistline between", value1, value2, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andPatientWaistlineNotBetween(String value1, String value2) { + addCriterion("patient_waistline not between", value1, value2, "patientWaistline"); + return (Criteria) this; + } + + public Criteria andEvaIdIsNull() { + addCriterion("eva_id is null"); + return (Criteria) this; + } + + public Criteria andEvaIdIsNotNull() { + addCriterion("eva_id is not null"); + return (Criteria) this; + } + + public Criteria andEvaIdEqualTo(Long value) { + addCriterion("eva_id =", value, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdNotEqualTo(Long value) { + addCriterion("eva_id <>", value, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdGreaterThan(Long value) { + addCriterion("eva_id >", value, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdGreaterThanOrEqualTo(Long value) { + addCriterion("eva_id >=", value, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdLessThan(Long value) { + addCriterion("eva_id <", value, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdLessThanOrEqualTo(Long value) { + addCriterion("eva_id <=", value, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdIn(List values) { + addCriterion("eva_id in", values, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdNotIn(List values) { + addCriterion("eva_id not in", values, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdBetween(Long value1, Long value2) { + addCriterion("eva_id between", value1, value2, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaIdNotBetween(Long value1, Long value2) { + addCriterion("eva_id not between", value1, value2, "evaId"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeIsNull() { + addCriterion("eva_scale_code is null"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeIsNotNull() { + addCriterion("eva_scale_code is not null"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeEqualTo(String value) { + addCriterion("eva_scale_code =", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeNotEqualTo(String value) { + addCriterion("eva_scale_code <>", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeGreaterThan(String value) { + addCriterion("eva_scale_code >", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeGreaterThanOrEqualTo(String value) { + addCriterion("eva_scale_code >=", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeLessThan(String value) { + addCriterion("eva_scale_code <", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeLessThanOrEqualTo(String value) { + addCriterion("eva_scale_code <=", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeLike(String value) { + addCriterion("eva_scale_code like", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeNotLike(String value) { + addCriterion("eva_scale_code not like", value, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeIn(List values) { + addCriterion("eva_scale_code in", values, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeNotIn(List values) { + addCriterion("eva_scale_code not in", values, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeBetween(String value1, String value2) { + addCriterion("eva_scale_code between", value1, value2, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaScaleCodeNotBetween(String value1, String value2) { + addCriterion("eva_scale_code not between", value1, value2, "evaScaleCode"); + return (Criteria) this; + } + + public Criteria andEvaTimeIsNull() { + addCriterion("eva_time is null"); + return (Criteria) this; + } + + public Criteria andEvaTimeIsNotNull() { + addCriterion("eva_time is not null"); + return (Criteria) this; + } + + public Criteria andEvaTimeEqualTo(Date value) { + addCriterion("eva_time =", value, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeNotEqualTo(Date value) { + addCriterion("eva_time <>", value, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeGreaterThan(Date value) { + addCriterion("eva_time >", value, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeGreaterThanOrEqualTo(Date value) { + addCriterion("eva_time >=", value, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeLessThan(Date value) { + addCriterion("eva_time <", value, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeLessThanOrEqualTo(Date value) { + addCriterion("eva_time <=", value, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeIn(List values) { + addCriterion("eva_time in", values, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeNotIn(List values) { + addCriterion("eva_time not in", values, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeBetween(Date value1, Date value2) { + addCriterion("eva_time between", value1, value2, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaTimeNotBetween(Date value1, Date value2) { + addCriterion("eva_time not between", value1, value2, "evaTime"); + return (Criteria) this; + } + + public Criteria andEvaUsernameIsNull() { + addCriterion("eva_username is null"); + return (Criteria) this; + } + + public Criteria andEvaUsernameIsNotNull() { + addCriterion("eva_username is not null"); + return (Criteria) this; + } + + public Criteria andEvaUsernameEqualTo(String value) { + addCriterion("eva_username =", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameNotEqualTo(String value) { + addCriterion("eva_username <>", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameGreaterThan(String value) { + addCriterion("eva_username >", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameGreaterThanOrEqualTo(String value) { + addCriterion("eva_username >=", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameLessThan(String value) { + addCriterion("eva_username <", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameLessThanOrEqualTo(String value) { + addCriterion("eva_username <=", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameLike(String value) { + addCriterion("eva_username like", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameNotLike(String value) { + addCriterion("eva_username not like", value, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameIn(List values) { + addCriterion("eva_username in", values, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameNotIn(List values) { + addCriterion("eva_username not in", values, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameBetween(String value1, String value2) { + addCriterion("eva_username between", value1, value2, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaUsernameNotBetween(String value1, String value2) { + addCriterion("eva_username not between", value1, value2, "evaUsername"); + return (Criteria) this; + } + + public Criteria andEvaNicknameIsNull() { + addCriterion("eva_nickname is null"); + return (Criteria) this; + } + + public Criteria andEvaNicknameIsNotNull() { + addCriterion("eva_nickname is not null"); + return (Criteria) this; + } + + public Criteria andEvaNicknameEqualTo(String value) { + addCriterion("eva_nickname =", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameNotEqualTo(String value) { + addCriterion("eva_nickname <>", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameGreaterThan(String value) { + addCriterion("eva_nickname >", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameGreaterThanOrEqualTo(String value) { + addCriterion("eva_nickname >=", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameLessThan(String value) { + addCriterion("eva_nickname <", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameLessThanOrEqualTo(String value) { + addCriterion("eva_nickname <=", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameLike(String value) { + addCriterion("eva_nickname like", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameNotLike(String value) { + addCriterion("eva_nickname not like", value, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameIn(List values) { + addCriterion("eva_nickname in", values, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameNotIn(List values) { + addCriterion("eva_nickname not in", values, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameBetween(String value1, String value2) { + addCriterion("eva_nickname between", value1, value2, "evaNickname"); + return (Criteria) this; + } + + public Criteria andEvaNicknameNotBetween(String value1, String value2) { + addCriterion("eva_nickname not between", value1, value2, "evaNickname"); + return (Criteria) this; + } + + public Criteria andBlhIsNull() { + addCriterion("blh is null"); + return (Criteria) this; + } + + public Criteria andBlhIsNotNull() { + addCriterion("blh is not null"); + return (Criteria) this; + } + + public Criteria andBlhEqualTo(String value) { + addCriterion("blh =", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhNotEqualTo(String value) { + addCriterion("blh <>", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhGreaterThan(String value) { + addCriterion("blh >", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhGreaterThanOrEqualTo(String value) { + addCriterion("blh >=", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhLessThan(String value) { + addCriterion("blh <", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhLessThanOrEqualTo(String value) { + addCriterion("blh <=", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhLike(String value) { + addCriterion("blh like", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhNotLike(String value) { + addCriterion("blh not like", value, "blh"); + return (Criteria) this; + } + + public Criteria andBlhIn(List values) { + addCriterion("blh in", values, "blh"); + return (Criteria) this; + } + + public Criteria andBlhNotIn(List values) { + addCriterion("blh not in", values, "blh"); + return (Criteria) this; + } + + public Criteria andBlhBetween(String value1, String value2) { + addCriterion("blh between", value1, value2, "blh"); + return (Criteria) this; + } + + public Criteria andBlhNotBetween(String value1, String value2) { + addCriterion("blh not between", value1, value2, "blh"); + 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 andPatientNamePinyinIsNull() { + addCriterion("patient_name_pinyin is null"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinIsNotNull() { + addCriterion("patient_name_pinyin is not null"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinEqualTo(String value) { + addCriterion("patient_name_pinyin =", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinNotEqualTo(String value) { + addCriterion("patient_name_pinyin <>", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinGreaterThan(String value) { + addCriterion("patient_name_pinyin >", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinGreaterThanOrEqualTo(String value) { + addCriterion("patient_name_pinyin >=", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinLessThan(String value) { + addCriterion("patient_name_pinyin <", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinLessThanOrEqualTo(String value) { + addCriterion("patient_name_pinyin <=", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinLike(String value) { + addCriterion("patient_name_pinyin like", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinNotLike(String value) { + addCriterion("patient_name_pinyin not like", value, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinIn(List values) { + addCriterion("patient_name_pinyin in", values, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinNotIn(List values) { + addCriterion("patient_name_pinyin not in", values, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinBetween(String value1, String value2) { + addCriterion("patient_name_pinyin between", value1, value2, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePinyinNotBetween(String value1, String value2) { + addCriterion("patient_name_pinyin not between", value1, value2, "patientNamePinyin"); + return (Criteria) this; + } + + public Criteria andPatientNamePyIsNull() { + addCriterion("patient_name_py is null"); + return (Criteria) this; + } + + public Criteria andPatientNamePyIsNotNull() { + addCriterion("patient_name_py is not null"); + return (Criteria) this; + } + + public Criteria andPatientNamePyEqualTo(String value) { + addCriterion("patient_name_py =", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyNotEqualTo(String value) { + addCriterion("patient_name_py <>", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyGreaterThan(String value) { + addCriterion("patient_name_py >", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyGreaterThanOrEqualTo(String value) { + addCriterion("patient_name_py >=", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyLessThan(String value) { + addCriterion("patient_name_py <", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyLessThanOrEqualTo(String value) { + addCriterion("patient_name_py <=", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyLike(String value) { + addCriterion("patient_name_py like", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyNotLike(String value) { + addCriterion("patient_name_py not like", value, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyIn(List values) { + addCriterion("patient_name_py in", values, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyNotIn(List values) { + addCriterion("patient_name_py not in", values, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyBetween(String value1, String value2) { + addCriterion("patient_name_py between", value1, value2, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientNamePyNotBetween(String value1, String value2) { + addCriterion("patient_name_py not between", value1, value2, "patientNamePy"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayIsNull() { + addCriterion("patient_birthday is null"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayIsNotNull() { + addCriterion("patient_birthday is not null"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayEqualTo(String value) { + addCriterion("patient_birthday =", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayNotEqualTo(String value) { + addCriterion("patient_birthday <>", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayGreaterThan(String value) { + addCriterion("patient_birthday >", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayGreaterThanOrEqualTo(String value) { + addCriterion("patient_birthday >=", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayLessThan(String value) { + addCriterion("patient_birthday <", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayLessThanOrEqualTo(String value) { + addCriterion("patient_birthday <=", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayLike(String value) { + addCriterion("patient_birthday like", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayNotLike(String value) { + addCriterion("patient_birthday not like", value, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayIn(List values) { + addCriterion("patient_birthday in", values, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayNotIn(List values) { + addCriterion("patient_birthday not in", values, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayBetween(String value1, String value2) { + addCriterion("patient_birthday between", value1, value2, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientBirthdayNotBetween(String value1, String value2) { + addCriterion("patient_birthday not between", value1, value2, "patientBirthday"); + return (Criteria) this; + } + + public Criteria andPatientIdcardIsNull() { + addCriterion("patient_idcard is null"); + return (Criteria) this; + } + + public Criteria andPatientIdcardIsNotNull() { + addCriterion("patient_idcard is not null"); + return (Criteria) this; + } + + public Criteria andPatientIdcardEqualTo(String value) { + addCriterion("patient_idcard =", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardNotEqualTo(String value) { + addCriterion("patient_idcard <>", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardGreaterThan(String value) { + addCriterion("patient_idcard >", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardGreaterThanOrEqualTo(String value) { + addCriterion("patient_idcard >=", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardLessThan(String value) { + addCriterion("patient_idcard <", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardLessThanOrEqualTo(String value) { + addCriterion("patient_idcard <=", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardLike(String value) { + addCriterion("patient_idcard like", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardNotLike(String value) { + addCriterion("patient_idcard not like", value, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardIn(List values) { + addCriterion("patient_idcard in", values, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardNotIn(List values) { + addCriterion("patient_idcard not in", values, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardBetween(String value1, String value2) { + addCriterion("patient_idcard between", value1, value2, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientIdcardNotBetween(String value1, String value2) { + addCriterion("patient_idcard not between", value1, value2, "patientIdcard"); + return (Criteria) this; + } + + public Criteria andPatientPhoneIsNull() { + addCriterion("patient_phone is null"); + return (Criteria) this; + } + + public Criteria andPatientPhoneIsNotNull() { + addCriterion("patient_phone is not null"); + return (Criteria) this; + } + + public Criteria andPatientPhoneEqualTo(String value) { + addCriterion("patient_phone =", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneNotEqualTo(String value) { + addCriterion("patient_phone <>", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneGreaterThan(String value) { + addCriterion("patient_phone >", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneGreaterThanOrEqualTo(String value) { + addCriterion("patient_phone >=", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneLessThan(String value) { + addCriterion("patient_phone <", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneLessThanOrEqualTo(String value) { + addCriterion("patient_phone <=", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneLike(String value) { + addCriterion("patient_phone like", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneNotLike(String value) { + addCriterion("patient_phone not like", value, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneIn(List values) { + addCriterion("patient_phone in", values, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneNotIn(List values) { + addCriterion("patient_phone not in", values, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneBetween(String value1, String value2) { + addCriterion("patient_phone between", value1, value2, "patientPhone"); + return (Criteria) this; + } + + public Criteria andPatientPhoneNotBetween(String value1, String value2) { + addCriterion("patient_phone not between", value1, value2, "patientPhone"); + 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/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResult.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResult.java new file mode 100644 index 00000000..827f5644 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResult.java @@ -0,0 +1,140 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class ZytzRmsReportResult implements Serializable { + private Long resultId; + + private Long reportId; + + private String constiCode; + + private String constiName; + + private String constiLevel; + + private BigDecimal constiScore; + + private Integer mainFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getResultId() { + return resultId; + } + + public void setResultId(Long resultId) { + this.resultId = resultId; + } + + public Long getReportId() { + return reportId; + } + + public void setReportId(Long reportId) { + this.reportId = reportId; + } + + public String getConstiCode() { + return constiCode; + } + + public void setConstiCode(String constiCode) { + this.constiCode = constiCode == null ? null : constiCode.trim(); + } + + public String getConstiName() { + return constiName; + } + + public void setConstiName(String constiName) { + this.constiName = constiName == null ? null : constiName.trim(); + } + + public String getConstiLevel() { + return constiLevel; + } + + public void setConstiLevel(String constiLevel) { + this.constiLevel = constiLevel == null ? null : constiLevel.trim(); + } + + public BigDecimal getConstiScore() { + return constiScore; + } + + public void setConstiScore(BigDecimal constiScore) { + this.constiScore = constiScore; + } + + public Integer getMainFlag() { + return mainFlag; + } + + public void setMainFlag(Integer mainFlag) { + this.mainFlag = mainFlag; + } + + 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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", resultId=").append(resultId); + sb.append(", reportId=").append(reportId); + sb.append(", constiCode=").append(constiCode); + sb.append(", constiName=").append(constiName); + sb.append(", constiLevel=").append(constiLevel); + sb.append(", constiScore=").append(constiScore); + sb.append(", mainFlag=").append(mainFlag); + sb.append(", createBy=").append(createBy); + sb.append(", createTime=").append(createTime); + sb.append(", updateBy=").append(updateBy); + sb.append(", updateTime=").append(updateTime); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResultExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResultExample.java new file mode 100644 index 00000000..35e1dd7b --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResultExample.java @@ -0,0 +1,912 @@ +package com.acupuncture.system.domain.po; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzRmsReportResultExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzRmsReportResultExample() { + 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 andResultIdIsNull() { + addCriterion("result_id is null"); + return (Criteria) this; + } + + public Criteria andResultIdIsNotNull() { + addCriterion("result_id is not null"); + return (Criteria) this; + } + + public Criteria andResultIdEqualTo(Long value) { + addCriterion("result_id =", value, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdNotEqualTo(Long value) { + addCriterion("result_id <>", value, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdGreaterThan(Long value) { + addCriterion("result_id >", value, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdGreaterThanOrEqualTo(Long value) { + addCriterion("result_id >=", value, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdLessThan(Long value) { + addCriterion("result_id <", value, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdLessThanOrEqualTo(Long value) { + addCriterion("result_id <=", value, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdIn(List values) { + addCriterion("result_id in", values, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdNotIn(List values) { + addCriterion("result_id not in", values, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdBetween(Long value1, Long value2) { + addCriterion("result_id between", value1, value2, "resultId"); + return (Criteria) this; + } + + public Criteria andResultIdNotBetween(Long value1, Long value2) { + addCriterion("result_id not between", value1, value2, "resultId"); + return (Criteria) this; + } + + public Criteria andReportIdIsNull() { + addCriterion("report_id is null"); + return (Criteria) this; + } + + public Criteria andReportIdIsNotNull() { + addCriterion("report_id is not null"); + return (Criteria) this; + } + + public Criteria andReportIdEqualTo(Long value) { + addCriterion("report_id =", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotEqualTo(Long value) { + addCriterion("report_id <>", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThan(Long value) { + addCriterion("report_id >", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThanOrEqualTo(Long value) { + addCriterion("report_id >=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThan(Long value) { + addCriterion("report_id <", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThanOrEqualTo(Long value) { + addCriterion("report_id <=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdIn(List values) { + addCriterion("report_id in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotIn(List values) { + addCriterion("report_id not in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdBetween(Long value1, Long value2) { + addCriterion("report_id between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotBetween(Long value1, Long value2) { + addCriterion("report_id not between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andConstiCodeIsNull() { + addCriterion("consti_code is null"); + return (Criteria) this; + } + + public Criteria andConstiCodeIsNotNull() { + addCriterion("consti_code is not null"); + return (Criteria) this; + } + + public Criteria andConstiCodeEqualTo(String value) { + addCriterion("consti_code =", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotEqualTo(String value) { + addCriterion("consti_code <>", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeGreaterThan(String value) { + addCriterion("consti_code >", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeGreaterThanOrEqualTo(String value) { + addCriterion("consti_code >=", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeLessThan(String value) { + addCriterion("consti_code <", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeLessThanOrEqualTo(String value) { + addCriterion("consti_code <=", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeLike(String value) { + addCriterion("consti_code like", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotLike(String value) { + addCriterion("consti_code not like", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeIn(List values) { + addCriterion("consti_code in", values, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotIn(List values) { + addCriterion("consti_code not in", values, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeBetween(String value1, String value2) { + addCriterion("consti_code between", value1, value2, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotBetween(String value1, String value2) { + addCriterion("consti_code not between", value1, value2, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiNameIsNull() { + addCriterion("consti_name is null"); + return (Criteria) this; + } + + public Criteria andConstiNameIsNotNull() { + addCriterion("consti_name is not null"); + return (Criteria) this; + } + + public Criteria andConstiNameEqualTo(String value) { + addCriterion("consti_name =", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotEqualTo(String value) { + addCriterion("consti_name <>", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameGreaterThan(String value) { + addCriterion("consti_name >", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameGreaterThanOrEqualTo(String value) { + addCriterion("consti_name >=", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameLessThan(String value) { + addCriterion("consti_name <", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameLessThanOrEqualTo(String value) { + addCriterion("consti_name <=", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameLike(String value) { + addCriterion("consti_name like", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotLike(String value) { + addCriterion("consti_name not like", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameIn(List values) { + addCriterion("consti_name in", values, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotIn(List values) { + addCriterion("consti_name not in", values, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameBetween(String value1, String value2) { + addCriterion("consti_name between", value1, value2, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotBetween(String value1, String value2) { + addCriterion("consti_name not between", value1, value2, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiLevelIsNull() { + addCriterion("consti_level is null"); + return (Criteria) this; + } + + public Criteria andConstiLevelIsNotNull() { + addCriterion("consti_level is not null"); + return (Criteria) this; + } + + public Criteria andConstiLevelEqualTo(String value) { + addCriterion("consti_level =", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelNotEqualTo(String value) { + addCriterion("consti_level <>", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelGreaterThan(String value) { + addCriterion("consti_level >", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelGreaterThanOrEqualTo(String value) { + addCriterion("consti_level >=", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelLessThan(String value) { + addCriterion("consti_level <", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelLessThanOrEqualTo(String value) { + addCriterion("consti_level <=", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelLike(String value) { + addCriterion("consti_level like", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelNotLike(String value) { + addCriterion("consti_level not like", value, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelIn(List values) { + addCriterion("consti_level in", values, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelNotIn(List values) { + addCriterion("consti_level not in", values, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelBetween(String value1, String value2) { + addCriterion("consti_level between", value1, value2, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiLevelNotBetween(String value1, String value2) { + addCriterion("consti_level not between", value1, value2, "constiLevel"); + return (Criteria) this; + } + + public Criteria andConstiScoreIsNull() { + addCriterion("consti_score is null"); + return (Criteria) this; + } + + public Criteria andConstiScoreIsNotNull() { + addCriterion("consti_score is not null"); + return (Criteria) this; + } + + public Criteria andConstiScoreEqualTo(BigDecimal value) { + addCriterion("consti_score =", value, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreNotEqualTo(BigDecimal value) { + addCriterion("consti_score <>", value, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreGreaterThan(BigDecimal value) { + addCriterion("consti_score >", value, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("consti_score >=", value, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreLessThan(BigDecimal value) { + addCriterion("consti_score <", value, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreLessThanOrEqualTo(BigDecimal value) { + addCriterion("consti_score <=", value, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreIn(List values) { + addCriterion("consti_score in", values, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreNotIn(List values) { + addCriterion("consti_score not in", values, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("consti_score between", value1, value2, "constiScore"); + return (Criteria) this; + } + + public Criteria andConstiScoreNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("consti_score not between", value1, value2, "constiScore"); + return (Criteria) this; + } + + public Criteria andMainFlagIsNull() { + addCriterion("main_flag is null"); + return (Criteria) this; + } + + public Criteria andMainFlagIsNotNull() { + addCriterion("main_flag is not null"); + return (Criteria) this; + } + + public Criteria andMainFlagEqualTo(Integer value) { + addCriterion("main_flag =", value, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagNotEqualTo(Integer value) { + addCriterion("main_flag <>", value, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagGreaterThan(Integer value) { + addCriterion("main_flag >", value, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagGreaterThanOrEqualTo(Integer value) { + addCriterion("main_flag >=", value, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagLessThan(Integer value) { + addCriterion("main_flag <", value, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagLessThanOrEqualTo(Integer value) { + addCriterion("main_flag <=", value, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagIn(List values) { + addCriterion("main_flag in", values, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagNotIn(List values) { + addCriterion("main_flag not in", values, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagBetween(Integer value1, Integer value2) { + addCriterion("main_flag between", value1, value2, "mainFlag"); + return (Criteria) this; + } + + public Criteria andMainFlagNotBetween(Integer value1, Integer value2) { + addCriterion("main_flag not between", value1, value2, "mainFlag"); + 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 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/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjy.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjy.java new file mode 100644 index 00000000..e4f79db2 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjy.java @@ -0,0 +1,117 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class ZytzRmsReportYsjy implements Serializable { + private Long ysjyId; + + private Long reportId; + + private String constiCode; + + private String constiName; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private String constiYsjy; + + private static final long serialVersionUID = 1L; + + public Long getYsjyId() { + return ysjyId; + } + + public void setYsjyId(Long ysjyId) { + this.ysjyId = ysjyId; + } + + public Long getReportId() { + return reportId; + } + + public void setReportId(Long reportId) { + this.reportId = reportId; + } + + public String getConstiCode() { + return constiCode; + } + + public void setConstiCode(String constiCode) { + this.constiCode = constiCode == null ? null : constiCode.trim(); + } + + public String getConstiName() { + return constiName; + } + + public void setConstiName(String constiName) { + this.constiName = constiName == null ? null : constiName.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 getConstiYsjy() { + return constiYsjy; + } + + public void setConstiYsjy(String constiYsjy) { + this.constiYsjy = constiYsjy == null ? null : constiYsjy.trim(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", ysjyId=").append(ysjyId); + sb.append(", reportId=").append(reportId); + sb.append(", constiCode=").append(constiCode); + sb.append(", constiName=").append(constiName); + sb.append(", createBy=").append(createBy); + sb.append(", createTime=").append(createTime); + sb.append(", updateBy=").append(updateBy); + sb.append(", updateTime=").append(updateTime); + sb.append(", constiYsjy=").append(constiYsjy); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjyExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjyExample.java new file mode 100644 index 00000000..dae1a064 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjyExample.java @@ -0,0 +1,721 @@ +package com.acupuncture.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzRmsReportYsjyExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzRmsReportYsjyExample() { + 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 andYsjyIdIsNull() { + addCriterion("ysjy_id is null"); + return (Criteria) this; + } + + public Criteria andYsjyIdIsNotNull() { + addCriterion("ysjy_id is not null"); + return (Criteria) this; + } + + public Criteria andYsjyIdEqualTo(Long value) { + addCriterion("ysjy_id =", value, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdNotEqualTo(Long value) { + addCriterion("ysjy_id <>", value, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdGreaterThan(Long value) { + addCriterion("ysjy_id >", value, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdGreaterThanOrEqualTo(Long value) { + addCriterion("ysjy_id >=", value, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdLessThan(Long value) { + addCriterion("ysjy_id <", value, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdLessThanOrEqualTo(Long value) { + addCriterion("ysjy_id <=", value, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdIn(List values) { + addCriterion("ysjy_id in", values, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdNotIn(List values) { + addCriterion("ysjy_id not in", values, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdBetween(Long value1, Long value2) { + addCriterion("ysjy_id between", value1, value2, "ysjyId"); + return (Criteria) this; + } + + public Criteria andYsjyIdNotBetween(Long value1, Long value2) { + addCriterion("ysjy_id not between", value1, value2, "ysjyId"); + return (Criteria) this; + } + + public Criteria andReportIdIsNull() { + addCriterion("report_id is null"); + return (Criteria) this; + } + + public Criteria andReportIdIsNotNull() { + addCriterion("report_id is not null"); + return (Criteria) this; + } + + public Criteria andReportIdEqualTo(Long value) { + addCriterion("report_id =", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotEqualTo(Long value) { + addCriterion("report_id <>", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThan(Long value) { + addCriterion("report_id >", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdGreaterThanOrEqualTo(Long value) { + addCriterion("report_id >=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThan(Long value) { + addCriterion("report_id <", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdLessThanOrEqualTo(Long value) { + addCriterion("report_id <=", value, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdIn(List values) { + addCriterion("report_id in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotIn(List values) { + addCriterion("report_id not in", values, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdBetween(Long value1, Long value2) { + addCriterion("report_id between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andReportIdNotBetween(Long value1, Long value2) { + addCriterion("report_id not between", value1, value2, "reportId"); + return (Criteria) this; + } + + public Criteria andConstiCodeIsNull() { + addCriterion("consti_code is null"); + return (Criteria) this; + } + + public Criteria andConstiCodeIsNotNull() { + addCriterion("consti_code is not null"); + return (Criteria) this; + } + + public Criteria andConstiCodeEqualTo(String value) { + addCriterion("consti_code =", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotEqualTo(String value) { + addCriterion("consti_code <>", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeGreaterThan(String value) { + addCriterion("consti_code >", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeGreaterThanOrEqualTo(String value) { + addCriterion("consti_code >=", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeLessThan(String value) { + addCriterion("consti_code <", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeLessThanOrEqualTo(String value) { + addCriterion("consti_code <=", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeLike(String value) { + addCriterion("consti_code like", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotLike(String value) { + addCriterion("consti_code not like", value, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeIn(List values) { + addCriterion("consti_code in", values, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotIn(List values) { + addCriterion("consti_code not in", values, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeBetween(String value1, String value2) { + addCriterion("consti_code between", value1, value2, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiCodeNotBetween(String value1, String value2) { + addCriterion("consti_code not between", value1, value2, "constiCode"); + return (Criteria) this; + } + + public Criteria andConstiNameIsNull() { + addCriterion("consti_name is null"); + return (Criteria) this; + } + + public Criteria andConstiNameIsNotNull() { + addCriterion("consti_name is not null"); + return (Criteria) this; + } + + public Criteria andConstiNameEqualTo(String value) { + addCriterion("consti_name =", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotEqualTo(String value) { + addCriterion("consti_name <>", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameGreaterThan(String value) { + addCriterion("consti_name >", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameGreaterThanOrEqualTo(String value) { + addCriterion("consti_name >=", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameLessThan(String value) { + addCriterion("consti_name <", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameLessThanOrEqualTo(String value) { + addCriterion("consti_name <=", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameLike(String value) { + addCriterion("consti_name like", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotLike(String value) { + addCriterion("consti_name not like", value, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameIn(List values) { + addCriterion("consti_name in", values, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotIn(List values) { + addCriterion("consti_name not in", values, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameBetween(String value1, String value2) { + addCriterion("consti_name between", value1, value2, "constiName"); + return (Criteria) this; + } + + public Criteria andConstiNameNotBetween(String value1, String value2) { + addCriterion("consti_name not between", value1, value2, "constiName"); + 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 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/acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java index 6d2d3256..b22ea448 100644 --- a/acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java @@ -391,4 +391,33 @@ public class ZytzVo { return result.toString(); } } + + + @Data + public static class EvaResult { + //测评id + private Long evaId; + //量表代码 + private String scaleCode; + //量表名称 + private String scaleName; + //体质代码 + private String constiCode; + //体质名称 + private String constiName; + //原始分 + private BigDecimal score; + //转化分 + private BigDecimal zhScore; + //题目数量 + private Integer quesNum; + //体质level + private String constiLevel; + //是否主体质 + private Integer mainFlag; + + public BigDecimal getScore() { + return score == null ? BigDecimal.ZERO : score; + } + } } diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ZytzDao.java b/acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ZytzDao.java index a710d494..197c893b 100644 --- a/acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ZytzDao.java +++ b/acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ZytzDao.java @@ -2,6 +2,7 @@ package com.acupuncture.system.persist.dao; import com.acupuncture.system.domain.dto.AdminDataSourceDto; import com.acupuncture.system.domain.po.ZytzEmsEvaAnswer; +import com.acupuncture.system.domain.po.ZytzRmsReportResult; import com.acupuncture.system.domain.vo.AdminDataSourceVo; import com.acupuncture.system.domain.vo.ZytzVo; import org.apache.ibatis.annotations.Param; @@ -59,6 +60,21 @@ public interface ZytzDao { */ void batchInsertAnswer(@Param("list") List answerList); + /** + * 批量插入reportResult + * + * @param reportResultList + */ + void batchInsertReportResult(@Param("list") List reportResultList); + + /** + * 查询测评分数 + * + * @param evaId + * @return + */ + List countReportResult(@Param("evaId") Long evaId); + /** * 查询养生建议 * @@ -74,7 +90,7 @@ public interface ZytzDao { * @param evaId * @return */ -// ZytzVo.ReportView reportView(@Param("evaId") Long evaId); + ZytzVo.ReportView reportView(@Param("evaId") Long evaId); /** * 查询测评列表 diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportMapper.java b/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportMapper.java new file mode 100644 index 00000000..79a6e99f --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportMapper.java @@ -0,0 +1,28 @@ +package com.acupuncture.system.persist.mapper; + +import com.acupuncture.system.domain.po.ZytzRmsReport; +import com.acupuncture.system.domain.po.ZytzRmsReportExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ZytzRmsReportMapper { + long countByExample(ZytzRmsReportExample example); + + int deleteByPrimaryKey(Long reportId); + + int insert(ZytzRmsReport record); + + int insertSelective(ZytzRmsReport record); + + List selectByExample(ZytzRmsReportExample example); + + ZytzRmsReport selectByPrimaryKey(Long reportId); + + int updateByExampleSelective(@Param("record") ZytzRmsReport record, @Param("example") ZytzRmsReportExample example); + + int updateByExample(@Param("record") ZytzRmsReport record, @Param("example") ZytzRmsReportExample example); + + int updateByPrimaryKeySelective(ZytzRmsReport record); + + int updateByPrimaryKey(ZytzRmsReport record); +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportResultMapper.java b/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportResultMapper.java new file mode 100644 index 00000000..4a4490fc --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportResultMapper.java @@ -0,0 +1,28 @@ +package com.acupuncture.system.persist.mapper; + +import com.acupuncture.system.domain.po.ZytzRmsReportResult; +import com.acupuncture.system.domain.po.ZytzRmsReportResultExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ZytzRmsReportResultMapper { + long countByExample(ZytzRmsReportResultExample example); + + int deleteByPrimaryKey(Long resultId); + + int insert(ZytzRmsReportResult record); + + int insertSelective(ZytzRmsReportResult record); + + List selectByExample(ZytzRmsReportResultExample example); + + ZytzRmsReportResult selectByPrimaryKey(Long resultId); + + int updateByExampleSelective(@Param("record") ZytzRmsReportResult record, @Param("example") ZytzRmsReportResultExample example); + + int updateByExample(@Param("record") ZytzRmsReportResult record, @Param("example") ZytzRmsReportResultExample example); + + int updateByPrimaryKeySelective(ZytzRmsReportResult record); + + int updateByPrimaryKey(ZytzRmsReportResult record); +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportYsjyMapper.java b/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportYsjyMapper.java new file mode 100644 index 00000000..85db690c --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportYsjyMapper.java @@ -0,0 +1,34 @@ +package com.acupuncture.system.persist.mapper; + +import com.acupuncture.system.domain.po.ZytzRmsReportYsjy; +import com.acupuncture.system.domain.po.ZytzRmsReportYsjyExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ZytzRmsReportYsjyMapper { + long countByExample(ZytzRmsReportYsjyExample example); + + int deleteByPrimaryKey(Long ysjyId); + + int insert(ZytzRmsReportYsjy record); + + int insertSelective(ZytzRmsReportYsjy record); + + List selectByExampleWithBLOBs(ZytzRmsReportYsjyExample example); + + List selectByExample(ZytzRmsReportYsjyExample example); + + ZytzRmsReportYsjy selectByPrimaryKey(Long ysjyId); + + int updateByExampleSelective(@Param("record") ZytzRmsReportYsjy record, @Param("example") ZytzRmsReportYsjyExample example); + + int updateByExampleWithBLOBs(@Param("record") ZytzRmsReportYsjy record, @Param("example") ZytzRmsReportYsjyExample example); + + int updateByExample(@Param("record") ZytzRmsReportYsjy record, @Param("example") ZytzRmsReportYsjyExample example); + + int updateByPrimaryKeySelective(ZytzRmsReportYsjy record); + + int updateByPrimaryKeyWithBLOBs(ZytzRmsReportYsjy record); + + int updateByPrimaryKey(ZytzRmsReportYsjy record); +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/service/ZytzService.java b/acupuncture-system/src/main/java/com/acupuncture/system/service/ZytzService.java index 5e152f89..9c6c9998 100644 --- a/acupuncture-system/src/main/java/com/acupuncture/system/service/ZytzService.java +++ b/acupuncture-system/src/main/java/com/acupuncture/system/service/ZytzService.java @@ -33,4 +33,18 @@ public interface ZytzService { * @return */ Integer evaQuestionSubmit(ZytzDto.EvaQuestionSubmit param); + + /** + * 完成测评(生成报告单) + * @param param + * @return + */ + Integer evaComplete(ZytzDto.EvaComplete param); + + /** + * 查看报告单 + * @param param + * @return + */ + ZytzVo.ReportView reportView(ZytzDto.ReportView param); } diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ZytzServiceImpl.java b/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ZytzServiceImpl.java index e3316d9e..aa69cdda 100644 --- a/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ZytzServiceImpl.java +++ b/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ZytzServiceImpl.java @@ -2,18 +2,23 @@ package com.acupuncture.system.service.impl; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.convert.Convert; +import cn.hutool.core.date.DateUtil; import cn.hutool.core.io.FileUtil; import cn.hutool.core.util.IdUtil; +import cn.hutool.core.util.NumberUtil; import cn.hutool.core.util.StrUtil; import cn.hutool.extra.qrcode.QrCodeUtil; +import cn.hutool.http.HtmlUtil; import com.acupuncture.common.config.RuoYiConfig; import com.acupuncture.common.exception.base.BaseException; import com.acupuncture.common.utils.SecurityUtils; import com.acupuncture.common.utils.uuid.IdUtils; import com.acupuncture.system.domain.dto.ZytzDto; -import com.acupuncture.system.domain.po.ZytzEmsEvaAnswer; +import com.acupuncture.system.domain.po.*; import com.acupuncture.system.domain.vo.ZytzVo; import com.acupuncture.system.persist.dao.ZytzDao; +import com.acupuncture.system.persist.mapper.PmsTreatmentMapper; +import com.acupuncture.system.persist.mapper.ZytzRmsReportMapper; import com.acupuncture.system.service.ZytzService; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Value; @@ -22,7 +27,9 @@ import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; +import javax.validation.constraints.NotNull; import java.io.File; +import java.math.BigDecimal; import java.util.List; /** @@ -34,25 +41,25 @@ import java.util.List; @Service @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public class ZytzServiceImpl implements ZytzService { - @Value("${zytz.mobileUrl}") - private String zytzMobileUrl; - @Resource private ZytzDao zytzDao; + @Resource + private ZytzRmsReportMapper zytzRmsReportMapper; + @Resource + private PmsTreatmentMapper pmsTreatmentMapper; @Override public String getZytzQrcode(ZytzDto.ZytzQrcode dto, Long tenantId) { String qrcodePath = RuoYiConfig.getZytzQrcodePath() + "/" + dto.getId() + ".png"; String qrcodeUrl = RuoYiConfig.getZytzQrcodeUrl() + "/" + dto.getId() + ".png"; - String url = StrUtil.format("{}?id={}&name={}&phone={}&tenantId={}", - zytzMobileUrl, dto.getId(), dto.getName(), dto.getPhone(), tenantId); + String url = dto.getPath(); log.info("qrcodePath:{}", qrcodePath); log.info("qrcodeUrl:{}", qrcodeUrl); log.info("url:{}", url); //存在则直接返回 if (FileUtil.exist(qrcodePath) && dto.getRewrite() != 1) { - log.info("zytz qrcode exists."); + log.info("zytz qrcode exists,return it"); return qrcodeUrl; } @@ -82,10 +89,219 @@ public class ZytzServiceImpl implements ZytzService { answer.setOptionCode(question.getOptionCode()); answer.setOptionName(question.getOptionName()); answer.setOptionScore(Convert.toBigDecimal(question.getOptionScore())); -// answer.setCreateBy(SecurityUtils.getUsername()); answerList.add(answer); } zytzDao.batchInsertAnswer(answerList); return 0; } + + + @Override + public Integer evaComplete(ZytzDto.EvaComplete param) { + //1.设置测评状态为完成 +// PmsTreatment emsEvaluation = new PmsTreatment(); +// emsEvaluation.setId(param.getEvaId()); +// emsEvaluation.setStatus((byte) 1); +// emsEvaluation.setUpdateBy(SecurityUtils.getUsername()); +// emsEvaluationMapper.updateByPrimaryKeySelective(emsEvaluation); + + //2.删除之前的报告单 + ZytzRmsReportExample reportExample = new ZytzRmsReportExample(); + reportExample.createCriteria().andEvaIdEqualTo(param.getEvaId()); + ZytzRmsReport willDeletedReport = new ZytzRmsReport(); + willDeletedReport.setDelFlag("1"); +// willDeletedReport.setUpdateBy(SecurityUtils.getUsername()); + zytzRmsReportMapper.updateByExampleSelective(willDeletedReport, reportExample); + + //3.生成新的报告单 + //3.1 生成报告单 + PmsTreatment emsEvaluation = pmsTreatmentMapper.selectByPrimaryKey(param.getEvaId()); + ZytzRmsReport rmsReport = new ZytzRmsReport(); + rmsReport.setReportId(IdUtil.getSnowflakeNextId()); +// rmsReport.setDeptId(SecurityUtils.getDeptId()); + rmsReport.setEvaId(param.getEvaId()); + rmsReport.setEvaUsername(""); + rmsReport.setEvaNickname(""); + rmsReport.setEvaScaleCode("TZBS_LN"); + rmsReport.setEvaTime(DateUtil.date()); + rmsReport.setPatientId(emsEvaluation.getPatientId()); + rmsReport.setPatientName(emsEvaluation.getName()); + rmsReport.setPatientNamePinyin(emsEvaluation.getPinyinFull()); + rmsReport.setPatientNamePy(emsEvaluation.getPinyinSimple()); + rmsReport.setPatientBirthday(emsEvaluation.getBirthDate() == null ? null : DateUtil.format(emsEvaluation.getBirthDate(), "yyyy-MM-dd")); + rmsReport.setPatientAge(emsEvaluation.getAge() + ""); + rmsReport.setPatientGender(emsEvaluation.getGender() + ""); + rmsReport.setPatientHeight(""); + rmsReport.setPatientWeight(""); + rmsReport.setPatientWaistline(""); + rmsReport.setPatientIdcard(emsEvaluation.getIdCard()); + rmsReport.setPatientPhone(emsEvaluation.getPhone()); +// rmsReport.setCreateBy(SecurityUtils.getUsername()); + zytzRmsReportMapper.insertSelective(rmsReport); + + //3.2 生成报告单辨识结果 + List resultList = countReportResult(param.getEvaId(), rmsReport.getReportId()); + List reportResultList = CollectionUtil.newArrayList(); + for (ZytzVo.EvaResult resultVo : resultList) { + //转换为RmsReportResult对象 + ZytzRmsReportResult reportResult = new ZytzRmsReportResult(); + reportResult.setResultId(IdUtil.getSnowflakeNextId()); + reportResult.setReportId(rmsReport.getReportId()); + reportResult.setConstiCode(resultVo.getConstiCode()); + reportResult.setConstiName(resultVo.getConstiName()); + reportResult.setConstiLevel(resultVo.getConstiLevel()); + reportResult.setConstiScore(resultVo.getZhScore()); + reportResult.setMainFlag(resultVo.getMainFlag()); +// reportResult.setCreateBy(SecurityUtils.getUsername()); + reportResultList.add(reportResult); + } + zytzDao.batchInsertReportResult(reportResultList); + + //3.3 生成养生建议 +// for (RmsReportResult result : reportResultList) { +// if (result.getConstiLevel().equals("20")) { +// continue; +// } +// RmsReportYsjy rmsReportYsjy = new RmsReportYsjy(); +// rmsReportYsjy.setYsjyId(IdUtils.nextSnowFlakeId()); +// rmsReportYsjy.setReportId(result.getReportId()); +// rmsReportYsjy.setConstiCode(result.getConstiCode()); +// rmsReportYsjy.setConstiName(result.getConstiName()); +// rmsReportYsjy.setConstiYsjy( +// clientEvaDao.queryYsjy(result.getConstiCode(), emsEvaluation.getDeptId()) +// ); +// rmsReportYsjyMapper.insertSelective(rmsReportYsjy); +// } + return 0; + } + + private List countReportResult(@NotNull Long evaId, Long reportId) { + //1.查询体质分数(原始分) + List resultList = zytzDao.countReportResult(evaId); + if (CollectionUtil.isEmpty(resultList)) { + throw new BaseException("未找到体质信息"); + } + + //2.计算level和mainflag + if ("TZBS_BZ".equals(resultList.get(0).getScaleCode())) { + //标准版体质辨识 +// countReportResult_TZBS_BZ(resultList); + } else if ("TZBS_LN".equals(resultList.get(0).getScaleCode())) { + //老年版体质辨识 + countReportResult_TZBS_LN(resultList); + } + + return resultList; + } + + private void countReportResult_TZBS_LN(List resultList) { + //1.根据原始分、题目数量计算转化分 + for (ZytzVo.EvaResult evaResult : resultList) { + //转化分 = 原始分 + evaResult.setZhScore( + evaResult.getScore() + ); + } + + //2.计算平和质level + boolean other8LessThan9Flag = true, other8LessThan11Flag = true; + ZytzVo.EvaResult constiAResult = null; + for (ZytzVo.EvaResult r : resultList) { + if ("TZBS_LN_A".equals(r.getConstiCode())) { + constiAResult = r; + } else { + if (r.getZhScore().compareTo(BigDecimal.valueOf(9)) >= 0) { + other8LessThan9Flag = false; + } + if (r.getZhScore().compareTo(BigDecimal.valueOf(11)) >= 0) { + other8LessThan11Flag = false; + } + } + } + if (constiAResult == null) { + throw new BaseException("系统错误,未找到平和体质"); + } + + //转化分>=17分,其他体质均<9分,是平和质 + //转化分>=17分,其他体质均<11分,基本是平和质 + //其他情况,不是平和质 + //默认为否 + constiAResult.setConstiLevel("20"); + if (constiAResult.getZhScore().compareTo(new BigDecimal(17)) >= 0) { + if (other8LessThan9Flag) { + //是 + constiAResult.setConstiLevel("00"); + } else if (other8LessThan11Flag) { + //基本是 + constiAResult.setConstiLevel("10"); + } else { + //否 + constiAResult.setConstiLevel("20"); + } + } + + //3.计算其他体质level + for (ZytzVo.EvaResult r : resultList) { + if ("TZBS_LN_A".equals(r.getConstiCode())) { + continue; + } + if (r.getZhScore().compareTo(new BigDecimal(11)) >= 0) { + //是 + r.setConstiLevel("00"); + } else if (r.getZhScore().compareTo(new BigDecimal(9)) >= 0) { + //倾向是 + r.setConstiLevel("11"); + } else { + //否 + r.setConstiLevel("20"); + } + } + + //4.设置mainflag字段 + //优先选择平和质为主体质 + //选择偏颇体质中最高分为主体质 + for (ZytzVo.EvaResult result : resultList) { + result.setMainFlag(0); + } + ZytzVo.EvaResult ppResult = null; + for (ZytzVo.EvaResult result : resultList) { + if (result.getConstiLevel().equals("20")) { + //默认所有体质都置为0 + result.setMainFlag(0); + //跳过所有level为否的体质 + continue; + } + //先判断平和质 + if ("TZBS_LN_A".equals(result.getConstiCode())) { + result.setMainFlag(1); + break; + } + //先把非20的所有体质都设置为兼夹体质 + result.setMainFlag(2); + //找出兼夹体质中得分最高的 + if (ppResult == null) { + ppResult = result; + } else { + if (result.getZhScore().compareTo(ppResult.getZhScore()) > 0) { + ppResult = result; + } + } + } + if (ppResult != null) { + //得分最高的兼夹体质为主体质 + ppResult.setMainFlag(1); + } + } + + @Override + public ZytzVo.ReportView reportView(ZytzDto.ReportView param) { + ZytzVo.ReportView vo = zytzDao.reportView(param.getEvaId()); + if (vo != null && CollectionUtil.isNotEmpty(vo.getYsfa())) { + for (ZytzVo.ReportView.Ysfa ysfa : vo.getYsfa()) { + //html转义 + ysfa.setYsjy(HtmlUtil.unescape(ysfa.getYsjy())); + } + } + return vo; + } } diff --git a/acupuncture-system/src/main/resources/mapper/dao/ZytzDao.xml b/acupuncture-system/src/main/resources/mapper/dao/ZytzDao.xml index e1147be8..baf153ca 100644 --- a/acupuncture-system/src/main/resources/mapper/dao/ZytzDao.xml +++ b/acupuncture-system/src/main/resources/mapper/dao/ZytzDao.xml @@ -56,38 +56,38 @@ - - - - - - - + + replace into zytz_rms_report_result(result_id,report_id,consti_code,consti_name,consti_level,consti_score,main_flag,create_by) + values + + (#{item.resultId},#{item.reportId},#{item.constiCode},#{item.constiName},#{item.constiLevel},#{item.constiScore},#{item.mainFlag},#{item.createBy}) + + - - - - - - - - - - - - - - - - - - - - - - - - + @@ -104,84 +104,84 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + diff --git a/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportMapper.xml b/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportMapper.xml new file mode 100644 index 00000000..46e2274e --- /dev/null +++ b/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportMapper.xml @@ -0,0 +1,522 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + report_id, dept_id, patient_id, patient_name, patient_age, patient_gender, patient_height, + patient_weight, patient_waistline, eva_id, eva_scale_code, eva_time, eva_username, + eva_nickname, blh, del_flag, create_by, create_time, update_by, update_time, patient_name_pinyin, + patient_name_py, patient_birthday, patient_idcard, patient_phone + + + + + delete from zytz_rms_report + where report_id = #{reportId,jdbcType=BIGINT} + + + insert into zytz_rms_report (report_id, dept_id, patient_id, + patient_name, patient_age, patient_gender, + patient_height, patient_weight, patient_waistline, + eva_id, eva_scale_code, eva_time, + eva_username, eva_nickname, blh, + del_flag, create_by, create_time, + update_by, update_time, patient_name_pinyin, + patient_name_py, patient_birthday, patient_idcard, + patient_phone) + values (#{reportId,jdbcType=BIGINT}, #{deptId,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, + #{patientName,jdbcType=VARCHAR}, #{patientAge,jdbcType=VARCHAR}, #{patientGender,jdbcType=VARCHAR}, + #{patientHeight,jdbcType=VARCHAR}, #{patientWeight,jdbcType=VARCHAR}, #{patientWaistline,jdbcType=VARCHAR}, + #{evaId,jdbcType=BIGINT}, #{evaScaleCode,jdbcType=VARCHAR}, #{evaTime,jdbcType=TIMESTAMP}, + #{evaUsername,jdbcType=VARCHAR}, #{evaNickname,jdbcType=VARCHAR}, #{blh,jdbcType=VARCHAR}, + #{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{patientNamePinyin,jdbcType=VARCHAR}, + #{patientNamePy,jdbcType=VARCHAR}, #{patientBirthday,jdbcType=VARCHAR}, #{patientIdcard,jdbcType=VARCHAR}, + #{patientPhone,jdbcType=VARCHAR}) + + + insert into zytz_rms_report + + + report_id, + + + dept_id, + + + patient_id, + + + patient_name, + + + patient_age, + + + patient_gender, + + + patient_height, + + + patient_weight, + + + patient_waistline, + + + eva_id, + + + eva_scale_code, + + + eva_time, + + + eva_username, + + + eva_nickname, + + + blh, + + + del_flag, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + patient_name_pinyin, + + + patient_name_py, + + + patient_birthday, + + + patient_idcard, + + + patient_phone, + + + + + #{reportId,jdbcType=BIGINT}, + + + #{deptId,jdbcType=BIGINT}, + + + #{patientId,jdbcType=BIGINT}, + + + #{patientName,jdbcType=VARCHAR}, + + + #{patientAge,jdbcType=VARCHAR}, + + + #{patientGender,jdbcType=VARCHAR}, + + + #{patientHeight,jdbcType=VARCHAR}, + + + #{patientWeight,jdbcType=VARCHAR}, + + + #{patientWaistline,jdbcType=VARCHAR}, + + + #{evaId,jdbcType=BIGINT}, + + + #{evaScaleCode,jdbcType=VARCHAR}, + + + #{evaTime,jdbcType=TIMESTAMP}, + + + #{evaUsername,jdbcType=VARCHAR}, + + + #{evaNickname,jdbcType=VARCHAR}, + + + #{blh,jdbcType=VARCHAR}, + + + #{delFlag,jdbcType=CHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{patientNamePinyin,jdbcType=VARCHAR}, + + + #{patientNamePy,jdbcType=VARCHAR}, + + + #{patientBirthday,jdbcType=VARCHAR}, + + + #{patientIdcard,jdbcType=VARCHAR}, + + + #{patientPhone,jdbcType=VARCHAR}, + + + + + + update zytz_rms_report + + + report_id = #{record.reportId,jdbcType=BIGINT}, + + + dept_id = #{record.deptId,jdbcType=BIGINT}, + + + patient_id = #{record.patientId,jdbcType=BIGINT}, + + + patient_name = #{record.patientName,jdbcType=VARCHAR}, + + + patient_age = #{record.patientAge,jdbcType=VARCHAR}, + + + patient_gender = #{record.patientGender,jdbcType=VARCHAR}, + + + patient_height = #{record.patientHeight,jdbcType=VARCHAR}, + + + patient_weight = #{record.patientWeight,jdbcType=VARCHAR}, + + + patient_waistline = #{record.patientWaistline,jdbcType=VARCHAR}, + + + eva_id = #{record.evaId,jdbcType=BIGINT}, + + + eva_scale_code = #{record.evaScaleCode,jdbcType=VARCHAR}, + + + eva_time = #{record.evaTime,jdbcType=TIMESTAMP}, + + + eva_username = #{record.evaUsername,jdbcType=VARCHAR}, + + + eva_nickname = #{record.evaNickname,jdbcType=VARCHAR}, + + + blh = #{record.blh,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}, + + + patient_name_pinyin = #{record.patientNamePinyin,jdbcType=VARCHAR}, + + + patient_name_py = #{record.patientNamePy,jdbcType=VARCHAR}, + + + patient_birthday = #{record.patientBirthday,jdbcType=VARCHAR}, + + + patient_idcard = #{record.patientIdcard,jdbcType=VARCHAR}, + + + patient_phone = #{record.patientPhone,jdbcType=VARCHAR}, + + + + + + + + update zytz_rms_report + set report_id = #{record.reportId,jdbcType=BIGINT}, + dept_id = #{record.deptId,jdbcType=BIGINT}, + patient_id = #{record.patientId,jdbcType=BIGINT}, + patient_name = #{record.patientName,jdbcType=VARCHAR}, + patient_age = #{record.patientAge,jdbcType=VARCHAR}, + patient_gender = #{record.patientGender,jdbcType=VARCHAR}, + patient_height = #{record.patientHeight,jdbcType=VARCHAR}, + patient_weight = #{record.patientWeight,jdbcType=VARCHAR}, + patient_waistline = #{record.patientWaistline,jdbcType=VARCHAR}, + eva_id = #{record.evaId,jdbcType=BIGINT}, + eva_scale_code = #{record.evaScaleCode,jdbcType=VARCHAR}, + eva_time = #{record.evaTime,jdbcType=TIMESTAMP}, + eva_username = #{record.evaUsername,jdbcType=VARCHAR}, + eva_nickname = #{record.evaNickname,jdbcType=VARCHAR}, + blh = #{record.blh,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}, + patient_name_pinyin = #{record.patientNamePinyin,jdbcType=VARCHAR}, + patient_name_py = #{record.patientNamePy,jdbcType=VARCHAR}, + patient_birthday = #{record.patientBirthday,jdbcType=VARCHAR}, + patient_idcard = #{record.patientIdcard,jdbcType=VARCHAR}, + patient_phone = #{record.patientPhone,jdbcType=VARCHAR} + + + + + + update zytz_rms_report + + + dept_id = #{deptId,jdbcType=BIGINT}, + + + patient_id = #{patientId,jdbcType=BIGINT}, + + + patient_name = #{patientName,jdbcType=VARCHAR}, + + + patient_age = #{patientAge,jdbcType=VARCHAR}, + + + patient_gender = #{patientGender,jdbcType=VARCHAR}, + + + patient_height = #{patientHeight,jdbcType=VARCHAR}, + + + patient_weight = #{patientWeight,jdbcType=VARCHAR}, + + + patient_waistline = #{patientWaistline,jdbcType=VARCHAR}, + + + eva_id = #{evaId,jdbcType=BIGINT}, + + + eva_scale_code = #{evaScaleCode,jdbcType=VARCHAR}, + + + eva_time = #{evaTime,jdbcType=TIMESTAMP}, + + + eva_username = #{evaUsername,jdbcType=VARCHAR}, + + + eva_nickname = #{evaNickname,jdbcType=VARCHAR}, + + + blh = #{blh,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}, + + + patient_name_pinyin = #{patientNamePinyin,jdbcType=VARCHAR}, + + + patient_name_py = #{patientNamePy,jdbcType=VARCHAR}, + + + patient_birthday = #{patientBirthday,jdbcType=VARCHAR}, + + + patient_idcard = #{patientIdcard,jdbcType=VARCHAR}, + + + patient_phone = #{patientPhone,jdbcType=VARCHAR}, + + + where report_id = #{reportId,jdbcType=BIGINT} + + + update zytz_rms_report + set dept_id = #{deptId,jdbcType=BIGINT}, + patient_id = #{patientId,jdbcType=BIGINT}, + patient_name = #{patientName,jdbcType=VARCHAR}, + patient_age = #{patientAge,jdbcType=VARCHAR}, + patient_gender = #{patientGender,jdbcType=VARCHAR}, + patient_height = #{patientHeight,jdbcType=VARCHAR}, + patient_weight = #{patientWeight,jdbcType=VARCHAR}, + patient_waistline = #{patientWaistline,jdbcType=VARCHAR}, + eva_id = #{evaId,jdbcType=BIGINT}, + eva_scale_code = #{evaScaleCode,jdbcType=VARCHAR}, + eva_time = #{evaTime,jdbcType=TIMESTAMP}, + eva_username = #{evaUsername,jdbcType=VARCHAR}, + eva_nickname = #{evaNickname,jdbcType=VARCHAR}, + blh = #{blh,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}, + patient_name_pinyin = #{patientNamePinyin,jdbcType=VARCHAR}, + patient_name_py = #{patientNamePy,jdbcType=VARCHAR}, + patient_birthday = #{patientBirthday,jdbcType=VARCHAR}, + patient_idcard = #{patientIdcard,jdbcType=VARCHAR}, + patient_phone = #{patientPhone,jdbcType=VARCHAR} + where report_id = #{reportId,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportResultMapper.xml b/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportResultMapper.xml new file mode 100644 index 00000000..3d5a048b --- /dev/null +++ b/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportResultMapper.xml @@ -0,0 +1,300 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + result_id, report_id, consti_code, consti_name, consti_level, consti_score, main_flag, + create_by, create_time, update_by, update_time + + + + + delete from zytz_rms_report_result + where result_id = #{resultId,jdbcType=BIGINT} + + + insert into zytz_rms_report_result (result_id, report_id, consti_code, + consti_name, consti_level, consti_score, + main_flag, create_by, create_time, + update_by, update_time) + values (#{resultId,jdbcType=BIGINT}, #{reportId,jdbcType=BIGINT}, #{constiCode,jdbcType=VARCHAR}, + #{constiName,jdbcType=VARCHAR}, #{constiLevel,jdbcType=VARCHAR}, #{constiScore,jdbcType=DECIMAL}, + #{mainFlag,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) + + + insert into zytz_rms_report_result + + + result_id, + + + report_id, + + + consti_code, + + + consti_name, + + + consti_level, + + + consti_score, + + + main_flag, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + + + #{resultId,jdbcType=BIGINT}, + + + #{reportId,jdbcType=BIGINT}, + + + #{constiCode,jdbcType=VARCHAR}, + + + #{constiName,jdbcType=VARCHAR}, + + + #{constiLevel,jdbcType=VARCHAR}, + + + #{constiScore,jdbcType=DECIMAL}, + + + #{mainFlag,jdbcType=INTEGER}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + + + + update zytz_rms_report_result + + + result_id = #{record.resultId,jdbcType=BIGINT}, + + + report_id = #{record.reportId,jdbcType=BIGINT}, + + + consti_code = #{record.constiCode,jdbcType=VARCHAR}, + + + consti_name = #{record.constiName,jdbcType=VARCHAR}, + + + consti_level = #{record.constiLevel,jdbcType=VARCHAR}, + + + consti_score = #{record.constiScore,jdbcType=DECIMAL}, + + + main_flag = #{record.mainFlag,jdbcType=INTEGER}, + + + create_by = #{record.createBy,jdbcType=VARCHAR}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_by = #{record.updateBy,jdbcType=VARCHAR}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + + + + + + update zytz_rms_report_result + set result_id = #{record.resultId,jdbcType=BIGINT}, + report_id = #{record.reportId,jdbcType=BIGINT}, + consti_code = #{record.constiCode,jdbcType=VARCHAR}, + consti_name = #{record.constiName,jdbcType=VARCHAR}, + consti_level = #{record.constiLevel,jdbcType=VARCHAR}, + consti_score = #{record.constiScore,jdbcType=DECIMAL}, + main_flag = #{record.mainFlag,jdbcType=INTEGER}, + create_by = #{record.createBy,jdbcType=VARCHAR}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_by = #{record.updateBy,jdbcType=VARCHAR}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP} + + + + + + update zytz_rms_report_result + + + report_id = #{reportId,jdbcType=BIGINT}, + + + consti_code = #{constiCode,jdbcType=VARCHAR}, + + + consti_name = #{constiName,jdbcType=VARCHAR}, + + + consti_level = #{constiLevel,jdbcType=VARCHAR}, + + + consti_score = #{constiScore,jdbcType=DECIMAL}, + + + main_flag = #{mainFlag,jdbcType=INTEGER}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + where result_id = #{resultId,jdbcType=BIGINT} + + + update zytz_rms_report_result + set report_id = #{reportId,jdbcType=BIGINT}, + consti_code = #{constiCode,jdbcType=VARCHAR}, + consti_name = #{constiName,jdbcType=VARCHAR}, + consti_level = #{constiLevel,jdbcType=VARCHAR}, + consti_score = #{constiScore,jdbcType=DECIMAL}, + main_flag = #{mainFlag,jdbcType=INTEGER}, + create_by = #{createBy,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP} + where result_id = #{resultId,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportYsjyMapper.xml b/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportYsjyMapper.xml new file mode 100644 index 00000000..9ca2ea36 --- /dev/null +++ b/acupuncture-system/src/main/resources/mapper/system/ZytzRmsReportYsjyMapper.xml @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 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} + + + + + + + + + + + ysjy_id, report_id, consti_code, consti_name, create_by, create_time, update_by, + update_time + + + consti_ysjy + + + + + + delete from zytz_rms_report_ysjy + where ysjy_id = #{ysjyId,jdbcType=BIGINT} + + + insert into zytz_rms_report_ysjy (ysjy_id, report_id, consti_code, + consti_name, create_by, create_time, + update_by, update_time, consti_ysjy + ) + values (#{ysjyId,jdbcType=BIGINT}, #{reportId,jdbcType=BIGINT}, #{constiCode,jdbcType=VARCHAR}, + #{constiName,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, + #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{constiYsjy,jdbcType=LONGVARCHAR} + ) + + + insert into zytz_rms_report_ysjy + + + ysjy_id, + + + report_id, + + + consti_code, + + + consti_name, + + + create_by, + + + create_time, + + + update_by, + + + update_time, + + + consti_ysjy, + + + + + #{ysjyId,jdbcType=BIGINT}, + + + #{reportId,jdbcType=BIGINT}, + + + #{constiCode,jdbcType=VARCHAR}, + + + #{constiName,jdbcType=VARCHAR}, + + + #{createBy,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateBy,jdbcType=VARCHAR}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{constiYsjy,jdbcType=LONGVARCHAR}, + + + + + + update zytz_rms_report_ysjy + + + ysjy_id = #{record.ysjyId,jdbcType=BIGINT}, + + + report_id = #{record.reportId,jdbcType=BIGINT}, + + + consti_code = #{record.constiCode,jdbcType=VARCHAR}, + + + consti_name = #{record.constiName,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}, + + + consti_ysjy = #{record.constiYsjy,jdbcType=LONGVARCHAR}, + + + + + + + + update zytz_rms_report_ysjy + set ysjy_id = #{record.ysjyId,jdbcType=BIGINT}, + report_id = #{record.reportId,jdbcType=BIGINT}, + consti_code = #{record.constiCode,jdbcType=VARCHAR}, + consti_name = #{record.constiName,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}, + consti_ysjy = #{record.constiYsjy,jdbcType=LONGVARCHAR} + + + + + + update zytz_rms_report_ysjy + set ysjy_id = #{record.ysjyId,jdbcType=BIGINT}, + report_id = #{record.reportId,jdbcType=BIGINT}, + consti_code = #{record.constiCode,jdbcType=VARCHAR}, + consti_name = #{record.constiName,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} + + + + + + update zytz_rms_report_ysjy + + + report_id = #{reportId,jdbcType=BIGINT}, + + + consti_code = #{constiCode,jdbcType=VARCHAR}, + + + consti_name = #{constiName,jdbcType=VARCHAR}, + + + create_by = #{createBy,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_by = #{updateBy,jdbcType=VARCHAR}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + consti_ysjy = #{constiYsjy,jdbcType=LONGVARCHAR}, + + + where ysjy_id = #{ysjyId,jdbcType=BIGINT} + + + update zytz_rms_report_ysjy + set report_id = #{reportId,jdbcType=BIGINT}, + consti_code = #{constiCode,jdbcType=VARCHAR}, + consti_name = #{constiName,jdbcType=VARCHAR}, + create_by = #{createBy,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + consti_ysjy = #{constiYsjy,jdbcType=LONGVARCHAR} + where ysjy_id = #{ysjyId,jdbcType=BIGINT} + + + update zytz_rms_report_ysjy + set report_id = #{reportId,jdbcType=BIGINT}, + consti_code = #{constiCode,jdbcType=VARCHAR}, + consti_name = #{constiName,jdbcType=VARCHAR}, + create_by = #{createBy,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_by = #{updateBy,jdbcType=VARCHAR}, + update_time = #{updateTime,jdbcType=TIMESTAMP} + where ysjy_id = #{ysjyId,jdbcType=BIGINT} + + \ No newline at end of file