32 changed files with 7904 additions and 6 deletions
@ -0,0 +1,127 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.CaseDto; |
|||
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
|||
import com.ccsens.carbasics.bean.vo.CaseVo; |
|||
import com.ccsens.carbasics.bean.vo.StatisticsVo; |
|||
import com.ccsens.carbasics.service.ICaseService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.github.pagehelper.PageInfo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "结构化病例") |
|||
@RestController |
|||
@RequestMapping("/case") |
|||
public class CaseController { |
|||
|
|||
@Resource |
|||
private ICaseService caseService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "上传文件",notes = "文件大小不能超过20M") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value = "upload", method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CaseVo.FileInfo> uploadFile(QueryDto<MultipartFile> params) throws Exception { |
|||
log.info("上传文件:{}",params); |
|||
MultipartFile f = params.getParam(); |
|||
CaseVo.FileInfo fileInfo = caseService.uploadFile(f,params.getUserId()); |
|||
return JsonResponse.newInstance().ok(fileInfo); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "通过地区和名字查看医院列表", notes = "") |
|||
@RequestMapping(value = "/queryHospitalList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CaseVo.QueryList>> queryHospitalList(@ApiParam @Validated @RequestBody QueryDto<QuestionnaireDto.QueryHospitalList> params) throws Exception{ |
|||
List<CaseVo.QueryList> queryLists = caseService.queryHospitalList(params.getParam()); |
|||
return JsonResponse.newInstance().ok(queryLists); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看科室信息", notes = "") |
|||
@RequestMapping(value = "/queryDepartment", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CaseVo.QueryList>> queryDepartment(@ApiParam @Validated @RequestBody QueryDto<CaseDto.QueryDepartments> params) throws Exception{ |
|||
byte type = params.getParam().getType() == null ? 0 : params.getParam().getType(); |
|||
List<CaseVo.QueryList> queryLists = caseService.queryDepartment(type); |
|||
return JsonResponse.newInstance().ok(queryLists); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询医生的身份信息", notes = "") |
|||
@RequestMapping(value = "/getDoctor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CaseVo.CaseDoctor> getDoctor(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ |
|||
CaseVo.CaseDoctor caseDoctor = caseService.getDoctor(params.getUserId()); |
|||
return JsonResponse.newInstance().ok(caseDoctor); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "医生填写信息", notes = "") |
|||
@RequestMapping(value = "/submitDoctor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse submitDoctor(@ApiParam @Validated @RequestBody QueryDto<CaseDto.CaseDoctor> params) throws Exception{ |
|||
caseService.submitDoctor(params.getUserId(),params.getParam()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看病例列表", notes = "") |
|||
@RequestMapping(value = "/caseList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<CaseVo.CasePatient>> queryCaseList(@ApiParam @Validated @RequestBody QueryDto<CaseDto.QueryCaseByDoctor> params) throws Exception{ |
|||
PageInfo<CaseVo.CasePatient> casePatientPageInfo = caseService.queryCaseList(params.getUserId(),params.getParam()); |
|||
return JsonResponse.newInstance().ok(casePatientPageInfo); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "添加病例信息", notes = "") |
|||
@RequestMapping(value = "/saveCase", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CaseVo.CasePatient> saveCase(@ApiParam @Validated @RequestBody QueryDto<CaseDto.SaveCase> params) throws Exception{ |
|||
CaseVo.CasePatient casePatient = caseService.saveCase(params.getUserId(),params.getParam()); |
|||
return JsonResponse.newInstance().ok(casePatient); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查看病例的上传信息", notes = "") |
|||
@RequestMapping(value = "/getCaseImg", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CaseVo.CaseImg>> getCaseImg(@ApiParam @Validated @RequestBody QueryDto<CaseDto.GetCaseImg> params) throws Exception{ |
|||
List<CaseVo.CaseImg> caseImgList = caseService.getCaseImg(params.getParam()); |
|||
return JsonResponse.newInstance().ok(caseImgList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "保存病例的图片信息", notes = "") |
|||
@RequestMapping(value = "/submitCaseImg", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse submitCaseImg(@ApiParam @Validated @RequestBody QueryDto<CaseDto.SubmitCaseImg> params) throws Exception{ |
|||
caseService.submitCaseImg(params.getParam()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "提交病例", notes = "") |
|||
@RequestMapping(value = "/submitCase", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse submitCase(@ApiParam @Validated @RequestBody QueryDto<CaseDto.SubmitCase> params) throws Exception{ |
|||
caseService.submitCase(params.getParam()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
} |
@ -0,0 +1,122 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Max; |
|||
import javax.validation.constraints.Min; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class CaseDto { |
|||
|
|||
@ApiModel("提交医生信息-请求") |
|||
@Data |
|||
public static class CaseDoctor{ |
|||
@ApiModelProperty("所属地区信息") |
|||
private String area; |
|||
@ApiModelProperty("医院名称") |
|||
private String hospital; |
|||
@ApiModelProperty("等级") |
|||
private String dj; |
|||
@ApiModelProperty("级别") |
|||
private String jb; |
|||
@ApiModelProperty("科室") |
|||
private String departments; |
|||
@ApiModelProperty("职位") |
|||
private String position; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("手机号") |
|||
private String phone; |
|||
} |
|||
|
|||
@ApiModel("查看科室和职位-请求") |
|||
@Data |
|||
public static class QueryDepartments{ |
|||
@ApiModelProperty("类型 0科室 1职位") |
|||
private Byte type; |
|||
} |
|||
|
|||
@ApiModel("医生查看病例列表-请求") |
|||
@Data |
|||
public static class QueryCaseByDoctor{ |
|||
@ApiModelProperty("住院号") |
|||
private String hospitalNumber; |
|||
@ApiModelProperty("病例类型 0新建病例 1保存 2提交") |
|||
private Byte submitStatus; |
|||
@ApiModelProperty("第几页") |
|||
@Min(value = 1) |
|||
private int pageNum = 1; |
|||
@ApiModelProperty("每页多少条") |
|||
@Min(value = 1) |
|||
@Max(value=100) |
|||
private int pageSize = 10; |
|||
} |
|||
|
|||
@ApiModel("添加病例信息-请求") |
|||
@Data |
|||
public static class SaveCase{ |
|||
@ApiModelProperty("住院号") |
|||
private String hospitalNumber; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("性别 0女 1男") |
|||
private byte gender; |
|||
@ApiModelProperty("身份证号") |
|||
private String idcard; |
|||
} |
|||
|
|||
@ApiModel("添加病例上传的图片信息-请求") |
|||
@Data |
|||
public static class GetCaseImg{ |
|||
@ApiModelProperty("病例id") |
|||
private Long caseId; |
|||
@ApiModelProperty("信息类型 0图像 1病例") |
|||
private Byte type; |
|||
} |
|||
|
|||
@ApiModel("提交病例上传的图片信息-请求") |
|||
@Data |
|||
public static class SubmitCaseImg{ |
|||
@ApiModelProperty("病例id") |
|||
private Long caseId; |
|||
@ApiModelProperty("信息类型 0图像 1病例") |
|||
private Byte type; |
|||
@ApiModelProperty("上传的图片信息") |
|||
private List<CaseImgInfo> caseImgInfoList; |
|||
} |
|||
|
|||
@ApiModel("病例的图像-返回") |
|||
@Data |
|||
public static class CaseImgInfo{ |
|||
@ApiModelProperty("code") |
|||
private String code; |
|||
@ApiModelProperty("文件列表") |
|||
private List<FileInfo> fileList; |
|||
} |
|||
|
|||
@ApiModel("病例的图像文件信息-返回") |
|||
@Data |
|||
public static class FileInfo{ |
|||
@ApiModelProperty("文件id") |
|||
private Long uId; |
|||
@ApiModelProperty("文件名称") |
|||
private String name; |
|||
@ApiModelProperty("状态") |
|||
private String status = "done"; |
|||
@ApiModelProperty("访问路径") |
|||
private String url; |
|||
} |
|||
|
|||
@ApiModel("提交病例上传的图片信息-请求") |
|||
@Data |
|||
public static class SubmitCase{ |
|||
@ApiModelProperty("病例id") |
|||
private Long caseId; |
|||
} |
|||
} |
@ -0,0 +1,150 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class BlCase implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long doctorId; |
|||
|
|||
private String hospitalNumber; |
|||
|
|||
private String name; |
|||
|
|||
private Byte gender; |
|||
|
|||
private String idcard; |
|||
|
|||
private Byte submitStatus; |
|||
|
|||
private Long submitTime; |
|||
|
|||
private Long operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getDoctorId() { |
|||
return doctorId; |
|||
} |
|||
|
|||
public void setDoctorId(Long doctorId) { |
|||
this.doctorId = doctorId; |
|||
} |
|||
|
|||
public String getHospitalNumber() { |
|||
return hospitalNumber; |
|||
} |
|||
|
|||
public void setHospitalNumber(String hospitalNumber) { |
|||
this.hospitalNumber = hospitalNumber == null ? null : hospitalNumber.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public String getIdcard() { |
|||
return idcard; |
|||
} |
|||
|
|||
public void setIdcard(String idcard) { |
|||
this.idcard = idcard == null ? null : idcard.trim(); |
|||
} |
|||
|
|||
public Byte getSubmitStatus() { |
|||
return submitStatus; |
|||
} |
|||
|
|||
public void setSubmitStatus(Byte submitStatus) { |
|||
this.submitStatus = submitStatus; |
|||
} |
|||
|
|||
public Long getSubmitTime() { |
|||
return submitTime; |
|||
} |
|||
|
|||
public void setSubmitTime(Long submitTime) { |
|||
this.submitTime = submitTime; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@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(", doctorId=").append(doctorId); |
|||
sb.append(", hospitalNumber=").append(hospitalNumber); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", idcard=").append(idcard); |
|||
sb.append(", submitStatus=").append(submitStatus); |
|||
sb.append(", submitTime=").append(submitTime); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,951 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class BlCaseExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public BlCaseExample() { |
|||
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 andDoctorIdIsNull() { |
|||
addCriterion("doctor_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdIsNotNull() { |
|||
addCriterion("doctor_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdEqualTo(Long value) { |
|||
addCriterion("doctor_id =", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotEqualTo(Long value) { |
|||
addCriterion("doctor_id <>", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdGreaterThan(Long value) { |
|||
addCriterion("doctor_id >", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("doctor_id >=", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdLessThan(Long value) { |
|||
addCriterion("doctor_id <", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("doctor_id <=", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdIn(List<Long> values) { |
|||
addCriterion("doctor_id in", values, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotIn(List<Long> values) { |
|||
addCriterion("doctor_id not in", values, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdBetween(Long value1, Long value2) { |
|||
addCriterion("doctor_id between", value1, value2, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("doctor_id not between", value1, value2, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberIsNull() { |
|||
addCriterion("hospital_number is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberIsNotNull() { |
|||
addCriterion("hospital_number is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberEqualTo(String value) { |
|||
addCriterion("hospital_number =", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberNotEqualTo(String value) { |
|||
addCriterion("hospital_number <>", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberGreaterThan(String value) { |
|||
addCriterion("hospital_number >", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberGreaterThanOrEqualTo(String value) { |
|||
addCriterion("hospital_number >=", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberLessThan(String value) { |
|||
addCriterion("hospital_number <", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberLessThanOrEqualTo(String value) { |
|||
addCriterion("hospital_number <=", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberLike(String value) { |
|||
addCriterion("hospital_number like", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberNotLike(String value) { |
|||
addCriterion("hospital_number not like", value, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberIn(List<String> values) { |
|||
addCriterion("hospital_number in", values, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberNotIn(List<String> values) { |
|||
addCriterion("hospital_number not in", values, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberBetween(String value1, String value2) { |
|||
addCriterion("hospital_number between", value1, value2, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalNumberNotBetween(String value1, String value2) { |
|||
addCriterion("hospital_number not between", value1, value2, "hospitalNumber"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderIsNull() { |
|||
addCriterion("gender is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderIsNotNull() { |
|||
addCriterion("gender is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderEqualTo(Byte value) { |
|||
addCriterion("gender =", value, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderNotEqualTo(Byte value) { |
|||
addCriterion("gender <>", value, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGreaterThan(Byte value) { |
|||
addCriterion("gender >", value, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("gender >=", value, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderLessThan(Byte value) { |
|||
addCriterion("gender <", value, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderLessThanOrEqualTo(Byte value) { |
|||
addCriterion("gender <=", value, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderIn(List<Byte> values) { |
|||
addCriterion("gender in", values, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderNotIn(List<Byte> values) { |
|||
addCriterion("gender not in", values, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderBetween(Byte value1, Byte value2) { |
|||
addCriterion("gender between", value1, value2, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andGenderNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("gender not between", value1, value2, "gender"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardIsNull() { |
|||
addCriterion("idcard is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardIsNotNull() { |
|||
addCriterion("idcard is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardEqualTo(String value) { |
|||
addCriterion("idcard =", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardNotEqualTo(String value) { |
|||
addCriterion("idcard <>", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardGreaterThan(String value) { |
|||
addCriterion("idcard >", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardGreaterThanOrEqualTo(String value) { |
|||
addCriterion("idcard >=", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardLessThan(String value) { |
|||
addCriterion("idcard <", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardLessThanOrEqualTo(String value) { |
|||
addCriterion("idcard <=", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardLike(String value) { |
|||
addCriterion("idcard like", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardNotLike(String value) { |
|||
addCriterion("idcard not like", value, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardIn(List<String> values) { |
|||
addCriterion("idcard in", values, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardNotIn(List<String> values) { |
|||
addCriterion("idcard not in", values, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardBetween(String value1, String value2) { |
|||
addCriterion("idcard between", value1, value2, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdcardNotBetween(String value1, String value2) { |
|||
addCriterion("idcard not between", value1, value2, "idcard"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIsNull() { |
|||
addCriterion("submit_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIsNotNull() { |
|||
addCriterion("submit_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusEqualTo(Byte value) { |
|||
addCriterion("submit_status =", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotEqualTo(Byte value) { |
|||
addCriterion("submit_status <>", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusGreaterThan(Byte value) { |
|||
addCriterion("submit_status >", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_status >=", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusLessThan(Byte value) { |
|||
addCriterion("submit_status <", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_status <=", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIn(List<Byte> values) { |
|||
addCriterion("submit_status in", values, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotIn(List<Byte> values) { |
|||
addCriterion("submit_status not in", values, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_status between", value1, value2, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_status not between", value1, value2, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeIsNull() { |
|||
addCriterion("submit_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeIsNotNull() { |
|||
addCriterion("submit_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeEqualTo(Long value) { |
|||
addCriterion("submit_time =", value, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeNotEqualTo(Long value) { |
|||
addCriterion("submit_time <>", value, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeGreaterThan(Long value) { |
|||
addCriterion("submit_time >", value, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("submit_time >=", value, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeLessThan(Long value) { |
|||
addCriterion("submit_time <", value, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("submit_time <=", value, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeIn(List<Long> values) { |
|||
addCriterion("submit_time in", values, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeNotIn(List<Long> values) { |
|||
addCriterion("submit_time not in", values, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeBetween(Long value1, Long value2) { |
|||
addCriterion("submit_time between", value1, value2, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("submit_time not between", value1, value2, "submitTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,139 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class BlCaseImg implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long caseId; |
|||
|
|||
private String code; |
|||
|
|||
private Long fileId; |
|||
|
|||
private String fileName; |
|||
|
|||
private String filePath; |
|||
|
|||
private Long operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getCaseId() { |
|||
return caseId; |
|||
} |
|||
|
|||
public void setCaseId(Long caseId) { |
|||
this.caseId = caseId; |
|||
} |
|||
|
|||
public String getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public Long getFileId() { |
|||
return fileId; |
|||
} |
|||
|
|||
public void setFileId(Long fileId) { |
|||
this.fileId = fileId; |
|||
} |
|||
|
|||
public String getFileName() { |
|||
return fileName; |
|||
} |
|||
|
|||
public void setFileName(String fileName) { |
|||
this.fileName = fileName == null ? null : fileName.trim(); |
|||
} |
|||
|
|||
public String getFilePath() { |
|||
return filePath; |
|||
} |
|||
|
|||
public void setFilePath(String filePath) { |
|||
this.filePath = filePath == null ? null : filePath.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@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(", type=").append(type); |
|||
sb.append(", caseId=").append(caseId); |
|||
sb.append(", code=").append(code); |
|||
sb.append(", fileId=").append(fileId); |
|||
sb.append(", fileName=").append(fileName); |
|||
sb.append(", filePath=").append(filePath); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,891 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class BlCaseImgExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public BlCaseImgExample() { |
|||
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 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 andCaseIdIsNull() { |
|||
addCriterion("case_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdIsNotNull() { |
|||
addCriterion("case_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdEqualTo(Long value) { |
|||
addCriterion("case_id =", value, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdNotEqualTo(Long value) { |
|||
addCriterion("case_id <>", value, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdGreaterThan(Long value) { |
|||
addCriterion("case_id >", value, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("case_id >=", value, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdLessThan(Long value) { |
|||
addCriterion("case_id <", value, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("case_id <=", value, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdIn(List<Long> values) { |
|||
addCriterion("case_id in", values, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdNotIn(List<Long> values) { |
|||
addCriterion("case_id not in", values, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdBetween(Long value1, Long value2) { |
|||
addCriterion("case_id between", value1, value2, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCaseIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("case_id not between", value1, value2, "caseId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIsNull() { |
|||
addCriterion("code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIsNotNull() { |
|||
addCriterion("code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeEqualTo(String value) { |
|||
addCriterion("code =", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotEqualTo(String value) { |
|||
addCriterion("code <>", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThan(String value) { |
|||
addCriterion("code >", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("code >=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThan(String value) { |
|||
addCriterion("code <", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("code <=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLike(String value) { |
|||
addCriterion("code like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotLike(String value) { |
|||
addCriterion("code not like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIn(List<String> values) { |
|||
addCriterion("code in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotIn(List<String> values) { |
|||
addCriterion("code not in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeBetween(String value1, String value2) { |
|||
addCriterion("code between", value1, value2, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotBetween(String value1, String value2) { |
|||
addCriterion("code not between", value1, value2, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdIsNull() { |
|||
addCriterion("file_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdIsNotNull() { |
|||
addCriterion("file_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdEqualTo(Long value) { |
|||
addCriterion("file_id =", value, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdNotEqualTo(Long value) { |
|||
addCriterion("file_id <>", value, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdGreaterThan(Long value) { |
|||
addCriterion("file_id >", value, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("file_id >=", value, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdLessThan(Long value) { |
|||
addCriterion("file_id <", value, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("file_id <=", value, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdIn(List<Long> values) { |
|||
addCriterion("file_id in", values, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdNotIn(List<Long> values) { |
|||
addCriterion("file_id not in", values, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdBetween(Long value1, Long value2) { |
|||
addCriterion("file_id between", value1, value2, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("file_id not between", value1, value2, "fileId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameIsNull() { |
|||
addCriterion("file_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameIsNotNull() { |
|||
addCriterion("file_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameEqualTo(String value) { |
|||
addCriterion("file_name =", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotEqualTo(String value) { |
|||
addCriterion("file_name <>", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameGreaterThan(String value) { |
|||
addCriterion("file_name >", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("file_name >=", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameLessThan(String value) { |
|||
addCriterion("file_name <", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameLessThanOrEqualTo(String value) { |
|||
addCriterion("file_name <=", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameLike(String value) { |
|||
addCriterion("file_name like", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotLike(String value) { |
|||
addCriterion("file_name not like", value, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameIn(List<String> values) { |
|||
addCriterion("file_name in", values, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotIn(List<String> values) { |
|||
addCriterion("file_name not in", values, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameBetween(String value1, String value2) { |
|||
addCriterion("file_name between", value1, value2, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFileNameNotBetween(String value1, String value2) { |
|||
addCriterion("file_name not between", value1, value2, "fileName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathIsNull() { |
|||
addCriterion("file_path is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathIsNotNull() { |
|||
addCriterion("file_path is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathEqualTo(String value) { |
|||
addCriterion("file_path =", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathNotEqualTo(String value) { |
|||
addCriterion("file_path <>", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathGreaterThan(String value) { |
|||
addCriterion("file_path >", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathGreaterThanOrEqualTo(String value) { |
|||
addCriterion("file_path >=", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathLessThan(String value) { |
|||
addCriterion("file_path <", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathLessThanOrEqualTo(String value) { |
|||
addCriterion("file_path <=", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathLike(String value) { |
|||
addCriterion("file_path like", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathNotLike(String value) { |
|||
addCriterion("file_path not like", value, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathIn(List<String> values) { |
|||
addCriterion("file_path in", values, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathNotIn(List<String> values) { |
|||
addCriterion("file_path not in", values, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathBetween(String value1, String value2) { |
|||
addCriterion("file_path between", value1, value2, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFilePathNotBetween(String value1, String value2) { |
|||
addCriterion("file_path not between", value1, value2, "filePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
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,95 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class BlDepartment implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte type; |
|||
|
|||
private String name; |
|||
|
|||
private Long operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@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(", type=").append(type); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,631 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class BlDepartmentExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public BlDepartmentExample() { |
|||
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 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 andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
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,172 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class BlDoctor implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private String area; |
|||
|
|||
private String hospital; |
|||
|
|||
private String hospitalDj; |
|||
|
|||
private String hospitalJb; |
|||
|
|||
private String departments; |
|||
|
|||
private String position; |
|||
|
|||
private String name; |
|||
|
|||
private String phone; |
|||
|
|||
private Long operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getArea() { |
|||
return area; |
|||
} |
|||
|
|||
public void setArea(String area) { |
|||
this.area = area == null ? null : area.trim(); |
|||
} |
|||
|
|||
public String getHospital() { |
|||
return hospital; |
|||
} |
|||
|
|||
public void setHospital(String hospital) { |
|||
this.hospital = hospital == null ? null : hospital.trim(); |
|||
} |
|||
|
|||
public String getHospitalDj() { |
|||
return hospitalDj; |
|||
} |
|||
|
|||
public void setHospitalDj(String hospitalDj) { |
|||
this.hospitalDj = hospitalDj == null ? null : hospitalDj.trim(); |
|||
} |
|||
|
|||
public String getHospitalJb() { |
|||
return hospitalJb; |
|||
} |
|||
|
|||
public void setHospitalJb(String hospitalJb) { |
|||
this.hospitalJb = hospitalJb == null ? null : hospitalJb.trim(); |
|||
} |
|||
|
|||
public String getDepartments() { |
|||
return departments; |
|||
} |
|||
|
|||
public void setDepartments(String departments) { |
|||
this.departments = departments == null ? null : departments.trim(); |
|||
} |
|||
|
|||
public String getPosition() { |
|||
return position; |
|||
} |
|||
|
|||
public void setPosition(String position) { |
|||
this.position = position == null ? null : position.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@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(", userId=").append(userId); |
|||
sb.append(", area=").append(area); |
|||
sb.append(", hospital=").append(hospital); |
|||
sb.append(", hospitalDj=").append(hospitalDj); |
|||
sb.append(", hospitalJb=").append(hospitalJb); |
|||
sb.append(", departments=").append(departments); |
|||
sb.append(", position=").append(position); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,161 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FileCommit implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private String path; |
|||
|
|||
private String visitPath; |
|||
|
|||
private String md5; |
|||
|
|||
private String sha1; |
|||
|
|||
private Long time; |
|||
|
|||
private Integer count; |
|||
|
|||
private Byte status; |
|||
|
|||
private Long operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getPath() { |
|||
return path; |
|||
} |
|||
|
|||
public void setPath(String path) { |
|||
this.path = path == null ? null : path.trim(); |
|||
} |
|||
|
|||
public String getVisitPath() { |
|||
return visitPath; |
|||
} |
|||
|
|||
public void setVisitPath(String visitPath) { |
|||
this.visitPath = visitPath == null ? null : visitPath.trim(); |
|||
} |
|||
|
|||
public String getMd5() { |
|||
return md5; |
|||
} |
|||
|
|||
public void setMd5(String md5) { |
|||
this.md5 = md5 == null ? null : md5.trim(); |
|||
} |
|||
|
|||
public String getSha1() { |
|||
return sha1; |
|||
} |
|||
|
|||
public void setSha1(String sha1) { |
|||
this.sha1 = sha1 == null ? null : sha1.trim(); |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public Integer getCount() { |
|||
return count; |
|||
} |
|||
|
|||
public void setCount(Integer count) { |
|||
this.count = count; |
|||
} |
|||
|
|||
public Byte getStatus() { |
|||
return status; |
|||
} |
|||
|
|||
public void setStatus(Byte status) { |
|||
this.status = status; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@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(", name=").append(name); |
|||
sb.append(", path=").append(path); |
|||
sb.append(", visitPath=").append(visitPath); |
|||
sb.append(", md5=").append(md5); |
|||
sb.append(", sha1=").append(sha1); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", count=").append(count); |
|||
sb.append(", status=").append(status); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,114 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import cn.hutool.core.util.IdcardUtil; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.ccsens.carbasics.bean.dto.CaseDto; |
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class CaseVo { |
|||
|
|||
@ApiModel("结构化病例医生信息-返回") |
|||
@Data |
|||
public static class CaseDoctor{ |
|||
@ApiModelProperty("医生id") |
|||
private Long id; |
|||
@ApiModelProperty("所属地区信息") |
|||
private String area; |
|||
@ApiModelProperty("医院名称") |
|||
private String hospital; |
|||
@ApiModelProperty("等级") |
|||
private String dj; |
|||
@ApiModelProperty("级别") |
|||
private String jb; |
|||
@ApiModelProperty("科室") |
|||
private String departments; |
|||
@ApiModelProperty("职位") |
|||
private String position; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("手机号") |
|||
private String phone; |
|||
} |
|||
|
|||
@ApiModel("患者信息列表-返回") |
|||
@Data |
|||
public static class CasePatient{ |
|||
@ApiModelProperty("患者id") |
|||
private Long id; |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("性别 0女 1男") |
|||
private Byte gender; |
|||
@ApiModelProperty("年龄") |
|||
private Integer age; |
|||
@JsonIgnore//身份证号
|
|||
private String idcard; |
|||
@ApiModelProperty("住院号") |
|||
private String hospitalNumber; |
|||
@ApiModelProperty("保存时间") |
|||
private String submitTime; |
|||
@ApiModelProperty("类型 0新建病例 1保存 2提交") |
|||
private Byte submitStatus; |
|||
|
|||
public Integer getAge() { |
|||
int a = age == null ? 0 : age; |
|||
if(StrUtil.isNotBlank(idcard)){ |
|||
a = IdcardUtil.getAgeByIdCard(idcard); |
|||
} |
|||
return a; |
|||
} |
|||
} |
|||
|
|||
@ApiModel("查找id和名称列表信息-返回") |
|||
@Data |
|||
public static class QueryList{ |
|||
@ApiModelProperty("id") |
|||
private Long id; |
|||
@ApiModelProperty("名称") |
|||
private String name; |
|||
} |
|||
|
|||
@ApiModel("查看病例的图像信息-返回") |
|||
@Data |
|||
public static class CaseImg{ |
|||
@ApiModelProperty("code") |
|||
private String code; |
|||
@ApiModelProperty("文件列表") |
|||
private List<CaseFileInfo> fileList; |
|||
} |
|||
@Data |
|||
@ApiModel("") |
|||
public static class CaseFileInfo{ |
|||
@ApiModelProperty("文件id") |
|||
private Long uId; |
|||
@ApiModelProperty("文件名称") |
|||
private String name; |
|||
@ApiModelProperty("文件名称") |
|||
private String status = "done"; |
|||
@ApiModelProperty("访问路径") |
|||
private String url; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("") |
|||
public static class FileInfo{ |
|||
@ApiModelProperty("文件id") |
|||
private Long fileId; |
|||
@ApiModelProperty("文件名称") |
|||
private String name; |
|||
@ApiModelProperty("访问路径") |
|||
private String path; |
|||
} |
|||
|
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.BlCaseImg; |
|||
import com.ccsens.carbasics.bean.vo.CaseVo; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface CaseDao { |
|||
|
|||
/** |
|||
* 查找部门信息 |
|||
* @param type |
|||
* @return |
|||
*/ |
|||
List<CaseVo.QueryList> queryDepartment(@Param("type") Byte type); |
|||
|
|||
/** |
|||
* 查看医院列表 |
|||
* @param area |
|||
* @param name |
|||
* @return |
|||
*/ |
|||
List<CaseVo.QueryList> queryHospitalList(@Param("area")String area, @Param("name")String name); |
|||
|
|||
/** |
|||
* 获取医生信息 |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
CaseVo.CaseDoctor getDoctor(@Param("userId")Long userId); |
|||
|
|||
/** |
|||
* 查找病例信息列表 |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
List<CaseVo.CasePatient> queryCaseList(@Param("userId")Long userId, @Param("hospitalNumber")String hospitalNumber, @Param("submitStatus")Byte submitStatus); |
|||
|
|||
/** |
|||
* 批量添加 |
|||
* @param caseImgList |
|||
*/ |
|||
void batchInsertCaseImg(@Param("caseImgList")List<BlCaseImg> caseImgList); |
|||
|
|||
/** |
|||
* 查找病例上传的文件信息 |
|||
* @param caseId |
|||
* @param type |
|||
* @return |
|||
*/ |
|||
List<CaseVo.CaseImg> getCaseImg(@Param("caseId")Long caseId, @Param("type")Byte type); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.BlCaseImg; |
|||
import com.ccsens.carbasics.bean.po.BlCaseImgExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface BlCaseImgMapper { |
|||
long countByExample(BlCaseImgExample example); |
|||
|
|||
int deleteByExample(BlCaseImgExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(BlCaseImg record); |
|||
|
|||
int insertSelective(BlCaseImg record); |
|||
|
|||
List<BlCaseImg> selectByExample(BlCaseImgExample example); |
|||
|
|||
BlCaseImg selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") BlCaseImg record, @Param("example") BlCaseImgExample example); |
|||
|
|||
int updateByExample(@Param("record") BlCaseImg record, @Param("example") BlCaseImgExample example); |
|||
|
|||
int updateByPrimaryKeySelective(BlCaseImg record); |
|||
|
|||
int updateByPrimaryKey(BlCaseImg record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.BlCase; |
|||
import com.ccsens.carbasics.bean.po.BlCaseExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface BlCaseMapper { |
|||
long countByExample(BlCaseExample example); |
|||
|
|||
int deleteByExample(BlCaseExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(BlCase record); |
|||
|
|||
int insertSelective(BlCase record); |
|||
|
|||
List<BlCase> selectByExample(BlCaseExample example); |
|||
|
|||
BlCase selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") BlCase record, @Param("example") BlCaseExample example); |
|||
|
|||
int updateByExample(@Param("record") BlCase record, @Param("example") BlCaseExample example); |
|||
|
|||
int updateByPrimaryKeySelective(BlCase record); |
|||
|
|||
int updateByPrimaryKey(BlCase record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.BlDepartment; |
|||
import com.ccsens.carbasics.bean.po.BlDepartmentExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface BlDepartmentMapper { |
|||
long countByExample(BlDepartmentExample example); |
|||
|
|||
int deleteByExample(BlDepartmentExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(BlDepartment record); |
|||
|
|||
int insertSelective(BlDepartment record); |
|||
|
|||
List<BlDepartment> selectByExample(BlDepartmentExample example); |
|||
|
|||
BlDepartment selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") BlDepartment record, @Param("example") BlDepartmentExample example); |
|||
|
|||
int updateByExample(@Param("record") BlDepartment record, @Param("example") BlDepartmentExample example); |
|||
|
|||
int updateByPrimaryKeySelective(BlDepartment record); |
|||
|
|||
int updateByPrimaryKey(BlDepartment record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.BlDoctor; |
|||
import com.ccsens.carbasics.bean.po.BlDoctorExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface BlDoctorMapper { |
|||
long countByExample(BlDoctorExample example); |
|||
|
|||
int deleteByExample(BlDoctorExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(BlDoctor record); |
|||
|
|||
int insertSelective(BlDoctor record); |
|||
|
|||
List<BlDoctor> selectByExample(BlDoctorExample example); |
|||
|
|||
BlDoctor selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") BlDoctor record, @Param("example") BlDoctorExample example); |
|||
|
|||
int updateByExample(@Param("record") BlDoctor record, @Param("example") BlDoctorExample example); |
|||
|
|||
int updateByPrimaryKeySelective(BlDoctor record); |
|||
|
|||
int updateByPrimaryKey(BlDoctor record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.mapper; |
|||
|
|||
import com.ccsens.carbasics.bean.po.FileCommit; |
|||
import com.ccsens.carbasics.bean.po.FileCommitExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FileCommitMapper { |
|||
long countByExample(FileCommitExample example); |
|||
|
|||
int deleteByExample(FileCommitExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FileCommit record); |
|||
|
|||
int insertSelective(FileCommit record); |
|||
|
|||
List<FileCommit> selectByExample(FileCommitExample example); |
|||
|
|||
FileCommit selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FileCommit record, @Param("example") FileCommitExample example); |
|||
|
|||
int updateByExample(@Param("record") FileCommit record, @Param("example") FileCommitExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FileCommit record); |
|||
|
|||
int updateByPrimaryKey(FileCommit record); |
|||
} |
@ -0,0 +1,219 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.date.DateUtil; |
|||
import cn.hutool.core.io.FileUtil; |
|||
import cn.hutool.core.lang.Snowflake; |
|||
import cn.hutool.core.util.IdUtil; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.ccsens.carbasics.bean.dto.CaseDto; |
|||
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
|||
import com.ccsens.carbasics.bean.po.*; |
|||
import com.ccsens.carbasics.bean.vo.CaseVo; |
|||
import com.ccsens.carbasics.persist.dao.CaseDao; |
|||
import com.ccsens.carbasics.persist.mapper.BlCaseImgMapper; |
|||
import com.ccsens.carbasics.persist.mapper.BlCaseMapper; |
|||
import com.ccsens.carbasics.persist.mapper.BlDoctorMapper; |
|||
import com.ccsens.carbasics.persist.mapper.FileCommitMapper; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.carbasics.util.DefaultCodeError; |
|||
import com.ccsens.util.PropUtil; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import com.github.pagehelper.PageHelper; |
|||
import com.github.pagehelper.PageInfo; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.stereotype.Service; |
|||
import org.springframework.transaction.annotation.Propagation; |
|||
import org.springframework.transaction.annotation.Transactional; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.io.File; |
|||
import java.io.IOException; |
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
@Service |
|||
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) |
|||
public class CaseService implements ICaseService { |
|||
|
|||
@Resource |
|||
private CaseDao caseDao; |
|||
@Resource |
|||
private Snowflake snowflake; |
|||
@Resource |
|||
private BlDoctorMapper blDoctorMapper; |
|||
@Resource |
|||
private BlCaseMapper blCaseMapper; |
|||
@Resource |
|||
private FileCommitMapper fileCommitMapper; |
|||
@Resource |
|||
private BlCaseImgMapper blCaseImgMapper; |
|||
|
|||
@Override |
|||
public List<CaseVo.QueryList> queryHospitalList(QuestionnaireDto.QueryHospitalList param) { |
|||
return caseDao.queryHospitalList(param.getArea(),param.getName()); |
|||
} |
|||
|
|||
@Override |
|||
public List<CaseVo.QueryList> queryDepartment(Byte param) { |
|||
return caseDao.queryDepartment(param); |
|||
} |
|||
|
|||
@Override |
|||
public CaseVo.CaseDoctor getDoctor(Long userId) { |
|||
return caseDao.getDoctor(userId); |
|||
} |
|||
|
|||
@Override |
|||
public void submitDoctor(Long userId, CaseDto.CaseDoctor param) { |
|||
BlDoctor blDoctor = new BlDoctor(); |
|||
blDoctor.setId(snowflake.nextId()); |
|||
blDoctor.setArea(param.getArea()); |
|||
blDoctor.setDepartments(param.getDepartments()); |
|||
blDoctor.setHospital(param.getHospital()); |
|||
blDoctor.setName(param.getName()); |
|||
blDoctor.setPhone(param.getPhone()); |
|||
blDoctor.setPosition(param.getPosition()); |
|||
blDoctor.setUserId(userId); |
|||
blDoctor.setHospitalDj(param.getDj()); |
|||
blDoctor.setHospitalJb(param.getJb()); |
|||
blDoctorMapper.insertSelective(blDoctor); |
|||
} |
|||
|
|||
@Override |
|||
public PageInfo<CaseVo.CasePatient> queryCaseList(Long userId,CaseDto.QueryCaseByDoctor param) { |
|||
PageHelper.startPage(param.getPageNum(),param.getPageSize()); |
|||
List<CaseVo.CasePatient> casePatients = caseDao.queryCaseList(userId,param.getHospitalNumber(),param.getSubmitStatus()); |
|||
return new PageInfo<>(casePatients); |
|||
} |
|||
|
|||
@Override |
|||
public CaseVo.CasePatient saveCase(Long userId, CaseDto.SaveCase param) { |
|||
//查找医生
|
|||
CaseVo.CaseDoctor doctor = caseDao.getDoctor(userId); |
|||
if(ObjectUtil.isNull(doctor)){ |
|||
throw new BaseException(DefaultCodeError.NOT_DOCTOR); |
|||
} |
|||
//添加病例
|
|||
BlCase blCase = new BlCase(); |
|||
blCase.setId(snowflake.nextId()); |
|||
blCase.setName(param.getName()); |
|||
blCase.setGender(param.getGender()); |
|||
blCase.setHospitalNumber(param.getHospitalNumber()); |
|||
blCase.setIdcard(param.getIdcard()); |
|||
blCase.setDoctorId(doctor.getId()); |
|||
blCase.setSubmitStatus((byte) 1); |
|||
blCaseMapper.insertSelective(blCase); |
|||
|
|||
CaseVo.CasePatient casePatient = new CaseVo.CasePatient(); |
|||
casePatient.setId(blCase.getId()); |
|||
casePatient.setIdcard(blCase.getIdcard()); |
|||
casePatient.setGender(blCase.getGender()); |
|||
casePatient.setHospitalNumber(blCase.getHospitalNumber()); |
|||
casePatient.setName(blCase.getName()); |
|||
casePatient.setSubmitStatus(blCase.getSubmitStatus()); |
|||
return casePatient; |
|||
} |
|||
|
|||
@Override |
|||
public List<CaseVo.CaseImg> getCaseImg(CaseDto.GetCaseImg param) { |
|||
|
|||
return caseDao.getCaseImg(param.getCaseId(),param.getType()); |
|||
} |
|||
|
|||
@Override |
|||
public void submitCaseImg(CaseDto.SubmitCaseImg param) { |
|||
//查找病例信息
|
|||
BlCase blCase = blCaseMapper.selectByPrimaryKey(param.getCaseId()); |
|||
if(ObjectUtil.isNull(blCase)){ |
|||
throw new BaseException(DefaultCodeError.NOT_DOCTOR_CASE); |
|||
} |
|||
//删除之前的图片信息
|
|||
BlCaseImg blCaseImg = new BlCaseImg(); |
|||
blCaseImg.setRecStatus((byte) 2); |
|||
BlCaseImgExample blCaseImgExample = new BlCaseImgExample(); |
|||
blCaseImgExample.createCriteria().andCaseIdEqualTo(param.getCaseId()).andTypeEqualTo(param.getType()); |
|||
blCaseImgMapper.updateByExampleSelective(blCaseImg,blCaseImgExample); |
|||
//重新添加数据
|
|||
List<BlCaseImg> caseImgList = new ArrayList<>(); |
|||
if(CollectionUtil.isNotEmpty(param.getCaseImgInfoList())){ |
|||
for (CaseDto.CaseImgInfo caseImgInfo : param.getCaseImgInfoList()) { |
|||
if(CollectionUtil.isNotEmpty(caseImgInfo.getFileList())){ |
|||
for (CaseDto.FileInfo fileInfo : caseImgInfo.getFileList()) { |
|||
BlCaseImg caseImg = new BlCaseImg(); |
|||
caseImg.setId(snowflake.nextId()); |
|||
caseImg.setCaseId(blCase.getId()); |
|||
caseImg.setType(param.getType()); |
|||
caseImg.setCode(caseImgInfo.getCode()); |
|||
caseImg.setFileId(fileInfo.getUId()); |
|||
caseImg.setFileName(fileInfo.getName()); |
|||
caseImg.setFilePath(fileInfo.getUrl()); |
|||
caseImgList.add(caseImg); |
|||
} |
|||
} |
|||
} |
|||
} |
|||
if(CollectionUtil.isNotEmpty(caseImgList)){ |
|||
caseDao.batchInsertCaseImg(caseImgList); |
|||
} |
|||
} |
|||
|
|||
@Override |
|||
public CaseVo.FileInfo uploadFile(MultipartFile f, Long userId) throws IOException { |
|||
|
|||
if(ObjectUtil.isNull(f)){ |
|||
throw new BaseException(DefaultCodeError.NOT_FILE); |
|||
} |
|||
//文件类型验证
|
|||
String ext = FileUtil.extName(f.getOriginalFilename()); |
|||
log.info("文件类型:{}",ext); |
|||
if(StrUtil.isEmpty(ext) || (!Constant.FILE_TYPE_IMG.contains(ext) && !Constant.FILE_TYPE_DOCUMENT.contains(ext))){ |
|||
throw new BaseException(DefaultCodeError.FILE_FORMAT_ERROR); |
|||
} |
|||
//文件路径
|
|||
String dir = PropUtil.path; |
|||
String extraPath = DateUtil.format(new Date(), "yyyyMMdd"); |
|||
String path = extraPath + "/" + IdUtil.simpleUUID() + "." + ext; |
|||
//转成file
|
|||
File file = new File(dir + extraPath); |
|||
if (!file.exists()) { |
|||
file.mkdirs(); |
|||
} |
|||
String fullPath = dir + path; |
|||
//写入文件
|
|||
FileUtil.writeFromStream(f.getInputStream(), fullPath); |
|||
|
|||
//保存数据库
|
|||
FileCommit fileCommit = new FileCommit(); |
|||
fileCommit.setId(snowflake.nextId()); |
|||
fileCommit.setName(f.getOriginalFilename()); |
|||
fileCommit.setVisitPath(PropUtil.imgDomain + path); |
|||
fileCommit.setTime(System.currentTimeMillis()); |
|||
fileCommit.setOperator(userId); |
|||
fileCommitMapper.insertSelective(fileCommit); |
|||
//返回
|
|||
CaseVo.FileInfo fileInfo = new CaseVo.FileInfo(); |
|||
fileInfo.setFileId(fileCommit.getId()); |
|||
fileInfo.setName(fileCommit.getName()); |
|||
fileInfo.setPath(fileCommit.getVisitPath()); |
|||
return fileInfo; |
|||
} |
|||
|
|||
@Override |
|||
public void submitCase(CaseDto.SubmitCase param) { |
|||
//查找病例信息
|
|||
BlCase blCase = blCaseMapper.selectByPrimaryKey(param.getCaseId()); |
|||
if(ObjectUtil.isNull(blCase)){ |
|||
throw new BaseException(DefaultCodeError.NOT_DOCTOR_CASE); |
|||
} |
|||
blCase.setSubmitStatus((byte) 2); |
|||
blCaseMapper.updateByPrimaryKeySelective(blCase); |
|||
} |
|||
} |
@ -0,0 +1,76 @@ |
|||
package com.ccsens.carbasics.service; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.CaseDto; |
|||
import com.ccsens.carbasics.bean.dto.QuestionnaireDto; |
|||
import com.ccsens.carbasics.bean.vo.CaseVo; |
|||
import com.github.pagehelper.PageInfo; |
|||
import org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import java.io.IOException; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface ICaseService { |
|||
|
|||
/** |
|||
* 通过地区和名字查找医院列表 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<CaseVo.QueryList> queryHospitalList(QuestionnaireDto.QueryHospitalList param); |
|||
|
|||
/** |
|||
* 查找部门和职位信息 |
|||
* @param type |
|||
* @return |
|||
*/ |
|||
List<CaseVo.QueryList> queryDepartment(Byte type); |
|||
|
|||
/** |
|||
* 通过userId查找医生信息 |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
CaseVo.CaseDoctor getDoctor(Long userId); |
|||
|
|||
/** |
|||
* 医生填写自己的信息 |
|||
* @param userId |
|||
* @param param |
|||
*/ |
|||
void submitDoctor(Long userId, CaseDto.CaseDoctor param); |
|||
|
|||
/** |
|||
* 医生查看自己提交的病例信息 |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
PageInfo<CaseVo.CasePatient> queryCaseList(Long userId,CaseDto.QueryCaseByDoctor param); |
|||
|
|||
/** |
|||
* 医生新加一个病例信息 |
|||
* @param userId |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
CaseVo.CasePatient saveCase(Long userId, CaseDto.SaveCase param); |
|||
|
|||
/** |
|||
* 查看病例上传的图片信息 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
List<CaseVo.CaseImg> getCaseImg(CaseDto.GetCaseImg param); |
|||
|
|||
/** |
|||
* 提交病例下的文件信息 |
|||
* @param param |
|||
*/ |
|||
void submitCaseImg(CaseDto.SubmitCaseImg param); |
|||
|
|||
CaseVo.FileInfo uploadFile(MultipartFile f, Long userId) throws IOException; |
|||
|
|||
void submitCase(CaseDto.SubmitCase param); |
|||
} |
@ -1,4 +1,4 @@ |
|||
spring: |
|||
profiles: |
|||
active: test |
|||
include: common, util-test |
|||
active: prod |
|||
include: common, util-prod |
|||
|
@ -0,0 +1,116 @@ |
|||
<?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.carbasics.persist.dao.CaseDao"> |
|||
<insert id="batchInsertCaseImg"> |
|||
INSERT INTO t_bl_case_img |
|||
( |
|||
`id`, |
|||
`type`, |
|||
`case_id`, |
|||
`code`, |
|||
`file_id`, |
|||
`file_name`, |
|||
`file_path` |
|||
) |
|||
VALUES |
|||
<foreach collection="caseImgList" item="item" separator=","> |
|||
(#{item.id},#{item.type},#{item.caseId},#{item.code},#{item.fileId},#{item.fileName},#{item.filePath}) |
|||
</foreach> |
|||
</insert> |
|||
|
|||
<select id="queryDepartment" resultType="com.ccsens.carbasics.bean.vo.CaseVo$QueryList"> |
|||
SELECT |
|||
id, |
|||
`name` |
|||
FROM |
|||
`t_bl_department` |
|||
WHERE |
|||
`type` = #{type} |
|||
and rec_status = 0 |
|||
</select> |
|||
<select id="queryHospitalList" resultType="com.ccsens.carbasics.bean.vo.CaseVo$QueryList"> |
|||
SELECT |
|||
id, |
|||
hospital as `name` |
|||
FROM |
|||
t_bl_doctor |
|||
WHERE |
|||
rec_status = 0 |
|||
<if test="area != null and area != ''"> |
|||
and area = #{area} |
|||
</if> |
|||
<if test="name != null and name != ''"> |
|||
and hospital like concat('%',#{name},'%') |
|||
</if> |
|||
</select> |
|||
<select id="getDoctor" resultType="com.ccsens.carbasics.bean.vo.CaseVo$CaseDoctor"> |
|||
SELECT |
|||
id, |
|||
area, |
|||
hospital, |
|||
hospital_dj as dj, |
|||
hospital_jb as jb, |
|||
departments, |
|||
`position`, |
|||
`name`, |
|||
phone |
|||
FROM |
|||
t_bl_doctor |
|||
WHERE |
|||
user_id = #{userId} |
|||
and rec_status = 0 |
|||
limit 1 |
|||
</select> |
|||
<select id="queryCaseList" resultType="com.ccsens.carbasics.bean.vo.CaseVo$CasePatient"> |
|||
SELECT |
|||
c.id, |
|||
c.`name`, |
|||
c.gender, |
|||
c.idcard, |
|||
c.hospital_number as hospitalNumber, |
|||
c.submit_time as submitTime, |
|||
c.submit_status as submitStatus |
|||
FROM |
|||
t_bl_doctor d, |
|||
t_bl_case c |
|||
WHERE |
|||
d.id = c.doctor_id |
|||
and d.user_id = #{userId} |
|||
<if test="submitStatus != null"> |
|||
and submit_status = #{submitStatus} |
|||
</if> |
|||
<if test="hospitalNumber != null and hospitalNumber != ''"> |
|||
and |
|||
( |
|||
c.hospital_number like concat('%',#{hospitalNumber},'%') |
|||
or |
|||
c.`name` like concat('%',#{hospitalNumber},'%') |
|||
) |
|||
</if> |
|||
and d.rec_status = 0 |
|||
and c.rec_status = 0 |
|||
</select> |
|||
|
|||
<resultMap id="caseImgList" type="com.ccsens.carbasics.bean.vo.CaseVo$CaseImg"> |
|||
<id column="code" property="code"/> |
|||
<collection property="fileList" ofType="com.ccsens.carbasics.bean.vo.CaseVo$CaseFileInfo"> |
|||
<id column="uId" property="uId"/> |
|||
<result column="name" property="name"/> |
|||
<result column="url" property="url"/> |
|||
</collection> |
|||
</resultMap> |
|||
|
|||
<select id="getCaseImg" resultMap="caseImgList"> |
|||
SELECT |
|||
`code`, |
|||
`file_id` as uId, |
|||
`file_name` as `name`, |
|||
`file_path` as url |
|||
FROM |
|||
`t_bl_case_img` |
|||
WHERE |
|||
case_id = #{caseId} |
|||
and `type` = #{type} |
|||
and rec_status = 0 |
|||
</select> |
|||
</mapper> |
@ -0,0 +1,306 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.carbasics.persist.mapper.BlCaseImgMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.BlCaseImg"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="case_id" jdbcType="BIGINT" property="caseId" /> |
|||
<result column="code" jdbcType="VARCHAR" property="code" /> |
|||
<result column="file_id" jdbcType="BIGINT" property="fileId" /> |
|||
<result column="file_name" jdbcType="VARCHAR" property="fileName" /> |
|||
<result column="file_path" jdbcType="VARCHAR" property="filePath" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, type, case_id, code, file_id, file_name, file_path, operator, created_at, updated_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.BlCaseImgExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_bl_case_img |
|||
<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_bl_case_img |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_bl_case_img |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.BlCaseImgExample"> |
|||
delete from t_bl_case_img |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.BlCaseImg"> |
|||
insert into t_bl_case_img (id, type, case_id, |
|||
code, file_id, file_name, |
|||
file_path, operator, created_at, |
|||
updated_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, #{caseId,jdbcType=BIGINT}, |
|||
#{code,jdbcType=VARCHAR}, #{fileId,jdbcType=BIGINT}, #{fileName,jdbcType=VARCHAR}, |
|||
#{filePath,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.BlCaseImg"> |
|||
insert into t_bl_case_img |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="caseId != null"> |
|||
case_id, |
|||
</if> |
|||
<if test="code != null"> |
|||
code, |
|||
</if> |
|||
<if test="fileId != null"> |
|||
file_id, |
|||
</if> |
|||
<if test="fileName != null"> |
|||
file_name, |
|||
</if> |
|||
<if test="filePath != null"> |
|||
file_path, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="caseId != null"> |
|||
#{caseId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="code != null"> |
|||
#{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="fileId != null"> |
|||
#{fileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="fileName != null"> |
|||
#{fileName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="filePath != null"> |
|||
#{filePath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.BlCaseImgExample" resultType="java.lang.Long"> |
|||
select count(*) from t_bl_case_img |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_bl_case_img |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.caseId != null"> |
|||
case_id = #{record.caseId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.code != null"> |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.fileId != null"> |
|||
file_id = #{record.fileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.fileName != null"> |
|||
file_name = #{record.fileName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.filePath != null"> |
|||
file_path = #{record.filePath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_bl_case_img |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
case_id = #{record.caseId,jdbcType=BIGINT}, |
|||
code = #{record.code,jdbcType=VARCHAR}, |
|||
file_id = #{record.fileId,jdbcType=BIGINT}, |
|||
file_name = #{record.fileName,jdbcType=VARCHAR}, |
|||
file_path = #{record.filePath,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.BlCaseImg"> |
|||
update t_bl_case_img |
|||
<set> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="caseId != null"> |
|||
case_id = #{caseId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="code != null"> |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="fileId != null"> |
|||
file_id = #{fileId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="fileName != null"> |
|||
file_name = #{fileName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="filePath != null"> |
|||
file_path = #{filePath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.BlCaseImg"> |
|||
update t_bl_case_img |
|||
set type = #{type,jdbcType=TINYINT}, |
|||
case_id = #{caseId,jdbcType=BIGINT}, |
|||
code = #{code,jdbcType=VARCHAR}, |
|||
file_id = #{fileId,jdbcType=BIGINT}, |
|||
file_name = #{fileName,jdbcType=VARCHAR}, |
|||
file_path = #{filePath,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,323 @@ |
|||
<?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.carbasics.persist.mapper.BlCaseMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.BlCase"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="doctor_id" jdbcType="BIGINT" property="doctorId" /> |
|||
<result column="hospital_number" jdbcType="VARCHAR" property="hospitalNumber" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="gender" jdbcType="TINYINT" property="gender" /> |
|||
<result column="idcard" jdbcType="VARCHAR" property="idcard" /> |
|||
<result column="submit_status" jdbcType="TINYINT" property="submitStatus" /> |
|||
<result column="submit_time" jdbcType="BIGINT" property="submitTime" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, doctor_id, hospital_number, name, gender, idcard, submit_status, submit_time, |
|||
operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.BlCaseExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_bl_case |
|||
<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_bl_case |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_bl_case |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.BlCaseExample"> |
|||
delete from t_bl_case |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.BlCase"> |
|||
insert into t_bl_case (id, doctor_id, hospital_number, |
|||
name, gender, idcard, |
|||
submit_status, submit_time, operator, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, #{hospitalNumber,jdbcType=VARCHAR}, |
|||
#{name,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{idcard,jdbcType=VARCHAR}, |
|||
#{submitStatus,jdbcType=TINYINT}, #{submitTime,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.BlCase"> |
|||
insert into t_bl_case |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="doctorId != null"> |
|||
doctor_id, |
|||
</if> |
|||
<if test="hospitalNumber != null"> |
|||
hospital_number, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender, |
|||
</if> |
|||
<if test="idcard != null"> |
|||
idcard, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
submit_status, |
|||
</if> |
|||
<if test="submitTime != null"> |
|||
submit_time, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="doctorId != null"> |
|||
#{doctorId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="hospitalNumber != null"> |
|||
#{hospitalNumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
#{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idcard != null"> |
|||
#{idcard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
#{submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="submitTime != null"> |
|||
#{submitTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.BlCaseExample" resultType="java.lang.Long"> |
|||
select count(*) from t_bl_case |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_bl_case |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.doctorId != null"> |
|||
doctor_id = #{record.doctorId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.hospitalNumber != null"> |
|||
hospital_number = #{record.hospitalNumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.gender != null"> |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.idcard != null"> |
|||
idcard = #{record.idcard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.submitStatus != null"> |
|||
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.submitTime != null"> |
|||
submit_time = #{record.submitTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_bl_case |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
doctor_id = #{record.doctorId,jdbcType=BIGINT}, |
|||
hospital_number = #{record.hospitalNumber,jdbcType=VARCHAR}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
gender = #{record.gender,jdbcType=TINYINT}, |
|||
idcard = #{record.idcard,jdbcType=VARCHAR}, |
|||
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|||
submit_time = #{record.submitTime,jdbcType=BIGINT}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.BlCase"> |
|||
update t_bl_case |
|||
<set> |
|||
<if test="doctorId != null"> |
|||
doctor_id = #{doctorId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="hospitalNumber != null"> |
|||
hospital_number = #{hospitalNumber,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="gender != null"> |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="idcard != null"> |
|||
idcard = #{idcard,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="submitTime != null"> |
|||
submit_time = #{submitTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.BlCase"> |
|||
update t_bl_case |
|||
set doctor_id = #{doctorId,jdbcType=BIGINT}, |
|||
hospital_number = #{hospitalNumber,jdbcType=VARCHAR}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
gender = #{gender,jdbcType=TINYINT}, |
|||
idcard = #{idcard,jdbcType=VARCHAR}, |
|||
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|||
submit_time = #{submitTime,jdbcType=BIGINT}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,243 @@ |
|||
<?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.carbasics.persist.mapper.BlDepartmentMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.BlDepartment"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, type, name, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.BlDepartmentExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_bl_department |
|||
<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_bl_department |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_bl_department |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.BlDepartmentExample"> |
|||
delete from t_bl_department |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.BlDepartment"> |
|||
insert into t_bl_department (id, type, name, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, #{name,jdbcType=VARCHAR}, |
|||
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.BlDepartment"> |
|||
insert into t_bl_department |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.BlDepartmentExample" resultType="java.lang.Long"> |
|||
select count(*) from t_bl_department |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_bl_department |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_bl_department |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.BlDepartment"> |
|||
update t_bl_department |
|||
<set> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.BlDepartment"> |
|||
update t_bl_department |
|||
set type = #{type,jdbcType=TINYINT}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,353 @@ |
|||
<?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.carbasics.persist.mapper.BlDoctorMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.BlDoctor"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="area" jdbcType="VARCHAR" property="area" /> |
|||
<result column="hospital" jdbcType="VARCHAR" property="hospital" /> |
|||
<result column="hospital_dj" jdbcType="VARCHAR" property="hospitalDj" /> |
|||
<result column="hospital_jb" jdbcType="VARCHAR" property="hospitalJb" /> |
|||
<result column="departments" jdbcType="VARCHAR" property="departments" /> |
|||
<result column="position" jdbcType="VARCHAR" property="position" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="phone" jdbcType="VARCHAR" property="phone" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, user_id, area, hospital, hospital_dj, hospital_jb, departments, position, name, |
|||
phone, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.BlDoctorExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_bl_doctor |
|||
<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_bl_doctor |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_bl_doctor |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.BlDoctorExample"> |
|||
delete from t_bl_doctor |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.BlDoctor"> |
|||
insert into t_bl_doctor (id, user_id, area, |
|||
hospital, hospital_dj, hospital_jb, |
|||
departments, position, name, |
|||
phone, operator, created_at, |
|||
updated_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{area,jdbcType=VARCHAR}, |
|||
#{hospital,jdbcType=VARCHAR}, #{hospitalDj,jdbcType=VARCHAR}, #{hospitalJb,jdbcType=VARCHAR}, |
|||
#{departments,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, |
|||
#{phone,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.BlDoctor"> |
|||
insert into t_bl_doctor |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="area != null"> |
|||
area, |
|||
</if> |
|||
<if test="hospital != null"> |
|||
hospital, |
|||
</if> |
|||
<if test="hospitalDj != null"> |
|||
hospital_dj, |
|||
</if> |
|||
<if test="hospitalJb != null"> |
|||
hospital_jb, |
|||
</if> |
|||
<if test="departments != null"> |
|||
departments, |
|||
</if> |
|||
<if test="position != null"> |
|||
position, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="area != null"> |
|||
#{area,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospital != null"> |
|||
#{hospital,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospitalDj != null"> |
|||
#{hospitalDj,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospitalJb != null"> |
|||
#{hospitalJb,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="departments != null"> |
|||
#{departments,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="position != null"> |
|||
#{position,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
#{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.BlDoctorExample" resultType="java.lang.Long"> |
|||
select count(*) from t_bl_doctor |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_bl_doctor |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.area != null"> |
|||
area = #{record.area,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.hospital != null"> |
|||
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.hospitalDj != null"> |
|||
hospital_dj = #{record.hospitalDj,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.hospitalJb != null"> |
|||
hospital_jb = #{record.hospitalJb,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.departments != null"> |
|||
departments = #{record.departments,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.position != null"> |
|||
position = #{record.position,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.phone != null"> |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_bl_doctor |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
area = #{record.area,jdbcType=VARCHAR}, |
|||
hospital = #{record.hospital,jdbcType=VARCHAR}, |
|||
hospital_dj = #{record.hospitalDj,jdbcType=VARCHAR}, |
|||
hospital_jb = #{record.hospitalJb,jdbcType=VARCHAR}, |
|||
departments = #{record.departments,jdbcType=VARCHAR}, |
|||
position = #{record.position,jdbcType=VARCHAR}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
phone = #{record.phone,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.BlDoctor"> |
|||
update t_bl_doctor |
|||
<set> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="area != null"> |
|||
area = #{area,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospital != null"> |
|||
hospital = #{hospital,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospitalDj != null"> |
|||
hospital_dj = #{hospitalDj,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="hospitalJb != null"> |
|||
hospital_jb = #{hospitalJb,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="departments != null"> |
|||
departments = #{departments,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="position != null"> |
|||
position = #{position,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="phone != null"> |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.BlDoctor"> |
|||
update t_bl_doctor |
|||
set user_id = #{userId,jdbcType=BIGINT}, |
|||
area = #{area,jdbcType=VARCHAR}, |
|||
hospital = #{hospital,jdbcType=VARCHAR}, |
|||
hospital_dj = #{hospitalDj,jdbcType=VARCHAR}, |
|||
hospital_jb = #{hospitalJb,jdbcType=VARCHAR}, |
|||
departments = #{departments,jdbcType=VARCHAR}, |
|||
position = #{position,jdbcType=VARCHAR}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
phone = #{phone,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,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.carbasics.persist.mapper.FileCommitMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.FileCommit"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="path" jdbcType="VARCHAR" property="path" /> |
|||
<result column="visit_path" jdbcType="VARCHAR" property="visitPath" /> |
|||
<result column="md5" jdbcType="VARCHAR" property="md5" /> |
|||
<result column="sha1" jdbcType="VARCHAR" property="sha1" /> |
|||
<result column="time" jdbcType="BIGINT" property="time" /> |
|||
<result column="count" jdbcType="INTEGER" property="count" /> |
|||
<result column="status" jdbcType="TINYINT" property="status" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</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, name, path, visit_path, md5, sha1, time, count, status, operator, created_at, |
|||
updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.FileCommitExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_file_commit |
|||
<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_file_commit |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_file_commit |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.FileCommitExample"> |
|||
delete from t_file_commit |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.FileCommit"> |
|||
insert into t_file_commit (id, name, path, |
|||
visit_path, md5, sha1, |
|||
time, count, status, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{path,jdbcType=VARCHAR}, |
|||
#{visitPath,jdbcType=VARCHAR}, #{md5,jdbcType=VARCHAR}, #{sha1,jdbcType=VARCHAR}, |
|||
#{time,jdbcType=BIGINT}, #{count,jdbcType=INTEGER}, #{status,jdbcType=TINYINT}, |
|||
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.FileCommit"> |
|||
insert into t_file_commit |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="path != null"> |
|||
path, |
|||
</if> |
|||
<if test="visitPath != null"> |
|||
visit_path, |
|||
</if> |
|||
<if test="md5 != null"> |
|||
md5, |
|||
</if> |
|||
<if test="sha1 != null"> |
|||
sha1, |
|||
</if> |
|||
<if test="time != null"> |
|||
time, |
|||
</if> |
|||
<if test="count != null"> |
|||
count, |
|||
</if> |
|||
<if test="status != null"> |
|||
status, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="path != null"> |
|||
#{path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="visitPath != null"> |
|||
#{visitPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="md5 != null"> |
|||
#{md5,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sha1 != null"> |
|||
#{sha1,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="time != null"> |
|||
#{time,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="count != null"> |
|||
#{count,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="status != null"> |
|||
#{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.FileCommitExample" resultType="java.lang.Long"> |
|||
select count(*) from t_file_commit |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_file_commit |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.path != null"> |
|||
path = #{record.path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.visitPath != null"> |
|||
visit_path = #{record.visitPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.md5 != null"> |
|||
md5 = #{record.md5,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.sha1 != null"> |
|||
sha1 = #{record.sha1,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.time != null"> |
|||
time = #{record.time,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.count != null"> |
|||
count = #{record.count,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.status != null"> |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_file_commit |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
path = #{record.path,jdbcType=VARCHAR}, |
|||
visit_path = #{record.visitPath,jdbcType=VARCHAR}, |
|||
md5 = #{record.md5,jdbcType=VARCHAR}, |
|||
sha1 = #{record.sha1,jdbcType=VARCHAR}, |
|||
time = #{record.time,jdbcType=BIGINT}, |
|||
count = #{record.count,jdbcType=INTEGER}, |
|||
status = #{record.status,jdbcType=TINYINT}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.FileCommit"> |
|||
update t_file_commit |
|||
<set> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="path != null"> |
|||
path = #{path,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="visitPath != null"> |
|||
visit_path = #{visitPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="md5 != null"> |
|||
md5 = #{md5,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sha1 != null"> |
|||
sha1 = #{sha1,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="time != null"> |
|||
time = #{time,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="count != null"> |
|||
count = #{count,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="status != null"> |
|||
status = #{status,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.FileCommit"> |
|||
update t_file_commit |
|||
set name = #{name,jdbcType=VARCHAR}, |
|||
path = #{path,jdbcType=VARCHAR}, |
|||
visit_path = #{visitPath,jdbcType=VARCHAR}, |
|||
md5 = #{md5,jdbcType=VARCHAR}, |
|||
sha1 = #{sha1,jdbcType=VARCHAR}, |
|||
time = #{time,jdbcType=BIGINT}, |
|||
count = #{count,jdbcType=INTEGER}, |
|||
status = #{status,jdbcType=TINYINT}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue