diff --git a/src/main/java/com/ccsens/carbasics/api/CaseController.java b/src/main/java/com/ccsens/carbasics/api/CaseController.java new file mode 100644 index 0000000..764ab86 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/api/CaseController.java @@ -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 uploadFile(QueryDto 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> queryHospitalList(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + List 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> queryDepartment(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + byte type = params.getParam().getType() == null ? 0 : params.getParam().getType(); + List 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 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 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> queryCaseList(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + PageInfo 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 saveCase(@ApiParam @Validated @RequestBody QueryDto 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> getCaseImg(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + List 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 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 params) throws Exception{ + caseService.submitCase(params.getParam()); + return JsonResponse.newInstance().ok(); + } +} diff --git a/src/main/java/com/ccsens/carbasics/bean/dto/CaseDto.java b/src/main/java/com/ccsens/carbasics/bean/dto/CaseDto.java new file mode 100644 index 0000000..371a9ab --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/dto/CaseDto.java @@ -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 caseImgInfoList; + } + + @ApiModel("病例的图像-返回") + @Data + public static class CaseImgInfo{ + @ApiModelProperty("code") + private String code; + @ApiModelProperty("文件列表") + private List 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; + } +} diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlCase.java b/src/main/java/com/ccsens/carbasics/bean/po/BlCase.java new file mode 100644 index 0000000..16f4530 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlCase.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlCaseExample.java b/src/main/java/com/ccsens/carbasics/bean/po/BlCaseExample.java new file mode 100644 index 0000000..1eb6755 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlCaseExample.java @@ -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 oredCriteria; + + public BlCaseExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("doctor_id in", values, "doctorId"); + return (Criteria) this; + } + + public Criteria andDoctorIdNotIn(List 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 values) { + addCriterion("hospital_number in", values, "hospitalNumber"); + return (Criteria) this; + } + + public Criteria andHospitalNumberNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("gender in", values, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotIn(List 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 values) { + addCriterion("idcard in", values, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardNotIn(List 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 values) { + addCriterion("submit_status in", values, "submitStatus"); + return (Criteria) this; + } + + public Criteria andSubmitStatusNotIn(List 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 values) { + addCriterion("submit_time in", values, "submitTime"); + return (Criteria) this; + } + + public Criteria andSubmitTimeNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlCaseImg.java b/src/main/java/com/ccsens/carbasics/bean/po/BlCaseImg.java new file mode 100644 index 0000000..4f92812 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlCaseImg.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlCaseImgExample.java b/src/main/java/com/ccsens/carbasics/bean/po/BlCaseImgExample.java new file mode 100644 index 0000000..f326de5 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlCaseImgExample.java @@ -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 oredCriteria; + + public BlCaseImgExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("case_id in", values, "caseId"); + return (Criteria) this; + } + + public Criteria andCaseIdNotIn(List 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 values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List 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 values) { + addCriterion("file_id in", values, "fileId"); + return (Criteria) this; + } + + public Criteria andFileIdNotIn(List 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 values) { + addCriterion("file_name in", values, "fileName"); + return (Criteria) this; + } + + public Criteria andFileNameNotIn(List 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 values) { + addCriterion("file_path in", values, "filePath"); + return (Criteria) this; + } + + public Criteria andFilePathNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlDepartment.java b/src/main/java/com/ccsens/carbasics/bean/po/BlDepartment.java new file mode 100644 index 0000000..574b97c --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlDepartment.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlDepartmentExample.java b/src/main/java/com/ccsens/carbasics/bean/po/BlDepartmentExample.java new file mode 100644 index 0000000..cd5125a --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlDepartmentExample.java @@ -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 oredCriteria; + + public BlDepartmentExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlDoctor.java b/src/main/java/com/ccsens/carbasics/bean/po/BlDoctor.java new file mode 100644 index 0000000..7f2ec05 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlDoctor.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/BlDoctorExample.java b/src/main/java/com/ccsens/carbasics/bean/po/BlDoctorExample.java new file mode 100644 index 0000000..e922ec9 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/BlDoctorExample.java @@ -0,0 +1,1121 @@ +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class BlDoctorExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public BlDoctorExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Long value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Long value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Long value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Long value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Long value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Long value1, Long value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Long value1, Long value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andAreaIsNull() { + addCriterion("area is null"); + return (Criteria) this; + } + + public Criteria andAreaIsNotNull() { + addCriterion("area is not null"); + return (Criteria) this; + } + + public Criteria andAreaEqualTo(String value) { + addCriterion("area =", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaNotEqualTo(String value) { + addCriterion("area <>", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaGreaterThan(String value) { + addCriterion("area >", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaGreaterThanOrEqualTo(String value) { + addCriterion("area >=", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaLessThan(String value) { + addCriterion("area <", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaLessThanOrEqualTo(String value) { + addCriterion("area <=", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaLike(String value) { + addCriterion("area like", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaNotLike(String value) { + addCriterion("area not like", value, "area"); + return (Criteria) this; + } + + public Criteria andAreaIn(List values) { + addCriterion("area in", values, "area"); + return (Criteria) this; + } + + public Criteria andAreaNotIn(List values) { + addCriterion("area not in", values, "area"); + return (Criteria) this; + } + + public Criteria andAreaBetween(String value1, String value2) { + addCriterion("area between", value1, value2, "area"); + return (Criteria) this; + } + + public Criteria andAreaNotBetween(String value1, String value2) { + addCriterion("area not between", value1, value2, "area"); + return (Criteria) this; + } + + public Criteria andHospitalIsNull() { + addCriterion("hospital is null"); + return (Criteria) this; + } + + public Criteria andHospitalIsNotNull() { + addCriterion("hospital is not null"); + return (Criteria) this; + } + + public Criteria andHospitalEqualTo(String value) { + addCriterion("hospital =", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalNotEqualTo(String value) { + addCriterion("hospital <>", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalGreaterThan(String value) { + addCriterion("hospital >", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalGreaterThanOrEqualTo(String value) { + addCriterion("hospital >=", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalLessThan(String value) { + addCriterion("hospital <", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalLessThanOrEqualTo(String value) { + addCriterion("hospital <=", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalLike(String value) { + addCriterion("hospital like", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalNotLike(String value) { + addCriterion("hospital not like", value, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalIn(List values) { + addCriterion("hospital in", values, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalNotIn(List values) { + addCriterion("hospital not in", values, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalBetween(String value1, String value2) { + addCriterion("hospital between", value1, value2, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalNotBetween(String value1, String value2) { + addCriterion("hospital not between", value1, value2, "hospital"); + return (Criteria) this; + } + + public Criteria andHospitalDjIsNull() { + addCriterion("hospital_dj is null"); + return (Criteria) this; + } + + public Criteria andHospitalDjIsNotNull() { + addCriterion("hospital_dj is not null"); + return (Criteria) this; + } + + public Criteria andHospitalDjEqualTo(String value) { + addCriterion("hospital_dj =", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjNotEqualTo(String value) { + addCriterion("hospital_dj <>", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjGreaterThan(String value) { + addCriterion("hospital_dj >", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjGreaterThanOrEqualTo(String value) { + addCriterion("hospital_dj >=", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjLessThan(String value) { + addCriterion("hospital_dj <", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjLessThanOrEqualTo(String value) { + addCriterion("hospital_dj <=", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjLike(String value) { + addCriterion("hospital_dj like", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjNotLike(String value) { + addCriterion("hospital_dj not like", value, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjIn(List values) { + addCriterion("hospital_dj in", values, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjNotIn(List values) { + addCriterion("hospital_dj not in", values, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjBetween(String value1, String value2) { + addCriterion("hospital_dj between", value1, value2, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalDjNotBetween(String value1, String value2) { + addCriterion("hospital_dj not between", value1, value2, "hospitalDj"); + return (Criteria) this; + } + + public Criteria andHospitalJbIsNull() { + addCriterion("hospital_jb is null"); + return (Criteria) this; + } + + public Criteria andHospitalJbIsNotNull() { + addCriterion("hospital_jb is not null"); + return (Criteria) this; + } + + public Criteria andHospitalJbEqualTo(String value) { + addCriterion("hospital_jb =", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbNotEqualTo(String value) { + addCriterion("hospital_jb <>", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbGreaterThan(String value) { + addCriterion("hospital_jb >", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbGreaterThanOrEqualTo(String value) { + addCriterion("hospital_jb >=", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbLessThan(String value) { + addCriterion("hospital_jb <", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbLessThanOrEqualTo(String value) { + addCriterion("hospital_jb <=", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbLike(String value) { + addCriterion("hospital_jb like", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbNotLike(String value) { + addCriterion("hospital_jb not like", value, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbIn(List values) { + addCriterion("hospital_jb in", values, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbNotIn(List values) { + addCriterion("hospital_jb not in", values, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbBetween(String value1, String value2) { + addCriterion("hospital_jb between", value1, value2, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andHospitalJbNotBetween(String value1, String value2) { + addCriterion("hospital_jb not between", value1, value2, "hospitalJb"); + return (Criteria) this; + } + + public Criteria andDepartmentsIsNull() { + addCriterion("departments is null"); + return (Criteria) this; + } + + public Criteria andDepartmentsIsNotNull() { + addCriterion("departments is not null"); + return (Criteria) this; + } + + public Criteria andDepartmentsEqualTo(String value) { + addCriterion("departments =", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsNotEqualTo(String value) { + addCriterion("departments <>", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsGreaterThan(String value) { + addCriterion("departments >", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsGreaterThanOrEqualTo(String value) { + addCriterion("departments >=", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsLessThan(String value) { + addCriterion("departments <", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsLessThanOrEqualTo(String value) { + addCriterion("departments <=", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsLike(String value) { + addCriterion("departments like", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsNotLike(String value) { + addCriterion("departments not like", value, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsIn(List values) { + addCriterion("departments in", values, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsNotIn(List values) { + addCriterion("departments not in", values, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsBetween(String value1, String value2) { + addCriterion("departments between", value1, value2, "departments"); + return (Criteria) this; + } + + public Criteria andDepartmentsNotBetween(String value1, String value2) { + addCriterion("departments not between", value1, value2, "departments"); + return (Criteria) this; + } + + public Criteria andPositionIsNull() { + addCriterion("position is null"); + return (Criteria) this; + } + + public Criteria andPositionIsNotNull() { + addCriterion("position is not null"); + return (Criteria) this; + } + + public Criteria andPositionEqualTo(String value) { + addCriterion("position =", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotEqualTo(String value) { + addCriterion("position <>", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionGreaterThan(String value) { + addCriterion("position >", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionGreaterThanOrEqualTo(String value) { + addCriterion("position >=", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionLessThan(String value) { + addCriterion("position <", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionLessThanOrEqualTo(String value) { + addCriterion("position <=", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionLike(String value) { + addCriterion("position like", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotLike(String value) { + addCriterion("position not like", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionIn(List values) { + addCriterion("position in", values, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotIn(List values) { + addCriterion("position not in", values, "position"); + return (Criteria) this; + } + + public Criteria andPositionBetween(String value1, String value2) { + addCriterion("position between", value1, value2, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotBetween(String value1, String value2) { + addCriterion("position not between", value1, value2, "position"); + 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FileCommit.java b/src/main/java/com/ccsens/carbasics/bean/po/FileCommit.java new file mode 100644 index 0000000..727758d --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/FileCommit.java @@ -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(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FileCommitExample.java b/src/main/java/com/ccsens/carbasics/bean/po/FileCommitExample.java new file mode 100644 index 0000000..afb82f7 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/FileCommitExample.java @@ -0,0 +1,1031 @@ +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class FileCommitExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public FileCommitExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List 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 andPathIsNull() { + addCriterion("path is null"); + return (Criteria) this; + } + + public Criteria andPathIsNotNull() { + addCriterion("path is not null"); + return (Criteria) this; + } + + public Criteria andPathEqualTo(String value) { + addCriterion("path =", value, "path"); + return (Criteria) this; + } + + public Criteria andPathNotEqualTo(String value) { + addCriterion("path <>", value, "path"); + return (Criteria) this; + } + + public Criteria andPathGreaterThan(String value) { + addCriterion("path >", value, "path"); + return (Criteria) this; + } + + public Criteria andPathGreaterThanOrEqualTo(String value) { + addCriterion("path >=", value, "path"); + return (Criteria) this; + } + + public Criteria andPathLessThan(String value) { + addCriterion("path <", value, "path"); + return (Criteria) this; + } + + public Criteria andPathLessThanOrEqualTo(String value) { + addCriterion("path <=", value, "path"); + return (Criteria) this; + } + + public Criteria andPathLike(String value) { + addCriterion("path like", value, "path"); + return (Criteria) this; + } + + public Criteria andPathNotLike(String value) { + addCriterion("path not like", value, "path"); + return (Criteria) this; + } + + public Criteria andPathIn(List values) { + addCriterion("path in", values, "path"); + return (Criteria) this; + } + + public Criteria andPathNotIn(List values) { + addCriterion("path not in", values, "path"); + return (Criteria) this; + } + + public Criteria andPathBetween(String value1, String value2) { + addCriterion("path between", value1, value2, "path"); + return (Criteria) this; + } + + public Criteria andPathNotBetween(String value1, String value2) { + addCriterion("path not between", value1, value2, "path"); + return (Criteria) this; + } + + public Criteria andVisitPathIsNull() { + addCriterion("visit_path is null"); + return (Criteria) this; + } + + public Criteria andVisitPathIsNotNull() { + addCriterion("visit_path is not null"); + return (Criteria) this; + } + + public Criteria andVisitPathEqualTo(String value) { + addCriterion("visit_path =", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathNotEqualTo(String value) { + addCriterion("visit_path <>", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathGreaterThan(String value) { + addCriterion("visit_path >", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathGreaterThanOrEqualTo(String value) { + addCriterion("visit_path >=", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathLessThan(String value) { + addCriterion("visit_path <", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathLessThanOrEqualTo(String value) { + addCriterion("visit_path <=", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathLike(String value) { + addCriterion("visit_path like", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathNotLike(String value) { + addCriterion("visit_path not like", value, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathIn(List values) { + addCriterion("visit_path in", values, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathNotIn(List values) { + addCriterion("visit_path not in", values, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathBetween(String value1, String value2) { + addCriterion("visit_path between", value1, value2, "visitPath"); + return (Criteria) this; + } + + public Criteria andVisitPathNotBetween(String value1, String value2) { + addCriterion("visit_path not between", value1, value2, "visitPath"); + return (Criteria) this; + } + + public Criteria andMd5IsNull() { + addCriterion("md5 is null"); + return (Criteria) this; + } + + public Criteria andMd5IsNotNull() { + addCriterion("md5 is not null"); + return (Criteria) this; + } + + public Criteria andMd5EqualTo(String value) { + addCriterion("md5 =", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5NotEqualTo(String value) { + addCriterion("md5 <>", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5GreaterThan(String value) { + addCriterion("md5 >", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5GreaterThanOrEqualTo(String value) { + addCriterion("md5 >=", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5LessThan(String value) { + addCriterion("md5 <", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5LessThanOrEqualTo(String value) { + addCriterion("md5 <=", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5Like(String value) { + addCriterion("md5 like", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5NotLike(String value) { + addCriterion("md5 not like", value, "md5"); + return (Criteria) this; + } + + public Criteria andMd5In(List values) { + addCriterion("md5 in", values, "md5"); + return (Criteria) this; + } + + public Criteria andMd5NotIn(List values) { + addCriterion("md5 not in", values, "md5"); + return (Criteria) this; + } + + public Criteria andMd5Between(String value1, String value2) { + addCriterion("md5 between", value1, value2, "md5"); + return (Criteria) this; + } + + public Criteria andMd5NotBetween(String value1, String value2) { + addCriterion("md5 not between", value1, value2, "md5"); + return (Criteria) this; + } + + public Criteria andSha1IsNull() { + addCriterion("sha1 is null"); + return (Criteria) this; + } + + public Criteria andSha1IsNotNull() { + addCriterion("sha1 is not null"); + return (Criteria) this; + } + + public Criteria andSha1EqualTo(String value) { + addCriterion("sha1 =", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1NotEqualTo(String value) { + addCriterion("sha1 <>", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1GreaterThan(String value) { + addCriterion("sha1 >", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1GreaterThanOrEqualTo(String value) { + addCriterion("sha1 >=", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1LessThan(String value) { + addCriterion("sha1 <", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1LessThanOrEqualTo(String value) { + addCriterion("sha1 <=", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1Like(String value) { + addCriterion("sha1 like", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1NotLike(String value) { + addCriterion("sha1 not like", value, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1In(List values) { + addCriterion("sha1 in", values, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1NotIn(List values) { + addCriterion("sha1 not in", values, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1Between(String value1, String value2) { + addCriterion("sha1 between", value1, value2, "sha1"); + return (Criteria) this; + } + + public Criteria andSha1NotBetween(String value1, String value2) { + addCriterion("sha1 not between", value1, value2, "sha1"); + return (Criteria) this; + } + + public Criteria andTimeIsNull() { + addCriterion("time is null"); + return (Criteria) this; + } + + public Criteria andTimeIsNotNull() { + addCriterion("time is not null"); + return (Criteria) this; + } + + public Criteria andTimeEqualTo(Long value) { + addCriterion("time =", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotEqualTo(Long value) { + addCriterion("time <>", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThan(Long value) { + addCriterion("time >", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeGreaterThanOrEqualTo(Long value) { + addCriterion("time >=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThan(Long value) { + addCriterion("time <", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeLessThanOrEqualTo(Long value) { + addCriterion("time <=", value, "time"); + return (Criteria) this; + } + + public Criteria andTimeIn(List values) { + addCriterion("time in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotIn(List values) { + addCriterion("time not in", values, "time"); + return (Criteria) this; + } + + public Criteria andTimeBetween(Long value1, Long value2) { + addCriterion("time between", value1, value2, "time"); + return (Criteria) this; + } + + public Criteria andTimeNotBetween(Long value1, Long value2) { + addCriterion("time not between", value1, value2, "time"); + return (Criteria) this; + } + + public Criteria andCountIsNull() { + addCriterion("count is null"); + return (Criteria) this; + } + + public Criteria andCountIsNotNull() { + addCriterion("count is not null"); + return (Criteria) this; + } + + public Criteria andCountEqualTo(Integer value) { + addCriterion("count =", value, "count"); + return (Criteria) this; + } + + public Criteria andCountNotEqualTo(Integer value) { + addCriterion("count <>", value, "count"); + return (Criteria) this; + } + + public Criteria andCountGreaterThan(Integer value) { + addCriterion("count >", value, "count"); + return (Criteria) this; + } + + public Criteria andCountGreaterThanOrEqualTo(Integer value) { + addCriterion("count >=", value, "count"); + return (Criteria) this; + } + + public Criteria andCountLessThan(Integer value) { + addCriterion("count <", value, "count"); + return (Criteria) this; + } + + public Criteria andCountLessThanOrEqualTo(Integer value) { + addCriterion("count <=", value, "count"); + return (Criteria) this; + } + + public Criteria andCountIn(List values) { + addCriterion("count in", values, "count"); + return (Criteria) this; + } + + public Criteria andCountNotIn(List values) { + addCriterion("count not in", values, "count"); + return (Criteria) this; + } + + public Criteria andCountBetween(Integer value1, Integer value2) { + addCriterion("count between", value1, value2, "count"); + return (Criteria) this; + } + + public Criteria andCountNotBetween(Integer value1, Integer value2) { + addCriterion("count not between", value1, value2, "count"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("status is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("status is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Byte value) { + addCriterion("status =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Byte value) { + addCriterion("status <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Byte value) { + addCriterion("status >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("status >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Byte value) { + addCriterion("status <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Byte value) { + addCriterion("status <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("status not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Byte value1, Byte value2) { + addCriterion("status between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Byte value1, Byte value2) { + addCriterion("status not between", value1, value2, "status"); + 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 values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List 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 values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List 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 values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List 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 values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/vo/CaseVo.java b/src/main/java/com/ccsens/carbasics/bean/vo/CaseVo.java new file mode 100644 index 0000000..3ec1a42 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/vo/CaseVo.java @@ -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 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; + } + +} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/CaseDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/CaseDao.java new file mode 100644 index 0000000..f4d13b8 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/dao/CaseDao.java @@ -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 queryDepartment(@Param("type") Byte type); + + /** + * 查看医院列表 + * @param area + * @param name + * @return + */ + List queryHospitalList(@Param("area")String area, @Param("name")String name); + + /** + * 获取医生信息 + * @param userId + * @return + */ + CaseVo.CaseDoctor getDoctor(@Param("userId")Long userId); + + /** + * 查找病例信息列表 + * @param userId + * @return + */ + List queryCaseList(@Param("userId")Long userId, @Param("hospitalNumber")String hospitalNumber, @Param("submitStatus")Byte submitStatus); + + /** + * 批量添加 + * @param caseImgList + */ + void batchInsertCaseImg(@Param("caseImgList")List caseImgList); + + /** + * 查找病例上传的文件信息 + * @param caseId + * @param type + * @return + */ + List getCaseImg(@Param("caseId")Long caseId, @Param("type")Byte type); +} diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/BlCaseImgMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/BlCaseImgMapper.java new file mode 100644 index 0000000..670fc0b --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/BlCaseImgMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/BlCaseMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/BlCaseMapper.java new file mode 100644 index 0000000..60cff77 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/BlCaseMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/BlDepartmentMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/BlDepartmentMapper.java new file mode 100644 index 0000000..e4e92ba --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/BlDepartmentMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/BlDoctorMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/BlDoctorMapper.java new file mode 100644 index 0000000..b370ac9 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/BlDoctorMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/FileCommitMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FileCommitMapper.java new file mode 100644 index 0000000..b0f3b2a --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/FileCommitMapper.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/service/CaseService.java b/src/main/java/com/ccsens/carbasics/service/CaseService.java new file mode 100644 index 0000000..f9849d6 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/CaseService.java @@ -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 queryHospitalList(QuestionnaireDto.QueryHospitalList param) { + return caseDao.queryHospitalList(param.getArea(),param.getName()); + } + + @Override + public List 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 queryCaseList(Long userId,CaseDto.QueryCaseByDoctor param) { + PageHelper.startPage(param.getPageNum(),param.getPageSize()); + List 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 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 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); + } +} diff --git a/src/main/java/com/ccsens/carbasics/service/ICaseService.java b/src/main/java/com/ccsens/carbasics/service/ICaseService.java new file mode 100644 index 0000000..da6a8a6 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/ICaseService.java @@ -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 queryHospitalList(QuestionnaireDto.QueryHospitalList param); + + /** + * 查找部门和职位信息 + * @param type + * @return + */ + List 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 queryCaseList(Long userId,CaseDto.QueryCaseByDoctor param); + + /** + * 医生新加一个病例信息 + * @param userId + * @param param + * @return + */ + CaseVo.CasePatient saveCase(Long userId, CaseDto.SaveCase param); + + /** + * 查看病例上传的图片信息 + * @param param + * @return + */ + List 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); +} diff --git a/src/main/java/com/ccsens/carbasics/util/Constant.java b/src/main/java/com/ccsens/carbasics/util/Constant.java index 395c946..d467bc7 100644 --- a/src/main/java/com/ccsens/carbasics/util/Constant.java +++ b/src/main/java/com/ccsens/carbasics/util/Constant.java @@ -15,6 +15,12 @@ import java.util.Map; */ public class Constant { + /**图片类型*/ + public static final String FILE_TYPE_IMG = "bmp,jpg,jpeg,png,tif,gif,pcx,tga,exif,fpx,svg,psd,cdr,pcd,dxf,ufo,eps,ai,raw,WMF,webp"; + /**文档类型*/ + public static final String FILE_TYPE_DOCUMENT = "doc, dot, wps, wpt, docx, dotx, docm, dotm, xls, xlt, et, xlsx, xltx, csv, xlsm, xltm, ppt,pptx,pptm,ppsx,ppsm,pps,potx,potm,dpt,dps, pdf"; + + /**验证手机正则*/ public static final String PHONE_REGEX = "^[1]([3-9])[0-9]{9}$"; /**字符串分隔符*/ diff --git a/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java b/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java index d2758b9..88946cb 100644 --- a/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java +++ b/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java @@ -60,7 +60,9 @@ public class DefaultCodeError extends CodeError { public static final Code POSITION_HAVE_MEMBER = new Code(513,"请删除职位下的成员", true); public static final Code DEPARTMENT_NAME_REPEAT = new Code(514,"同级之下部门名称不可重复", true); public static final Code POSITION_NAME_REPEAT = new Code(514,"同级之下职位名称不可重复", true); - + public static final Code NOT_DOCTOR = new Code(515,"未找到医生信息", true); + public static final Code NOT_DOCTOR_CASE = new Code(516,"未找到病例信息", true); + public static final Code NOT_FILE = new Code(525,"找不到文件", true); diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index bac781d..446d4bd 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -44,8 +44,8 @@ eureka: file: path: /home/cloud/carbasics/uploads/ - domain: https://test.tall.wiki/gateway/carbasics/v4.0 - imgDomain: https://test.tall.wiki/gateway/carbasics/v4.0/uploads/ + domain: https://sd.tall.wiki/gateway/carbasics/v4.0 + imgDomain: https://sd.tall.wiki/gateway/carbasics/v4.0/uploads/ wisdom: weight: 10000 time: 600000 diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index c3b11fb..5abf242 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,4 +1,4 @@ spring: profiles: - active: test - include: common, util-test + active: prod + include: common, util-prod diff --git a/src/main/resources/mapper_dao/CaseDao.xml b/src/main/resources/mapper_dao/CaseDao.xml new file mode 100644 index 0000000..57e7e4a --- /dev/null +++ b/src/main/resources/mapper_dao/CaseDao.xml @@ -0,0 +1,116 @@ + + + + + INSERT INTO t_bl_case_img + ( + `id`, + `type`, + `case_id`, + `code`, + `file_id`, + `file_name`, + `file_path` + ) + VALUES + + (#{item.id},#{item.type},#{item.caseId},#{item.code},#{item.fileId},#{item.fileName},#{item.filePath}) + + + + + + + + + + + + + + + + + + + diff --git a/src/main/resources/mapper_raw/BlCaseImgMapper.xml b/src/main/resources/mapper_raw/BlCaseImgMapper.xml new file mode 100644 index 0000000..bf5f399 --- /dev/null +++ b/src/main/resources/mapper_raw/BlCaseImgMapper.xml @@ -0,0 +1,306 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, type, case_id, code, file_id, file_name, file_path, operator, created_at, updated_at, + rec_status + + + + + delete from t_bl_case_img + where id = #{id,jdbcType=BIGINT} + + + delete from t_bl_case_img + + + + + + 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 into t_bl_case_img + + + id, + + + type, + + + case_id, + + + code, + + + file_id, + + + file_name, + + + file_path, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_bl_case_img + + + 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}, + + + + + + + + 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} + + + + + + update t_bl_case_img + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/BlCaseMapper.xml b/src/main/resources/mapper_raw/BlCaseMapper.xml new file mode 100644 index 0000000..e08808a --- /dev/null +++ b/src/main/resources/mapper_raw/BlCaseMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, doctor_id, hospital_number, name, gender, idcard, submit_status, submit_time, + operator, created_at, updated_at, rec_status + + + + + delete from t_bl_case + where id = #{id,jdbcType=BIGINT} + + + delete from t_bl_case + + + + + + 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 into t_bl_case + + + id, + + + doctor_id, + + + hospital_number, + + + name, + + + gender, + + + idcard, + + + submit_status, + + + submit_time, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_bl_case + + + 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}, + + + + + + + + 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} + + + + + + update t_bl_case + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/BlDepartmentMapper.xml b/src/main/resources/mapper_raw/BlDepartmentMapper.xml new file mode 100644 index 0000000..2251b76 --- /dev/null +++ b/src/main/resources/mapper_raw/BlDepartmentMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, type, name, operator, created_at, updated_at, rec_status + + + + + delete from t_bl_department + where id = #{id,jdbcType=BIGINT} + + + delete from t_bl_department + + + + + + 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 into t_bl_department + + + id, + + + type, + + + name, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{type,jdbcType=TINYINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_bl_department + + + 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}, + + + + + + + + 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} + + + + + + update t_bl_department + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/BlDoctorMapper.xml b/src/main/resources/mapper_raw/BlDoctorMapper.xml new file mode 100644 index 0000000..295d5af --- /dev/null +++ b/src/main/resources/mapper_raw/BlDoctorMapper.xml @@ -0,0 +1,353 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, user_id, area, hospital, hospital_dj, hospital_jb, departments, position, name, + phone, operator, created_at, updated_at, rec_status + + + + + delete from t_bl_doctor + where id = #{id,jdbcType=BIGINT} + + + delete from t_bl_doctor + + + + + + 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 into t_bl_doctor + + + id, + + + user_id, + + + area, + + + hospital, + + + hospital_dj, + + + hospital_jb, + + + departments, + + + position, + + + name, + + + phone, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_bl_doctor + + + 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}, + + + + + + + + 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} + + + + + + update t_bl_doctor + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/FileCommitMapper.xml b/src/main/resources/mapper_raw/FileCommitMapper.xml new file mode 100644 index 0000000..447d974 --- /dev/null +++ b/src/main/resources/mapper_raw/FileCommitMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, path, visit_path, md5, sha1, time, count, status, operator, created_at, + updated_at, rec_status + + + + + delete from t_file_commit + where id = #{id,jdbcType=BIGINT} + + + delete from t_file_commit + + + + + + 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 into t_file_commit + + + id, + + + name, + + + path, + + + visit_path, + + + md5, + + + sha1, + + + time, + + + count, + + + status, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{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}, + + + + + + update t_file_commit + + + 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}, + + + + + + + + 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} + + + + + + update t_file_commit + + + 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 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} + + \ No newline at end of file diff --git a/src/main/resources/mbg.xml b/src/main/resources/mbg.xml index 41be163..ab6e485 100644 --- a/src/main/resources/mbg.xml +++ b/src/main/resources/mbg.xml @@ -89,7 +89,12 @@ -
+ +
+
+
+
+