From a00f5a6c5b1686011af4f155c799bdd57dd951d9 Mon Sep 17 00:00:00 2001 From: wzz Date: Sun, 6 Apr 2025 20:26:55 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feature:=20=E6=B7=BB=E5=8A=A0=E4=B8=AD?= =?UTF-8?q?=E5=8C=BB=E4=BD=93=E8=B4=A8=E4=BA=8C=E7=BB=B4=E7=A0=81=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/web/ZytzController.java | 44 +++++++++++++++ .../src/main/resources/application-dev.yml | 5 +- .../src/main/resources/application-prod.yml | 3 ++ .../src/main/resources/application-stage.yml | 3 ++ .../common/config/RuoYiConfig.java | 26 +++++++++ .../system/domain/dto/ZytzDto.java | 37 +++++++++++++ .../system/service/ZytzService.java | 13 +++++ .../system/service/impl/ZytzServiceImpl.java | 54 +++++++++++++++++++ 8 files changed, 184 insertions(+), 1 deletion(-) create mode 100644 acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/service/ZytzService.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ZytzServiceImpl.java 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 new file mode 100644 index 00000000..829ac2a0 --- /dev/null +++ b/acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java @@ -0,0 +1,44 @@ +package com.acupuncture.web.controller.web; + +import com.acupuncture.common.core.domain.BaseDto; +import com.acupuncture.common.core.domain.JsonResponse; +import com.acupuncture.common.exception.base.BaseException; +import com.acupuncture.common.utils.SecurityUtils; +import com.acupuncture.system.domain.dto.PmsTreatmentDto; +import com.acupuncture.system.domain.dto.ZytzDto; +import com.acupuncture.system.service.ZytzService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @author zhangsan + * @description + * @date 2025/4/6 18:37 + */ + +@Slf4j +@Api(tags = "中医体质测评相关") +@RestController +@RequestMapping("/zytz") +public class ZytzController { + @Resource + private ZytzService zytzService; + + @ApiOperation("生成中医体质辨识二维码") + @PostMapping("/qrcode") + public JsonResponse getZytzQrcode(@RequestBody @Validated BaseDto dto){ + Long tenantId = SecurityUtils.getTenantId(); + if(tenantId == null){ + throw new BaseException("未找到tenantId"); + } + return JsonResponse.ok(zytzService.getZytzQrcode(dto.getParam(), tenantId)); + } +} diff --git a/acupuncture-admin/src/main/resources/application-dev.yml b/acupuncture-admin/src/main/resources/application-dev.yml index a020b54a..6d6d6007 100644 --- a/acupuncture-admin/src/main/resources/application-dev.yml +++ b/acupuncture-admin/src/main/resources/application-dev.yml @@ -66,4 +66,7 @@ file: wxQrCodeTemplate: /home/acupuncture/server/profile/wxQrCodeTemplate.docx 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 \ No newline at end of file + 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 df8ba8d3..b918ac8b 100644 --- a/acupuncture-admin/src/main/resources/application-prod.yml +++ b/acupuncture-admin/src/main/resources/application-prod.yml @@ -90,3 +90,6 @@ 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://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 bd811e86..d2fe88cd 100644 --- a/acupuncture-admin/src/main/resources/application-stage.yml +++ b/acupuncture-admin/src/main/resources/application-stage.yml @@ -68,3 +68,6 @@ 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-common/src/main/java/com/acupuncture/common/config/RuoYiConfig.java b/acupuncture-common/src/main/java/com/acupuncture/common/config/RuoYiConfig.java index 9509d51d..468ec2b8 100644 --- a/acupuncture-common/src/main/java/com/acupuncture/common/config/RuoYiConfig.java +++ b/acupuncture-common/src/main/java/com/acupuncture/common/config/RuoYiConfig.java @@ -24,6 +24,9 @@ public class RuoYiConfig /** 上传路径 */ private static String profile; + /** 资源路径 */ + private static String profileUrl; + /** 获取地址开关 */ private static boolean addressEnabled; @@ -70,6 +73,16 @@ public class RuoYiConfig RuoYiConfig.profile = profile; } + public static String getProfileUrl() + { + return profileUrl; + } + + public void setProfileUrl(String profileUrl) + { + RuoYiConfig.profileUrl = profileUrl; + } + public static boolean isAddressEnabled() { return addressEnabled; @@ -119,4 +132,17 @@ public class RuoYiConfig { return getProfile() + "/upload"; } + + /** + * 获取中医体质二维码存放路径 + */ + public static String getZytzQrcodePath() + { + return getProfile() + "/zytz"; + } + + public static String getZytzQrcodeUrl() + { + return getProfileUrl() + "/zytz"; + } } 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 new file mode 100644 index 00000000..86dd98d6 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java @@ -0,0 +1,37 @@ +package com.acupuncture.system.domain.dto; + +import cn.hutool.core.collection.CollectionUtil; +import cn.hutool.core.date.DateUtil; +import com.acupuncture.common.constant.UserConstants; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import java.util.Date; +import java.util.List; +import java.util.Objects; + +/** + * @Author zzc + * @Package com.acupuncture.system.domain.dto + * @Date 2025/2/11 15:05 + * @description: + */ +public class ZytzDto { + @Data + public static class ZytzQrcode { + //诊疗档案id + @NotNull(message = "id不能为空") + private Long id; + //患者姓名 + private String name; + //患者电话 + private String phone; + //是否总是重新生成(1总是重新生成),测试用 + int rewrite = 0; + } +} 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 new file mode 100644 index 00000000..c7ca1416 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/service/ZytzService.java @@ -0,0 +1,13 @@ +package com.acupuncture.system.service; + +import com.acupuncture.system.domain.dto.AmsWxQrCodeDto; +import com.acupuncture.system.domain.dto.ZytzDto; +import com.acupuncture.system.domain.po.AmsScreenWxQrCode; +import com.acupuncture.system.domain.vo.AmsWxQrCodeVo; + +import java.io.IOException; +import java.util.List; + +public interface ZytzService { + String getZytzQrcode(ZytzDto.ZytzQrcode dto, Long tenantId); +} 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 new file mode 100644 index 00000000..e081472e --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/service/impl/ZytzServiceImpl.java @@ -0,0 +1,54 @@ +package com.acupuncture.system.service.impl; + +import cn.hutool.core.io.FileUtil; +import cn.hutool.core.util.StrUtil; +import cn.hutool.extra.qrcode.QrCodeUtil; +import com.acupuncture.common.config.RuoYiConfig; +import com.acupuncture.common.exception.base.BaseException; +import com.acupuncture.system.domain.dto.ZytzDto; +import com.acupuncture.system.service.ZytzService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import java.io.File; + +/** + * @author zhangsan + * @description + * @date 2025/4/6 18:40 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class ZytzServiceImpl implements ZytzService { + @Value("${zytz.mobileUrl}") + private String zytzMobileUrl; + + @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); + log.info("qrcodePath:{}", qrcodePath); + log.info("qrcodeUrl:{}", qrcodeUrl); + log.info("url:{}", url); + + //存在则直接返回 + if (FileUtil.exist(qrcodePath) && dto.getRewrite() != 1) { + log.info("zytz qrcode exists."); + return qrcodeUrl; + } + + //不存在或者rewrite=1 + File file = QrCodeUtil.generate(url, 450, 450, new File(qrcodePath)); + if(FileUtil.exist(qrcodePath)){ + return qrcodeUrl; + }else{ + throw new BaseException("QrCodeUtil.generate failed."); + } + } +} From 902facda2c441c1da319812e0a87ab11f9def89b Mon Sep 17 00:00:00 2001 From: wzz Date: Sun, 6 Apr 2025 21:37:51 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feature:=20=E4=B8=AD=E5=8C=BB=E4=BD=93?= =?UTF-8?q?=E8=B4=A8=EF=BC=9A=E6=9F=A5=E8=AF=A2=E9=A2=98=E7=9B=AE=E5=8F=8A?= =?UTF-8?q?=E6=8F=90=E4=BA=A4=E7=AD=94=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/web/ZytzController.java | 21 + .../src/main/resources/mbg.xml | 9 +- .../system/domain/dto/ZytzDto.java | 136 +++ .../system/domain/po/ZytzEmsEvaAnswer.java | 129 +++ .../domain/po/ZytzEmsEvaAnswerExample.java | 852 ++++++++++++++++ .../system/domain/po/ZytzQmsScale.java | 106 ++ .../system/domain/po/ZytzQmsScaleConsti.java | 117 +++ .../domain/po/ZytzQmsScaleConstiExample.java | 801 +++++++++++++++ .../domain/po/ZytzQmsScaleConstiQuesRel.java | 117 +++ .../po/ZytzQmsScaleConstiQuesRelExample.java | 791 +++++++++++++++ .../domain/po/ZytzQmsScaleConstiRefScore.java | 129 +++ .../po/ZytzQmsScaleConstiRefScoreExample.java | 842 ++++++++++++++++ .../domain/po/ZytzQmsScaleConstiYsfa.java | 106 ++ .../po/ZytzQmsScaleConstiYsfaExample.java | 661 +++++++++++++ .../system/domain/po/ZytzQmsScaleExample.java | 731 ++++++++++++++ .../domain/po/ZytzQmsScaleQuestion.java | 139 +++ .../po/ZytzQmsScaleQuestionExample.java | 931 +++++++++++++++++ .../domain/po/ZytzQmsScaleQuestionOption.java | 140 +++ .../po/ZytzQmsScaleQuestionOptionExample.java | 932 ++++++++++++++++++ .../acupuncture/system/domain/vo/ZytzVo.java | 394 ++++++++ .../system/persist/dao/ZytzDao.java | 117 +++ .../mapper/ZytzEmsEvaAnswerMapper.java | 28 + .../mapper/ZytzQmsScaleConstiMapper.java | 28 + .../ZytzQmsScaleConstiQuesRelMapper.java | 28 + .../ZytzQmsScaleConstiRefScoreMapper.java | 28 + .../mapper/ZytzQmsScaleConstiYsfaMapper.java | 34 + .../persist/mapper/ZytzQmsScaleMapper.java | 28 + .../mapper/ZytzQmsScaleQuestionMapper.java | 28 + .../ZytzQmsScaleQuestionOptionMapper.java | 28 + .../system/service/ZytzService.java | 23 + .../system/service/impl/ZytzServiceImpl.java | 37 + .../src/main/resources/mapper/dao/ZytzDao.xml | 275 ++++++ .../mapper/system/ZytzEmsEvaAnswerMapper.xml | 285 ++++++ .../system/ZytzQmsScaleConstiMapper.xml | 270 +++++ .../ZytzQmsScaleConstiQuesRelMapper.xml | 270 +++++ .../ZytzQmsScaleConstiRefScoreMapper.xml | 285 ++++++ .../system/ZytzQmsScaleConstiYsfaMapper.xml | 298 ++++++ .../mapper/system/ZytzQmsScaleMapper.xml | 252 +++++ .../system/ZytzQmsScaleQuestionMapper.xml | 300 ++++++ .../ZytzQmsScaleQuestionOptionMapper.xml | 300 ++++++ 40 files changed, 11025 insertions(+), 1 deletion(-) create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswer.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswerExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScale.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConsti.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRel.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRelExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScore.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScoreExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfa.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfaExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestion.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOption.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOptionExample.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ZytzDao.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzEmsEvaAnswerMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiQuesRelMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiRefScoreMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiYsfaMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleQuestionMapper.java create mode 100644 acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleQuestionOptionMapper.java create mode 100644 acupuncture-system/src/main/resources/mapper/dao/ZytzDao.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzEmsEvaAnswerMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzQmsScaleConstiMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzQmsScaleConstiQuesRelMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzQmsScaleConstiRefScoreMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzQmsScaleConstiYsfaMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzQmsScaleMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzQmsScaleQuestionMapper.xml create mode 100644 acupuncture-system/src/main/resources/mapper/system/ZytzQmsScaleQuestionOptionMapper.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 829ac2a0..e9c3c2c0 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 @@ -1,11 +1,13 @@ package com.acupuncture.web.controller.web; +import com.acupuncture.common.annotation.Anonymous; import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.exception.base.BaseException; import com.acupuncture.common.utils.SecurityUtils; import com.acupuncture.system.domain.dto.PmsTreatmentDto; import com.acupuncture.system.domain.dto.ZytzDto; +import com.acupuncture.system.domain.vo.ZytzVo; import com.acupuncture.system.service.ZytzService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; @@ -41,4 +43,23 @@ public class ZytzController { } return JsonResponse.ok(zytzService.getZytzQrcode(dto.getParam(), tenantId)); } + + /** + * 查询测评题目及选项 + */ + @Anonymous + @PostMapping("/questions/list") + public JsonResponse evaQuestionList(@Validated @RequestBody BaseDto dto) { + return JsonResponse.ok(zytzService.evaQuestionList(dto.getParam())); + } + + + /** + * 提交测评 + */ + @Anonymous + @PostMapping("/questions/submit") + public JsonResponse evaQuestionSubmit(@Validated @RequestBody BaseDto dto) { + return JsonResponse.ok(zytzService.evaQuestionSubmit(dto.getParam())); + } } diff --git a/acupuncture-generator/src/main/resources/mbg.xml b/acupuncture-generator/src/main/resources/mbg.xml index 3f1c96fd..282b8de7 100644 --- a/acupuncture-generator/src/main/resources/mbg.xml +++ b/acupuncture-generator/src/main/resources/mbg.xml @@ -66,7 +66,14 @@ - +
+
+
+
+
+
+
+
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 86dd98d6..11243f43 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 @@ -2,13 +2,17 @@ package com.acupuncture.system.domain.dto; import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.IdcardUtil; +import cn.hutool.core.util.StrUtil; import com.acupuncture.common.constant.UserConstants; import com.fasterxml.jackson.annotation.JsonFormat; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; +import javax.validation.Valid; import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import java.util.Date; @@ -34,4 +38,136 @@ public class ZytzDto { //是否总是重新生成(1总是重新生成),测试用 int rewrite = 0; } + + @Data + public static class PatientQuery { + //关键词 + private String keywords; + //患者id + private Long patientId; + } + + @Data + public static class PatientSaveOrUpdate { + private Long patientId; + @NotBlank + private String name; + private Integer gender; + private String birthday; + private String idcard; + private String phone; + private String height; + private String weight; + private String waistline; + private List sickness; + + public String getBirthday() { + if (StrUtil.isNotBlank(idcard)) { + if (IdcardUtil.isValidCard(idcard)) { + return DateUtil.format(IdcardUtil.getBirthDate(idcard), "yyyy-MM-dd"); + } + } + return birthday; + } + } + + @Data + public static class EvaSave { + @NotNull + private Long patientId; + @NotBlank + private String scaleCode; + } + + @Data + public static class EvaQuestionList { + @NotNull + private Long evaId; + } + + @Data + public static class EvaQuestionSubmit { + @NotNull + private Long evaId; + @NotEmpty + @Valid + private List questions; + + @Data + public static class Question { + @NotBlank + private String quesCode; + @NotBlank + private String optionCode; + @NotBlank + private String optionName; + @NotBlank + private String optionScore; + } + } + + @Data + public static class EvaStop { + @NotNull + private Long evaId; + } + + @Data + public static class EvaComplete { + @NotNull + private Long evaId; + } + + @Data + public static class ReportView { + @NotNull + private Long evaId; + } + + @Data + public static class ReportUpdate { + @NotNull + private Long reportId; + private String name; + private String gender; + private String birthday; + private String age; + private String idcard; + private String phone; + private String height; + private String weight; + private String waistline; + private String blh; + } + + @Data + public static class ReportExport { + @NotNull + private Long reportId; + } + + @Data + public static class EvaList { + //关键词 + private String keywords; + //性别(1男 2女) + private Integer gender; + //年龄小 + private Integer ageMin; + //年龄大 + private Integer ageMax; + //日期小 + private Date evaDateMin; + //日期大 + private Date evaDateMax; + //量表 + private String scaleCode; + //状态 + private Integer evaStatus; + } + + @Data + public static class EvaDelete { + private List evaIds ; + } } diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswer.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswer.java new file mode 100644 index 00000000..d451ff97 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswer.java @@ -0,0 +1,129 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class ZytzEmsEvaAnswer implements Serializable { + private Long answerId; + + private Long evaId; + + private String quesCode; + + private String optionCode; + + private String optionName; + + private BigDecimal optionScore; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getAnswerId() { + return answerId; + } + + public void setAnswerId(Long answerId) { + this.answerId = answerId; + } + + public Long getEvaId() { + return evaId; + } + + public void setEvaId(Long evaId) { + this.evaId = evaId; + } + + public String getQuesCode() { + return quesCode; + } + + public void setQuesCode(String quesCode) { + this.quesCode = quesCode == null ? null : quesCode.trim(); + } + + public String getOptionCode() { + return optionCode; + } + + public void setOptionCode(String optionCode) { + this.optionCode = optionCode == null ? null : optionCode.trim(); + } + + public String getOptionName() { + return optionName; + } + + public void setOptionName(String optionName) { + this.optionName = optionName == null ? null : optionName.trim(); + } + + public BigDecimal getOptionScore() { + return optionScore; + } + + public void setOptionScore(BigDecimal optionScore) { + this.optionScore = optionScore; + } + + 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(", answerId=").append(answerId); + sb.append(", evaId=").append(evaId); + sb.append(", quesCode=").append(quesCode); + sb.append(", optionCode=").append(optionCode); + sb.append(", optionName=").append(optionName); + sb.append(", optionScore=").append(optionScore); + 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/ZytzEmsEvaAnswerExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswerExample.java new file mode 100644 index 00000000..a7380214 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswerExample.java @@ -0,0 +1,852 @@ +package com.acupuncture.system.domain.po; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzEmsEvaAnswerExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzEmsEvaAnswerExample() { + 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 andAnswerIdIsNull() { + addCriterion("answer_id is null"); + return (Criteria) this; + } + + public Criteria andAnswerIdIsNotNull() { + addCriterion("answer_id is not null"); + return (Criteria) this; + } + + public Criteria andAnswerIdEqualTo(Long value) { + addCriterion("answer_id =", value, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdNotEqualTo(Long value) { + addCriterion("answer_id <>", value, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdGreaterThan(Long value) { + addCriterion("answer_id >", value, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdGreaterThanOrEqualTo(Long value) { + addCriterion("answer_id >=", value, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdLessThan(Long value) { + addCriterion("answer_id <", value, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdLessThanOrEqualTo(Long value) { + addCriterion("answer_id <=", value, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdIn(List values) { + addCriterion("answer_id in", values, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdNotIn(List values) { + addCriterion("answer_id not in", values, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdBetween(Long value1, Long value2) { + addCriterion("answer_id between", value1, value2, "answerId"); + return (Criteria) this; + } + + public Criteria andAnswerIdNotBetween(Long value1, Long value2) { + addCriterion("answer_id not between", value1, value2, "answerId"); + 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 andQuesCodeIsNull() { + addCriterion("ques_code is null"); + return (Criteria) this; + } + + public Criteria andQuesCodeIsNotNull() { + addCriterion("ques_code is not null"); + return (Criteria) this; + } + + public Criteria andQuesCodeEqualTo(String value) { + addCriterion("ques_code =", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotEqualTo(String value) { + addCriterion("ques_code <>", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThan(String value) { + addCriterion("ques_code >", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThanOrEqualTo(String value) { + addCriterion("ques_code >=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThan(String value) { + addCriterion("ques_code <", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThanOrEqualTo(String value) { + addCriterion("ques_code <=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLike(String value) { + addCriterion("ques_code like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotLike(String value) { + addCriterion("ques_code not like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeIn(List values) { + addCriterion("ques_code in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotIn(List values) { + addCriterion("ques_code not in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeBetween(String value1, String value2) { + addCriterion("ques_code between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotBetween(String value1, String value2) { + addCriterion("ques_code not between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeIsNull() { + addCriterion("option_code is null"); + return (Criteria) this; + } + + public Criteria andOptionCodeIsNotNull() { + addCriterion("option_code is not null"); + return (Criteria) this; + } + + public Criteria andOptionCodeEqualTo(String value) { + addCriterion("option_code =", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotEqualTo(String value) { + addCriterion("option_code <>", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeGreaterThan(String value) { + addCriterion("option_code >", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeGreaterThanOrEqualTo(String value) { + addCriterion("option_code >=", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeLessThan(String value) { + addCriterion("option_code <", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeLessThanOrEqualTo(String value) { + addCriterion("option_code <=", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeLike(String value) { + addCriterion("option_code like", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotLike(String value) { + addCriterion("option_code not like", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeIn(List values) { + addCriterion("option_code in", values, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotIn(List values) { + addCriterion("option_code not in", values, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeBetween(String value1, String value2) { + addCriterion("option_code between", value1, value2, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotBetween(String value1, String value2) { + addCriterion("option_code not between", value1, value2, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionNameIsNull() { + addCriterion("option_name is null"); + return (Criteria) this; + } + + public Criteria andOptionNameIsNotNull() { + addCriterion("option_name is not null"); + return (Criteria) this; + } + + public Criteria andOptionNameEqualTo(String value) { + addCriterion("option_name =", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotEqualTo(String value) { + addCriterion("option_name <>", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameGreaterThan(String value) { + addCriterion("option_name >", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameGreaterThanOrEqualTo(String value) { + addCriterion("option_name >=", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameLessThan(String value) { + addCriterion("option_name <", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameLessThanOrEqualTo(String value) { + addCriterion("option_name <=", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameLike(String value) { + addCriterion("option_name like", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotLike(String value) { + addCriterion("option_name not like", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameIn(List values) { + addCriterion("option_name in", values, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotIn(List values) { + addCriterion("option_name not in", values, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameBetween(String value1, String value2) { + addCriterion("option_name between", value1, value2, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotBetween(String value1, String value2) { + addCriterion("option_name not between", value1, value2, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionScoreIsNull() { + addCriterion("option_score is null"); + return (Criteria) this; + } + + public Criteria andOptionScoreIsNotNull() { + addCriterion("option_score is not null"); + return (Criteria) this; + } + + public Criteria andOptionScoreEqualTo(BigDecimal value) { + addCriterion("option_score =", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreNotEqualTo(BigDecimal value) { + addCriterion("option_score <>", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreGreaterThan(BigDecimal value) { + addCriterion("option_score >", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("option_score >=", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreLessThan(BigDecimal value) { + addCriterion("option_score <", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreLessThanOrEqualTo(BigDecimal value) { + addCriterion("option_score <=", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreIn(List values) { + addCriterion("option_score in", values, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreNotIn(List values) { + addCriterion("option_score not in", values, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("option_score between", value1, value2, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("option_score not between", value1, value2, "optionScore"); + 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/ZytzQmsScale.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScale.java new file mode 100644 index 00000000..d32759ad --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScale.java @@ -0,0 +1,106 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class ZytzQmsScale implements Serializable { + private Long scaleId; + + private String scaleCode; + + private String scaleName; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getScaleId() { + return scaleId; + } + + public void setScaleId(Long scaleId) { + this.scaleId = scaleId; + } + + public String getScaleCode() { + return scaleCode; + } + + public void setScaleCode(String scaleCode) { + this.scaleCode = scaleCode == null ? null : scaleCode.trim(); + } + + public String getScaleName() { + return scaleName; + } + + public void setScaleName(String scaleName) { + this.scaleName = scaleName == null ? null : scaleName.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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", scaleId=").append(scaleId); + sb.append(", scaleCode=").append(scaleCode); + sb.append(", scaleName=").append(scaleName); + 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("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConsti.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConsti.java new file mode 100644 index 00000000..e499db6b --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConsti.java @@ -0,0 +1,117 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class ZytzQmsScaleConsti implements Serializable { + private Long constiId; + + private String scaleCode; + + private String constiCode; + + private String constiName; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getConstiId() { + return constiId; + } + + public void setConstiId(Long constiId) { + this.constiId = constiId; + } + + public String getScaleCode() { + return scaleCode; + } + + public void setScaleCode(String scaleCode) { + this.scaleCode = scaleCode == null ? null : scaleCode.trim(); + } + + 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 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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", constiId=").append(constiId); + sb.append(", scaleCode=").append(scaleCode); + sb.append(", constiCode=").append(constiCode); + sb.append(", constiName=").append(constiName); + 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("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiExample.java new file mode 100644 index 00000000..6b1317a7 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiExample.java @@ -0,0 +1,801 @@ +package com.acupuncture.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzQmsScaleConstiExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzQmsScaleConstiExample() { + 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 andConstiIdIsNull() { + addCriterion("consti_id is null"); + return (Criteria) this; + } + + public Criteria andConstiIdIsNotNull() { + addCriterion("consti_id is not null"); + return (Criteria) this; + } + + public Criteria andConstiIdEqualTo(Long value) { + addCriterion("consti_id =", value, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdNotEqualTo(Long value) { + addCriterion("consti_id <>", value, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdGreaterThan(Long value) { + addCriterion("consti_id >", value, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdGreaterThanOrEqualTo(Long value) { + addCriterion("consti_id >=", value, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdLessThan(Long value) { + addCriterion("consti_id <", value, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdLessThanOrEqualTo(Long value) { + addCriterion("consti_id <=", value, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdIn(List values) { + addCriterion("consti_id in", values, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdNotIn(List values) { + addCriterion("consti_id not in", values, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdBetween(Long value1, Long value2) { + addCriterion("consti_id between", value1, value2, "constiId"); + return (Criteria) this; + } + + public Criteria andConstiIdNotBetween(Long value1, Long value2) { + addCriterion("consti_id not between", value1, value2, "constiId"); + return (Criteria) this; + } + + public Criteria andScaleCodeIsNull() { + addCriterion("scale_code is null"); + return (Criteria) this; + } + + public Criteria andScaleCodeIsNotNull() { + addCriterion("scale_code is not null"); + return (Criteria) this; + } + + public Criteria andScaleCodeEqualTo(String value) { + addCriterion("scale_code =", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotEqualTo(String value) { + addCriterion("scale_code <>", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeGreaterThan(String value) { + addCriterion("scale_code >", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeGreaterThanOrEqualTo(String value) { + addCriterion("scale_code >=", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLessThan(String value) { + addCriterion("scale_code <", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLessThanOrEqualTo(String value) { + addCriterion("scale_code <=", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLike(String value) { + addCriterion("scale_code like", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotLike(String value) { + addCriterion("scale_code not like", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeIn(List values) { + addCriterion("scale_code in", values, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotIn(List values) { + addCriterion("scale_code not in", values, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeBetween(String value1, String value2) { + addCriterion("scale_code between", value1, value2, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotBetween(String value1, String value2) { + addCriterion("scale_code not between", value1, value2, "scaleCode"); + 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 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 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/ZytzQmsScaleConstiQuesRel.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRel.java new file mode 100644 index 00000000..a77c4572 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRel.java @@ -0,0 +1,117 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class ZytzQmsScaleConstiQuesRel implements Serializable { + private Long id; + + private String constiCode; + + private String quesCode; + + private Byte reverse; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getConstiCode() { + return constiCode; + } + + public void setConstiCode(String constiCode) { + this.constiCode = constiCode == null ? null : constiCode.trim(); + } + + public String getQuesCode() { + return quesCode; + } + + public void setQuesCode(String quesCode) { + this.quesCode = quesCode == null ? null : quesCode.trim(); + } + + public Byte getReverse() { + return reverse; + } + + public void setReverse(Byte reverse) { + this.reverse = reverse; + } + + 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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", constiCode=").append(constiCode); + sb.append(", quesCode=").append(quesCode); + sb.append(", reverse=").append(reverse); + 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("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRelExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRelExample.java new file mode 100644 index 00000000..6b66b9ce --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRelExample.java @@ -0,0 +1,791 @@ +package com.acupuncture.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzQmsScaleConstiQuesRelExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzQmsScaleConstiQuesRelExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 andQuesCodeIsNull() { + addCriterion("ques_code is null"); + return (Criteria) this; + } + + public Criteria andQuesCodeIsNotNull() { + addCriterion("ques_code is not null"); + return (Criteria) this; + } + + public Criteria andQuesCodeEqualTo(String value) { + addCriterion("ques_code =", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotEqualTo(String value) { + addCriterion("ques_code <>", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThan(String value) { + addCriterion("ques_code >", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThanOrEqualTo(String value) { + addCriterion("ques_code >=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThan(String value) { + addCriterion("ques_code <", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThanOrEqualTo(String value) { + addCriterion("ques_code <=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLike(String value) { + addCriterion("ques_code like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotLike(String value) { + addCriterion("ques_code not like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeIn(List values) { + addCriterion("ques_code in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotIn(List values) { + addCriterion("ques_code not in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeBetween(String value1, String value2) { + addCriterion("ques_code between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotBetween(String value1, String value2) { + addCriterion("ques_code not between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andReverseIsNull() { + addCriterion("reverse is null"); + return (Criteria) this; + } + + public Criteria andReverseIsNotNull() { + addCriterion("reverse is not null"); + return (Criteria) this; + } + + public Criteria andReverseEqualTo(Byte value) { + addCriterion("reverse =", value, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseNotEqualTo(Byte value) { + addCriterion("reverse <>", value, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseGreaterThan(Byte value) { + addCriterion("reverse >", value, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseGreaterThanOrEqualTo(Byte value) { + addCriterion("reverse >=", value, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseLessThan(Byte value) { + addCriterion("reverse <", value, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseLessThanOrEqualTo(Byte value) { + addCriterion("reverse <=", value, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseIn(List values) { + addCriterion("reverse in", values, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseNotIn(List values) { + addCriterion("reverse not in", values, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseBetween(Byte value1, Byte value2) { + addCriterion("reverse between", value1, value2, "reverse"); + return (Criteria) this; + } + + public Criteria andReverseNotBetween(Byte value1, Byte value2) { + addCriterion("reverse not between", value1, value2, "reverse"); + 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 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/ZytzQmsScaleConstiRefScore.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScore.java new file mode 100644 index 00000000..1068fbc7 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScore.java @@ -0,0 +1,129 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.math.BigDecimal; +import java.util.Date; + +public class ZytzQmsScaleConstiRefScore implements Serializable { + private Long id; + + private String constiCode; + + private BigDecimal refScoreYes; + + private BigDecimal refScoreMaybe; + + private BigDecimal fullScore; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getConstiCode() { + return constiCode; + } + + public void setConstiCode(String constiCode) { + this.constiCode = constiCode == null ? null : constiCode.trim(); + } + + public BigDecimal getRefScoreYes() { + return refScoreYes; + } + + public void setRefScoreYes(BigDecimal refScoreYes) { + this.refScoreYes = refScoreYes; + } + + public BigDecimal getRefScoreMaybe() { + return refScoreMaybe; + } + + public void setRefScoreMaybe(BigDecimal refScoreMaybe) { + this.refScoreMaybe = refScoreMaybe; + } + + public BigDecimal getFullScore() { + return fullScore; + } + + public void setFullScore(BigDecimal fullScore) { + this.fullScore = fullScore; + } + + 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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", constiCode=").append(constiCode); + sb.append(", refScoreYes=").append(refScoreYes); + sb.append(", refScoreMaybe=").append(refScoreMaybe); + sb.append(", fullScore=").append(fullScore); + 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("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScoreExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScoreExample.java new file mode 100644 index 00000000..fbd7f821 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScoreExample.java @@ -0,0 +1,842 @@ +package com.acupuncture.system.domain.po; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzQmsScaleConstiRefScoreExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzQmsScaleConstiRefScoreExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 andRefScoreYesIsNull() { + addCriterion("ref_score_yes is null"); + return (Criteria) this; + } + + public Criteria andRefScoreYesIsNotNull() { + addCriterion("ref_score_yes is not null"); + return (Criteria) this; + } + + public Criteria andRefScoreYesEqualTo(BigDecimal value) { + addCriterion("ref_score_yes =", value, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesNotEqualTo(BigDecimal value) { + addCriterion("ref_score_yes <>", value, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesGreaterThan(BigDecimal value) { + addCriterion("ref_score_yes >", value, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("ref_score_yes >=", value, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesLessThan(BigDecimal value) { + addCriterion("ref_score_yes <", value, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesLessThanOrEqualTo(BigDecimal value) { + addCriterion("ref_score_yes <=", value, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesIn(List values) { + addCriterion("ref_score_yes in", values, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesNotIn(List values) { + addCriterion("ref_score_yes not in", values, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("ref_score_yes between", value1, value2, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreYesNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("ref_score_yes not between", value1, value2, "refScoreYes"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeIsNull() { + addCriterion("ref_score_Maybe is null"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeIsNotNull() { + addCriterion("ref_score_Maybe is not null"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeEqualTo(BigDecimal value) { + addCriterion("ref_score_Maybe =", value, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeNotEqualTo(BigDecimal value) { + addCriterion("ref_score_Maybe <>", value, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeGreaterThan(BigDecimal value) { + addCriterion("ref_score_Maybe >", value, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("ref_score_Maybe >=", value, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeLessThan(BigDecimal value) { + addCriterion("ref_score_Maybe <", value, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeLessThanOrEqualTo(BigDecimal value) { + addCriterion("ref_score_Maybe <=", value, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeIn(List values) { + addCriterion("ref_score_Maybe in", values, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeNotIn(List values) { + addCriterion("ref_score_Maybe not in", values, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("ref_score_Maybe between", value1, value2, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andRefScoreMaybeNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("ref_score_Maybe not between", value1, value2, "refScoreMaybe"); + return (Criteria) this; + } + + public Criteria andFullScoreIsNull() { + addCriterion("full_score is null"); + return (Criteria) this; + } + + public Criteria andFullScoreIsNotNull() { + addCriterion("full_score is not null"); + return (Criteria) this; + } + + public Criteria andFullScoreEqualTo(BigDecimal value) { + addCriterion("full_score =", value, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreNotEqualTo(BigDecimal value) { + addCriterion("full_score <>", value, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreGreaterThan(BigDecimal value) { + addCriterion("full_score >", value, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("full_score >=", value, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreLessThan(BigDecimal value) { + addCriterion("full_score <", value, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreLessThanOrEqualTo(BigDecimal value) { + addCriterion("full_score <=", value, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreIn(List values) { + addCriterion("full_score in", values, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreNotIn(List values) { + addCriterion("full_score not in", values, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("full_score between", value1, value2, "fullScore"); + return (Criteria) this; + } + + public Criteria andFullScoreNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("full_score not between", value1, value2, "fullScore"); + 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 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/ZytzQmsScaleConstiYsfa.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfa.java new file mode 100644 index 00000000..c3204b23 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfa.java @@ -0,0 +1,106 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class ZytzQmsScaleConstiYsfa implements Serializable { + private Long id; + + private String constiCode; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private String constiYsfaTemplate; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getConstiCode() { + return constiCode; + } + + public void setConstiCode(String constiCode) { + this.constiCode = constiCode == null ? null : constiCode.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 getConstiYsfaTemplate() { + return constiYsfaTemplate; + } + + public void setConstiYsfaTemplate(String constiYsfaTemplate) { + this.constiYsfaTemplate = constiYsfaTemplate == null ? null : constiYsfaTemplate.trim(); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", constiCode=").append(constiCode); + 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(", constiYsfaTemplate=").append(constiYsfaTemplate); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfaExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfaExample.java new file mode 100644 index 00000000..fdb59c07 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfaExample.java @@ -0,0 +1,661 @@ +package com.acupuncture.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzQmsScaleConstiYsfaExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzQmsScaleConstiYsfaExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 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 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/ZytzQmsScaleExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleExample.java new file mode 100644 index 00000000..5d7cf77f --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleExample.java @@ -0,0 +1,731 @@ +package com.acupuncture.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzQmsScaleExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzQmsScaleExample() { + 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 andScaleIdIsNull() { + addCriterion("scale_id is null"); + return (Criteria) this; + } + + public Criteria andScaleIdIsNotNull() { + addCriterion("scale_id is not null"); + return (Criteria) this; + } + + public Criteria andScaleIdEqualTo(Long value) { + addCriterion("scale_id =", value, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdNotEqualTo(Long value) { + addCriterion("scale_id <>", value, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdGreaterThan(Long value) { + addCriterion("scale_id >", value, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdGreaterThanOrEqualTo(Long value) { + addCriterion("scale_id >=", value, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdLessThan(Long value) { + addCriterion("scale_id <", value, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdLessThanOrEqualTo(Long value) { + addCriterion("scale_id <=", value, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdIn(List values) { + addCriterion("scale_id in", values, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdNotIn(List values) { + addCriterion("scale_id not in", values, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdBetween(Long value1, Long value2) { + addCriterion("scale_id between", value1, value2, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleIdNotBetween(Long value1, Long value2) { + addCriterion("scale_id not between", value1, value2, "scaleId"); + return (Criteria) this; + } + + public Criteria andScaleCodeIsNull() { + addCriterion("scale_code is null"); + return (Criteria) this; + } + + public Criteria andScaleCodeIsNotNull() { + addCriterion("scale_code is not null"); + return (Criteria) this; + } + + public Criteria andScaleCodeEqualTo(String value) { + addCriterion("scale_code =", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotEqualTo(String value) { + addCriterion("scale_code <>", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeGreaterThan(String value) { + addCriterion("scale_code >", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeGreaterThanOrEqualTo(String value) { + addCriterion("scale_code >=", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLessThan(String value) { + addCriterion("scale_code <", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLessThanOrEqualTo(String value) { + addCriterion("scale_code <=", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLike(String value) { + addCriterion("scale_code like", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotLike(String value) { + addCriterion("scale_code not like", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeIn(List values) { + addCriterion("scale_code in", values, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotIn(List values) { + addCriterion("scale_code not in", values, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeBetween(String value1, String value2) { + addCriterion("scale_code between", value1, value2, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotBetween(String value1, String value2) { + addCriterion("scale_code not between", value1, value2, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleNameIsNull() { + addCriterion("scale_name is null"); + return (Criteria) this; + } + + public Criteria andScaleNameIsNotNull() { + addCriterion("scale_name is not null"); + return (Criteria) this; + } + + public Criteria andScaleNameEqualTo(String value) { + addCriterion("scale_name =", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameNotEqualTo(String value) { + addCriterion("scale_name <>", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameGreaterThan(String value) { + addCriterion("scale_name >", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameGreaterThanOrEqualTo(String value) { + addCriterion("scale_name >=", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameLessThan(String value) { + addCriterion("scale_name <", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameLessThanOrEqualTo(String value) { + addCriterion("scale_name <=", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameLike(String value) { + addCriterion("scale_name like", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameNotLike(String value) { + addCriterion("scale_name not like", value, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameIn(List values) { + addCriterion("scale_name in", values, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameNotIn(List values) { + addCriterion("scale_name not in", values, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameBetween(String value1, String value2) { + addCriterion("scale_name between", value1, value2, "scaleName"); + return (Criteria) this; + } + + public Criteria andScaleNameNotBetween(String value1, String value2) { + addCriterion("scale_name not between", value1, value2, "scaleName"); + 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 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/ZytzQmsScaleQuestion.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestion.java new file mode 100644 index 00000000..6b60bf21 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestion.java @@ -0,0 +1,139 @@ +package com.acupuncture.system.domain.po; + +import java.io.Serializable; +import java.util.Date; + +public class ZytzQmsScaleQuestion implements Serializable { + private Long quesId; + + private String scaleCode; + + private String quesCode; + + private Integer quesSort; + + private String quesName; + + private String genderApply; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getQuesId() { + return quesId; + } + + public void setQuesId(Long quesId) { + this.quesId = quesId; + } + + public String getScaleCode() { + return scaleCode; + } + + public void setScaleCode(String scaleCode) { + this.scaleCode = scaleCode == null ? null : scaleCode.trim(); + } + + public String getQuesCode() { + return quesCode; + } + + public void setQuesCode(String quesCode) { + this.quesCode = quesCode == null ? null : quesCode.trim(); + } + + public Integer getQuesSort() { + return quesSort; + } + + public void setQuesSort(Integer quesSort) { + this.quesSort = quesSort; + } + + public String getQuesName() { + return quesName; + } + + public void setQuesName(String quesName) { + this.quesName = quesName == null ? null : quesName.trim(); + } + + public String getGenderApply() { + return genderApply; + } + + public void setGenderApply(String genderApply) { + this.genderApply = genderApply == null ? null : genderApply.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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", quesId=").append(quesId); + sb.append(", scaleCode=").append(scaleCode); + sb.append(", quesCode=").append(quesCode); + sb.append(", quesSort=").append(quesSort); + sb.append(", quesName=").append(quesName); + sb.append(", genderApply=").append(genderApply); + 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("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionExample.java new file mode 100644 index 00000000..d1320080 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionExample.java @@ -0,0 +1,931 @@ +package com.acupuncture.system.domain.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzQmsScaleQuestionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzQmsScaleQuestionExample() { + 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 andQuesIdIsNull() { + addCriterion("ques_id is null"); + return (Criteria) this; + } + + public Criteria andQuesIdIsNotNull() { + addCriterion("ques_id is not null"); + return (Criteria) this; + } + + public Criteria andQuesIdEqualTo(Long value) { + addCriterion("ques_id =", value, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdNotEqualTo(Long value) { + addCriterion("ques_id <>", value, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdGreaterThan(Long value) { + addCriterion("ques_id >", value, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdGreaterThanOrEqualTo(Long value) { + addCriterion("ques_id >=", value, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdLessThan(Long value) { + addCriterion("ques_id <", value, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdLessThanOrEqualTo(Long value) { + addCriterion("ques_id <=", value, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdIn(List values) { + addCriterion("ques_id in", values, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdNotIn(List values) { + addCriterion("ques_id not in", values, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdBetween(Long value1, Long value2) { + addCriterion("ques_id between", value1, value2, "quesId"); + return (Criteria) this; + } + + public Criteria andQuesIdNotBetween(Long value1, Long value2) { + addCriterion("ques_id not between", value1, value2, "quesId"); + return (Criteria) this; + } + + public Criteria andScaleCodeIsNull() { + addCriterion("scale_code is null"); + return (Criteria) this; + } + + public Criteria andScaleCodeIsNotNull() { + addCriterion("scale_code is not null"); + return (Criteria) this; + } + + public Criteria andScaleCodeEqualTo(String value) { + addCriterion("scale_code =", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotEqualTo(String value) { + addCriterion("scale_code <>", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeGreaterThan(String value) { + addCriterion("scale_code >", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeGreaterThanOrEqualTo(String value) { + addCriterion("scale_code >=", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLessThan(String value) { + addCriterion("scale_code <", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLessThanOrEqualTo(String value) { + addCriterion("scale_code <=", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeLike(String value) { + addCriterion("scale_code like", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotLike(String value) { + addCriterion("scale_code not like", value, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeIn(List values) { + addCriterion("scale_code in", values, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotIn(List values) { + addCriterion("scale_code not in", values, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeBetween(String value1, String value2) { + addCriterion("scale_code between", value1, value2, "scaleCode"); + return (Criteria) this; + } + + public Criteria andScaleCodeNotBetween(String value1, String value2) { + addCriterion("scale_code not between", value1, value2, "scaleCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeIsNull() { + addCriterion("ques_code is null"); + return (Criteria) this; + } + + public Criteria andQuesCodeIsNotNull() { + addCriterion("ques_code is not null"); + return (Criteria) this; + } + + public Criteria andQuesCodeEqualTo(String value) { + addCriterion("ques_code =", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotEqualTo(String value) { + addCriterion("ques_code <>", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThan(String value) { + addCriterion("ques_code >", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThanOrEqualTo(String value) { + addCriterion("ques_code >=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThan(String value) { + addCriterion("ques_code <", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThanOrEqualTo(String value) { + addCriterion("ques_code <=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLike(String value) { + addCriterion("ques_code like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotLike(String value) { + addCriterion("ques_code not like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeIn(List values) { + addCriterion("ques_code in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotIn(List values) { + addCriterion("ques_code not in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeBetween(String value1, String value2) { + addCriterion("ques_code between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotBetween(String value1, String value2) { + addCriterion("ques_code not between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesSortIsNull() { + addCriterion("ques_sort is null"); + return (Criteria) this; + } + + public Criteria andQuesSortIsNotNull() { + addCriterion("ques_sort is not null"); + return (Criteria) this; + } + + public Criteria andQuesSortEqualTo(Integer value) { + addCriterion("ques_sort =", value, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortNotEqualTo(Integer value) { + addCriterion("ques_sort <>", value, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortGreaterThan(Integer value) { + addCriterion("ques_sort >", value, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortGreaterThanOrEqualTo(Integer value) { + addCriterion("ques_sort >=", value, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortLessThan(Integer value) { + addCriterion("ques_sort <", value, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortLessThanOrEqualTo(Integer value) { + addCriterion("ques_sort <=", value, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortIn(List values) { + addCriterion("ques_sort in", values, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortNotIn(List values) { + addCriterion("ques_sort not in", values, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortBetween(Integer value1, Integer value2) { + addCriterion("ques_sort between", value1, value2, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesSortNotBetween(Integer value1, Integer value2) { + addCriterion("ques_sort not between", value1, value2, "quesSort"); + return (Criteria) this; + } + + public Criteria andQuesNameIsNull() { + addCriterion("ques_name is null"); + return (Criteria) this; + } + + public Criteria andQuesNameIsNotNull() { + addCriterion("ques_name is not null"); + return (Criteria) this; + } + + public Criteria andQuesNameEqualTo(String value) { + addCriterion("ques_name =", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameNotEqualTo(String value) { + addCriterion("ques_name <>", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameGreaterThan(String value) { + addCriterion("ques_name >", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameGreaterThanOrEqualTo(String value) { + addCriterion("ques_name >=", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameLessThan(String value) { + addCriterion("ques_name <", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameLessThanOrEqualTo(String value) { + addCriterion("ques_name <=", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameLike(String value) { + addCriterion("ques_name like", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameNotLike(String value) { + addCriterion("ques_name not like", value, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameIn(List values) { + addCriterion("ques_name in", values, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameNotIn(List values) { + addCriterion("ques_name not in", values, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameBetween(String value1, String value2) { + addCriterion("ques_name between", value1, value2, "quesName"); + return (Criteria) this; + } + + public Criteria andQuesNameNotBetween(String value1, String value2) { + addCriterion("ques_name not between", value1, value2, "quesName"); + return (Criteria) this; + } + + public Criteria andGenderApplyIsNull() { + addCriterion("gender_apply is null"); + return (Criteria) this; + } + + public Criteria andGenderApplyIsNotNull() { + addCriterion("gender_apply is not null"); + return (Criteria) this; + } + + public Criteria andGenderApplyEqualTo(String value) { + addCriterion("gender_apply =", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyNotEqualTo(String value) { + addCriterion("gender_apply <>", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyGreaterThan(String value) { + addCriterion("gender_apply >", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyGreaterThanOrEqualTo(String value) { + addCriterion("gender_apply >=", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyLessThan(String value) { + addCriterion("gender_apply <", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyLessThanOrEqualTo(String value) { + addCriterion("gender_apply <=", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyLike(String value) { + addCriterion("gender_apply like", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyNotLike(String value) { + addCriterion("gender_apply not like", value, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyIn(List values) { + addCriterion("gender_apply in", values, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyNotIn(List values) { + addCriterion("gender_apply not in", values, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyBetween(String value1, String value2) { + addCriterion("gender_apply between", value1, value2, "genderApply"); + return (Criteria) this; + } + + public Criteria andGenderApplyNotBetween(String value1, String value2) { + addCriterion("gender_apply not between", value1, value2, "genderApply"); + 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 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/ZytzQmsScaleQuestionOption.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOption.java new file mode 100644 index 00000000..af227773 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOption.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 ZytzQmsScaleQuestionOption implements Serializable { + private Long optionId; + + private String quesCode; + + private String optionCode; + + private String optionName; + + private BigDecimal optionScore; + + private String optionSort; + + private String delFlag; + + private String createBy; + + private Date createTime; + + private String updateBy; + + private Date updateTime; + + private static final long serialVersionUID = 1L; + + public Long getOptionId() { + return optionId; + } + + public void setOptionId(Long optionId) { + this.optionId = optionId; + } + + public String getQuesCode() { + return quesCode; + } + + public void setQuesCode(String quesCode) { + this.quesCode = quesCode == null ? null : quesCode.trim(); + } + + public String getOptionCode() { + return optionCode; + } + + public void setOptionCode(String optionCode) { + this.optionCode = optionCode == null ? null : optionCode.trim(); + } + + public String getOptionName() { + return optionName; + } + + public void setOptionName(String optionName) { + this.optionName = optionName == null ? null : optionName.trim(); + } + + public BigDecimal getOptionScore() { + return optionScore; + } + + public void setOptionScore(BigDecimal optionScore) { + this.optionScore = optionScore; + } + + public String getOptionSort() { + return optionSort; + } + + public void setOptionSort(String optionSort) { + this.optionSort = optionSort == null ? null : optionSort.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; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", optionId=").append(optionId); + sb.append(", quesCode=").append(quesCode); + sb.append(", optionCode=").append(optionCode); + sb.append(", optionName=").append(optionName); + sb.append(", optionScore=").append(optionScore); + sb.append(", optionSort=").append(optionSort); + 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("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOptionExample.java b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOptionExample.java new file mode 100644 index 00000000..5ac0b738 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOptionExample.java @@ -0,0 +1,932 @@ +package com.acupuncture.system.domain.po; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ZytzQmsScaleQuestionOptionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ZytzQmsScaleQuestionOptionExample() { + 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 andOptionIdIsNull() { + addCriterion("option_id is null"); + return (Criteria) this; + } + + public Criteria andOptionIdIsNotNull() { + addCriterion("option_id is not null"); + return (Criteria) this; + } + + public Criteria andOptionIdEqualTo(Long value) { + addCriterion("option_id =", value, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdNotEqualTo(Long value) { + addCriterion("option_id <>", value, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdGreaterThan(Long value) { + addCriterion("option_id >", value, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdGreaterThanOrEqualTo(Long value) { + addCriterion("option_id >=", value, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdLessThan(Long value) { + addCriterion("option_id <", value, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdLessThanOrEqualTo(Long value) { + addCriterion("option_id <=", value, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdIn(List values) { + addCriterion("option_id in", values, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdNotIn(List values) { + addCriterion("option_id not in", values, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdBetween(Long value1, Long value2) { + addCriterion("option_id between", value1, value2, "optionId"); + return (Criteria) this; + } + + public Criteria andOptionIdNotBetween(Long value1, Long value2) { + addCriterion("option_id not between", value1, value2, "optionId"); + return (Criteria) this; + } + + public Criteria andQuesCodeIsNull() { + addCriterion("ques_code is null"); + return (Criteria) this; + } + + public Criteria andQuesCodeIsNotNull() { + addCriterion("ques_code is not null"); + return (Criteria) this; + } + + public Criteria andQuesCodeEqualTo(String value) { + addCriterion("ques_code =", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotEqualTo(String value) { + addCriterion("ques_code <>", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThan(String value) { + addCriterion("ques_code >", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeGreaterThanOrEqualTo(String value) { + addCriterion("ques_code >=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThan(String value) { + addCriterion("ques_code <", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLessThanOrEqualTo(String value) { + addCriterion("ques_code <=", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeLike(String value) { + addCriterion("ques_code like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotLike(String value) { + addCriterion("ques_code not like", value, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeIn(List values) { + addCriterion("ques_code in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotIn(List values) { + addCriterion("ques_code not in", values, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeBetween(String value1, String value2) { + addCriterion("ques_code between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andQuesCodeNotBetween(String value1, String value2) { + addCriterion("ques_code not between", value1, value2, "quesCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeIsNull() { + addCriterion("option_code is null"); + return (Criteria) this; + } + + public Criteria andOptionCodeIsNotNull() { + addCriterion("option_code is not null"); + return (Criteria) this; + } + + public Criteria andOptionCodeEqualTo(String value) { + addCriterion("option_code =", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotEqualTo(String value) { + addCriterion("option_code <>", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeGreaterThan(String value) { + addCriterion("option_code >", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeGreaterThanOrEqualTo(String value) { + addCriterion("option_code >=", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeLessThan(String value) { + addCriterion("option_code <", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeLessThanOrEqualTo(String value) { + addCriterion("option_code <=", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeLike(String value) { + addCriterion("option_code like", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotLike(String value) { + addCriterion("option_code not like", value, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeIn(List values) { + addCriterion("option_code in", values, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotIn(List values) { + addCriterion("option_code not in", values, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeBetween(String value1, String value2) { + addCriterion("option_code between", value1, value2, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionCodeNotBetween(String value1, String value2) { + addCriterion("option_code not between", value1, value2, "optionCode"); + return (Criteria) this; + } + + public Criteria andOptionNameIsNull() { + addCriterion("option_name is null"); + return (Criteria) this; + } + + public Criteria andOptionNameIsNotNull() { + addCriterion("option_name is not null"); + return (Criteria) this; + } + + public Criteria andOptionNameEqualTo(String value) { + addCriterion("option_name =", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotEqualTo(String value) { + addCriterion("option_name <>", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameGreaterThan(String value) { + addCriterion("option_name >", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameGreaterThanOrEqualTo(String value) { + addCriterion("option_name >=", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameLessThan(String value) { + addCriterion("option_name <", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameLessThanOrEqualTo(String value) { + addCriterion("option_name <=", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameLike(String value) { + addCriterion("option_name like", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotLike(String value) { + addCriterion("option_name not like", value, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameIn(List values) { + addCriterion("option_name in", values, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotIn(List values) { + addCriterion("option_name not in", values, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameBetween(String value1, String value2) { + addCriterion("option_name between", value1, value2, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionNameNotBetween(String value1, String value2) { + addCriterion("option_name not between", value1, value2, "optionName"); + return (Criteria) this; + } + + public Criteria andOptionScoreIsNull() { + addCriterion("option_score is null"); + return (Criteria) this; + } + + public Criteria andOptionScoreIsNotNull() { + addCriterion("option_score is not null"); + return (Criteria) this; + } + + public Criteria andOptionScoreEqualTo(BigDecimal value) { + addCriterion("option_score =", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreNotEqualTo(BigDecimal value) { + addCriterion("option_score <>", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreGreaterThan(BigDecimal value) { + addCriterion("option_score >", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreGreaterThanOrEqualTo(BigDecimal value) { + addCriterion("option_score >=", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreLessThan(BigDecimal value) { + addCriterion("option_score <", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreLessThanOrEqualTo(BigDecimal value) { + addCriterion("option_score <=", value, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreIn(List values) { + addCriterion("option_score in", values, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreNotIn(List values) { + addCriterion("option_score not in", values, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("option_score between", value1, value2, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionScoreNotBetween(BigDecimal value1, BigDecimal value2) { + addCriterion("option_score not between", value1, value2, "optionScore"); + return (Criteria) this; + } + + public Criteria andOptionSortIsNull() { + addCriterion("option_sort is null"); + return (Criteria) this; + } + + public Criteria andOptionSortIsNotNull() { + addCriterion("option_sort is not null"); + return (Criteria) this; + } + + public Criteria andOptionSortEqualTo(String value) { + addCriterion("option_sort =", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortNotEqualTo(String value) { + addCriterion("option_sort <>", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortGreaterThan(String value) { + addCriterion("option_sort >", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortGreaterThanOrEqualTo(String value) { + addCriterion("option_sort >=", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortLessThan(String value) { + addCriterion("option_sort <", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortLessThanOrEqualTo(String value) { + addCriterion("option_sort <=", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortLike(String value) { + addCriterion("option_sort like", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortNotLike(String value) { + addCriterion("option_sort not like", value, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortIn(List values) { + addCriterion("option_sort in", values, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortNotIn(List values) { + addCriterion("option_sort not in", values, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortBetween(String value1, String value2) { + addCriterion("option_sort between", value1, value2, "optionSort"); + return (Criteria) this; + } + + public Criteria andOptionSortNotBetween(String value1, String value2) { + addCriterion("option_sort not between", value1, value2, "optionSort"); + 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 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 new file mode 100644 index 00000000..6d2d3256 --- /dev/null +++ b/acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java @@ -0,0 +1,394 @@ +package com.acupuncture.system.domain.vo; + +import cn.hutool.core.collection.CollectionUtil; +import cn.hutool.core.date.DateUtil; +import cn.hutool.core.util.IdcardUtil; +import cn.hutool.core.util.StrUtil; +import lombok.Data; + +import java.math.BigDecimal; +import java.util.Comparator; +import java.util.Date; +import java.util.List; +import java.util.Objects; +import java.util.stream.Collectors; + +/** + * @Author zzc + * @Package com.acupuncture.system.domain.dto + * @Date 2025/2/11 15:05 + * @description: + */ +public class ZytzVo { + @Data + public static class PatientQuery { + private Long patientId; + private String name; + private Integer gender; + private String birthday; + private String idcard; + private String phone; + private String height; + private String weight; + private String waistline; + private List sickness; + + public Integer getAge() { + Integer age = null; + try { + if (StrUtil.isNotBlank(idcard) && IdcardUtil.isValidCard(idcard)) { + age = IdcardUtil.getAgeByIdCard(idcard); + } else if (StrUtil.isNotBlank(birthday)) { + age = DateUtil.ageOfNow(DateUtil.parse(birthday)); + } + } catch (Exception ignored) { + } + return age; + } + } + + @Data + public static class PatientSaveOrUpdate { + private Long patientId; + private String name; + private Integer gender; + private String birthday; + private String idcard; + private String phone; + private String height; + private String weight; + private String waistline; + private List sickness; + + public Integer getAge() { + Integer age = null; + try { + if (StrUtil.isNotBlank(idcard) && IdcardUtil.isValidCard(idcard)) { + age = IdcardUtil.getAgeByIdCard(idcard); + } else if (StrUtil.isNotBlank(birthday)) { + age = DateUtil.ageOfNow(DateUtil.parse(birthday)); + } + } catch (Exception ignored) { + } + return age; + } + } + + @Data + public static class EvaSave { + private Long evaId; + private Long patientId; + private String scaleCode; + private String scaleName; + private Integer evaStatus; + } + + @Data + public static class EvaQuestionList { + private Long evaId; + private Long patientId; + private String scaleCode; + private String scaleName; + private Integer evaStatus; + private List questions; + + @Data + public static class Question { + private String quesCode; + private String quesName; + private String quesSort; + private List
-
-
-
-
-
-
-
+ + + + + + + + +
+
+
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