Compare commits
3 Commits
49150450ef
...
f2cc04d640
Author | SHA1 | Date |
---|---|---|
|
f2cc04d640 | 3 months ago |
|
902facda2c | 3 months ago |
|
a00f5a6c5b | 3 months ago |
55 changed files with 16794 additions and 2 deletions
@ -0,0 +1,87 @@ |
|||
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; |
|||
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<String> getZytzQrcode(@RequestBody @Validated BaseDto<ZytzDto.ZytzQrcode> dto){ |
|||
Long tenantId = SecurityUtils.getTenantId(); |
|||
if(tenantId == null){ |
|||
throw new BaseException("未找到tenantId"); |
|||
} |
|||
return JsonResponse.ok(zytzService.getZytzQrcode(dto.getParam(), tenantId)); |
|||
} |
|||
|
|||
/** |
|||
* 查询测评题目及选项 |
|||
*/ |
|||
@Anonymous |
|||
@PostMapping("/questions/list") |
|||
public JsonResponse<ZytzVo.EvaQuestionList> evaQuestionList(@Validated @RequestBody BaseDto<ZytzDto.EvaQuestionList> dto) { |
|||
return JsonResponse.ok(zytzService.evaQuestionList(dto.getParam())); |
|||
} |
|||
|
|||
/** |
|||
* 提交测评 |
|||
*/ |
|||
@Anonymous |
|||
@PostMapping("/questions/submit") |
|||
public JsonResponse<Integer> evaQuestionSubmit(@Validated @RequestBody BaseDto<ZytzDto.EvaQuestionSubmit> dto) { |
|||
return JsonResponse.ok(zytzService.evaQuestionSubmit(dto.getParam())); |
|||
} |
|||
|
|||
/** |
|||
* 完成测评(生成报告单) |
|||
* @param dto |
|||
* @return |
|||
*/ |
|||
@Anonymous |
|||
@PostMapping("/eva/complete") |
|||
public JsonResponse<Integer> evaComplete(@Validated @RequestBody BaseDto<ZytzDto.EvaComplete> dto) { |
|||
return JsonResponse.ok(zytzService.evaComplete(dto.getParam())); |
|||
} |
|||
|
|||
/** |
|||
* 查看报告单 |
|||
* @param dto |
|||
* @return |
|||
*/ |
|||
@Anonymous |
|||
@PostMapping("/report/view") |
|||
public JsonResponse<ZytzVo.ReportView> reportView(@Validated @RequestBody BaseDto<ZytzDto.ReportView> dto) { |
|||
return JsonResponse.ok(zytzService.reportView(dto.getParam())); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,172 @@ |
|||
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; |
|||
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; |
|||
//路径
|
|||
@NotNull(message = "path不能为空") |
|||
private String path; |
|||
//是否总是重新生成(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<String> 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<Question> 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<Long> evaIds ; |
|||
} |
|||
} |
@ -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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzEmsEvaAnswerExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria 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<Long> values) { |
|||
addCriterion("answer_id in", values, "answerId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIdNotIn(List<Long> 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<Long> values) { |
|||
addCriterion("eva_id in", values, "evaId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEvaIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("ques_code in", values, "quesCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuesCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("option_code in", values, "optionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("option_name in", values, "optionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionNameNotIn(List<String> 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<BigDecimal> values) { |
|||
addCriterion("option_score in", values, "optionScore"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionScoreNotIn(List<BigDecimal> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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(); |
|||
} |
|||
} |
@ -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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzQmsScaleConstiExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria 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<Long> values) { |
|||
addCriterion("consti_id in", values, "constiId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("scale_code in", values, "scaleCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScaleCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("consti_code in", values, "constiCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("consti_name in", values, "constiName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiNameNotIn(List<String> 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<String> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzQmsScaleConstiQuesRelExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria 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<String> values) { |
|||
addCriterion("consti_code in", values, "constiCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("ques_code in", values, "quesCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuesCodeNotIn(List<String> 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<Byte> values) { |
|||
addCriterion("reverse in", values, "reverse"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReverseNotIn(List<Byte> 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<String> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzQmsScaleConstiRefScoreExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria 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<String> values) { |
|||
addCriterion("consti_code in", values, "constiCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiCodeNotIn(List<String> 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<BigDecimal> values) { |
|||
addCriterion("ref_score_yes in", values, "refScoreYes"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRefScoreYesNotIn(List<BigDecimal> 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<BigDecimal> values) { |
|||
addCriterion("ref_score_Maybe in", values, "refScoreMaybe"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRefScoreMaybeNotIn(List<BigDecimal> 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<BigDecimal> values) { |
|||
addCriterion("full_score in", values, "fullScore"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullScoreNotIn(List<BigDecimal> 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<String> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzQmsScaleConstiYsfaExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria 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<String> values) { |
|||
addCriterion("consti_code in", values, "constiCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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<Criteria> oredCriteria; |
|||
|
|||
public ZytzQmsScaleExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria 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<Long> values) { |
|||
addCriterion("scale_id in", values, "scaleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScaleIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("scale_code in", values, "scaleCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScaleCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("scale_name in", values, "scaleName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScaleNameNotIn(List<String> 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<String> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,139 @@ |
|||
package com.acupuncture.system.domain.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class 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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzQmsScaleQuestionExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria 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<Long> values) { |
|||
addCriterion("ques_id in", values, "quesId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuesIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("scale_code in", values, "scaleCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andScaleCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("ques_code in", values, "quesCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuesCodeNotIn(List<String> 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<Integer> values) { |
|||
addCriterion("ques_sort in", values, "quesSort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuesSortNotIn(List<Integer> 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<String> values) { |
|||
addCriterion("ques_name in", values, "quesName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuesNameNotIn(List<String> 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<String> values) { |
|||
addCriterion("gender_apply in", values, "genderApply"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderApplyNotIn(List<String> 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<String> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzQmsScaleQuestionOptionExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria 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<Long> values) { |
|||
addCriterion("option_id in", values, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("ques_code in", values, "quesCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuesCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("option_code in", values, "optionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("option_name in", values, "optionName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionNameNotIn(List<String> 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<BigDecimal> values) { |
|||
addCriterion("option_score in", values, "optionScore"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionScoreNotIn(List<BigDecimal> 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<String> values) { |
|||
addCriterion("option_sort in", values, "optionSort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionSortNotIn(List<String> 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<String> values) { |
|||
addCriterion("del_flag in", values, "delFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDelFlagNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzRmsReportResultExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria 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<Long> values) { |
|||
addCriterion("result_id in", values, "resultId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andResultIdNotIn(List<Long> 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<Long> values) { |
|||
addCriterion("report_id in", values, "reportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReportIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("consti_code in", values, "constiCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("consti_name in", values, "constiName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiNameNotIn(List<String> 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<String> values) { |
|||
addCriterion("consti_level in", values, "constiLevel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiLevelNotIn(List<String> 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<BigDecimal> values) { |
|||
addCriterion("consti_score in", values, "constiScore"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiScoreNotIn(List<BigDecimal> 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<Integer> values) { |
|||
addCriterion("main_flag in", values, "mainFlag"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andMainFlagNotIn(List<Integer> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,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(); |
|||
} |
|||
} |
@ -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<Criteria> oredCriteria; |
|||
|
|||
public ZytzRmsReportYsjyExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria 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<Long> values) { |
|||
addCriterion("ysjy_id in", values, "ysjyId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andYsjyIdNotIn(List<Long> 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<Long> values) { |
|||
addCriterion("report_id in", values, "reportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andReportIdNotIn(List<Long> 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<String> values) { |
|||
addCriterion("consti_code in", values, "constiCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiCodeNotIn(List<String> 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<String> values) { |
|||
addCriterion("consti_name in", values, "constiName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConstiNameNotIn(List<String> 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<String> values) { |
|||
addCriterion("create_by in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotIn(List<String> values) { |
|||
addCriterion("create_by not in", values, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByBetween(String value1, String value2) { |
|||
addCriterion("create_by between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateByNotBetween(String value1, String value2) { |
|||
addCriterion("create_by not between", value1, value2, "createBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNull() { |
|||
addCriterion("update_by is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIsNotNull() { |
|||
addCriterion("update_by is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByEqualTo(String value) { |
|||
addCriterion("update_by =", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotEqualTo(String value) { |
|||
addCriterion("update_by <>", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThan(String value) { |
|||
addCriterion("update_by >", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
|||
addCriterion("update_by >=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThan(String value) { |
|||
addCriterion("update_by <", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
|||
addCriterion("update_by <=", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByLike(String value) { |
|||
addCriterion("update_by like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotLike(String value) { |
|||
addCriterion("update_by not like", value, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByIn(List<String> values) { |
|||
addCriterion("update_by in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotIn(List<String> values) { |
|||
addCriterion("update_by not in", values, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByBetween(String value1, String value2) { |
|||
addCriterion("update_by between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateByNotBetween(String value1, String value2) { |
|||
addCriterion("update_by not between", value1, value2, "updateBy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,423 @@ |
|||
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<String> 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<String> 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<Question> questions; |
|||
|
|||
@Data |
|||
public static class Question { |
|||
private String quesCode; |
|||
private String quesName; |
|||
private String quesSort; |
|||
private List<Option> options; |
|||
|
|||
@Data |
|||
public static class Option { |
|||
private String optionCode; |
|||
private String optionName; |
|||
private String optionScore; |
|||
private String optionSort; |
|||
private String optionChecked; |
|||
} |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
public static class ReportView { |
|||
//报告单信息
|
|||
private Long reportId; |
|||
|
|||
//患者信息
|
|||
private Long patientId; |
|||
private String name; |
|||
private Integer gender; |
|||
private String birthday; |
|||
private String age; |
|||
private String height; |
|||
private String weight; |
|||
private String waistline; |
|||
private String idcard; |
|||
private String phone; |
|||
|
|||
//测评信息
|
|||
private Long evaId; |
|||
private Date evaTime; |
|||
private String evaUsername; |
|||
private String evaNickname; |
|||
private String evaScaleCode; |
|||
private String evaScaleName; |
|||
private String blh; |
|||
|
|||
//分数明细
|
|||
private List<Score> scores; |
|||
//养生方案
|
|||
private List<Ysfa> ysfa; |
|||
//测评结论
|
|||
private String result; |
|||
//主体质
|
|||
private String result1; |
|||
//兼夹体质
|
|||
private String result2; |
|||
|
|||
@Data |
|||
public static class Score { |
|||
private String constiCode; |
|||
private String constiName; |
|||
private String constiLevel; |
|||
private String constiScore; |
|||
private Integer mainFlag; |
|||
//参考分数(是)
|
|||
private String refScoreYes; |
|||
//参考分数(倾向是)
|
|||
private String refScoreMaybe; |
|||
//满分
|
|||
private String fullScore; |
|||
|
|||
public String getConstiScore() { |
|||
if (constiScore != null && new BigDecimal(constiScore).compareTo(BigDecimal.ZERO) < 0) { |
|||
return "0.00"; |
|||
} |
|||
return constiScore; |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
public static class Ysfa { |
|||
private String constiCode; |
|||
private String constiName; |
|||
private String ysjy; |
|||
} |
|||
|
|||
public String getResult() { |
|||
if (CollectionUtil.isEmpty(scores)) { |
|||
return ""; |
|||
} |
|||
|
|||
StringBuilder result = new StringBuilder(); |
|||
String yesStr = "", jbsStr = "", qxsStr = ""; |
|||
|
|||
//拼接三部分字符串(是,基本是,倾向是)
|
|||
for (Score score : scores) { |
|||
if (score.getConstiLevel().equals("00")) { |
|||
yesStr = yesStr + score.getConstiName() + "、"; |
|||
} |
|||
if (score.getConstiLevel().equals("10")) { |
|||
jbsStr = jbsStr + score.getConstiName() + "、"; |
|||
} |
|||
if (score.getConstiLevel().equals("11")) { |
|||
qxsStr = qxsStr + score.getConstiName() + "、"; |
|||
} |
|||
} |
|||
//去掉尾部,
|
|||
if (StrUtil.isNotBlank(yesStr)) { |
|||
yesStr = yesStr.substring(0, yesStr.length() - 1); |
|||
} |
|||
if (StrUtil.isNotBlank(jbsStr)) { |
|||
jbsStr = jbsStr.substring(0, jbsStr.length() - 1); |
|||
} |
|||
if (StrUtil.isNotBlank(qxsStr)) { |
|||
qxsStr = qxsStr.substring(0, qxsStr.length() - 1); |
|||
} |
|||
|
|||
//拼接
|
|||
result.append(StrUtil.isNotBlank(yesStr) ? "【" + yesStr + "】 " : "") |
|||
.append(StrUtil.isNotBlank(jbsStr) ? "基本是【" + yesStr + "】 " : "") |
|||
.append(StrUtil.isNotBlank(qxsStr) ? "有 【" + qxsStr + "】 倾向 " : ""); |
|||
|
|||
return result.toString(); |
|||
} |
|||
|
|||
// public String getResult() {
|
|||
// if (CollectionUtil.isEmpty(scores)) {
|
|||
// return "";
|
|||
// }
|
|||
//
|
|||
// //找到主体质
|
|||
// Score mainSCore = null;
|
|||
// for (Score score : scores) {
|
|||
// if (score.getMainFlag() == 1) {
|
|||
// mainSCore = score;
|
|||
// }
|
|||
// }
|
|||
// if (mainSCore == null) {
|
|||
// return "";
|
|||
// }
|
|||
// if (Objects.equals(mainSCore.getConstiLevel(), "00")) {
|
|||
// return "【" + mainSCore.getConstiName() + "】";
|
|||
// } else if (Objects.equals(mainSCore.getConstiLevel(), "10")) {
|
|||
// return "基本是【" + mainSCore.getConstiName() + "】";
|
|||
// } else if (Objects.equals(mainSCore.getConstiLevel(), "11")) {
|
|||
// return "倾向是【" + mainSCore.getConstiName() + "】";
|
|||
// } else {
|
|||
// return "";
|
|||
// }
|
|||
// }
|
|||
|
|||
public String getResult1() { |
|||
if (CollectionUtil.isEmpty(scores)) { |
|||
return ""; |
|||
} |
|||
scores = scores.stream().filter(e -> e.getMainFlag() != null).collect(Collectors.toList()); |
|||
//找到主体质
|
|||
Score mainSCore = null; |
|||
for (Score score : scores) { |
|||
if (score.getMainFlag() == 1) { |
|||
mainSCore = score; |
|||
} |
|||
} |
|||
if (mainSCore == null) { |
|||
return ""; |
|||
} |
|||
if (Objects.equals(mainSCore.getConstiLevel(), "00")) { |
|||
return "【" + mainSCore.getConstiName() + "】"; |
|||
} else if (Objects.equals(mainSCore.getConstiLevel(), "10")) { |
|||
return "基本是【" + mainSCore.getConstiName() + "】"; |
|||
} else if (Objects.equals(mainSCore.getConstiLevel(), "11")) { |
|||
return "倾向是【" + mainSCore.getConstiName() + "】"; |
|||
} else { |
|||
return ""; |
|||
} |
|||
} |
|||
|
|||
public String getResult2() { |
|||
if (CollectionUtil.isEmpty(scores)) { |
|||
return ""; |
|||
} |
|||
|
|||
scores = scores.stream().filter(e -> e.getMainFlag() != null).collect(Collectors.toList()); |
|||
|
|||
//找到兼夹体质并按照分数从大到小排序
|
|||
List<Score> jianjiaScores = scores.stream().filter(score -> score.getMainFlag() == 2).sorted(Comparator.comparing(Score::getConstiScore).reversed()) |
|||
.collect(Collectors.toList()); |
|||
StringBuilder res = new StringBuilder(); |
|||
for (Score score : jianjiaScores) { |
|||
if (Objects.equals(score.getConstiLevel(), "00")) { |
|||
res.append("【" + score.getConstiName() + "】"); |
|||
} else if (Objects.equals(score.getConstiLevel(), "10")) { |
|||
res.append("基本是【" + score.getConstiName() + "】"); |
|||
} else if (Objects.equals(score.getConstiLevel(), "11")) { |
|||
res.append("倾向是【" + score.getConstiName() + "】"); |
|||
} else { |
|||
res.append(""); |
|||
} |
|||
res.append("、"); |
|||
} |
|||
//去掉尾部
|
|||
if (StrUtil.isNotBlank(res.toString())) { |
|||
res = new StringBuilder(res.substring(0, res.length() - 1)); |
|||
} |
|||
return res.toString(); |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
public static class EvaList { |
|||
//报告单信息
|
|||
private Long reportId; |
|||
|
|||
//患者信息
|
|||
private Long patientId; |
|||
private String name; |
|||
private Integer gender; |
|||
private String birthday; |
|||
private String age; |
|||
private String height; |
|||
private String weight; |
|||
private String waistline; |
|||
private String idcard; |
|||
private String phone; |
|||
|
|||
//测评信息
|
|||
private Long evaId; |
|||
private Date evaTime; |
|||
private String evaUsername; |
|||
private String evaNickname; |
|||
private String evaScaleCode; |
|||
private String evaScaleName; |
|||
private Integer evaStatus; |
|||
private String blh; |
|||
|
|||
//分数明细
|
|||
private List<Score> scores; |
|||
//测评结论
|
|||
private String result; |
|||
|
|||
@Data |
|||
public static class Score { |
|||
private String constiCode; |
|||
private String constiName; |
|||
private String constiLevel; |
|||
private String constiScore; |
|||
private Integer mainFlag; |
|||
//参考分数(是)
|
|||
private String refScoreYes; |
|||
//参考分数(倾向是)
|
|||
private String refScoreMaybe; |
|||
//满分
|
|||
private String fullScore; |
|||
|
|||
public String getConstiScore() { |
|||
if (constiScore != null && new BigDecimal(constiScore).compareTo(BigDecimal.ZERO) < 0) { |
|||
return "0.00"; |
|||
} |
|||
return constiScore; |
|||
} |
|||
} |
|||
|
|||
public String getResult() { |
|||
if (CollectionUtil.isEmpty(scores)) { |
|||
return ""; |
|||
} |
|||
|
|||
StringBuilder result = new StringBuilder(); |
|||
String yesStr = "", jbsStr = "", qxsStr = ""; |
|||
|
|||
//拼接三部分字符串(是,基本是,倾向是)
|
|||
for (Score score : scores) { |
|||
if (score.getConstiLevel().equals("00")) { |
|||
yesStr = yesStr + score.getConstiName() + "、"; |
|||
} |
|||
if (score.getConstiLevel().equals("10")) { |
|||
jbsStr = jbsStr + score.getConstiName() + "、"; |
|||
} |
|||
if (score.getConstiLevel().equals("11")) { |
|||
qxsStr = qxsStr + score.getConstiName() + "、"; |
|||
} |
|||
} |
|||
//去掉尾部,
|
|||
if (StrUtil.isNotBlank(yesStr)) { |
|||
yesStr = yesStr.substring(0, yesStr.length() - 1); |
|||
} |
|||
if (StrUtil.isNotBlank(jbsStr)) { |
|||
jbsStr = jbsStr.substring(0, jbsStr.length() - 1); |
|||
} |
|||
if (StrUtil.isNotBlank(qxsStr)) { |
|||
qxsStr = qxsStr.substring(0, qxsStr.length() - 1); |
|||
} |
|||
|
|||
//拼接
|
|||
result.append(StrUtil.isNotBlank(yesStr) ? "【" + yesStr + "】 " : "") |
|||
.append(StrUtil.isNotBlank(jbsStr) ? "基本是【" + yesStr + "】 " : "") |
|||
.append(StrUtil.isNotBlank(qxsStr) ? "有 【" + qxsStr + "】 倾向 " : ""); |
|||
|
|||
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; |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,133 @@ |
|||
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; |
|||
|
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @Author zzc |
|||
* @Package com.acupuncture.system.persist.dao |
|||
* @Date 2025/2/10 9:48 |
|||
* @description: |
|||
*/ |
|||
public interface ZytzDao { |
|||
/** |
|||
* 查找患者列表 |
|||
* |
|||
* @param patientId |
|||
* @return |
|||
* @Param deptId |
|||
* @Param keywords |
|||
*/ |
|||
// List<ZytzVo.PatientQuery> patientQuery(@Param("deptId") Long deptId,
|
|||
// @Param("keywords") String keywords,
|
|||
// @Param("patientId") Long patientId);
|
|||
|
|||
/** |
|||
* 根据patientId查询sickness |
|||
* |
|||
* @param patientId |
|||
* @return |
|||
*/ |
|||
//List<String> querySicknessByPatientId(@Param("patientId") Long patientId);
|
|||
|
|||
/** |
|||
* 批量插入sickness |
|||
* |
|||
* @param pmsPatientSicknessList |
|||
*/ |
|||
//void batchInsertSickness(@Param("list") List<PmsPatientSickness> pmsPatientSicknessList);
|
|||
|
|||
/** |
|||
* 查询问题、选项及答案 |
|||
* |
|||
* @param evaId |
|||
* @return |
|||
*/ |
|||
ZytzVo.EvaQuestionList evaQuestionList(@Param("evaId") Long evaId); |
|||
|
|||
/** |
|||
* 批量插入answer |
|||
* |
|||
* @param answerList |
|||
* @return |
|||
*/ |
|||
void batchInsertAnswer(@Param("list") List<ZytzEmsEvaAnswer> answerList); |
|||
|
|||
/** |
|||
* 批量插入reportResult |
|||
* |
|||
* @param reportResultList |
|||
*/ |
|||
void batchInsertReportResult(@Param("list") List<ZytzRmsReportResult> reportResultList); |
|||
|
|||
/** |
|||
* 查询测评分数 |
|||
* |
|||
* @param evaId |
|||
* @return |
|||
*/ |
|||
List<ZytzVo.EvaResult> countReportResult(@Param("evaId") Long evaId); |
|||
|
|||
/** |
|||
* 查询养生建议 |
|||
* |
|||
* @param constiCode |
|||
* @param deptId |
|||
* @return |
|||
*/ |
|||
// String queryYsjy(@Param("constiCode") String constiCode, @Param("deptId") Long deptId);
|
|||
|
|||
/** |
|||
* 查询报告单 |
|||
* |
|||
* @param evaId |
|||
* @return |
|||
*/ |
|||
ZytzVo.ReportView reportView(@Param("evaId") Long evaId); |
|||
|
|||
/** |
|||
* 查询测评列表 |
|||
* |
|||
* @param deptId |
|||
* @param keywords |
|||
* @param scaleCode |
|||
* @param evaStatus |
|||
* @param gender |
|||
* @param ageMin |
|||
* @param ageMax |
|||
* @param evaDateMin |
|||
* @param evaDateMax |
|||
* @return |
|||
*/ |
|||
// List<ZytzVo.EvaList> queryEvaList(@Param("deptId") Long deptId,
|
|||
// @Param("keywords") String keywords,
|
|||
// @Param("scaleCode") String scaleCode,
|
|||
// @Param("evaStatus") Integer evaStatus,
|
|||
// @Param("gender") Integer gender,
|
|||
// @Param("ageMin") Integer ageMin,
|
|||
// @Param("ageMax") Integer ageMax,
|
|||
// @Param("evaDateMin") Date evaDateMin,
|
|||
// @Param("evaDateMax") Date evaDateMax);
|
|||
|
|||
/** |
|||
* 查询报告单分数 |
|||
* |
|||
* @param reportId |
|||
* @return |
|||
*/ |
|||
// List<ZytzVo.EvaList.Score> queryReportScores(@Param("reportId") Long reportId);
|
|||
|
|||
/** |
|||
* 删除 |
|||
* @param evaIds |
|||
* @return |
|||
*/ |
|||
// Integer deleteEvas(@Param("ids") List<Long> evaIds);
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzEmsEvaAnswer; |
|||
import com.acupuncture.system.domain.po.ZytzEmsEvaAnswerExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzEmsEvaAnswerMapper { |
|||
long countByExample(ZytzEmsEvaAnswerExample example); |
|||
|
|||
int deleteByPrimaryKey(Long answerId); |
|||
|
|||
int insert(ZytzEmsEvaAnswer record); |
|||
|
|||
int insertSelective(ZytzEmsEvaAnswer record); |
|||
|
|||
List<ZytzEmsEvaAnswer> selectByExample(ZytzEmsEvaAnswerExample example); |
|||
|
|||
ZytzEmsEvaAnswer selectByPrimaryKey(Long answerId); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzEmsEvaAnswer record, @Param("example") ZytzEmsEvaAnswerExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzEmsEvaAnswer record, @Param("example") ZytzEmsEvaAnswerExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzEmsEvaAnswer record); |
|||
|
|||
int updateByPrimaryKey(ZytzEmsEvaAnswer record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConsti; |
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzQmsScaleConstiMapper { |
|||
long countByExample(ZytzQmsScaleConstiExample example); |
|||
|
|||
int deleteByPrimaryKey(Long constiId); |
|||
|
|||
int insert(ZytzQmsScaleConsti record); |
|||
|
|||
int insertSelective(ZytzQmsScaleConsti record); |
|||
|
|||
List<ZytzQmsScaleConsti> selectByExample(ZytzQmsScaleConstiExample example); |
|||
|
|||
ZytzQmsScaleConsti selectByPrimaryKey(Long constiId); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzQmsScaleConsti record, @Param("example") ZytzQmsScaleConstiExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzQmsScaleConsti record, @Param("example") ZytzQmsScaleConstiExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzQmsScaleConsti record); |
|||
|
|||
int updateByPrimaryKey(ZytzQmsScaleConsti record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRel; |
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRelExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzQmsScaleConstiQuesRelMapper { |
|||
long countByExample(ZytzQmsScaleConstiQuesRelExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ZytzQmsScaleConstiQuesRel record); |
|||
|
|||
int insertSelective(ZytzQmsScaleConstiQuesRel record); |
|||
|
|||
List<ZytzQmsScaleConstiQuesRel> selectByExample(ZytzQmsScaleConstiQuesRelExample example); |
|||
|
|||
ZytzQmsScaleConstiQuesRel selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzQmsScaleConstiQuesRel record, @Param("example") ZytzQmsScaleConstiQuesRelExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzQmsScaleConstiQuesRel record, @Param("example") ZytzQmsScaleConstiQuesRelExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzQmsScaleConstiQuesRel record); |
|||
|
|||
int updateByPrimaryKey(ZytzQmsScaleConstiQuesRel record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScore; |
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScoreExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzQmsScaleConstiRefScoreMapper { |
|||
long countByExample(ZytzQmsScaleConstiRefScoreExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ZytzQmsScaleConstiRefScore record); |
|||
|
|||
int insertSelective(ZytzQmsScaleConstiRefScore record); |
|||
|
|||
List<ZytzQmsScaleConstiRefScore> selectByExample(ZytzQmsScaleConstiRefScoreExample example); |
|||
|
|||
ZytzQmsScaleConstiRefScore selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzQmsScaleConstiRefScore record, @Param("example") ZytzQmsScaleConstiRefScoreExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzQmsScaleConstiRefScore record, @Param("example") ZytzQmsScaleConstiRefScoreExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzQmsScaleConstiRefScore record); |
|||
|
|||
int updateByPrimaryKey(ZytzQmsScaleConstiRefScore record); |
|||
} |
@ -0,0 +1,34 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa; |
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfaExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzQmsScaleConstiYsfaMapper { |
|||
long countByExample(ZytzQmsScaleConstiYsfaExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ZytzQmsScaleConstiYsfa record); |
|||
|
|||
int insertSelective(ZytzQmsScaleConstiYsfa record); |
|||
|
|||
List<ZytzQmsScaleConstiYsfa> selectByExampleWithBLOBs(ZytzQmsScaleConstiYsfaExample example); |
|||
|
|||
List<ZytzQmsScaleConstiYsfa> selectByExample(ZytzQmsScaleConstiYsfaExample example); |
|||
|
|||
ZytzQmsScaleConstiYsfa selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzQmsScaleConstiYsfa record, @Param("example") ZytzQmsScaleConstiYsfaExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") ZytzQmsScaleConstiYsfa record, @Param("example") ZytzQmsScaleConstiYsfaExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzQmsScaleConstiYsfa record, @Param("example") ZytzQmsScaleConstiYsfaExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzQmsScaleConstiYsfa record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(ZytzQmsScaleConstiYsfa record); |
|||
|
|||
int updateByPrimaryKey(ZytzQmsScaleConstiYsfa record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzQmsScale; |
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzQmsScaleMapper { |
|||
long countByExample(ZytzQmsScaleExample example); |
|||
|
|||
int deleteByPrimaryKey(Long scaleId); |
|||
|
|||
int insert(ZytzQmsScale record); |
|||
|
|||
int insertSelective(ZytzQmsScale record); |
|||
|
|||
List<ZytzQmsScale> selectByExample(ZytzQmsScaleExample example); |
|||
|
|||
ZytzQmsScale selectByPrimaryKey(Long scaleId); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzQmsScale record, @Param("example") ZytzQmsScaleExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzQmsScale record, @Param("example") ZytzQmsScaleExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzQmsScale record); |
|||
|
|||
int updateByPrimaryKey(ZytzQmsScale record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestion; |
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzQmsScaleQuestionMapper { |
|||
long countByExample(ZytzQmsScaleQuestionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long quesId); |
|||
|
|||
int insert(ZytzQmsScaleQuestion record); |
|||
|
|||
int insertSelective(ZytzQmsScaleQuestion record); |
|||
|
|||
List<ZytzQmsScaleQuestion> selectByExample(ZytzQmsScaleQuestionExample example); |
|||
|
|||
ZytzQmsScaleQuestion selectByPrimaryKey(Long quesId); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzQmsScaleQuestion record, @Param("example") ZytzQmsScaleQuestionExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzQmsScaleQuestion record, @Param("example") ZytzQmsScaleQuestionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzQmsScaleQuestion record); |
|||
|
|||
int updateByPrimaryKey(ZytzQmsScaleQuestion record); |
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.acupuncture.system.persist.mapper; |
|||
|
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOption; |
|||
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOptionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ZytzQmsScaleQuestionOptionMapper { |
|||
long countByExample(ZytzQmsScaleQuestionOptionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long optionId); |
|||
|
|||
int insert(ZytzQmsScaleQuestionOption record); |
|||
|
|||
int insertSelective(ZytzQmsScaleQuestionOption record); |
|||
|
|||
List<ZytzQmsScaleQuestionOption> selectByExample(ZytzQmsScaleQuestionOptionExample example); |
|||
|
|||
ZytzQmsScaleQuestionOption selectByPrimaryKey(Long optionId); |
|||
|
|||
int updateByExampleSelective(@Param("record") ZytzQmsScaleQuestionOption record, @Param("example") ZytzQmsScaleQuestionOptionExample example); |
|||
|
|||
int updateByExample(@Param("record") ZytzQmsScaleQuestionOption record, @Param("example") ZytzQmsScaleQuestionOptionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ZytzQmsScaleQuestionOption record); |
|||
|
|||
int updateByPrimaryKey(ZytzQmsScaleQuestionOption record); |
|||
} |
@ -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<ZytzRmsReport> 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); |
|||
} |
@ -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<ZytzRmsReportResult> 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); |
|||
} |
@ -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<ZytzRmsReportYsjy> selectByExampleWithBLOBs(ZytzRmsReportYsjyExample example); |
|||
|
|||
List<ZytzRmsReportYsjy> 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); |
|||
} |
@ -0,0 +1,50 @@ |
|||
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 com.acupuncture.system.domain.vo.ZytzVo; |
|||
|
|||
import java.io.IOException; |
|||
import java.util.List; |
|||
|
|||
public interface ZytzService { |
|||
/** |
|||
* 生成中医体质二维码 |
|||
* @param dto |
|||
* @param tenantId |
|||
* @return |
|||
*/ |
|||
String getZytzQrcode(ZytzDto.ZytzQrcode dto, Long tenantId); |
|||
|
|||
|
|||
/** |
|||
* 查询试题、选项、答案 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
ZytzVo.EvaQuestionList evaQuestionList(ZytzDto.EvaQuestionList param); |
|||
|
|||
|
|||
/** |
|||
* 提交测评答案 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
Integer evaQuestionSubmit(ZytzDto.EvaQuestionSubmit param); |
|||
|
|||
/** |
|||
* 完成测评(生成报告单) |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
Integer evaComplete(ZytzDto.EvaComplete param); |
|||
|
|||
/** |
|||
* 查看报告单 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
ZytzVo.ReportView reportView(ZytzDto.ReportView param); |
|||
} |
@ -0,0 +1,307 @@ |
|||
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.*; |
|||
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; |
|||
import org.springframework.stereotype.Service; |
|||
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; |
|||
|
|||
/** |
|||
* @author zhangsan |
|||
* @description |
|||
* @date 2025/4/6 18:40 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class ZytzServiceImpl implements ZytzService { |
|||
@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 = 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,return it"); |
|||
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."); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public ZytzVo.EvaQuestionList evaQuestionList(ZytzDto.EvaQuestionList param) { |
|||
return zytzDao.evaQuestionList(param.getEvaId()); |
|||
} |
|||
|
|||
@Override |
|||
public Integer evaQuestionSubmit(ZytzDto.EvaQuestionSubmit param) { |
|||
//1.批量插入answer
|
|||
List<ZytzEmsEvaAnswer> answerList = CollectionUtil.newArrayList(); |
|||
for (ZytzDto.EvaQuestionSubmit.Question question : param.getQuestions()) { |
|||
ZytzEmsEvaAnswer answer = new ZytzEmsEvaAnswer(); |
|||
answer.setAnswerId(IdUtil.getSnowflakeNextId()); |
|||
answer.setEvaId(param.getEvaId()); |
|||
answer.setQuesCode(question.getQuesCode()); |
|||
answer.setOptionCode(question.getOptionCode()); |
|||
answer.setOptionName(question.getOptionName()); |
|||
answer.setOptionScore(Convert.toBigDecimal(question.getOptionScore())); |
|||
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<ZytzVo.EvaResult> resultList = countReportResult(param.getEvaId(), rmsReport.getReportId()); |
|||
List<ZytzRmsReportResult> 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<ZytzVo.EvaResult> countReportResult(@NotNull Long evaId, Long reportId) { |
|||
//1.查询体质分数(原始分)
|
|||
List<ZytzVo.EvaResult> 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<ZytzVo.EvaResult> 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; |
|||
} |
|||
} |
@ -0,0 +1,275 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.dao.ZytzDao"> |
|||
<resultMap id="map_evaQuestionList" type="com.acupuncture.system.domain.vo.ZytzVo$EvaQuestionList"> |
|||
<id column="evaId" property="evaId"/> |
|||
<result column="patientId" property="patientId"/> |
|||
<result column="scaleCode" property="scaleCode"/> |
|||
<result column="scaleName" property="scaleName"/> |
|||
<result column="evaStatus" property="evaStatus"/> |
|||
<collection property="questions" ofType="com.acupuncture.system.domain.vo.ZytzVo$EvaQuestionList$Question"> |
|||
<id column="quesCode" property="quesCode"/> |
|||
<result column="quesName" property="quesName"/> |
|||
<result column="quesSort" property="quesSort"/> |
|||
<collection property="options" ofType="com.acupuncture.system.domain.vo.ZytzVo$EvaQuestionList$Question$Option"> |
|||
<id column="optionCode" property="optionCode"/> |
|||
<result column="optionName" property="optionName"/> |
|||
<result column="optionScore" property="optionScore"/> |
|||
<result column="optionSort" property="optionSort"/> |
|||
<result column="optionChecked" property="optionChecked"/> |
|||
</collection> |
|||
</collection> |
|||
</resultMap> |
|||
|
|||
<select id="evaQuestionList" resultMap="map_evaQuestionList"> |
|||
select |
|||
eva.id as evaId, |
|||
eva.patient_id as patientId, |
|||
eva.status as evaStatus, |
|||
s.scale_name as scaleName, |
|||
s.scale_code as scaleCode, |
|||
q.ques_code as quesCode, |
|||
q.ques_name as quesName, |
|||
q.ques_sort as quesSort, |
|||
o.option_code as optionCode, |
|||
o.option_name as optionName, |
|||
o.option_score as optionScore, |
|||
o.option_sort as optionSort, |
|||
if(a.answer_id is null, 0, 1) as optionChecked |
|||
from pms_treatment eva |
|||
join zytz_qms_scale s on s.scale_code = 'TZBS_LN' and s.del_flag = 0 |
|||
join zytz_qms_scale_question q on s.scale_code = q.scale_code and q.del_flag = 0 |
|||
join zytz_qms_scale_question_option o on q.ques_code = o.ques_code and q.del_flag = 0 |
|||
left join zytz_ems_eva_answer a on a.eva_id = #{evaId} and a.option_code = o.option_code |
|||
where |
|||
eva.id = #{evaId} |
|||
and (q.gender_apply = 0 or q.gender_apply = eva.gender) |
|||
order by |
|||
q.ques_sort,o.option_sort |
|||
</select> |
|||
|
|||
<insert id="batchInsertAnswer"> |
|||
replace into zytz_ems_eva_answer(answer_id,eva_id,ques_code,option_code,option_name,option_score,create_by) |
|||
values |
|||
<foreach collection="list" item="item" separator=","> |
|||
(#{item.answerId},#{item.evaId},#{item.quesCode},#{item.optionCode},#{item.optionName},#{item.optionScore},#{item.createBy}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<insert id="batchInsertReportResult"> |
|||
replace into zytz_rms_report_result(result_id,report_id,consti_code,consti_name,consti_level,consti_score,main_flag,create_by) |
|||
values |
|||
<foreach collection="list" item="item" separator=","> |
|||
(#{item.resultId},#{item.reportId},#{item.constiCode},#{item.constiName},#{item.constiLevel},#{item.constiScore},#{item.mainFlag},#{item.createBy}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="countReportResult" resultType="com.acupuncture.system.domain.vo.ZytzVo$EvaResult"> |
|||
select |
|||
eva.id as evaId, |
|||
s.scale_code as scaleCode, |
|||
s.scale_name as scaleName, |
|||
cst.consti_code as constiCode, |
|||
cst.consti_name as constiName, |
|||
sum( |
|||
if(rel.reverse = 0,a.option_score,(6-a.option_score)) |
|||
) as score, |
|||
count(rel.ques_code) as quesNum |
|||
from |
|||
pms_treatment eva |
|||
join zytz_qms_scale s on s.scale_code = 'TZBS_LN' and s.del_flag = 0 |
|||
left join zytz_qms_scale_consti cst on cst.scale_code = 'TZBS_LN' and cst.del_flag = 0 |
|||
left join zytz_qms_scale_consti_ques_rel rel on cst.consti_code = rel.consti_code and rel.del_flag = 0 |
|||
left join zytz_ems_eva_answer a on eva.id = a.eva_id and rel.ques_code = a.ques_code |
|||
where |
|||
eva.id = #{evaId} |
|||
group by |
|||
eva.id, s.scale_code, s.scale_name, cst.consti_id, cst.consti_code |
|||
order by |
|||
cst.consti_id |
|||
</select> |
|||
|
|||
<!-- <select id="queryYsjy" resultType="java.lang.String">--> |
|||
<!-- select--> |
|||
<!-- if(hst.consti_ysfa_template is not null, hst.consti_ysfa_template, scy.consti_ysfa_template) as ysfa--> |
|||
<!-- from--> |
|||
<!-- qms_scale_consti cst--> |
|||
<!-- left join qms_scale s on cst.scale_code = s.scale_code and s.del_flag = 0--> |
|||
<!-- left join qms_scale_consti_ysfa scy on cst.consti_code = scy.consti_code and scy.del_flag = 0--> |
|||
<!-- left join hms_ysfa_template hst on cst.consti_code = hst.consti_code and hst.del_flag = 0 and hst.dept_id = #{deptId}--> |
|||
<!-- where--> |
|||
<!-- cst.consti_code = #{constiCode}--> |
|||
<!-- and cst.del_flag = 0--> |
|||
<!-- order by--> |
|||
<!-- cst.consti_id--> |
|||
<!-- </select>--> |
|||
|
|||
<resultMap id="map_reportView" type="com.acupuncture.system.domain.vo.ZytzVo$ReportView"> |
|||
<id column="reportId" property="reportId"/> |
|||
<result column="patientId" property="patientId"/> |
|||
<result column="name" property="name"/> |
|||
<result column="birthday" property="birthday"/> |
|||
<result column="age" property="age"/> |
|||
<result column="gender" property="gender"/> |
|||
<result column="height" property="height"/> |
|||
<result column="weight" property="weight"/> |
|||
<result column="waistline" property="waistline"/> |
|||
<result column="idcard" property="idcard"/> |
|||
<result column="phone" property="phone"/> |
|||
<result column="evaId" property="evaId"/> |
|||
<result column="evaTime" property="evaTime"/> |
|||
<result column="evaUsername" property="evaUsername"/> |
|||
<result column="evaNickname" property="evaNickname"/> |
|||
<result column="evaScaleCode" property="evaScaleCode"/> |
|||
<result column="evaScaleName" property="evaScaleName"/> |
|||
<result column="blh" property="blh"/> |
|||
<collection property="scores" ofType="com.acupuncture.system.domain.vo.ZytzVo$ReportView$Score"> |
|||
<id column="constiCode" property="constiCode"/> |
|||
<result column="constiName" property="constiName"/> |
|||
<result column="constiLevel" property="constiLevel"/> |
|||
<result column="constiScore" property="constiScore"/> |
|||
<result column="mainFlag" property="mainFlag"/> |
|||
<result column="refScoreYes" property="refScoreYes"/> |
|||
<result column="refScoreMaybe" property="refScoreMaybe"/> |
|||
<result column="fullScore" property="fullScore"/> |
|||
</collection> |
|||
<collection property="ysfa" ofType="com.acupuncture.system.domain.vo.ZytzVo$ReportView$Ysfa"> |
|||
<id column="jyConstiCode" property="constiCode"/> |
|||
<result column="jyConstiName" property="constiName"/> |
|||
<result column="ysjy" property="ysjy"/> |
|||
</collection> |
|||
</resultMap> |
|||
|
|||
<select id="reportView" resultMap="map_reportView"> |
|||
select |
|||
r.report_id as reportId, |
|||
r.patient_id as patientId, |
|||
r.patient_name as name, |
|||
r.patient_gender as gender, |
|||
r.patient_birthday as birthday, |
|||
r.patient_age as age, |
|||
r.patient_height as height, |
|||
r.patient_weight as weight, |
|||
r.patient_waistline as waistline, |
|||
r.patient_idcard as idcard, |
|||
r.patient_phone as phone, |
|||
r.eva_id as evaId, |
|||
r.eva_time as evaTime, |
|||
r.eva_username as evaUsername, |
|||
r.eva_nickname as evaNickname, |
|||
r.eva_scale_code as evaScaleCode, |
|||
s.scale_name as evaScaleName, |
|||
r.blh as blh, |
|||
res.consti_code as constiCode, |
|||
res.consti_name as constiName, |
|||
res.consti_level as constiLevel, |
|||
res.consti_score as constiScore, |
|||
ref.ref_score_yes as refScoreYes, |
|||
ref.ref_score_maybe as refScoreMaybe, |
|||
ref.full_score as fullScore, |
|||
res.main_flag as mainFlag, |
|||
jy.consti_code as jyConstiCode, |
|||
jy.consti_name as jyConstiName, |
|||
jy.consti_ysjy as ysjy |
|||
from |
|||
zytz_rms_report r join zytz_qms_scale s on r.eva_scale_code = s.scale_code and s.del_flag = '0' |
|||
left join zytz_rms_report_result res on r.report_id = res.report_id |
|||
left join zytz_qms_scale_consti_ref_score ref on res.consti_code = ref.consti_code and ref.del_flag = 0 |
|||
left join zytz_rms_report_ysjy jy on r.report_id = jy.report_id |
|||
where |
|||
r.del_flag = 0 |
|||
and r.eva_id = #{evaId} |
|||
order by |
|||
res.result_id |
|||
</select> |
|||
|
|||
<!-- <select id="queryEvaList" resultType="com.ruoyi.system.domain.vo.ClientEvaVo$EvaList">--> |
|||
<!-- SELECT--> |
|||
<!-- r.report_id as reportId,--> |
|||
<!-- e.patient_id as patientId,--> |
|||
<!-- e.patient_name as name,--> |
|||
<!-- e.patient_gender as gender,--> |
|||
<!-- e.patient_birthday as birthday,--> |
|||
<!-- e.patient_age as age,--> |
|||
<!-- e.patient_height as height,--> |
|||
<!-- e.patient_weight as weight,--> |
|||
<!-- e.patient_waistline as waistline,--> |
|||
<!-- e.patient_idcard as idcard,--> |
|||
<!-- e.patient_phone as phone,--> |
|||
<!-- e.eva_id as evaId,--> |
|||
<!-- e.create_time as evaTime,--> |
|||
<!-- e.eva_username as evaUsername,--> |
|||
<!-- e.eva_nickname as evaNickname,--> |
|||
<!-- e.eva_scale_code as evaScaleCode,--> |
|||
<!-- e.eva_status as evaStatus,--> |
|||
<!-- s.scale_name as evaScaleName,--> |
|||
<!-- e.blh as blh--> |
|||
<!-- FROM--> |
|||
<!-- ems_evaluation e left join qms_scale s on e.eva_scale_code = s.scale_code and s.del_flag = '0'--> |
|||
<!-- left join rms_report r on e.eva_id = r.eva_id and r.del_flag = '0'--> |
|||
<!-- WHERE--> |
|||
<!-- e.del_flag = '0'--> |
|||
<!-- AND e.dept_id = #{deptId}--> |
|||
<!-- <if test="keywords != null and keywords != ''">--> |
|||
<!-- AND (--> |
|||
<!-- e.patient_name LIKE CONCAT( '%', #{keywords}, '%' )--> |
|||
<!-- OR e.patient_name_pinyin LIKE CONCAT( "%", #{keywords}, '%' )--> |
|||
<!-- OR e.patient_name_py LIKE CONCAT( '%', #{keywords}, '%' )--> |
|||
<!-- OR e.patient_phone LIKE CONCAT( '%', #{keywords}, '%' )--> |
|||
<!-- OR e.patient_idcard LIKE CONCAT( '%', #{keywords}, '%' )--> |
|||
<!-- )--> |
|||
<!-- </if>--> |
|||
<!-- <if test="scaleCode != null and scaleCode != ''">--> |
|||
<!-- AND e.eva_scale_code = #{scaleCode}--> |
|||
<!-- </if>--> |
|||
<!-- <if test="evaStatus != null">--> |
|||
<!-- AND e.eva_status = #{evaStatus}--> |
|||
<!-- </if>--> |
|||
<!-- <if test="gender != null">--> |
|||
<!-- AND e.patient_gender = #{gender}--> |
|||
<!-- </if>--> |
|||
<!-- <if test="ageMin != null">--> |
|||
<!-- AND e.patient_age >= #{ageMin}--> |
|||
<!-- </if>--> |
|||
<!-- <if test="ageMax != null">--> |
|||
<!-- AND e.patient_age <= #{ageMax}--> |
|||
<!-- </if>--> |
|||
<!-- <if test="evaDateMin != null">--> |
|||
<!-- AND e.create_time >= #{evaDateMin}--> |
|||
<!-- </if>--> |
|||
<!-- <if test="evaDateMax != null">--> |
|||
<!-- AND e.create_time <= #{evaDateMax}--> |
|||
<!-- </if>--> |
|||
<!-- order by--> |
|||
<!-- e.eva_id desc--> |
|||
<!-- </select>--> |
|||
|
|||
<!-- <select id="queryReportScores" resultType="com.ruoyi.system.domain.vo.ClientEvaVo$EvaList$Score">--> |
|||
<!-- SELECT--> |
|||
<!-- res.report_id AS reportId,--> |
|||
<!-- res.consti_code AS constiCode,--> |
|||
<!-- res.consti_name AS constiName,--> |
|||
<!-- res.consti_level AS constiLevel,--> |
|||
<!-- res.consti_score AS constiScore,--> |
|||
<!-- res.main_flag AS mainFlag,--> |
|||
<!-- ref.ref_score_yes AS refScoreYes,--> |
|||
<!-- ref.ref_score_maybe AS refScoreMaybe,--> |
|||
<!-- ref.full_score AS fullScore--> |
|||
<!-- FROM--> |
|||
<!-- rms_report_result res--> |
|||
<!-- LEFT JOIN qms_scale_consti_ref_score ref ON res.consti_code = ref.consti_code AND ref.del_flag = 0--> |
|||
<!-- WHERE--> |
|||
<!-- res.report_id = #{reportId}--> |
|||
<!-- ORDER BY--> |
|||
<!-- res.result_id--> |
|||
<!-- </select>--> |
|||
|
|||
<!-- <update id="deleteEvas">--> |
|||
<!-- update ems_evaluation--> |
|||
<!-- set del_flag = 2--> |
|||
<!-- where eva_id in--> |
|||
<!-- <foreach collection="ids" item="evaId" open="(" separator="," close=")">--> |
|||
<!-- #{evaId}--> |
|||
<!-- </foreach>--> |
|||
<!-- </update>--> |
|||
</mapper> |
@ -0,0 +1,285 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzEmsEvaAnswerMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzEmsEvaAnswer"> |
|||
<id column="answer_id" jdbcType="BIGINT" property="answerId" /> |
|||
<result column="eva_id" jdbcType="BIGINT" property="evaId" /> |
|||
<result column="ques_code" jdbcType="VARCHAR" property="quesCode" /> |
|||
<result column="option_code" jdbcType="VARCHAR" property="optionCode" /> |
|||
<result column="option_name" jdbcType="VARCHAR" property="optionName" /> |
|||
<result column="option_score" jdbcType="DECIMAL" property="optionScore" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
answer_id, eva_id, ques_code, option_code, option_name, option_score, create_by, |
|||
create_time, update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzEmsEvaAnswerExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_ems_eva_answer |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_ems_eva_answer |
|||
where answer_id = #{answerId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_ems_eva_answer |
|||
where answer_id = #{answerId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzEmsEvaAnswer"> |
|||
insert into zytz_ems_eva_answer (answer_id, eva_id, ques_code, |
|||
option_code, option_name, option_score, |
|||
create_by, create_time, update_by, |
|||
update_time) |
|||
values (#{answerId,jdbcType=BIGINT}, #{evaId,jdbcType=BIGINT}, #{quesCode,jdbcType=VARCHAR}, |
|||
#{optionCode,jdbcType=VARCHAR}, #{optionName,jdbcType=VARCHAR}, #{optionScore,jdbcType=DECIMAL}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzEmsEvaAnswer"> |
|||
insert into zytz_ems_eva_answer |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="answerId != null"> |
|||
answer_id, |
|||
</if> |
|||
<if test="evaId != null"> |
|||
eva_id, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
ques_code, |
|||
</if> |
|||
<if test="optionCode != null"> |
|||
option_code, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name, |
|||
</if> |
|||
<if test="optionScore != null"> |
|||
option_score, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="answerId != null"> |
|||
#{answerId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="evaId != null"> |
|||
#{evaId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
#{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionCode != null"> |
|||
#{optionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
#{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionScore != null"> |
|||
#{optionScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzEmsEvaAnswerExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_ems_eva_answer |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_ems_eva_answer |
|||
<set> |
|||
<if test="record.answerId != null"> |
|||
answer_id = #{record.answerId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.evaId != null"> |
|||
eva_id = #{record.evaId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.quesCode != null"> |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.optionCode != null"> |
|||
option_code = #{record.optionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.optionName != null"> |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.optionScore != null"> |
|||
option_score = #{record.optionScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_ems_eva_answer |
|||
set answer_id = #{record.answerId,jdbcType=BIGINT}, |
|||
eva_id = #{record.evaId,jdbcType=BIGINT}, |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
option_code = #{record.optionCode,jdbcType=VARCHAR}, |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
option_score = #{record.optionScore,jdbcType=DECIMAL}, |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzEmsEvaAnswer"> |
|||
update zytz_ems_eva_answer |
|||
<set> |
|||
<if test="evaId != null"> |
|||
eva_id = #{evaId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionCode != null"> |
|||
option_code = #{optionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionScore != null"> |
|||
option_score = #{optionScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where answer_id = #{answerId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzEmsEvaAnswer"> |
|||
update zytz_ems_eva_answer |
|||
set eva_id = #{evaId,jdbcType=BIGINT}, |
|||
ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
option_code = #{optionCode,jdbcType=VARCHAR}, |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
option_score = #{optionScore,jdbcType=DECIMAL}, |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP} |
|||
where answer_id = #{answerId,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,270 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzQmsScaleConstiMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzQmsScaleConsti"> |
|||
<id column="consti_id" jdbcType="BIGINT" property="constiId" /> |
|||
<result column="scale_code" jdbcType="VARCHAR" property="scaleCode" /> |
|||
<result column="consti_code" jdbcType="VARCHAR" property="constiCode" /> |
|||
<result column="consti_name" jdbcType="VARCHAR" property="constiName" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
consti_id, scale_code, consti_code, consti_name, del_flag, create_by, create_time, |
|||
update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_consti |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_consti |
|||
where consti_id = #{constiId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_qms_scale_consti |
|||
where consti_id = #{constiId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConsti"> |
|||
insert into zytz_qms_scale_consti (consti_id, scale_code, consti_code, |
|||
consti_name, del_flag, create_by, |
|||
create_time, update_by, update_time |
|||
) |
|||
values (#{constiId,jdbcType=BIGINT}, #{scaleCode,jdbcType=VARCHAR}, #{constiCode,jdbcType=VARCHAR}, |
|||
#{constiName,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConsti"> |
|||
insert into zytz_qms_scale_consti |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="constiId != null"> |
|||
consti_id, |
|||
</if> |
|||
<if test="scaleCode != null"> |
|||
scale_code, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
consti_name, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="constiId != null"> |
|||
#{constiId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="scaleCode != null"> |
|||
#{scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
#{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
#{constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_qms_scale_consti |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_qms_scale_consti |
|||
<set> |
|||
<if test="record.constiId != null"> |
|||
consti_id = #{record.constiId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.scaleCode != null"> |
|||
scale_code = #{record.scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.constiCode != null"> |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.constiName != null"> |
|||
consti_name = #{record.constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_qms_scale_consti |
|||
set consti_id = #{record.constiId,jdbcType=BIGINT}, |
|||
scale_code = #{record.scaleCode,jdbcType=VARCHAR}, |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
consti_name = #{record.constiName,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConsti"> |
|||
update zytz_qms_scale_consti |
|||
<set> |
|||
<if test="scaleCode != null"> |
|||
scale_code = #{scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
consti_name = #{constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where consti_id = #{constiId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConsti"> |
|||
update zytz_qms_scale_consti |
|||
set scale_code = #{scaleCode,jdbcType=VARCHAR}, |
|||
consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
consti_name = #{constiName,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} |
|||
where consti_id = #{constiId,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,270 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzQmsScaleConstiQuesRelMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRel"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="consti_code" jdbcType="VARCHAR" property="constiCode" /> |
|||
<result column="ques_code" jdbcType="VARCHAR" property="quesCode" /> |
|||
<result column="reverse" jdbcType="TINYINT" property="reverse" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, consti_code, ques_code, reverse, del_flag, create_by, create_time, update_by, |
|||
update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRelExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_consti_ques_rel |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_consti_ques_rel |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_qms_scale_consti_ques_rel |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRel"> |
|||
insert into zytz_qms_scale_consti_ques_rel (id, consti_code, ques_code, |
|||
reverse, del_flag, create_by, |
|||
create_time, update_by, update_time |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{constiCode,jdbcType=VARCHAR}, #{quesCode,jdbcType=VARCHAR}, |
|||
#{reverse,jdbcType=TINYINT}, #{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRel"> |
|||
insert into zytz_qms_scale_consti_ques_rel |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
ques_code, |
|||
</if> |
|||
<if test="reverse != null"> |
|||
reverse, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
#{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
#{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="reverse != null"> |
|||
#{reverse,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRelExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_qms_scale_consti_ques_rel |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_qms_scale_consti_ques_rel |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.constiCode != null"> |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.quesCode != null"> |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.reverse != null"> |
|||
reverse = #{record.reverse,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_qms_scale_consti_ques_rel |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
reverse = #{record.reverse,jdbcType=TINYINT}, |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRel"> |
|||
update zytz_qms_scale_consti_ques_rel |
|||
<set> |
|||
<if test="constiCode != null"> |
|||
consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="reverse != null"> |
|||
reverse = #{reverse,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRel"> |
|||
update zytz_qms_scale_consti_ques_rel |
|||
set consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
reverse = #{reverse,jdbcType=TINYINT}, |
|||
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} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,285 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzQmsScaleConstiRefScoreMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScore"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="consti_code" jdbcType="VARCHAR" property="constiCode" /> |
|||
<result column="ref_score_yes" jdbcType="DECIMAL" property="refScoreYes" /> |
|||
<result column="ref_score_Maybe" jdbcType="DECIMAL" property="refScoreMaybe" /> |
|||
<result column="full_score" jdbcType="DECIMAL" property="fullScore" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, consti_code, ref_score_yes, ref_score_Maybe, full_score, del_flag, create_by, |
|||
create_time, update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScoreExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_consti_ref_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_consti_ref_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_qms_scale_consti_ref_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScore"> |
|||
insert into zytz_qms_scale_consti_ref_score (id, consti_code, ref_score_yes, |
|||
ref_score_Maybe, full_score, del_flag, |
|||
create_by, create_time, update_by, |
|||
update_time) |
|||
values (#{id,jdbcType=BIGINT}, #{constiCode,jdbcType=VARCHAR}, #{refScoreYes,jdbcType=DECIMAL}, |
|||
#{refScoreMaybe,jdbcType=DECIMAL}, #{fullScore,jdbcType=DECIMAL}, #{delFlag,jdbcType=CHAR}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScore"> |
|||
insert into zytz_qms_scale_consti_ref_score |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code, |
|||
</if> |
|||
<if test="refScoreYes != null"> |
|||
ref_score_yes, |
|||
</if> |
|||
<if test="refScoreMaybe != null"> |
|||
ref_score_Maybe, |
|||
</if> |
|||
<if test="fullScore != null"> |
|||
full_score, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
#{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="refScoreYes != null"> |
|||
#{refScoreYes,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="refScoreMaybe != null"> |
|||
#{refScoreMaybe,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="fullScore != null"> |
|||
#{fullScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScoreExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_qms_scale_consti_ref_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_qms_scale_consti_ref_score |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.constiCode != null"> |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.refScoreYes != null"> |
|||
ref_score_yes = #{record.refScoreYes,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.refScoreMaybe != null"> |
|||
ref_score_Maybe = #{record.refScoreMaybe,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.fullScore != null"> |
|||
full_score = #{record.fullScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_qms_scale_consti_ref_score |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
ref_score_yes = #{record.refScoreYes,jdbcType=DECIMAL}, |
|||
ref_score_Maybe = #{record.refScoreMaybe,jdbcType=DECIMAL}, |
|||
full_score = #{record.fullScore,jdbcType=DECIMAL}, |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScore"> |
|||
update zytz_qms_scale_consti_ref_score |
|||
<set> |
|||
<if test="constiCode != null"> |
|||
consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="refScoreYes != null"> |
|||
ref_score_yes = #{refScoreYes,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="refScoreMaybe != null"> |
|||
ref_score_Maybe = #{refScoreMaybe,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="fullScore != null"> |
|||
full_score = #{fullScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScore"> |
|||
update zytz_qms_scale_consti_ref_score |
|||
set consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
ref_score_yes = #{refScoreYes,jdbcType=DECIMAL}, |
|||
ref_score_Maybe = #{refScoreMaybe,jdbcType=DECIMAL}, |
|||
full_score = #{fullScore,jdbcType=DECIMAL}, |
|||
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} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,298 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzQmsScaleConstiYsfaMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="consti_code" jdbcType="VARCHAR" property="constiCode" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa"> |
|||
<result column="consti_ysfa_template" jdbcType="LONGVARCHAR" property="constiYsfaTemplate" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, consti_code, del_flag, create_by, create_time, update_by, update_time |
|||
</sql> |
|||
<sql id="Blob_Column_List"> |
|||
consti_ysfa_template |
|||
</sql> |
|||
<select id="selectByExampleWithBLOBs" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfaExample" resultMap="ResultMapWithBLOBs"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from zytz_qms_scale_consti_ysfa |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfaExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_consti_ysfa |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from zytz_qms_scale_consti_ysfa |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_qms_scale_consti_ysfa |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa"> |
|||
insert into zytz_qms_scale_consti_ysfa (id, consti_code, del_flag, |
|||
create_by, create_time, update_by, |
|||
update_time, consti_ysfa_template) |
|||
values (#{id,jdbcType=BIGINT}, #{constiCode,jdbcType=VARCHAR}, #{delFlag,jdbcType=CHAR}, |
|||
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{constiYsfaTemplate,jdbcType=LONGVARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa"> |
|||
insert into zytz_qms_scale_consti_ysfa |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="constiYsfaTemplate != null"> |
|||
consti_ysfa_template, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
#{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="constiYsfaTemplate != null"> |
|||
#{constiYsfaTemplate,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfaExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_qms_scale_consti_ysfa |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_qms_scale_consti_ysfa |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.constiCode != null"> |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.constiYsfaTemplate != null"> |
|||
consti_ysfa_template = #{record.constiYsfaTemplate,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|||
update zytz_qms_scale_consti_ysfa |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
consti_code = #{record.constiCode,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}, |
|||
consti_ysfa_template = #{record.constiYsfaTemplate,jdbcType=LONGVARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_qms_scale_consti_ysfa |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
consti_code = #{record.constiCode,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa"> |
|||
update zytz_qms_scale_consti_ysfa |
|||
<set> |
|||
<if test="constiCode != null"> |
|||
consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="constiYsfaTemplate != null"> |
|||
consti_ysfa_template = #{constiYsfaTemplate,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa"> |
|||
update zytz_qms_scale_consti_ysfa |
|||
set consti_code = #{constiCode,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}, |
|||
consti_ysfa_template = #{constiYsfaTemplate,jdbcType=LONGVARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa"> |
|||
update zytz_qms_scale_consti_ysfa |
|||
set consti_code = #{constiCode,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} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,252 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzQmsScaleMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzQmsScale"> |
|||
<id column="scale_id" jdbcType="BIGINT" property="scaleId" /> |
|||
<result column="scale_code" jdbcType="VARCHAR" property="scaleCode" /> |
|||
<result column="scale_name" jdbcType="VARCHAR" property="scaleName" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
scale_id, scale_code, scale_name, del_flag, create_by, create_time, update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale |
|||
where scale_id = #{scaleId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_qms_scale |
|||
where scale_id = #{scaleId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzQmsScale"> |
|||
insert into zytz_qms_scale (scale_id, scale_code, scale_name, |
|||
del_flag, create_by, create_time, |
|||
update_by, update_time) |
|||
values (#{scaleId,jdbcType=BIGINT}, #{scaleCode,jdbcType=VARCHAR}, #{scaleName,jdbcType=VARCHAR}, |
|||
#{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScale"> |
|||
insert into zytz_qms_scale |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="scaleId != null"> |
|||
scale_id, |
|||
</if> |
|||
<if test="scaleCode != null"> |
|||
scale_code, |
|||
</if> |
|||
<if test="scaleName != null"> |
|||
scale_name, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="scaleId != null"> |
|||
#{scaleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="scaleCode != null"> |
|||
#{scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="scaleName != null"> |
|||
#{scaleName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_qms_scale |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_qms_scale |
|||
<set> |
|||
<if test="record.scaleId != null"> |
|||
scale_id = #{record.scaleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.scaleCode != null"> |
|||
scale_code = #{record.scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.scaleName != null"> |
|||
scale_name = #{record.scaleName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_qms_scale |
|||
set scale_id = #{record.scaleId,jdbcType=BIGINT}, |
|||
scale_code = #{record.scaleCode,jdbcType=VARCHAR}, |
|||
scale_name = #{record.scaleName,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScale"> |
|||
update zytz_qms_scale |
|||
<set> |
|||
<if test="scaleCode != null"> |
|||
scale_code = #{scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="scaleName != null"> |
|||
scale_name = #{scaleName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where scale_id = #{scaleId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzQmsScale"> |
|||
update zytz_qms_scale |
|||
set scale_code = #{scaleCode,jdbcType=VARCHAR}, |
|||
scale_name = #{scaleName,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} |
|||
where scale_id = #{scaleId,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,300 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzQmsScaleQuestionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzQmsScaleQuestion"> |
|||
<id column="ques_id" jdbcType="BIGINT" property="quesId" /> |
|||
<result column="scale_code" jdbcType="VARCHAR" property="scaleCode" /> |
|||
<result column="ques_code" jdbcType="VARCHAR" property="quesCode" /> |
|||
<result column="ques_sort" jdbcType="INTEGER" property="quesSort" /> |
|||
<result column="ques_name" jdbcType="VARCHAR" property="quesName" /> |
|||
<result column="gender_apply" jdbcType="VARCHAR" property="genderApply" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
ques_id, scale_code, ques_code, ques_sort, ques_name, gender_apply, del_flag, create_by, |
|||
create_time, update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_question |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_question |
|||
where ques_id = #{quesId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_qms_scale_question |
|||
where ques_id = #{quesId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestion"> |
|||
insert into zytz_qms_scale_question (ques_id, scale_code, ques_code, |
|||
ques_sort, ques_name, gender_apply, |
|||
del_flag, create_by, create_time, |
|||
update_by, update_time) |
|||
values (#{quesId,jdbcType=BIGINT}, #{scaleCode,jdbcType=VARCHAR}, #{quesCode,jdbcType=VARCHAR}, |
|||
#{quesSort,jdbcType=INTEGER}, #{quesName,jdbcType=VARCHAR}, #{genderApply,jdbcType=VARCHAR}, |
|||
#{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestion"> |
|||
insert into zytz_qms_scale_question |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="quesId != null"> |
|||
ques_id, |
|||
</if> |
|||
<if test="scaleCode != null"> |
|||
scale_code, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
ques_code, |
|||
</if> |
|||
<if test="quesSort != null"> |
|||
ques_sort, |
|||
</if> |
|||
<if test="quesName != null"> |
|||
ques_name, |
|||
</if> |
|||
<if test="genderApply != null"> |
|||
gender_apply, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="quesId != null"> |
|||
#{quesId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="scaleCode != null"> |
|||
#{scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
#{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="quesSort != null"> |
|||
#{quesSort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="quesName != null"> |
|||
#{quesName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="genderApply != null"> |
|||
#{genderApply,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_qms_scale_question |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_qms_scale_question |
|||
<set> |
|||
<if test="record.quesId != null"> |
|||
ques_id = #{record.quesId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.scaleCode != null"> |
|||
scale_code = #{record.scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.quesCode != null"> |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.quesSort != null"> |
|||
ques_sort = #{record.quesSort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.quesName != null"> |
|||
ques_name = #{record.quesName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.genderApply != null"> |
|||
gender_apply = #{record.genderApply,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_qms_scale_question |
|||
set ques_id = #{record.quesId,jdbcType=BIGINT}, |
|||
scale_code = #{record.scaleCode,jdbcType=VARCHAR}, |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
ques_sort = #{record.quesSort,jdbcType=INTEGER}, |
|||
ques_name = #{record.quesName,jdbcType=VARCHAR}, |
|||
gender_apply = #{record.genderApply,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestion"> |
|||
update zytz_qms_scale_question |
|||
<set> |
|||
<if test="scaleCode != null"> |
|||
scale_code = #{scaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="quesSort != null"> |
|||
ques_sort = #{quesSort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="quesName != null"> |
|||
ques_name = #{quesName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="genderApply != null"> |
|||
gender_apply = #{genderApply,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where ques_id = #{quesId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestion"> |
|||
update zytz_qms_scale_question |
|||
set scale_code = #{scaleCode,jdbcType=VARCHAR}, |
|||
ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
ques_sort = #{quesSort,jdbcType=INTEGER}, |
|||
ques_name = #{quesName,jdbcType=VARCHAR}, |
|||
gender_apply = #{genderApply,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} |
|||
where ques_id = #{quesId,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,300 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzQmsScaleQuestionOptionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOption"> |
|||
<id column="option_id" jdbcType="BIGINT" property="optionId" /> |
|||
<result column="ques_code" jdbcType="VARCHAR" property="quesCode" /> |
|||
<result column="option_code" jdbcType="VARCHAR" property="optionCode" /> |
|||
<result column="option_name" jdbcType="VARCHAR" property="optionName" /> |
|||
<result column="option_score" jdbcType="DECIMAL" property="optionScore" /> |
|||
<result column="option_sort" jdbcType="VARCHAR" property="optionSort" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
option_id, ques_code, option_code, option_name, option_score, option_sort, del_flag, |
|||
create_by, create_time, update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOptionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_qms_scale_question_option |
|||
where option_id = #{optionId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_qms_scale_question_option |
|||
where option_id = #{optionId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOption"> |
|||
insert into zytz_qms_scale_question_option (option_id, ques_code, option_code, |
|||
option_name, option_score, option_sort, |
|||
del_flag, create_by, create_time, |
|||
update_by, update_time) |
|||
values (#{optionId,jdbcType=BIGINT}, #{quesCode,jdbcType=VARCHAR}, #{optionCode,jdbcType=VARCHAR}, |
|||
#{optionName,jdbcType=VARCHAR}, #{optionScore,jdbcType=DECIMAL}, #{optionSort,jdbcType=VARCHAR}, |
|||
#{delFlag,jdbcType=CHAR}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOption"> |
|||
insert into zytz_qms_scale_question_option |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="optionId != null"> |
|||
option_id, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
ques_code, |
|||
</if> |
|||
<if test="optionCode != null"> |
|||
option_code, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name, |
|||
</if> |
|||
<if test="optionScore != null"> |
|||
option_score, |
|||
</if> |
|||
<if test="optionSort != null"> |
|||
option_sort, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="optionId != null"> |
|||
#{optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="quesCode != null"> |
|||
#{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionCode != null"> |
|||
#{optionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
#{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionScore != null"> |
|||
#{optionScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="optionSort != null"> |
|||
#{optionSort,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOptionExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_qms_scale_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_qms_scale_question_option |
|||
<set> |
|||
<if test="record.optionId != null"> |
|||
option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.quesCode != null"> |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.optionCode != null"> |
|||
option_code = #{record.optionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.optionName != null"> |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.optionScore != null"> |
|||
option_score = #{record.optionScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.optionSort != null"> |
|||
option_sort = #{record.optionSort,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update zytz_qms_scale_question_option |
|||
set option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
ques_code = #{record.quesCode,jdbcType=VARCHAR}, |
|||
option_code = #{record.optionCode,jdbcType=VARCHAR}, |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
option_score = #{record.optionScore,jdbcType=DECIMAL}, |
|||
option_sort = #{record.optionSort,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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOption"> |
|||
update zytz_qms_scale_question_option |
|||
<set> |
|||
<if test="quesCode != null"> |
|||
ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionCode != null"> |
|||
option_code = #{optionCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionScore != null"> |
|||
option_score = #{optionScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="optionSort != null"> |
|||
option_sort = #{optionSort,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where option_id = #{optionId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOption"> |
|||
update zytz_qms_scale_question_option |
|||
set ques_code = #{quesCode,jdbcType=VARCHAR}, |
|||
option_code = #{optionCode,jdbcType=VARCHAR}, |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
option_score = #{optionScore,jdbcType=DECIMAL}, |
|||
option_sort = #{optionSort,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} |
|||
where option_id = #{optionId,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,522 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzRmsReportMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzRmsReport"> |
|||
<id column="report_id" jdbcType="BIGINT" property="reportId" /> |
|||
<result column="dept_id" jdbcType="BIGINT" property="deptId" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="patient_name" jdbcType="VARCHAR" property="patientName" /> |
|||
<result column="patient_age" jdbcType="VARCHAR" property="patientAge" /> |
|||
<result column="patient_gender" jdbcType="VARCHAR" property="patientGender" /> |
|||
<result column="patient_height" jdbcType="VARCHAR" property="patientHeight" /> |
|||
<result column="patient_weight" jdbcType="VARCHAR" property="patientWeight" /> |
|||
<result column="patient_waistline" jdbcType="VARCHAR" property="patientWaistline" /> |
|||
<result column="eva_id" jdbcType="BIGINT" property="evaId" /> |
|||
<result column="eva_scale_code" jdbcType="VARCHAR" property="evaScaleCode" /> |
|||
<result column="eva_time" jdbcType="TIMESTAMP" property="evaTime" /> |
|||
<result column="eva_username" jdbcType="VARCHAR" property="evaUsername" /> |
|||
<result column="eva_nickname" jdbcType="VARCHAR" property="evaNickname" /> |
|||
<result column="blh" jdbcType="VARCHAR" property="blh" /> |
|||
<result column="del_flag" jdbcType="CHAR" property="delFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="patient_name_pinyin" jdbcType="VARCHAR" property="patientNamePinyin" /> |
|||
<result column="patient_name_py" jdbcType="VARCHAR" property="patientNamePy" /> |
|||
<result column="patient_birthday" jdbcType="VARCHAR" property="patientBirthday" /> |
|||
<result column="patient_idcard" jdbcType="VARCHAR" property="patientIdcard" /> |
|||
<result column="patient_phone" jdbcType="VARCHAR" property="patientPhone" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
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 |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_rms_report |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_rms_report |
|||
where report_id = #{reportId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_rms_report |
|||
where report_id = #{reportId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzRmsReport"> |
|||
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> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzRmsReport"> |
|||
insert into zytz_rms_report |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="reportId != null"> |
|||
report_id, |
|||
</if> |
|||
<if test="deptId != null"> |
|||
dept_id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="patientName != null"> |
|||
patient_name, |
|||
</if> |
|||
<if test="patientAge != null"> |
|||
patient_age, |
|||
</if> |
|||
<if test="patientGender != null"> |
|||
patient_gender, |
|||
</if> |
|||
<if test="patientHeight != null"> |
|||
patient_height, |
|||
</if> |
|||
<if test="patientWeight != null"> |
|||
patient_weight, |
|||
</if> |
|||
<if test="patientWaistline != null"> |
|||
patient_waistline, |
|||
</if> |
|||
<if test="evaId != null"> |
|||
eva_id, |
|||
</if> |
|||
<if test="evaScaleCode != null"> |
|||
eva_scale_code, |
|||
</if> |
|||
<if test="evaTime != null"> |
|||
eva_time, |
|||
</if> |
|||
<if test="evaUsername != null"> |
|||
eva_username, |
|||
</if> |
|||
<if test="evaNickname != null"> |
|||
eva_nickname, |
|||
</if> |
|||
<if test="blh != null"> |
|||
blh, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="patientNamePinyin != null"> |
|||
patient_name_pinyin, |
|||
</if> |
|||
<if test="patientNamePy != null"> |
|||
patient_name_py, |
|||
</if> |
|||
<if test="patientBirthday != null"> |
|||
patient_birthday, |
|||
</if> |
|||
<if test="patientIdcard != null"> |
|||
patient_idcard, |
|||
</if> |
|||
<if test="patientPhone != null"> |
|||
patient_phone, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="reportId != null"> |
|||
#{reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="deptId != null"> |
|||
#{deptId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientName != null"> |
|||
#{patientName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientAge != null"> |
|||
#{patientAge,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientGender != null"> |
|||
#{patientGender,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientHeight != null"> |
|||
#{patientHeight,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientWeight != null"> |
|||
#{patientWeight,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientWaistline != null"> |
|||
#{patientWaistline,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="evaId != null"> |
|||
#{evaId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="evaScaleCode != null"> |
|||
#{evaScaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="evaTime != null"> |
|||
#{evaTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="evaUsername != null"> |
|||
#{evaUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="evaNickname != null"> |
|||
#{evaNickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="blh != null"> |
|||
#{blh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
#{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="patientNamePinyin != null"> |
|||
#{patientNamePinyin,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientNamePy != null"> |
|||
#{patientNamePy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientBirthday != null"> |
|||
#{patientBirthday,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientIdcard != null"> |
|||
#{patientIdcard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientPhone != null"> |
|||
#{patientPhone,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_rms_report |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_rms_report |
|||
<set> |
|||
<if test="record.reportId != null"> |
|||
report_id = #{record.reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.deptId != null"> |
|||
dept_id = #{record.deptId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientName != null"> |
|||
patient_name = #{record.patientName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientAge != null"> |
|||
patient_age = #{record.patientAge,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientGender != null"> |
|||
patient_gender = #{record.patientGender,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientHeight != null"> |
|||
patient_height = #{record.patientHeight,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientWeight != null"> |
|||
patient_weight = #{record.patientWeight,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientWaistline != null"> |
|||
patient_waistline = #{record.patientWaistline,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.evaId != null"> |
|||
eva_id = #{record.evaId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.evaScaleCode != null"> |
|||
eva_scale_code = #{record.evaScaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.evaTime != null"> |
|||
eva_time = #{record.evaTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.evaUsername != null"> |
|||
eva_username = #{record.evaUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.evaNickname != null"> |
|||
eva_nickname = #{record.evaNickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.blh != null"> |
|||
blh = #{record.blh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.delFlag != null"> |
|||
del_flag = #{record.delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.patientNamePinyin != null"> |
|||
patient_name_pinyin = #{record.patientNamePinyin,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientNamePy != null"> |
|||
patient_name_py = #{record.patientNamePy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientBirthday != null"> |
|||
patient_birthday = #{record.patientBirthday,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientIdcard != null"> |
|||
patient_idcard = #{record.patientIdcard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.patientPhone != null"> |
|||
patient_phone = #{record.patientPhone,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzRmsReport"> |
|||
update zytz_rms_report |
|||
<set> |
|||
<if test="deptId != null"> |
|||
dept_id = #{deptId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientName != null"> |
|||
patient_name = #{patientName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientAge != null"> |
|||
patient_age = #{patientAge,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientGender != null"> |
|||
patient_gender = #{patientGender,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientHeight != null"> |
|||
patient_height = #{patientHeight,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientWeight != null"> |
|||
patient_weight = #{patientWeight,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientWaistline != null"> |
|||
patient_waistline = #{patientWaistline,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="evaId != null"> |
|||
eva_id = #{evaId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="evaScaleCode != null"> |
|||
eva_scale_code = #{evaScaleCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="evaTime != null"> |
|||
eva_time = #{evaTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="evaUsername != null"> |
|||
eva_username = #{evaUsername,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="evaNickname != null"> |
|||
eva_nickname = #{evaNickname,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="blh != null"> |
|||
blh = #{blh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="delFlag != null"> |
|||
del_flag = #{delFlag,jdbcType=CHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="patientNamePinyin != null"> |
|||
patient_name_pinyin = #{patientNamePinyin,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientNamePy != null"> |
|||
patient_name_py = #{patientNamePy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientBirthday != null"> |
|||
patient_birthday = #{patientBirthday,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientIdcard != null"> |
|||
patient_idcard = #{patientIdcard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="patientPhone != null"> |
|||
patient_phone = #{patientPhone,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where report_id = #{reportId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzRmsReport"> |
|||
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} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,300 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzRmsReportResultMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzRmsReportResult"> |
|||
<id column="result_id" jdbcType="BIGINT" property="resultId" /> |
|||
<result column="report_id" jdbcType="BIGINT" property="reportId" /> |
|||
<result column="consti_code" jdbcType="VARCHAR" property="constiCode" /> |
|||
<result column="consti_name" jdbcType="VARCHAR" property="constiName" /> |
|||
<result column="consti_level" jdbcType="VARCHAR" property="constiLevel" /> |
|||
<result column="consti_score" jdbcType="DECIMAL" property="constiScore" /> |
|||
<result column="main_flag" jdbcType="INTEGER" property="mainFlag" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
result_id, report_id, consti_code, consti_name, consti_level, consti_score, main_flag, |
|||
create_by, create_time, update_by, update_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportResultExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_rms_report_result |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_rms_report_result |
|||
where result_id = #{resultId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_rms_report_result |
|||
where result_id = #{resultId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportResult"> |
|||
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> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportResult"> |
|||
insert into zytz_rms_report_result |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="resultId != null"> |
|||
result_id, |
|||
</if> |
|||
<if test="reportId != null"> |
|||
report_id, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
consti_name, |
|||
</if> |
|||
<if test="constiLevel != null"> |
|||
consti_level, |
|||
</if> |
|||
<if test="constiScore != null"> |
|||
consti_score, |
|||
</if> |
|||
<if test="mainFlag != null"> |
|||
main_flag, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="resultId != null"> |
|||
#{resultId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="reportId != null"> |
|||
#{reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
#{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
#{constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiLevel != null"> |
|||
#{constiLevel,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiScore != null"> |
|||
#{constiScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="mainFlag != null"> |
|||
#{mainFlag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportResultExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_rms_report_result |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_rms_report_result |
|||
<set> |
|||
<if test="record.resultId != null"> |
|||
result_id = #{record.resultId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.reportId != null"> |
|||
report_id = #{record.reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.constiCode != null"> |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.constiName != null"> |
|||
consti_name = #{record.constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.constiLevel != null"> |
|||
consti_level = #{record.constiLevel,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.constiScore != null"> |
|||
consti_score = #{record.constiScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.mainFlag != null"> |
|||
main_flag = #{record.mainFlag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportResult"> |
|||
update zytz_rms_report_result |
|||
<set> |
|||
<if test="reportId != null"> |
|||
report_id = #{reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
consti_name = #{constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiLevel != null"> |
|||
consti_level = #{constiLevel,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiScore != null"> |
|||
consti_score = #{constiScore,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="mainFlag != null"> |
|||
main_flag = #{mainFlag,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
</set> |
|||
where result_id = #{resultId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportResult"> |
|||
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} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,318 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.acupuncture.system.persist.mapper.ZytzRmsReportYsjyMapper"> |
|||
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.ZytzRmsReportYsjy"> |
|||
<id column="ysjy_id" jdbcType="BIGINT" property="ysjyId" /> |
|||
<result column="report_id" jdbcType="BIGINT" property="reportId" /> |
|||
<result column="consti_code" jdbcType="VARCHAR" property="constiCode" /> |
|||
<result column="consti_name" jdbcType="VARCHAR" property="constiName" /> |
|||
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
</resultMap> |
|||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.acupuncture.system.domain.po.ZytzRmsReportYsjy"> |
|||
<result column="consti_ysjy" jdbcType="LONGVARCHAR" property="constiYsjy" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
ysjy_id, report_id, consti_code, consti_name, create_by, create_time, update_by, |
|||
update_time |
|||
</sql> |
|||
<sql id="Blob_Column_List"> |
|||
consti_ysjy |
|||
</sql> |
|||
<select id="selectByExampleWithBLOBs" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjyExample" resultMap="ResultMapWithBLOBs"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from zytz_rms_report_ysjy |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjyExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from zytz_rms_report_ysjy |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="ResultMapWithBLOBs"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from zytz_rms_report_ysjy |
|||
where ysjy_id = #{ysjyId,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from zytz_rms_report_ysjy |
|||
where ysjy_id = #{ysjyId,jdbcType=BIGINT} |
|||
</delete> |
|||
<insert id="insert" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjy"> |
|||
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> |
|||
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjy"> |
|||
insert into zytz_rms_report_ysjy |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="ysjyId != null"> |
|||
ysjy_id, |
|||
</if> |
|||
<if test="reportId != null"> |
|||
report_id, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
consti_name, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="constiYsjy != null"> |
|||
consti_ysjy, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="ysjyId != null"> |
|||
#{ysjyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="reportId != null"> |
|||
#{reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
#{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
#{constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
#{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
#{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="constiYsjy != null"> |
|||
#{constiYsjy,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjyExample" resultType="java.lang.Long"> |
|||
select count(*) from zytz_rms_report_ysjy |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update zytz_rms_report_ysjy |
|||
<set> |
|||
<if test="record.ysjyId != null"> |
|||
ysjy_id = #{record.ysjyId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.reportId != null"> |
|||
report_id = #{record.reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.constiCode != null"> |
|||
consti_code = #{record.constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.constiName != null"> |
|||
consti_name = #{record.constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createBy != null"> |
|||
create_by = #{record.createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateBy != null"> |
|||
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.constiYsjy != null"> |
|||
consti_ysjy = #{record.constiYsjy,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
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} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjy"> |
|||
update zytz_rms_report_ysjy |
|||
<set> |
|||
<if test="reportId != null"> |
|||
report_id = #{reportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="constiCode != null"> |
|||
consti_code = #{constiCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="constiName != null"> |
|||
consti_name = #{constiName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createBy != null"> |
|||
create_by = #{createBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateBy != null"> |
|||
update_by = #{updateBy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="constiYsjy != null"> |
|||
consti_ysjy = #{constiYsjy,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
where ysjy_id = #{ysjyId,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjy"> |
|||
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> |
|||
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.ZytzRmsReportYsjy"> |
|||
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} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue