78 changed files with 8731 additions and 701 deletions
@ -0,0 +1,87 @@ |
|||
package com.ccsens.ht.api; |
|||
|
|||
import cn.hutool.core.util.CharsetUtil; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.ht.annotation.DoctorAudit; |
|||
import com.ccsens.ht.bean.dto.PatientReportDto; |
|||
import com.ccsens.ht.bean.vo.PatientReportVo; |
|||
import com.ccsens.ht.service.IPatientReportService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.*; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.apache.poi.ss.usermodel.Workbook; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import javax.validation.Valid; |
|||
import java.io.IOException; |
|||
import java.io.UnsupportedEncodingException; |
|||
import java.net.URLEncoder; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/4/21 19:01 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "报告单导出",value = "报告单导出") |
|||
@RestController |
|||
public class PatientReportExportController { |
|||
@Resource |
|||
private IPatientReportService patientReportService; |
|||
|
|||
@MustLogin |
|||
@DoctorAudit |
|||
@ApiOperation(value = "导出报告单",notes = "导出报告单") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "json", value = "导出报告单", required = true) |
|||
}) |
|||
@RequestMapping(value="/exportReport", method = RequestMethod.POST) |
|||
public JsonResponse<PatientReportVo.Export> exportReport(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){ |
|||
//查询报告单信息
|
|||
log.info("查询报告单详情:{}", param); |
|||
String path = patientReportService.exportReport(param.getParam(), param.getUserId()); |
|||
log.info("文件路径:{}", path); |
|||
PatientReportVo.Export export = new PatientReportVo.Export(); |
|||
export.setPath(path); |
|||
return JsonResponse.newInstance().ok(export); |
|||
} |
|||
|
|||
@MustLogin |
|||
@DoctorAudit |
|||
@ApiOperation(value = "导出指定量表",notes = "导出指定量表") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "json", value = "导出指定量表", required = true) |
|||
}) |
|||
@RequestMapping(value="/export", method = RequestMethod.POST) |
|||
public JsonResponse<PatientReportVo.Export> export(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.ExportCode> param) { |
|||
//查询报告单信息
|
|||
log.info("导出指定报告单:{}", param); |
|||
String path = patientReportService.export(param.getParam(), param.getUserId()); |
|||
log.info("文件路径:{}", path); |
|||
PatientReportVo.Export export = new PatientReportVo.Export(); |
|||
export.setPath(path); |
|||
return JsonResponse.newInstance().ok(export); |
|||
} |
|||
|
|||
// @MustLogin
|
|||
// @DoctorAudit
|
|||
@ApiOperation(value = "导出指定id的报告单分析",notes = "导出指定id的报告单分析") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "json", value = "导出指定id的报告单分析", required = true) |
|||
}) |
|||
@RequestMapping(value="/exportAnalyse", method = RequestMethod.GET) |
|||
public void exportAnalyse(@RequestParam(value = "ids")@ApiParam @Valid List<Long> ids, HttpServletResponse response) throws IOException { |
|||
//查询报告单信息
|
|||
log.info("导出指定报告单分析:{}", ids); |
|||
Workbook workbook = patientReportService.exportAnalyse(ids); |
|||
log.info("导出报告单分析结束"); |
|||
String fileName = "报告单信息.xlsx"; |
|||
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8)); |
|||
workbook.write(response.getOutputStream()); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtPatientReportRecordDesc implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientReportId; |
|||
|
|||
private Long recordId; |
|||
|
|||
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 getRecordId() { |
|||
return recordId; |
|||
} |
|||
|
|||
public void setRecordId(Long recordId) { |
|||
this.recordId = recordId; |
|||
} |
|||
|
|||
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(", recordId=").append(recordId); |
|||
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(); |
|||
} |
|||
} |
@ -0,0 +1,761 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class HtPatientReportRecordDescExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public HtPatientReportRecordDescExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdIsNull() { |
|||
addCriterion("patient_report_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdIsNotNull() { |
|||
addCriterion("patient_report_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdEqualTo(Long value) { |
|||
addCriterion("patient_report_id =", value, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdNotEqualTo(Long value) { |
|||
addCriterion("patient_report_id <>", value, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdGreaterThan(Long value) { |
|||
addCriterion("patient_report_id >", value, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("patient_report_id >=", value, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdLessThan(Long value) { |
|||
addCriterion("patient_report_id <", value, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("patient_report_id <=", value, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdIn(List<Long> values) { |
|||
addCriterion("patient_report_id in", values, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdNotIn(List<Long> values) { |
|||
addCriterion("patient_report_id not in", values, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdBetween(Long value1, Long value2) { |
|||
addCriterion("patient_report_id between", value1, value2, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientReportIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("patient_report_id not between", value1, value2, "patientReportId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdIsNull() { |
|||
addCriterion("record_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdIsNotNull() { |
|||
addCriterion("record_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdEqualTo(Long value) { |
|||
addCriterion("record_id =", value, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdNotEqualTo(Long value) { |
|||
addCriterion("record_id <>", value, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdGreaterThan(Long value) { |
|||
addCriterion("record_id >", value, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("record_id >=", value, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdLessThan(Long value) { |
|||
addCriterion("record_id <", value, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("record_id <=", value, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdIn(List<Long> values) { |
|||
addCriterion("record_id in", values, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdNotIn(List<Long> values) { |
|||
addCriterion("record_id not in", values, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdBetween(Long value1, Long value2) { |
|||
addCriterion("record_id between", value1, value2, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecordIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("record_id not between", value1, value2, "recordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIsNull() { |
|||
addCriterion("answer is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIsNotNull() { |
|||
addCriterion("answer is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerEqualTo(String value) { |
|||
addCriterion("answer =", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotEqualTo(String value) { |
|||
addCriterion("answer <>", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerGreaterThan(String value) { |
|||
addCriterion("answer >", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerGreaterThanOrEqualTo(String value) { |
|||
addCriterion("answer >=", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLessThan(String value) { |
|||
addCriterion("answer <", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLessThanOrEqualTo(String value) { |
|||
addCriterion("answer <=", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLike(String value) { |
|||
addCriterion("answer like", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotLike(String value) { |
|||
addCriterion("answer not like", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIn(List<String> values) { |
|||
addCriterion("answer in", values, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotIn(List<String> values) { |
|||
addCriterion("answer not in", values, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerBetween(String value1, String value2) { |
|||
addCriterion("answer between", value1, value2, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotBetween(String value1, String value2) { |
|||
addCriterion("answer not between", value1, value2, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNull() { |
|||
addCriterion("remark is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNotNull() { |
|||
addCriterion("remark is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkEqualTo(String value) { |
|||
addCriterion("remark =", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotEqualTo(String value) { |
|||
addCriterion("remark <>", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThan(String value) { |
|||
addCriterion("remark >", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remark >=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThan(String value) { |
|||
addCriterion("remark <", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThanOrEqualTo(String value) { |
|||
addCriterion("remark <=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLike(String value) { |
|||
addCriterion("remark like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotLike(String value) { |
|||
addCriterion("remark not like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIn(List<String> values) { |
|||
addCriterion("remark in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotIn(List<String> values) { |
|||
addCriterion("remark not in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkBetween(String value1, String value2) { |
|||
addCriterion("remark between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotBetween(String value1, String value2) { |
|||
addCriterion("remark not between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNull() { |
|||
addCriterion("is_del is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNotNull() { |
|||
addCriterion("is_del is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelEqualTo(Byte value) { |
|||
addCriterion("is_del =", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotEqualTo(Byte value) { |
|||
addCriterion("is_del <>", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThan(Byte value) { |
|||
addCriterion("is_del >", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del >=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThan(Byte value) { |
|||
addCriterion("is_del <", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del <=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIn(List<Byte> values) { |
|||
addCriterion("is_del in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotIn(List<Byte> values) { |
|||
addCriterion("is_del not in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del between", value1, value2, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del not between", value1, value2, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeIsNull() { |
|||
addCriterion("answer_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeIsNotNull() { |
|||
addCriterion("answer_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeEqualTo(Long value) { |
|||
addCriterion("answer_time =", value, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeNotEqualTo(Long value) { |
|||
addCriterion("answer_time <>", value, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeGreaterThan(Long value) { |
|||
addCriterion("answer_time >", value, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("answer_time >=", value, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeLessThan(Long value) { |
|||
addCriterion("answer_time <", value, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("answer_time <=", value, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeIn(List<Long> values) { |
|||
addCriterion("answer_time in", values, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeNotIn(List<Long> values) { |
|||
addCriterion("answer_time not in", values, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeBetween(Long value1, Long value2) { |
|||
addCriterion("answer_time between", value1, value2, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("answer_time not between", value1, value2, "answerTime"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtQuestionOptionDesc implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long optionId; |
|||
|
|||
private Integer sort; |
|||
|
|||
private Byte type; |
|||
|
|||
private String content; |
|||
|
|||
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 getOptionId() { |
|||
return optionId; |
|||
} |
|||
|
|||
public void setOptionId(Long optionId) { |
|||
this.optionId = optionId; |
|||
} |
|||
|
|||
public Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getContent() { |
|||
return content; |
|||
} |
|||
|
|||
public void setContent(String content) { |
|||
this.content = content == null ? null : content.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(", optionId=").append(optionId); |
|||
sb.append(", sort=").append(sort); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", content=").append(content); |
|||
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(); |
|||
} |
|||
} |
@ -0,0 +1,761 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class HtQuestionOptionDescExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public HtQuestionOptionDescExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdIsNull() { |
|||
addCriterion("option_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdIsNotNull() { |
|||
addCriterion("option_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdEqualTo(Long value) { |
|||
addCriterion("option_id =", value, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdNotEqualTo(Long value) { |
|||
addCriterion("option_id <>", value, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdGreaterThan(Long value) { |
|||
addCriterion("option_id >", value, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("option_id >=", value, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdLessThan(Long value) { |
|||
addCriterion("option_id <", value, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("option_id <=", value, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdIn(List<Long> values) { |
|||
addCriterion("option_id in", values, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdNotIn(List<Long> values) { |
|||
addCriterion("option_id not in", values, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdBetween(Long value1, Long value2) { |
|||
addCriterion("option_id between", value1, value2, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("option_id not between", value1, value2, "optionId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNull() { |
|||
addCriterion("sort is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNotNull() { |
|||
addCriterion("sort is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortEqualTo(Integer value) { |
|||
addCriterion("sort =", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotEqualTo(Integer value) { |
|||
addCriterion("sort <>", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThan(Integer value) { |
|||
addCriterion("sort >", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sort >=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThan(Integer value) { |
|||
addCriterion("sort <", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sort <=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIn(List<Integer> values) { |
|||
addCriterion("sort in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotIn(List<Integer> values) { |
|||
addCriterion("sort not in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort not between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIsNull() { |
|||
addCriterion("content is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIsNotNull() { |
|||
addCriterion("content is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentEqualTo(String value) { |
|||
addCriterion("content =", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotEqualTo(String value) { |
|||
addCriterion("content <>", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThan(String value) { |
|||
addCriterion("content >", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThanOrEqualTo(String value) { |
|||
addCriterion("content >=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThan(String value) { |
|||
addCriterion("content <", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThanOrEqualTo(String value) { |
|||
addCriterion("content <=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLike(String value) { |
|||
addCriterion("content like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotLike(String value) { |
|||
addCriterion("content not like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIn(List<String> values) { |
|||
addCriterion("content in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotIn(List<String> values) { |
|||
addCriterion("content not in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentBetween(String value1, String value2) { |
|||
addCriterion("content between", value1, value2, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotBetween(String value1, String value2) { |
|||
addCriterion("content not between", value1, value2, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNull() { |
|||
addCriterion("remark is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNotNull() { |
|||
addCriterion("remark is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkEqualTo(String value) { |
|||
addCriterion("remark =", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotEqualTo(String value) { |
|||
addCriterion("remark <>", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThan(String value) { |
|||
addCriterion("remark >", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remark >=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThan(String value) { |
|||
addCriterion("remark <", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThanOrEqualTo(String value) { |
|||
addCriterion("remark <=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLike(String value) { |
|||
addCriterion("remark like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotLike(String value) { |
|||
addCriterion("remark not like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIn(List<String> values) { |
|||
addCriterion("remark in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotIn(List<String> values) { |
|||
addCriterion("remark not in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkBetween(String value1, String value2) { |
|||
addCriterion("remark between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotBetween(String value1, String value2) { |
|||
addCriterion("remark not between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNull() { |
|||
addCriterion("is_del is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNotNull() { |
|||
addCriterion("is_del is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelEqualTo(Byte value) { |
|||
addCriterion("is_del =", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotEqualTo(Byte value) { |
|||
addCriterion("is_del <>", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThan(Byte value) { |
|||
addCriterion("is_del >", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del >=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThan(Byte value) { |
|||
addCriterion("is_del <", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del <=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIn(List<Byte> values) { |
|||
addCriterion("is_del in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotIn(List<Byte> values) { |
|||
addCriterion("is_del not in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del between", value1, value2, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del not between", value1, value2, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,161 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtQuestionRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte recordType; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Integer sort; |
|||
|
|||
private Byte calcType; |
|||
|
|||
private String showTitle; |
|||
|
|||
private String showForm; |
|||
|
|||
private String defaultValue; |
|||
|
|||
private Byte type; |
|||
|
|||
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 Byte getRecordType() { |
|||
return recordType; |
|||
} |
|||
|
|||
public void setRecordType(Byte recordType) { |
|||
this.recordType = recordType; |
|||
} |
|||
|
|||
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 Byte getCalcType() { |
|||
return calcType; |
|||
} |
|||
|
|||
public void setCalcType(Byte calcType) { |
|||
this.calcType = calcType; |
|||
} |
|||
|
|||
public String getShowTitle() { |
|||
return showTitle; |
|||
} |
|||
|
|||
public void setShowTitle(String showTitle) { |
|||
this.showTitle = showTitle == null ? null : showTitle.trim(); |
|||
} |
|||
|
|||
public String getShowForm() { |
|||
return showForm; |
|||
} |
|||
|
|||
public void setShowForm(String showForm) { |
|||
this.showForm = showForm == null ? null : showForm.trim(); |
|||
} |
|||
|
|||
public String getDefaultValue() { |
|||
return defaultValue; |
|||
} |
|||
|
|||
public void setDefaultValue(String defaultValue) { |
|||
this.defaultValue = defaultValue == null ? null : defaultValue.trim(); |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
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(", recordType=").append(recordType); |
|||
sb.append(", questionId=").append(questionId); |
|||
sb.append(", sort=").append(sort); |
|||
sb.append(", calcType=").append(calcType); |
|||
sb.append(", showTitle=").append(showTitle); |
|||
sb.append(", showForm=").append(showForm); |
|||
sb.append(", defaultValue=").append(defaultValue); |
|||
sb.append(", type=").append(type); |
|||
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
@ -0,0 +1,117 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtQuestionRecordOption implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long questionRecordId; |
|||
|
|||
private Integer sort; |
|||
|
|||
private String dataKey; |
|||
|
|||
private String dataValue; |
|||
|
|||
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 getQuestionRecordId() { |
|||
return questionRecordId; |
|||
} |
|||
|
|||
public void setQuestionRecordId(Long questionRecordId) { |
|||
this.questionRecordId = questionRecordId; |
|||
} |
|||
|
|||
public Integer getSort() { |
|||
return sort; |
|||
} |
|||
|
|||
public void setSort(Integer sort) { |
|||
this.sort = sort; |
|||
} |
|||
|
|||
public String getDataKey() { |
|||
return dataKey; |
|||
} |
|||
|
|||
public void setDataKey(String dataKey) { |
|||
this.dataKey = dataKey == null ? null : dataKey.trim(); |
|||
} |
|||
|
|||
public String getDataValue() { |
|||
return dataValue; |
|||
} |
|||
|
|||
public void setDataValue(String dataValue) { |
|||
this.dataValue = dataValue == null ? null : dataValue.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(", questionRecordId=").append(questionRecordId); |
|||
sb.append(", sort=").append(sort); |
|||
sb.append(", dataKey=").append(dataKey); |
|||
sb.append(", dataValue=").append(dataValue); |
|||
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(); |
|||
} |
|||
} |
@ -0,0 +1,771 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class HtQuestionRecordOptionExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public HtQuestionRecordOptionExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdIsNull() { |
|||
addCriterion("question_record_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdIsNotNull() { |
|||
addCriterion("question_record_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdEqualTo(Long value) { |
|||
addCriterion("question_record_id =", value, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdNotEqualTo(Long value) { |
|||
addCriterion("question_record_id <>", value, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdGreaterThan(Long value) { |
|||
addCriterion("question_record_id >", value, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("question_record_id >=", value, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdLessThan(Long value) { |
|||
addCriterion("question_record_id <", value, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("question_record_id <=", value, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdIn(List<Long> values) { |
|||
addCriterion("question_record_id in", values, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdNotIn(List<Long> values) { |
|||
addCriterion("question_record_id not in", values, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdBetween(Long value1, Long value2) { |
|||
addCriterion("question_record_id between", value1, value2, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionRecordIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("question_record_id not between", value1, value2, "questionRecordId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNull() { |
|||
addCriterion("sort is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIsNotNull() { |
|||
addCriterion("sort is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortEqualTo(Integer value) { |
|||
addCriterion("sort =", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotEqualTo(Integer value) { |
|||
addCriterion("sort <>", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThan(Integer value) { |
|||
addCriterion("sort >", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sort >=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThan(Integer value) { |
|||
addCriterion("sort <", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sort <=", value, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortIn(List<Integer> values) { |
|||
addCriterion("sort in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotIn(List<Integer> values) { |
|||
addCriterion("sort not in", values, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSortNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sort not between", value1, value2, "sort"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyIsNull() { |
|||
addCriterion("data_key is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyIsNotNull() { |
|||
addCriterion("data_key is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyEqualTo(String value) { |
|||
addCriterion("data_key =", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyNotEqualTo(String value) { |
|||
addCriterion("data_key <>", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyGreaterThan(String value) { |
|||
addCriterion("data_key >", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyGreaterThanOrEqualTo(String value) { |
|||
addCriterion("data_key >=", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyLessThan(String value) { |
|||
addCriterion("data_key <", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyLessThanOrEqualTo(String value) { |
|||
addCriterion("data_key <=", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyLike(String value) { |
|||
addCriterion("data_key like", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyNotLike(String value) { |
|||
addCriterion("data_key not like", value, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyIn(List<String> values) { |
|||
addCriterion("data_key in", values, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyNotIn(List<String> values) { |
|||
addCriterion("data_key not in", values, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyBetween(String value1, String value2) { |
|||
addCriterion("data_key between", value1, value2, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataKeyNotBetween(String value1, String value2) { |
|||
addCriterion("data_key not between", value1, value2, "dataKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueIsNull() { |
|||
addCriterion("data_value is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueIsNotNull() { |
|||
addCriterion("data_value is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueEqualTo(String value) { |
|||
addCriterion("data_value =", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueNotEqualTo(String value) { |
|||
addCriterion("data_value <>", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueGreaterThan(String value) { |
|||
addCriterion("data_value >", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueGreaterThanOrEqualTo(String value) { |
|||
addCriterion("data_value >=", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueLessThan(String value) { |
|||
addCriterion("data_value <", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueLessThanOrEqualTo(String value) { |
|||
addCriterion("data_value <=", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueLike(String value) { |
|||
addCriterion("data_value like", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueNotLike(String value) { |
|||
addCriterion("data_value not like", value, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueIn(List<String> values) { |
|||
addCriterion("data_value in", values, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueNotIn(List<String> values) { |
|||
addCriterion("data_value not in", values, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueBetween(String value1, String value2) { |
|||
addCriterion("data_value between", value1, value2, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDataValueNotBetween(String value1, String value2) { |
|||
addCriterion("data_value not between", value1, value2, "dataValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNull() { |
|||
addCriterion("remark is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIsNotNull() { |
|||
addCriterion("remark is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkEqualTo(String value) { |
|||
addCriterion("remark =", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotEqualTo(String value) { |
|||
addCriterion("remark <>", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThan(String value) { |
|||
addCriterion("remark >", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
|||
addCriterion("remark >=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThan(String value) { |
|||
addCriterion("remark <", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLessThanOrEqualTo(String value) { |
|||
addCriterion("remark <=", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkLike(String value) { |
|||
addCriterion("remark like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotLike(String value) { |
|||
addCriterion("remark not like", value, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkIn(List<String> values) { |
|||
addCriterion("remark in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotIn(List<String> values) { |
|||
addCriterion("remark not in", values, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkBetween(String value1, String value2) { |
|||
addCriterion("remark between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRemarkNotBetween(String value1, String value2) { |
|||
addCriterion("remark not between", value1, value2, "remark"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNull() { |
|||
addCriterion("is_del is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNotNull() { |
|||
addCriterion("is_del is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelEqualTo(Byte value) { |
|||
addCriterion("is_del =", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotEqualTo(Byte value) { |
|||
addCriterion("is_del <>", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThan(Byte value) { |
|||
addCriterion("is_del >", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del >=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThan(Byte value) { |
|||
addCriterion("is_del <", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del <=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIn(List<Byte> values) { |
|||
addCriterion("is_del in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotIn(List<Byte> values) { |
|||
addCriterion("is_del not in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del between", value1, value2, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del not between", value1, value2, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,18 @@ |
|||
package com.ccsens.ht.persist.dao; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientReportRecordDesc; |
|||
import com.ccsens.ht.persist.mapper.HtPatientReportRecordDescMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author whj |
|||
*/ |
|||
public interface HtPatientReportRecordDescDao extends HtPatientReportRecordDescMapper { |
|||
/** |
|||
* 批量保存答案 |
|||
* @param records 保存答案 |
|||
*/ |
|||
void batchSave(@Param("list") List<HtPatientReportRecordDesc> records); |
|||
} |
@ -0,0 +1,26 @@ |
|||
package com.ccsens.ht.persist.dao; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionOptionDesc; |
|||
import com.ccsens.ht.persist.mapper.HtQuestionOptionDescMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: 选项补充 |
|||
* @author: whj |
|||
* @time: 2021/4/21 0:43 |
|||
*/ |
|||
public interface HtQuestionOptionDescDao extends HtQuestionOptionDescMapper { |
|||
/** |
|||
* 删除指定选项的补充 |
|||
* @param optionDescDelList 指定选项 |
|||
*/ |
|||
void delete(@Param("list") List<Long> optionDescDelList); |
|||
|
|||
/** |
|||
* 批量插入 |
|||
* @param optionDescList 选项补充 |
|||
*/ |
|||
void insertBatch(List<HtQuestionOptionDesc> optionDescList); |
|||
} |
@ -0,0 +1,16 @@ |
|||
package com.ccsens.ht.persist.dao; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionRecord; |
|||
import com.ccsens.ht.persist.mapper.HtQuestionRecordMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface HtQuestionRecordDao extends HtQuestionRecordMapper { |
|||
|
|||
/** |
|||
* 批量添加试题 |
|||
* @param questionRecords 试题 |
|||
*/ |
|||
void insertBatch(@Param("list") List<HtQuestionRecord> questionRecords); |
|||
} |
@ -0,0 +1,15 @@ |
|||
package com.ccsens.ht.persist.dao; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionRecordOption; |
|||
import com.ccsens.ht.persist.mapper.HtQuestionRecordOptionMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
public interface HtQuestionRecordOptionDao extends HtQuestionRecordOptionMapper { |
|||
/** |
|||
* 批量插入 |
|||
* @param questionRecordOptions options |
|||
*/ |
|||
void insertBatch(@Param("list") List<HtQuestionRecordOption> questionRecordOptions); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientReportRecordDesc; |
|||
import com.ccsens.ht.bean.po.HtPatientReportRecordDescExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtPatientReportRecordDescMapper { |
|||
long countByExample(HtPatientReportRecordDescExample example); |
|||
|
|||
int deleteByExample(HtPatientReportRecordDescExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtPatientReportRecordDesc record); |
|||
|
|||
int insertSelective(HtPatientReportRecordDesc record); |
|||
|
|||
List<HtPatientReportRecordDesc> selectByExample(HtPatientReportRecordDescExample example); |
|||
|
|||
HtPatientReportRecordDesc selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtPatientReportRecordDesc record, @Param("example") HtPatientReportRecordDescExample example); |
|||
|
|||
int updateByExample(@Param("record") HtPatientReportRecordDesc record, @Param("example") HtPatientReportRecordDescExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtPatientReportRecordDesc record); |
|||
|
|||
int updateByPrimaryKey(HtPatientReportRecordDesc record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionOptionDesc; |
|||
import com.ccsens.ht.bean.po.HtQuestionOptionDescExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtQuestionOptionDescMapper { |
|||
long countByExample(HtQuestionOptionDescExample example); |
|||
|
|||
int deleteByExample(HtQuestionOptionDescExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtQuestionOptionDesc record); |
|||
|
|||
int insertSelective(HtQuestionOptionDesc record); |
|||
|
|||
List<HtQuestionOptionDesc> selectByExample(HtQuestionOptionDescExample example); |
|||
|
|||
HtQuestionOptionDesc selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtQuestionOptionDesc record, @Param("example") HtQuestionOptionDescExample example); |
|||
|
|||
int updateByExample(@Param("record") HtQuestionOptionDesc record, @Param("example") HtQuestionOptionDescExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtQuestionOptionDesc record); |
|||
|
|||
int updateByPrimaryKey(HtQuestionOptionDesc record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionRecord; |
|||
import com.ccsens.ht.bean.po.HtQuestionRecordExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtQuestionRecordMapper { |
|||
long countByExample(HtQuestionRecordExample example); |
|||
|
|||
int deleteByExample(HtQuestionRecordExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtQuestionRecord record); |
|||
|
|||
int insertSelective(HtQuestionRecord record); |
|||
|
|||
List<HtQuestionRecord> selectByExample(HtQuestionRecordExample example); |
|||
|
|||
HtQuestionRecord selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtQuestionRecord record, @Param("example") HtQuestionRecordExample example); |
|||
|
|||
int updateByExample(@Param("record") HtQuestionRecord record, @Param("example") HtQuestionRecordExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtQuestionRecord record); |
|||
|
|||
int updateByPrimaryKey(HtQuestionRecord record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtQuestionRecordOption; |
|||
import com.ccsens.ht.bean.po.HtQuestionRecordOptionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtQuestionRecordOptionMapper { |
|||
long countByExample(HtQuestionRecordOptionExample example); |
|||
|
|||
int deleteByExample(HtQuestionRecordOptionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtQuestionRecordOption record); |
|||
|
|||
int insertSelective(HtQuestionRecordOption record); |
|||
|
|||
List<HtQuestionRecordOption> selectByExample(HtQuestionRecordOptionExample example); |
|||
|
|||
HtQuestionRecordOption selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtQuestionRecordOption record, @Param("example") HtQuestionRecordOptionExample example); |
|||
|
|||
int updateByExample(@Param("record") HtQuestionRecordOption record, @Param("example") HtQuestionRecordOptionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtQuestionRecordOption record); |
|||
|
|||
int updateByPrimaryKey(HtQuestionRecordOption record); |
|||
} |
@ -1,4 +1,5 @@ |
|||
spring: |
|||
profiles: |
|||
active: prod |
|||
include: common, util-prod |
|||
include: common, util-prod |
|||
|
|||
|
@ -0,0 +1,12 @@ |
|||
<?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.dao.HtPatientReportRecordDescDao"> |
|||
|
|||
|
|||
<insert id="batchSave"> |
|||
insert into t_ht_patient_report_record_desc(id, patient_report_id, record_id, answer) values |
|||
<foreach collection="list" item="item" separator=","> |
|||
(#{item.id}, #{item.patientReportId}, #{item.recordId}, #{item.answer}) |
|||
</foreach> |
|||
</insert> |
|||
</mapper> |
@ -0,0 +1,21 @@ |
|||
<?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.dao.HtQuestionOptionDescDao"> |
|||
|
|||
|
|||
<insert id="insertBatch"> |
|||
replace into t_ht_question_option_desc (id, option_id, type, |
|||
sort, content, remark) |
|||
values |
|||
<foreach collection="list" item="item" separator=","> |
|||
(#{item.id}, #{item.optionId}, #{item.type}, #{item.sort}, |
|||
#{item.content}, #{item.remark}) |
|||
</foreach> |
|||
</insert> |
|||
<delete id="delete"> |
|||
update t_ht_question_option_desc set rec_status = 0 where option_id in |
|||
<foreach collection="list" item="item" open="(" close=")" separator=","> |
|||
#{item} |
|||
</foreach> |
|||
</delete> |
|||
</mapper> |
@ -0,0 +1,16 @@ |
|||
<?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.dao.HtQuestionRecordDao"> |
|||
|
|||
|
|||
<insert id="insertBatch"> |
|||
replace into t_ht_question_record (id, record_type, question_id, |
|||
sort, calc_type, show_title, show_form, default_value, type, remark) |
|||
values |
|||
<foreach collection="list" item="item" separator=","> |
|||
(#{item.id}, #{item.recordType}, #{item.questionId}, #{item.sort}, |
|||
#{item.calcType}, #{item.showTitle}, #{item.showForm}, #{item.defaultValue}, |
|||
#{item.type}, #{item.remark}) |
|||
</foreach> |
|||
</insert> |
|||
</mapper> |
@ -0,0 +1,14 @@ |
|||
<?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.dao.HtQuestionRecordOptionDao"> |
|||
|
|||
|
|||
<insert id="insertBatch"> |
|||
replace into t_ht_question_record_option (id, question_record_id, sort, data_key, data_value, remark) |
|||
values |
|||
<foreach collection="list" item="item" separator=","> |
|||
(#{item.id}, #{item.questionRecordId}, #{item.sort}, #{item.dataKey}, |
|||
#{item.dataValue}, #{item.remark}) |
|||
</foreach> |
|||
</insert> |
|||
</mapper> |
@ -0,0 +1,276 @@ |
|||
<?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.HtPatientReportRecordDescMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientReportRecordDesc"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_report_id" jdbcType="BIGINT" property="patientReportId" /> |
|||
<result column="record_id" jdbcType="BIGINT" property="recordId" /> |
|||
<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, record_id, answer, remark, create_time, update_time, is_del, |
|||
answer_time |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientReportRecordDescExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_patient_report_record_desc |
|||
<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_report_record_desc |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_patient_report_record_desc |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtPatientReportRecordDescExample"> |
|||
delete from t_ht_patient_report_record_desc |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientReportRecordDesc"> |
|||
insert into t_ht_patient_report_record_desc (id, patient_report_id, record_id, |
|||
answer, remark, create_time, |
|||
update_time, is_del, answer_time |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{patientReportId,jdbcType=BIGINT}, #{recordId,jdbcType=BIGINT}, |
|||
#{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.HtPatientReportRecordDesc"> |
|||
insert into t_ht_patient_report_record_desc |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id, |
|||
</if> |
|||
<if test="recordId != null"> |
|||
record_id, |
|||
</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="recordId != null"> |
|||
#{recordId,jdbcType=BIGINT}, |
|||
</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.HtPatientReportRecordDescExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_patient_report_record_desc |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_patient_report_record_desc |
|||
<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.recordId != null"> |
|||
record_id = #{record.recordId,jdbcType=BIGINT}, |
|||
</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_report_record_desc |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_report_id = #{record.patientReportId,jdbcType=BIGINT}, |
|||
record_id = #{record.recordId,jdbcType=BIGINT}, |
|||
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.HtPatientReportRecordDesc"> |
|||
update t_ht_patient_report_record_desc |
|||
<set> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="recordId != null"> |
|||
record_id = #{recordId,jdbcType=BIGINT}, |
|||
</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.HtPatientReportRecordDesc"> |
|||
update t_ht_patient_report_record_desc |
|||
set patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
record_id = #{recordId,jdbcType=BIGINT}, |
|||
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> |
@ -0,0 +1,275 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.ht.persist.mapper.HtQuestionOptionDescMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtQuestionOptionDesc"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="option_id" jdbcType="BIGINT" property="optionId" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="content" jdbcType="VARCHAR" property="content" /> |
|||
<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, option_id, sort, type, content, remark, create_time, update_time, is_del |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionDescExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_question_option_desc |
|||
<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_desc |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_question_option_desc |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionDescExample"> |
|||
delete from t_ht_question_option_desc |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionDesc"> |
|||
insert into t_ht_question_option_desc (id, option_id, sort, |
|||
type, content, remark, |
|||
create_time, update_time, is_del |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{optionId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, |
|||
#{type,jdbcType=TINYINT}, #{content,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtQuestionOptionDesc"> |
|||
insert into t_ht_question_option_desc |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="optionId != null"> |
|||
option_id, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="content != null"> |
|||
content, |
|||
</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="optionId != null"> |
|||
#{optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="content != null"> |
|||
#{content,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.HtQuestionOptionDescExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_question_option_desc |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_question_option_desc |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.optionId != null"> |
|||
option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.content != null"> |
|||
content = #{record.content,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_desc |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
option_id = #{record.optionId,jdbcType=BIGINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
content = #{record.content,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.HtQuestionOptionDesc"> |
|||
update t_ht_question_option_desc |
|||
<set> |
|||
<if test="optionId != null"> |
|||
option_id = #{optionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="content != null"> |
|||
content = #{content,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.HtQuestionOptionDesc"> |
|||
update t_ht_question_option_desc |
|||
set option_id = #{optionId,jdbcType=BIGINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
content = #{content,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> |
@ -0,0 +1,338 @@ |
|||
<?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.HtQuestionRecordMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtQuestionRecord"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="record_type" jdbcType="TINYINT" property="recordType" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="calc_type" jdbcType="TINYINT" property="calcType" /> |
|||
<result column="show_title" jdbcType="VARCHAR" property="showTitle" /> |
|||
<result column="show_form" jdbcType="VARCHAR" property="showForm" /> |
|||
<result column="default_value" jdbcType="VARCHAR" property="defaultValue" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<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, record_type, question_id, sort, calc_type, show_title, show_form, default_value, |
|||
type, remark, create_time, update_time, is_del |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionRecordExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_question_record |
|||
<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_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_question_record |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionRecordExample"> |
|||
delete from t_ht_question_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtQuestionRecord"> |
|||
insert into t_ht_question_record (id, record_type, question_id, |
|||
sort, calc_type, show_title, |
|||
show_form, default_value, type, |
|||
remark, create_time, update_time, |
|||
is_del) |
|||
values (#{id,jdbcType=BIGINT}, #{recordType,jdbcType=TINYINT}, #{questionId,jdbcType=BIGINT}, |
|||
#{sort,jdbcType=INTEGER}, #{calcType,jdbcType=TINYINT}, #{showTitle,jdbcType=VARCHAR}, |
|||
#{showForm,jdbcType=VARCHAR}, #{defaultValue,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, |
|||
#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, |
|||
#{isDel,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtQuestionRecord"> |
|||
insert into t_ht_question_record |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="recordType != null"> |
|||
record_type, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="calcType != null"> |
|||
calc_type, |
|||
</if> |
|||
<if test="showTitle != null"> |
|||
show_title, |
|||
</if> |
|||
<if test="showForm != null"> |
|||
show_form, |
|||
</if> |
|||
<if test="defaultValue != null"> |
|||
default_value, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</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="recordType != null"> |
|||
#{recordType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
#{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="calcType != null"> |
|||
#{calcType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showTitle != null"> |
|||
#{showTitle,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="showForm != null"> |
|||
#{showForm,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="defaultValue != null"> |
|||
#{defaultValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</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.HtQuestionRecordExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_question_record |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_question_record |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.recordType != null"> |
|||
record_type = #{record.recordType,jdbcType=TINYINT}, |
|||
</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.calcType != null"> |
|||
calc_type = #{record.calcType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.showTitle != null"> |
|||
show_title = #{record.showTitle,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.showForm != null"> |
|||
show_form = #{record.showForm,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.defaultValue != null"> |
|||
default_value = #{record.defaultValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</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_record |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
record_type = #{record.recordType,jdbcType=TINYINT}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
calc_type = #{record.calcType,jdbcType=TINYINT}, |
|||
show_title = #{record.showTitle,jdbcType=VARCHAR}, |
|||
show_form = #{record.showForm,jdbcType=VARCHAR}, |
|||
default_value = #{record.defaultValue,jdbcType=VARCHAR}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
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.HtQuestionRecord"> |
|||
update t_ht_question_record |
|||
<set> |
|||
<if test="recordType != null"> |
|||
record_type = #{recordType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="calcType != null"> |
|||
calc_type = #{calcType,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="showTitle != null"> |
|||
show_title = #{showTitle,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="showForm != null"> |
|||
show_form = #{showForm,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="defaultValue != null"> |
|||
default_value = #{defaultValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</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.HtQuestionRecord"> |
|||
update t_ht_question_record |
|||
set record_type = #{recordType,jdbcType=TINYINT}, |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
calc_type = #{calcType,jdbcType=TINYINT}, |
|||
show_title = #{showTitle,jdbcType=VARCHAR}, |
|||
show_form = #{showForm,jdbcType=VARCHAR}, |
|||
default_value = #{defaultValue,jdbcType=VARCHAR}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
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> |
@ -0,0 +1,276 @@ |
|||
<?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.HtQuestionRecordOptionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtQuestionRecordOption"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="question_record_id" jdbcType="BIGINT" property="questionRecordId" /> |
|||
<result column="sort" jdbcType="INTEGER" property="sort" /> |
|||
<result column="data_key" jdbcType="VARCHAR" property="dataKey" /> |
|||
<result column="data_value" jdbcType="VARCHAR" property="dataValue" /> |
|||
<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_record_id, sort, data_key, data_value, remark, create_time, update_time, |
|||
is_del |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionRecordOptionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_question_record_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_record_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_question_record_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtQuestionRecordOptionExample"> |
|||
delete from t_ht_question_record_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtQuestionRecordOption"> |
|||
insert into t_ht_question_record_option (id, question_record_id, sort, |
|||
data_key, data_value, remark, |
|||
create_time, update_time, is_del |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{questionRecordId,jdbcType=BIGINT}, #{sort,jdbcType=INTEGER}, |
|||
#{dataKey,jdbcType=VARCHAR}, #{dataValue,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, |
|||
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtQuestionRecordOption"> |
|||
insert into t_ht_question_record_option |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="questionRecordId != null"> |
|||
question_record_id, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort, |
|||
</if> |
|||
<if test="dataKey != null"> |
|||
data_key, |
|||
</if> |
|||
<if test="dataValue != null"> |
|||
data_value, |
|||
</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="questionRecordId != null"> |
|||
#{questionRecordId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
#{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="dataKey != null"> |
|||
#{dataKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="dataValue != null"> |
|||
#{dataValue,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.HtQuestionRecordOptionExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_question_record_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_question_record_option |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionRecordId != null"> |
|||
question_record_id = #{record.questionRecordId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sort != null"> |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.dataKey != null"> |
|||
data_key = #{record.dataKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.dataValue != null"> |
|||
data_value = #{record.dataValue,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_record_option |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
question_record_id = #{record.questionRecordId,jdbcType=BIGINT}, |
|||
sort = #{record.sort,jdbcType=INTEGER}, |
|||
data_key = #{record.dataKey,jdbcType=VARCHAR}, |
|||
data_value = #{record.dataValue,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.HtQuestionRecordOption"> |
|||
update t_ht_question_record_option |
|||
<set> |
|||
<if test="questionRecordId != null"> |
|||
question_record_id = #{questionRecordId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sort != null"> |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="dataKey != null"> |
|||
data_key = #{dataKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="dataValue != null"> |
|||
data_value = #{dataValue,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.HtQuestionRecordOption"> |
|||
update t_ht_question_record_option |
|||
set question_record_id = #{questionRecordId,jdbcType=BIGINT}, |
|||
sort = #{sort,jdbcType=INTEGER}, |
|||
data_key = #{dataKey,jdbcType=VARCHAR}, |
|||
data_value = #{dataValue,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,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: green |
|||
include: common, util-green |
|||
active: prod |
|||
include: common, util-prod |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: test |
|||
include: util-test,common |
|||
active: dev |
|||
include: util-dev,common |
Loading…
Reference in new issue