31 changed files with 5345 additions and 4927 deletions
@ -1,183 +1,205 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtPatientAcp implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientId; |
|||
|
|||
private String ct; |
|||
|
|||
private String mri; |
|||
|
|||
private String hcy; |
|||
|
|||
private String vb12; |
|||
|
|||
private String folicAcid; |
|||
|
|||
private String tt3; |
|||
|
|||
private String tt4; |
|||
|
|||
private String tsh; |
|||
|
|||
private String remark; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private Long recorder; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public String getCt() { |
|||
return ct; |
|||
} |
|||
|
|||
public void setCt(String ct) { |
|||
this.ct = ct == null ? null : ct.trim(); |
|||
} |
|||
|
|||
public String getMri() { |
|||
return mri; |
|||
} |
|||
|
|||
public void setMri(String mri) { |
|||
this.mri = mri == null ? null : mri.trim(); |
|||
} |
|||
|
|||
public String getHcy() { |
|||
return hcy; |
|||
} |
|||
|
|||
public void setHcy(String hcy) { |
|||
this.hcy = hcy == null ? null : hcy.trim(); |
|||
} |
|||
|
|||
public String getVb12() { |
|||
return vb12; |
|||
} |
|||
|
|||
public void setVb12(String vb12) { |
|||
this.vb12 = vb12 == null ? null : vb12.trim(); |
|||
} |
|||
|
|||
public String getFolicAcid() { |
|||
return folicAcid; |
|||
} |
|||
|
|||
public void setFolicAcid(String folicAcid) { |
|||
this.folicAcid = folicAcid == null ? null : folicAcid.trim(); |
|||
} |
|||
|
|||
public String getTt3() { |
|||
return tt3; |
|||
} |
|||
|
|||
public void setTt3(String tt3) { |
|||
this.tt3 = tt3 == null ? null : tt3.trim(); |
|||
} |
|||
|
|||
public String getTt4() { |
|||
return tt4; |
|||
} |
|||
|
|||
public void setTt4(String tt4) { |
|||
this.tt4 = tt4 == null ? null : tt4.trim(); |
|||
} |
|||
|
|||
public String getTsh() { |
|||
return tsh; |
|||
} |
|||
|
|||
public void setTsh(String tsh) { |
|||
this.tsh = tsh == null ? null : tsh.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
public Long getRecorder() { |
|||
return recorder; |
|||
} |
|||
|
|||
public void setRecorder(Long recorder) { |
|||
this.recorder = recorder; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", patientId=").append(patientId); |
|||
sb.append(", ct=").append(ct); |
|||
sb.append(", mri=").append(mri); |
|||
sb.append(", hcy=").append(hcy); |
|||
sb.append(", vb12=").append(vb12); |
|||
sb.append(", folicAcid=").append(folicAcid); |
|||
sb.append(", tt3=").append(tt3); |
|||
sb.append(", tt4=").append(tt4); |
|||
sb.append(", tsh=").append(tsh); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append(", recorder=").append(recorder); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtPatientAcp implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientId; |
|||
|
|||
private String ct; |
|||
|
|||
private String mri; |
|||
|
|||
private String hcy; |
|||
|
|||
private String vb12; |
|||
|
|||
private String folicAcid; |
|||
|
|||
private String tt3; |
|||
|
|||
private String tt4; |
|||
|
|||
private String tsh; |
|||
|
|||
private String remark; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private Long recorder; |
|||
|
|||
private String ta1; |
|||
|
|||
private String tpt; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public String getCt() { |
|||
return ct; |
|||
} |
|||
|
|||
public void setCt(String ct) { |
|||
this.ct = ct == null ? null : ct.trim(); |
|||
} |
|||
|
|||
public String getMri() { |
|||
return mri; |
|||
} |
|||
|
|||
public void setMri(String mri) { |
|||
this.mri = mri == null ? null : mri.trim(); |
|||
} |
|||
|
|||
public String getHcy() { |
|||
return hcy; |
|||
} |
|||
|
|||
public void setHcy(String hcy) { |
|||
this.hcy = hcy == null ? null : hcy.trim(); |
|||
} |
|||
|
|||
public String getVb12() { |
|||
return vb12; |
|||
} |
|||
|
|||
public void setVb12(String vb12) { |
|||
this.vb12 = vb12 == null ? null : vb12.trim(); |
|||
} |
|||
|
|||
public String getFolicAcid() { |
|||
return folicAcid; |
|||
} |
|||
|
|||
public void setFolicAcid(String folicAcid) { |
|||
this.folicAcid = folicAcid == null ? null : folicAcid.trim(); |
|||
} |
|||
|
|||
public String getTt3() { |
|||
return tt3; |
|||
} |
|||
|
|||
public void setTt3(String tt3) { |
|||
this.tt3 = tt3 == null ? null : tt3.trim(); |
|||
} |
|||
|
|||
public String getTt4() { |
|||
return tt4; |
|||
} |
|||
|
|||
public void setTt4(String tt4) { |
|||
this.tt4 = tt4 == null ? null : tt4.trim(); |
|||
} |
|||
|
|||
public String getTsh() { |
|||
return tsh; |
|||
} |
|||
|
|||
public void setTsh(String tsh) { |
|||
this.tsh = tsh == null ? null : tsh.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
public Long getRecorder() { |
|||
return recorder; |
|||
} |
|||
|
|||
public void setRecorder(Long recorder) { |
|||
this.recorder = recorder; |
|||
} |
|||
|
|||
public String getTa1() { |
|||
return ta1; |
|||
} |
|||
|
|||
public void setTa1(String ta1) { |
|||
this.ta1 = ta1 == null ? null : ta1.trim(); |
|||
} |
|||
|
|||
public String getTpt() { |
|||
return tpt; |
|||
} |
|||
|
|||
public void setTpt(String tpt) { |
|||
this.tpt = tpt == null ? null : tpt.trim(); |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", patientId=").append(patientId); |
|||
sb.append(", ct=").append(ct); |
|||
sb.append(", mri=").append(mri); |
|||
sb.append(", hcy=").append(hcy); |
|||
sb.append(", vb12=").append(vb12); |
|||
sb.append(", folicAcid=").append(folicAcid); |
|||
sb.append(", tt3=").append(tt3); |
|||
sb.append(", tt4=").append(tt4); |
|||
sb.append(", tsh=").append(tsh); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append(", recorder=").append(recorder); |
|||
sb.append(", ta1=").append(ta1); |
|||
sb.append(", tpt=").append(tpt); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -1,183 +1,184 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtPatientScore implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientReportId; |
|||
|
|||
private Long patientId; |
|||
|
|||
private String questionParentCode; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Long optionId; |
|||
|
|||
private String optionName; |
|||
|
|||
private Integer score; |
|||
|
|||
private Byte type; |
|||
|
|||
private String answer; |
|||
|
|||
private String remark; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private Long answerTime; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientReportId() { |
|||
return patientReportId; |
|||
} |
|||
|
|||
public void setPatientReportId(Long patientReportId) { |
|||
this.patientReportId = patientReportId; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public String getQuestionParentCode() { |
|||
return questionParentCode; |
|||
} |
|||
|
|||
public void setQuestionParentCode(String questionParentCode) { |
|||
this.questionParentCode = questionParentCode == null ? null : questionParentCode.trim(); |
|||
} |
|||
|
|||
public Long getQuestionId() { |
|||
return questionId; |
|||
} |
|||
|
|||
public void setQuestionId(Long questionId) { |
|||
this.questionId = questionId; |
|||
} |
|||
|
|||
public Long getOptionId() { |
|||
return optionId; |
|||
} |
|||
|
|||
public void setOptionId(Long optionId) { |
|||
this.optionId = optionId; |
|||
} |
|||
|
|||
public String getOptionName() { |
|||
return optionName; |
|||
} |
|||
|
|||
public void setOptionName(String optionName) { |
|||
this.optionName = optionName == null ? null : optionName.trim(); |
|||
} |
|||
|
|||
public Integer getScore() { |
|||
return score; |
|||
} |
|||
|
|||
public void setScore(Integer score) { |
|||
this.score = score; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
public Long getAnswerTime() { |
|||
return answerTime; |
|||
} |
|||
|
|||
public void setAnswerTime(Long answerTime) { |
|||
this.answerTime = answerTime; |
|||
} |
|||
|
|||
@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(", patientReportId=").append(patientReportId); |
|||
sb.append(", patientId=").append(patientId); |
|||
sb.append(", questionParentCode=").append(questionParentCode); |
|||
sb.append(", questionId=").append(questionId); |
|||
sb.append(", optionId=").append(optionId); |
|||
sb.append(", optionName=").append(optionName); |
|||
sb.append(", score=").append(score); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append(", answerTime=").append(answerTime); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
public class HtPatientScore implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientReportId; |
|||
|
|||
private Long patientId; |
|||
|
|||
private String questionParentCode; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Long optionId; |
|||
|
|||
private String optionName; |
|||
|
|||
private BigDecimal score; |
|||
|
|||
private Byte type; |
|||
|
|||
private String answer; |
|||
|
|||
private String remark; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private Long answerTime; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientReportId() { |
|||
return patientReportId; |
|||
} |
|||
|
|||
public void setPatientReportId(Long patientReportId) { |
|||
this.patientReportId = patientReportId; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public String getQuestionParentCode() { |
|||
return questionParentCode; |
|||
} |
|||
|
|||
public void setQuestionParentCode(String questionParentCode) { |
|||
this.questionParentCode = questionParentCode == null ? null : questionParentCode.trim(); |
|||
} |
|||
|
|||
public Long getQuestionId() { |
|||
return questionId; |
|||
} |
|||
|
|||
public void setQuestionId(Long questionId) { |
|||
this.questionId = questionId; |
|||
} |
|||
|
|||
public Long getOptionId() { |
|||
return optionId; |
|||
} |
|||
|
|||
public void setOptionId(Long optionId) { |
|||
this.optionId = optionId; |
|||
} |
|||
|
|||
public String getOptionName() { |
|||
return optionName; |
|||
} |
|||
|
|||
public void setOptionName(String optionName) { |
|||
this.optionName = optionName == null ? null : optionName.trim(); |
|||
} |
|||
|
|||
public BigDecimal getScore() { |
|||
return score; |
|||
} |
|||
|
|||
public void setScore(BigDecimal score) { |
|||
this.score = score; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
public Long getAnswerTime() { |
|||
return answerTime; |
|||
} |
|||
|
|||
public void setAnswerTime(Long answerTime) { |
|||
this.answerTime = answerTime; |
|||
} |
|||
|
|||
@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(", patientReportId=").append(patientReportId); |
|||
sb.append(", patientId=").append(patientId); |
|||
sb.append(", questionParentCode=").append(questionParentCode); |
|||
sb.append(", questionId=").append(questionId); |
|||
sb.append(", optionId=").append(optionId); |
|||
sb.append(", optionName=").append(optionName); |
|||
sb.append(", score=").append(score); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append(", answerTime=").append(answerTime); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -1,139 +1,140 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtQuestionOption implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Integer sort; |
|||
|
|||
private String type; |
|||
|
|||
private String name; |
|||
|
|||
private Integer score; |
|||
|
|||
private String display; |
|||
|
|||
private String remark; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getQuestionId() { |
|||
return questionId; |
|||
} |
|||
|
|||
public void setQuestionId(Long questionId) { |
|||
this.questionId = questionId; |
|||
} |
|||
|
|||
public Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public String getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(String type) { |
|||
this.type = type == null ? null : type.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Integer getScore() { |
|||
return score; |
|||
} |
|||
|
|||
public void setScore(Integer score) { |
|||
this.score = score; |
|||
} |
|||
|
|||
public String getDisplay() { |
|||
return display; |
|||
} |
|||
|
|||
public void setDisplay(String display) { |
|||
this.display = display == null ? null : display.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
@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(", questionId=").append(questionId); |
|||
sb.append(", sort=").append(sort); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", score=").append(score); |
|||
sb.append(", display=").append(display); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.math.BigDecimal; |
|||
import java.util.Date; |
|||
|
|||
public class HtQuestionOption implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Integer sort; |
|||
|
|||
private String type; |
|||
|
|||
private String name; |
|||
|
|||
private BigDecimal score; |
|||
|
|||
private String display; |
|||
|
|||
private String remark; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getQuestionId() { |
|||
return questionId; |
|||
} |
|||
|
|||
public void setQuestionId(Long questionId) { |
|||
this.questionId = questionId; |
|||
} |
|||
|
|||
public Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public String getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(String type) { |
|||
this.type = type == null ? null : type.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public BigDecimal getScore() { |
|||
return score; |
|||
} |
|||
|
|||
public void setScore(BigDecimal score) { |
|||
this.score = score; |
|||
} |
|||
|
|||
public String getDisplay() { |
|||
return display; |
|||
} |
|||
|
|||
public void setDisplay(String display) { |
|||
this.display = display == null ? null : display.trim(); |
|||
} |
|||
|
|||
public String getRemark() { |
|||
return remark; |
|||
} |
|||
|
|||
public void setRemark(String remark) { |
|||
this.remark = remark == null ? null : remark.trim(); |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
@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(", questionId=").append(questionId); |
|||
sb.append(", sort=").append(sort); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", score=").append(score); |
|||
sb.append(", display=").append(display); |
|||
sb.append(", remark=").append(remark); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -1,30 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientAcp; |
|||
import com.ccsens.ht.bean.po.HtPatientAcpExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtPatientAcpMapper { |
|||
long countByExample(HtPatientAcpExample example); |
|||
|
|||
int deleteByExample(HtPatientAcpExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtPatientAcp record); |
|||
|
|||
int insertSelective(HtPatientAcp record); |
|||
|
|||
List<HtPatientAcp> selectByExample(HtPatientAcpExample example); |
|||
|
|||
HtPatientAcp selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example); |
|||
|
|||
int updateByExample(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtPatientAcp record); |
|||
|
|||
int updateByPrimaryKey(HtPatientAcp record); |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientAcp; |
|||
import com.ccsens.ht.bean.po.HtPatientAcpExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtPatientAcpMapper { |
|||
long countByExample(HtPatientAcpExample example); |
|||
|
|||
int deleteByExample(HtPatientAcpExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtPatientAcp record); |
|||
|
|||
int insertSelective(HtPatientAcp record); |
|||
|
|||
List<HtPatientAcp> selectByExample(HtPatientAcpExample example); |
|||
|
|||
HtPatientAcp selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example); |
|||
|
|||
int updateByExample(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtPatientAcp record); |
|||
|
|||
int updateByPrimaryKey(HtPatientAcp record); |
|||
} |
@ -1,30 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientScore; |
|||
import com.ccsens.ht.bean.po.HtPatientScoreExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtPatientScoreMapper { |
|||
long countByExample(HtPatientScoreExample example); |
|||
|
|||
int deleteByExample(HtPatientScoreExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtPatientScore record); |
|||
|
|||
int insertSelective(HtPatientScore record); |
|||
|
|||
List<HtPatientScore> selectByExample(HtPatientScoreExample example); |
|||
|
|||
HtPatientScore selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example); |
|||
|
|||
int updateByExample(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtPatientScore record); |
|||
|
|||
int updateByPrimaryKey(HtPatientScore record); |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientScore; |
|||
import com.ccsens.ht.bean.po.HtPatientScoreExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtPatientScoreMapper { |
|||
long countByExample(HtPatientScoreExample example); |
|||
|
|||
int deleteByExample(HtPatientScoreExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtPatientScore record); |
|||
|
|||
int insertSelective(HtPatientScore record); |
|||
|
|||
List<HtPatientScore> selectByExample(HtPatientScoreExample example); |
|||
|
|||
HtPatientScore selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example); |
|||
|
|||
int updateByExample(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtPatientScore record); |
|||
|
|||
int updateByPrimaryKey(HtPatientScore record); |
|||
} |
@ -1,30 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionOption; |
|||
import com.ccsens.ht.bean.po.HtQuestionOptionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtQuestionOptionMapper { |
|||
long countByExample(HtQuestionOptionExample example); |
|||
|
|||
int deleteByExample(HtQuestionOptionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtQuestionOption record); |
|||
|
|||
int insertSelective(HtQuestionOption record); |
|||
|
|||
List<HtQuestionOption> selectByExample(HtQuestionOptionExample example); |
|||
|
|||
HtQuestionOption selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example); |
|||
|
|||
int updateByExample(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtQuestionOption record); |
|||
|
|||
int updateByPrimaryKey(HtQuestionOption record); |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionOption; |
|||
import com.ccsens.ht.bean.po.HtQuestionOptionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtQuestionOptionMapper { |
|||
long countByExample(HtQuestionOptionExample example); |
|||
|
|||
int deleteByExample(HtQuestionOptionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtQuestionOption record); |
|||
|
|||
int insertSelective(HtQuestionOption record); |
|||
|
|||
List<HtQuestionOption> selectByExample(HtQuestionOptionExample example); |
|||
|
|||
HtQuestionOption selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example); |
|||
|
|||
int updateByExample(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtQuestionOption record); |
|||
|
|||
int updateByPrimaryKey(HtQuestionOption record); |
|||
} |
@ -1,368 +1,398 @@ |
|||
<?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.ccsens.ht.persist.mapper.HtPatientAcpMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="ct" jdbcType="VARCHAR" property="ct" /> |
|||
<result column="mri" jdbcType="VARCHAR" property="mri" /> |
|||
<result column="hcy" jdbcType="VARCHAR" property="hcy" /> |
|||
<result column="vb12" jdbcType="VARCHAR" property="vb12" /> |
|||
<result column="folic_acid" jdbcType="VARCHAR" property="folicAcid" /> |
|||
<result column="tt3" jdbcType="VARCHAR" property="tt3" /> |
|||
<result column="tt4" jdbcType="VARCHAR" property="tt4" /> |
|||
<result column="tsh" jdbcType="VARCHAR" property="tsh" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
<result column="recorder" jdbcType="BIGINT" property="recorder" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, patient_id, ct, mri, hcy, vb12, folic_acid, tt3, tt4, tsh, remark, create_time, |
|||
update_time, is_del, recorder |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientAcpExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_patient_acp |
|||
<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 t_ht_patient_acp |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_patient_acp |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtPatientAcpExample"> |
|||
delete from t_ht_patient_acp |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
insert into t_ht_patient_acp (id, patient_id, ct, |
|||
mri, hcy, vb12, folic_acid, |
|||
tt3, tt4, tsh, remark, |
|||
create_time, update_time, is_del, |
|||
recorder) |
|||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{ct,jdbcType=VARCHAR}, |
|||
#{mri,jdbcType=VARCHAR}, #{hcy,jdbcType=VARCHAR}, #{vb12,jdbcType=VARCHAR}, #{folicAcid,jdbcType=VARCHAR}, |
|||
#{tt3,jdbcType=VARCHAR}, #{tt4,jdbcType=VARCHAR}, #{tsh,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, |
|||
#{recorder,jdbcType=BIGINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
insert into t_ht_patient_acp |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="ct != null"> |
|||
ct, |
|||
</if> |
|||
<if test="mri != null"> |
|||
mri, |
|||
</if> |
|||
<if test="hcy != null"> |
|||
hcy, |
|||
</if> |
|||
<if test="vb12 != null"> |
|||
vb12, |
|||
</if> |
|||
<if test="folicAcid != null"> |
|||
folic_acid, |
|||
</if> |
|||
<if test="tt3 != null"> |
|||
tt3, |
|||
</if> |
|||
<if test="tt4 != null"> |
|||
tt4, |
|||
</if> |
|||
<if test="tsh != null"> |
|||
tsh, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
<if test="recorder != null"> |
|||
recorder, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ct != null"> |
|||
#{ct,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="mri != null"> |
|||
#{mri,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hcy != null"> |
|||
#{hcy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="vb12 != null"> |
|||
#{vb12,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="folicAcid != null"> |
|||
#{folicAcid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt3 != null"> |
|||
#{tt3,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt4 != null"> |
|||
#{tt4,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tsh != null"> |
|||
#{tsh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="recorder != null"> |
|||
#{recorder,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientAcpExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_patient_acp |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_patient_acp |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.ct != null"> |
|||
ct = #{record.ct,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.mri != null"> |
|||
mri = #{record.mri,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.hcy != null"> |
|||
hcy = #{record.hcy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.vb12 != null"> |
|||
vb12 = #{record.vb12,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.folicAcid != null"> |
|||
folic_acid = #{record.folicAcid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tt3 != null"> |
|||
tt3 = #{record.tt3,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tt4 != null"> |
|||
tt4 = #{record.tt4,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tsh != null"> |
|||
tsh = #{record.tsh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.recorder != null"> |
|||
recorder = #{record.recorder,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_patient_acp |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
ct = #{record.ct,jdbcType=VARCHAR}, |
|||
mri = #{record.mri,jdbcType=VARCHAR}, |
|||
hcy = #{record.hcy,jdbcType=VARCHAR}, |
|||
vb12 = #{record.vb12,jdbcType=VARCHAR}, |
|||
folic_acid = #{record.folicAcid,jdbcType=VARCHAR}, |
|||
tt3 = #{record.tt3,jdbcType=VARCHAR}, |
|||
tt4 = #{record.tt4,jdbcType=VARCHAR}, |
|||
tsh = #{record.tsh,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
recorder = #{record.recorder,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
update t_ht_patient_acp |
|||
<set> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ct != null"> |
|||
ct = #{ct,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="mri != null"> |
|||
mri = #{mri,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hcy != null"> |
|||
hcy = #{hcy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="vb12 != null"> |
|||
vb12 = #{vb12,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="folicAcid != null"> |
|||
folic_acid = #{folicAcid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt3 != null"> |
|||
tt3 = #{tt3,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt4 != null"> |
|||
tt4 = #{tt4,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tsh != null"> |
|||
tsh = #{tsh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="recorder != null"> |
|||
recorder = #{recorder,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
update t_ht_patient_acp |
|||
set patient_id = #{patientId,jdbcType=BIGINT}, |
|||
ct = #{ct,jdbcType=VARCHAR}, |
|||
mri = #{mri,jdbcType=VARCHAR}, |
|||
hcy = #{hcy,jdbcType=VARCHAR}, |
|||
vb12 = #{vb12,jdbcType=VARCHAR}, |
|||
folic_acid = #{folicAcid,jdbcType=VARCHAR}, |
|||
tt3 = #{tt3,jdbcType=VARCHAR}, |
|||
tt4 = #{tt4,jdbcType=VARCHAR}, |
|||
tsh = #{tsh,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
recorder = #{recorder,jdbcType=BIGINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<?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.ccsens.ht.persist.mapper.HtPatientAcpMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="ct" jdbcType="VARCHAR" property="ct" /> |
|||
<result column="mri" jdbcType="VARCHAR" property="mri" /> |
|||
<result column="hcy" jdbcType="VARCHAR" property="hcy" /> |
|||
<result column="vb12" jdbcType="VARCHAR" property="vb12" /> |
|||
<result column="folic_acid" jdbcType="VARCHAR" property="folicAcid" /> |
|||
<result column="tt3" jdbcType="VARCHAR" property="tt3" /> |
|||
<result column="tt4" jdbcType="VARCHAR" property="tt4" /> |
|||
<result column="tsh" jdbcType="VARCHAR" property="tsh" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
<result column="recorder" jdbcType="BIGINT" property="recorder" /> |
|||
<result column="ta1" jdbcType="VARCHAR" property="ta1" /> |
|||
<result column="tpt" jdbcType="VARCHAR" property="tpt" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, patient_id, ct, mri, hcy, vb12, folic_acid, tt3, tt4, tsh, remark, create_time, |
|||
update_time, is_del, recorder, ta1, tpt |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientAcpExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_patient_acp |
|||
<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 t_ht_patient_acp |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_patient_acp |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtPatientAcpExample"> |
|||
delete from t_ht_patient_acp |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
insert into t_ht_patient_acp (id, patient_id, ct, |
|||
mri, hcy, vb12, folic_acid, |
|||
tt3, tt4, tsh, remark, |
|||
create_time, update_time, is_del, |
|||
recorder, ta1, tpt) |
|||
values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{ct,jdbcType=VARCHAR}, |
|||
#{mri,jdbcType=VARCHAR}, #{hcy,jdbcType=VARCHAR}, #{vb12,jdbcType=VARCHAR}, #{folicAcid,jdbcType=VARCHAR}, |
|||
#{tt3,jdbcType=VARCHAR}, #{tt4,jdbcType=VARCHAR}, #{tsh,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, |
|||
#{recorder,jdbcType=BIGINT}, #{ta1,jdbcType=VARCHAR}, #{tpt,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
insert into t_ht_patient_acp |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="ct != null"> |
|||
ct, |
|||
</if> |
|||
<if test="mri != null"> |
|||
mri, |
|||
</if> |
|||
<if test="hcy != null"> |
|||
hcy, |
|||
</if> |
|||
<if test="vb12 != null"> |
|||
vb12, |
|||
</if> |
|||
<if test="folicAcid != null"> |
|||
folic_acid, |
|||
</if> |
|||
<if test="tt3 != null"> |
|||
tt3, |
|||
</if> |
|||
<if test="tt4 != null"> |
|||
tt4, |
|||
</if> |
|||
<if test="tsh != null"> |
|||
tsh, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
<if test="recorder != null"> |
|||
recorder, |
|||
</if> |
|||
<if test="ta1 != null"> |
|||
ta1, |
|||
</if> |
|||
<if test="tpt != null"> |
|||
tpt, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ct != null"> |
|||
#{ct,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="mri != null"> |
|||
#{mri,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hcy != null"> |
|||
#{hcy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="vb12 != null"> |
|||
#{vb12,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="folicAcid != null"> |
|||
#{folicAcid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt3 != null"> |
|||
#{tt3,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt4 != null"> |
|||
#{tt4,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tsh != null"> |
|||
#{tsh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="recorder != null"> |
|||
#{recorder,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ta1 != null"> |
|||
#{ta1,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tpt != null"> |
|||
#{tpt,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientAcpExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_patient_acp |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_patient_acp |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.ct != null"> |
|||
ct = #{record.ct,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.mri != null"> |
|||
mri = #{record.mri,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.hcy != null"> |
|||
hcy = #{record.hcy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.vb12 != null"> |
|||
vb12 = #{record.vb12,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.folicAcid != null"> |
|||
folic_acid = #{record.folicAcid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tt3 != null"> |
|||
tt3 = #{record.tt3,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tt4 != null"> |
|||
tt4 = #{record.tt4,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tsh != null"> |
|||
tsh = #{record.tsh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.recorder != null"> |
|||
recorder = #{record.recorder,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.ta1 != null"> |
|||
ta1 = #{record.ta1,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.tpt != null"> |
|||
tpt = #{record.tpt,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_patient_acp |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
ct = #{record.ct,jdbcType=VARCHAR}, |
|||
mri = #{record.mri,jdbcType=VARCHAR}, |
|||
hcy = #{record.hcy,jdbcType=VARCHAR}, |
|||
vb12 = #{record.vb12,jdbcType=VARCHAR}, |
|||
folic_acid = #{record.folicAcid,jdbcType=VARCHAR}, |
|||
tt3 = #{record.tt3,jdbcType=VARCHAR}, |
|||
tt4 = #{record.tt4,jdbcType=VARCHAR}, |
|||
tsh = #{record.tsh,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
recorder = #{record.recorder,jdbcType=BIGINT}, |
|||
ta1 = #{record.ta1,jdbcType=VARCHAR}, |
|||
tpt = #{record.tpt,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
update t_ht_patient_acp |
|||
<set> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ct != null"> |
|||
ct = #{ct,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="mri != null"> |
|||
mri = #{mri,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hcy != null"> |
|||
hcy = #{hcy,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="vb12 != null"> |
|||
vb12 = #{vb12,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="folicAcid != null"> |
|||
folic_acid = #{folicAcid,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt3 != null"> |
|||
tt3 = #{tt3,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tt4 != null"> |
|||
tt4 = #{tt4,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tsh != null"> |
|||
tsh = #{tsh,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="recorder != null"> |
|||
recorder = #{recorder,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="ta1 != null"> |
|||
ta1 = #{ta1,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="tpt != null"> |
|||
tpt = #{tpt,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtPatientAcp"> |
|||
update t_ht_patient_acp |
|||
set patient_id = #{patientId,jdbcType=BIGINT}, |
|||
ct = #{ct,jdbcType=VARCHAR}, |
|||
mri = #{mri,jdbcType=VARCHAR}, |
|||
hcy = #{hcy,jdbcType=VARCHAR}, |
|||
vb12 = #{vb12,jdbcType=VARCHAR}, |
|||
folic_acid = #{folicAcid,jdbcType=VARCHAR}, |
|||
tt3 = #{tt3,jdbcType=VARCHAR}, |
|||
tt4 = #{tt4,jdbcType=VARCHAR}, |
|||
tsh = #{tsh,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
recorder = #{recorder,jdbcType=BIGINT}, |
|||
ta1 = #{ta1,jdbcType=VARCHAR}, |
|||
tpt = #{tpt,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -1,370 +1,370 @@ |
|||
<?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.ccsens.ht.persist.mapper.HtPatientScoreMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_report_id" jdbcType="BIGINT" property="patientReportId" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="question_parent_code" jdbcType="VARCHAR" property="questionParentCode" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="option_id" jdbcType="BIGINT" property="optionId" /> |
|||
<result column="option_name" jdbcType="VARCHAR" property="optionName" /> |
|||
<result column="score" jdbcType="INTEGER" property="score" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="answer" jdbcType="VARCHAR" property="answer" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
<result column="answer_time" jdbcType="BIGINT" property="answerTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, patient_report_id, patient_id, question_parent_code, question_id, option_id, |
|||
option_name, score, type, answer, remark, create_time, update_time, is_del, answer_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientScoreExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_patient_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 t_ht_patient_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_patient_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtPatientScoreExample"> |
|||
delete from t_ht_patient_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
insert into t_ht_patient_score (id, patient_report_id, patient_id, |
|||
question_parent_code, question_id, option_id, |
|||
option_name, score, type, |
|||
answer, remark, create_time, |
|||
update_time, is_del, answer_time |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{patientReportId,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, |
|||
#{questionParentCode,jdbcType=VARCHAR}, #{questionId,jdbcType=BIGINT}, #{optionId,jdbcType=BIGINT}, |
|||
#{optionName,jdbcType=VARCHAR}, #{score,jdbcType=INTEGER}, #{type,jdbcType=TINYINT}, |
|||
#{answer,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, #{answerTime,jdbcType=BIGINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
insert into t_ht_patient_score |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="questionParentCode != null"> |
|||
question_parent_code, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="optionId != null"> |
|||
option_id, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name, |
|||
</if> |
|||
<if test="score != null"> |
|||
score, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
<if test="answerTime != null"> |
|||
answer_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientReportId != null"> |
|||
#{patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionParentCode != null"> |
|||
#{questionParentCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
#{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionId != null"> |
|||
#{optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
#{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
#{score,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
#{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answerTime != null"> |
|||
#{answerTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientScoreExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_patient_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_patient_score |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientReportId != null"> |
|||
patient_report_id = #{record.patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionParentCode != null"> |
|||
question_parent_code = #{record.questionParentCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.questionId != null"> |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.optionId != null"> |
|||
option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.optionName != null"> |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.score != null"> |
|||
score = #{record.score,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.answer != null"> |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.answerTime != null"> |
|||
answer_time = #{record.answerTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_patient_score |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_report_id = #{record.patientReportId,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
question_parent_code = #{record.questionParentCode,jdbcType=VARCHAR}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
score = #{record.score,jdbcType=INTEGER}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
answer_time = #{record.answerTime,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
update t_ht_patient_score |
|||
<set> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionParentCode != null"> |
|||
question_parent_code = #{questionParentCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionId != null"> |
|||
option_id = #{optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
score = #{score,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answerTime != null"> |
|||
answer_time = #{answerTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
update t_ht_patient_score |
|||
set patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
question_parent_code = #{questionParentCode,jdbcType=VARCHAR}, |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
option_id = #{optionId,jdbcType=BIGINT}, |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
score = #{score,jdbcType=INTEGER}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
answer_time = #{answerTime,jdbcType=BIGINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<?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.ccsens.ht.persist.mapper.HtPatientScoreMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_report_id" jdbcType="BIGINT" property="patientReportId" /> |
|||
<result column="patient_id" jdbcType="BIGINT" property="patientId" /> |
|||
<result column="question_parent_code" jdbcType="VARCHAR" property="questionParentCode" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="option_id" jdbcType="BIGINT" property="optionId" /> |
|||
<result column="option_name" jdbcType="VARCHAR" property="optionName" /> |
|||
<result column="score" jdbcType="DECIMAL" property="score" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="answer" jdbcType="VARCHAR" property="answer" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
<result column="answer_time" jdbcType="BIGINT" property="answerTime" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, patient_report_id, patient_id, question_parent_code, question_id, option_id, |
|||
option_name, score, type, answer, remark, create_time, update_time, is_del, answer_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientScoreExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_patient_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 t_ht_patient_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_patient_score |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtPatientScoreExample"> |
|||
delete from t_ht_patient_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
insert into t_ht_patient_score (id, patient_report_id, patient_id, |
|||
question_parent_code, question_id, option_id, |
|||
option_name, score, type, |
|||
answer, remark, create_time, |
|||
update_time, is_del, answer_time |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{patientReportId,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, |
|||
#{questionParentCode,jdbcType=VARCHAR}, #{questionId,jdbcType=BIGINT}, #{optionId,jdbcType=BIGINT}, |
|||
#{optionName,jdbcType=VARCHAR}, #{score,jdbcType=DECIMAL}, #{type,jdbcType=TINYINT}, |
|||
#{answer,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, #{answerTime,jdbcType=BIGINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
insert into t_ht_patient_score |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id, |
|||
</if> |
|||
<if test="questionParentCode != null"> |
|||
question_parent_code, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="optionId != null"> |
|||
option_id, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name, |
|||
</if> |
|||
<if test="score != null"> |
|||
score, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
<if test="answerTime != null"> |
|||
answer_time, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientReportId != null"> |
|||
#{patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
#{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionParentCode != null"> |
|||
#{questionParentCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
#{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionId != null"> |
|||
#{optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
#{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
#{score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
#{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answerTime != null"> |
|||
#{answerTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientScoreExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_patient_score |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_patient_score |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientReportId != null"> |
|||
patient_report_id = #{record.patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientId != null"> |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionParentCode != null"> |
|||
question_parent_code = #{record.questionParentCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.questionId != null"> |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.optionId != null"> |
|||
option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.optionName != null"> |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.score != null"> |
|||
score = #{record.score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.answer != null"> |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.answerTime != null"> |
|||
answer_time = #{record.answerTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_patient_score |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_report_id = #{record.patientReportId,jdbcType=BIGINT}, |
|||
patient_id = #{record.patientId,jdbcType=BIGINT}, |
|||
question_parent_code = #{record.questionParentCode,jdbcType=VARCHAR}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
option_name = #{record.optionName,jdbcType=VARCHAR}, |
|||
score = #{record.score,jdbcType=DECIMAL}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
answer_time = #{record.answerTime,jdbcType=BIGINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
update t_ht_patient_score |
|||
<set> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientId != null"> |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionParentCode != null"> |
|||
question_parent_code = #{questionParentCode,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionId != null"> |
|||
option_id = #{optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionName != null"> |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
score = #{score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="answerTime != null"> |
|||
answer_time = #{answerTime,jdbcType=BIGINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtPatientScore"> |
|||
update t_ht_patient_score |
|||
set patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
patient_id = #{patientId,jdbcType=BIGINT}, |
|||
question_parent_code = #{questionParentCode,jdbcType=VARCHAR}, |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
option_id = #{optionId,jdbcType=BIGINT}, |
|||
option_name = #{optionName,jdbcType=VARCHAR}, |
|||
score = #{score,jdbcType=DECIMAL}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
answer_time = #{answerTime,jdbcType=BIGINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -1,306 +1,306 @@ |
|||
<?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.ccsens.ht.persist.mapper.HtQuestionOptionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="type" jdbcType="VARCHAR" property="type" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="score" jdbcType="INTEGER" property="score" /> |
|||
<result column="display" jdbcType="VARCHAR" property="display" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
</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, question_id, sort, type, name, score, display, remark, create_time, update_time, |
|||
is_del |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_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 t_ht_question_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_question_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionExample"> |
|||
delete from t_ht_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
insert into t_ht_question_option (id, question_id, sort, |
|||
type, name, score, |
|||
display, remark, create_time, |
|||
update_time, is_del) |
|||
values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, |
|||
#{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{score,jdbcType=INTEGER}, |
|||
#{display,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
insert into t_ht_question_option |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="score != null"> |
|||
score, |
|||
</if> |
|||
<if test="display != null"> |
|||
display, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
#{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
#{score,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="display != null"> |
|||
#{display,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_question_option |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionId != null"> |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.score != null"> |
|||
score = #{record.score,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.display != null"> |
|||
display = #{record.display,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_question_option |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
type = #{record.type,jdbcType=VARCHAR}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
score = #{record.score,jdbcType=INTEGER}, |
|||
display = #{record.display,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
update t_ht_question_option |
|||
<set> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
score = #{score,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="display != null"> |
|||
display = #{display,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
update t_ht_question_option |
|||
set question_id = #{questionId,jdbcType=BIGINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
type = #{type,jdbcType=VARCHAR}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
score = #{score,jdbcType=INTEGER}, |
|||
display = #{display,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<?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.ccsens.ht.persist.mapper.HtQuestionOptionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="type" jdbcType="VARCHAR" property="type" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="score" jdbcType="DECIMAL" property="score" /> |
|||
<result column="display" jdbcType="VARCHAR" property="display" /> |
|||
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
</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, question_id, sort, type, name, score, display, remark, create_time, update_time, |
|||
is_del |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_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 t_ht_question_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_question_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionExample"> |
|||
delete from t_ht_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
insert into t_ht_question_option (id, question_id, sort, |
|||
type, name, score, |
|||
display, remark, create_time, |
|||
update_time, is_del) |
|||
values (#{id,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, |
|||
#{type,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{score,jdbcType=DECIMAL}, |
|||
#{display,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
insert into t_ht_question_option |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="score != null"> |
|||
score, |
|||
</if> |
|||
<if test="display != null"> |
|||
display, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
#{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
#{score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="display != null"> |
|||
#{display,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
#{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_question_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_question_option |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionId != null"> |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.score != null"> |
|||
score = #{record.score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="record.display != null"> |
|||
display = #{record.display,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.remark != null"> |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_question_option |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
type = #{record.type,jdbcType=VARCHAR}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
score = #{record.score,jdbcType=DECIMAL}, |
|||
display = #{record.display,jdbcType=VARCHAR}, |
|||
remark = #{record.remark,jdbcType=VARCHAR}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
update t_ht_question_option |
|||
<set> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="score != null"> |
|||
score = #{score,jdbcType=DECIMAL}, |
|||
</if> |
|||
<if test="display != null"> |
|||
display = #{display,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="remark != null"> |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtQuestionOption"> |
|||
update t_ht_question_option |
|||
set question_id = #{questionId,jdbcType=BIGINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
type = #{type,jdbcType=VARCHAR}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
score = #{score,jdbcType=DECIMAL}, |
|||
display = #{display,jdbcType=VARCHAR}, |
|||
remark = #{remark,jdbcType=VARCHAR}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -1,25 +1,25 @@ |
|||
package com.ccsens.tall.rabbitMQ; |
|||
|
|||
import com.ccsens.util.JacksonUtil; |
|||
import com.ccsens.util.bean.message.common.InMessage; |
|||
import com.ccsens.util.bean.message.common.MessageConstant; |
|||
import com.ccsens.util.bean.message.common.ServerMessage; |
|||
import com.ccsens.util.config.RabbitMQConfig; |
|||
|
|||
import org.springframework.amqp.core.AmqpTemplate; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
|
|||
public class MessageTest { |
|||
@Autowired |
|||
private AmqpTemplate rabbitTemplate; |
|||
|
|||
public void messageTest() throws Exception { |
|||
ServerMessage serverMessage = new ServerMessage(); |
|||
serverMessage.setType("Ping"); |
|||
InMessage inMessage = InMessage.newToServerMessage(MessageConstant.DomainType.Server,serverMessage); |
|||
String j = JacksonUtil.beanToJson(inMessage); |
|||
System.out.println(j); |
|||
//FixMe 发送到消息队列
|
|||
rabbitTemplate.convertAndSend(RabbitMQConfig.TALL_MESSAGE_1,j); |
|||
} |
|||
} |
|||
//package com.ccsens.tall.rabbitMQ;
|
|||
//
|
|||
//import com.ccsens.util.JacksonUtil;
|
|||
//import com.ccsens.util.bean.message.common.InMessage;
|
|||
//import com.ccsens.util.bean.message.common.MessageConstant;
|
|||
//import com.ccsens.util.bean.message.common.ServerMessage;
|
|||
//import com.ccsens.util.config.RabbitMQConfig;
|
|||
//
|
|||
//import org.springframework.amqp.core.AmqpTemplate;
|
|||
//import org.springframework.beans.factory.annotation.Autowired;
|
|||
//
|
|||
//public class MessageTest {
|
|||
// @Autowired
|
|||
// private AmqpTemplate rabbitTemplate;
|
|||
//
|
|||
// public void messageTest() throws Exception {
|
|||
// ServerMessage serverMessage = new ServerMessage();
|
|||
// serverMessage.setType("Ping");
|
|||
// InMessage inMessage = InMessage.newToServerMessage(MessageConstant.DomainType.Server,serverMessage);
|
|||
// String j = JacksonUtil.beanToJson(inMessage);
|
|||
// System.out.println(j);
|
|||
// //FixMe 发送到消息队列
|
|||
// rabbitTemplate.convertAndSend(RabbitMQConfig.TALL_MESSAGE_1,j);
|
|||
// }
|
|||
//}
|
|||
|
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: dev |
|||
include: util-dev,common |
|||
active: prod |
|||
include: util-prod,common |
Loading…
Reference in new issue