From 0c45fb9209ae4f8245167229f1017fa29f57c89a Mon Sep 17 00:00:00 2001 From: zy_Java <654600784@qq.com> Date: Thu, 3 Jun 2021 15:29:08 +0800 Subject: [PATCH] 20210603v1.1 --- .../recovery/api/HospitalController.java | 2 +- .../recovery/api/PatientController.java | 36 +- .../ccsens/recovery/bean/dto/HospitalDto.java | 4 +- .../ccsens/recovery/bean/dto/PatientDto.java | 30 +- .../message/RecoveryWithActionFeedBack.java | 30 + .../bean/message/RecoveryWithStartDrill.java | 32 + .../com/ccsens/recovery/bean/po/Hospital.java | 12 +- .../recovery/bean/po/HospitalExample.java | 48 +- .../com/ccsens/recovery/bean/po/Patient.java | 12 +- .../recovery/bean/po/PatientExample.java | 48 +- .../ccsens/recovery/bean/po/PatientRobot.java | 117 +++ .../recovery/bean/po/PatientRobotExample.java | 741 +++++++++++++++ .../bean/po/RecipeProjectDecompose.java | 95 ++ .../po/RecipeProjectDecomposeExample.java | 621 ++++++++++++ .../po/{RecRecord.java => RecipeRecord.java} | 37 +- ...dExample.java => RecipeRecordExample.java} | 160 +++- .../recovery/bean/po/RecoveryCentre.java | 117 +++ .../bean/po/RecoveryCentreExample.java | 761 +++++++++++++++ .../recovery/bean/po/RecoveryDoctor.java | 139 +++ .../bean/po/RecoveryDoctorExample.java | 881 ++++++++++++++++++ ...{HospitalRobot.java => RecoveryRobot.java} | 14 +- ...Example.java => RecoveryRobotExample.java} | 52 +- .../com/ccsens/recovery/bean/po/Relation.java | 11 - .../recovery/bean/po/RelationExample.java | 60 -- .../ccsens/recovery/bean/vo/PatientVo.java | 46 +- .../com/ccsens/recovery/bean/vo/RecipeVo.java | 4 +- .../recovery/persist/dao/PatientDao.java | 12 +- .../recovery/persist/dao/RecDrillDao.java | 23 + .../persist/mapper/HospitalRobotMapper.java | 30 - .../persist/mapper/PatientRobotMapper.java | 30 + .../persist/mapper/RecRecordMapper.java | 30 - .../mapper/RecipeProjectDecomposeMapper.java | 30 + .../persist/mapper/RecipeRecordMapper.java | 30 + .../persist/mapper/RecoveryCentreMapper.java | 30 + .../persist/mapper/RecoveryDoctorMapper.java | 30 + .../persist/mapper/RecoveryRobotMapper.java | 30 + .../recovery/service/HospitalService.java | 2 +- .../recovery/service/IHospitalService.java | 2 +- .../recovery/service/IPatientService.java | 21 +- .../recovery/service/PatientService.java | 181 +++- .../com/ccsens/recovery/util/Constant.java | 4 + .../main/resources/mapper_dao/PatientDao.xml | 77 +- .../main/resources/mapper_dao/RecDrillDao.xml | 17 + .../resources/mapper_raw/HospitalMapper.xml | 28 +- .../resources/mapper_raw/PatientMapper.xml | 28 +- .../mapper_raw/PatientRobotMapper.xml | 276 ++++++ .../RecipeProjectDecomposeMapper.xml | 243 +++++ ...ecordMapper.xml => RecipeRecordMapper.xml} | 127 +-- .../mapper_raw/RecoveryCentreMapper.xml | 275 ++++++ .../mapper_raw/RecoveryDoctorMapper.xml | 306 ++++++ ...obotMapper.xml => RecoveryRobotMapper.xml} | 68 +- .../resources/mapper_raw/RelationMapper.xml | 27 +- 52 files changed, 5570 insertions(+), 497 deletions(-) create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithActionFeedBack.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithStartDrill.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobot.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobotExample.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecompose.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecomposeExample.java rename recovery/src/main/java/com/ccsens/recovery/bean/po/{RecRecord.java => RecipeRecord.java} (77%) rename recovery/src/main/java/com/ccsens/recovery/bean/po/{RecRecordExample.java => RecipeRecordExample.java} (83%) create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentre.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentreExample.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctor.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctorExample.java rename recovery/src/main/java/com/ccsens/recovery/bean/po/{HospitalRobot.java => RecoveryRobot.java} (83%) rename recovery/src/main/java/com/ccsens/recovery/bean/po/{HospitalRobotExample.java => RecoveryRobotExample.java} (89%) create mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/dao/RecDrillDao.java delete mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/HospitalRobotMapper.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientRobotMapper.java delete mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecRecordMapper.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeProjectDecomposeMapper.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeRecordMapper.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryCentreMapper.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryDoctorMapper.java create mode 100644 recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryRobotMapper.java create mode 100644 recovery/src/main/resources/mapper_dao/RecDrillDao.xml create mode 100644 recovery/src/main/resources/mapper_raw/PatientRobotMapper.xml create mode 100644 recovery/src/main/resources/mapper_raw/RecipeProjectDecomposeMapper.xml rename recovery/src/main/resources/mapper_raw/{RecRecordMapper.xml => RecipeRecordMapper.xml} (75%) create mode 100644 recovery/src/main/resources/mapper_raw/RecoveryCentreMapper.xml create mode 100644 recovery/src/main/resources/mapper_raw/RecoveryDoctorMapper.xml rename recovery/src/main/resources/mapper_raw/{HospitalRobotMapper.xml => RecoveryRobotMapper.xml} (82%) diff --git a/recovery/src/main/java/com/ccsens/recovery/api/HospitalController.java b/recovery/src/main/java/com/ccsens/recovery/api/HospitalController.java index 35c4ef31..97acfbfa 100644 --- a/recovery/src/main/java/com/ccsens/recovery/api/HospitalController.java +++ b/recovery/src/main/java/com/ccsens/recovery/api/HospitalController.java @@ -34,7 +34,7 @@ public class HospitalController { @MustLogin @ApiOperation(value = "查看康复中心所有的智能机器人(竖屏)", notes = "zy:") @RequestMapping(value = "/doctorId", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryRobotByHospital(@ApiParam @Validated @RequestBody QueryDto params) { + public JsonResponse> queryRobotByHospital(@ApiParam @Validated @RequestBody QueryDto params) { log.info("查看康复中心所有的智能机器人:{}",params); List robotInfos = hospitalService.queryRobotByHospital(params.getParam(),params.getUserId()); log.info("查看康复中心所有的智能机器人成功:{}",robotInfos); diff --git a/recovery/src/main/java/com/ccsens/recovery/api/PatientController.java b/recovery/src/main/java/com/ccsens/recovery/api/PatientController.java index daadbb79..26d34248 100644 --- a/recovery/src/main/java/com/ccsens/recovery/api/PatientController.java +++ b/recovery/src/main/java/com/ccsens/recovery/api/PatientController.java @@ -44,7 +44,7 @@ public class PatientController { @MustLogin @ApiOperation(value = "康复中心查看患者列表", notes = "zy:") @RequestMapping(value = "/recovery", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryPatientByRecovery(@ApiParam @Validated @RequestBody QueryDto params) { + public JsonResponse> queryPatientByRecovery(@ApiParam @Validated @RequestBody QueryDto params) { log.info("康复中心查看患者列表:{}",params); List patientList = patientService.queryPatientByRecovery(params.getParam(),params.getUserId()); log.info("康复中心查看患者列表成功:{}",patientList); @@ -61,6 +61,16 @@ public class PatientController { return JsonResponse.newInstance().ok(patient); } + @MustLogin + @ApiOperation(value = "点全屏训练查看患者信息", notes = "zy:") + @RequestMapping(value = "/fullScreen", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse fullScreen(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("点全屏训练查看患者信息:{}",params); + PatientVo.PatientFullScreen patient = patientService.fullScreen(params.getParam(),params.getUserId()); + log.info("点全屏训练查看患者信息成功:{}",patient); + return JsonResponse.newInstance().ok(patient); + } + @MustLogin @ApiOperation(value = "添加患者", notes = "zy:") @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) @@ -84,7 +94,7 @@ public class PatientController { @MustLogin @ApiOperation(value = "开启训练", notes = "zy:") @RequestMapping(value = "/start", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse startDrill(@ApiParam @Validated @RequestBody QueryDto params) { + public JsonResponse startDrill(@ApiParam @Validated @RequestBody QueryDto params) throws Exception { log.info("开启训练:{}",params); PatientVo.RecipeRecordId recipeRecordId = patientService.startDrill(params.getParam(),params.getUserId()); log.info("开启训练成功:{}",recipeRecordId); @@ -100,21 +110,21 @@ public class PatientController { log.info("结束训练成功"); return JsonResponse.newInstance().ok(); } -// -// @MustLogin -// @ApiOperation(value = "结束康复流程", notes = "zy:") -// @RequestMapping(value = "/finish", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse finishRecovery(@ApiParam @Validated @RequestBody QueryDto params) { -// log.info("结束训练:{}",params); -// patientService.endDrill(params.getParam(),params.getUserId()); -// log.info("结束训练成功"); -// return JsonResponse.newInstance().ok(); -// } + + @MustLogin + @ApiOperation(value = "结束康复流程", notes = "zy:") + @RequestMapping(value = "/complete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse completeRecovery(@ApiParam @Validated @RequestBody QueryDto params)throws Exception { + log.info("结束康复流程:{}",params); + patientService.completeRecovery(params.getParam(),params.getUserId()); + log.info("结束康复流程成功"); + return JsonResponse.newInstance().ok(); + } @MustLogin @ApiOperation(value = "动作反馈", notes = "zy:") @RequestMapping(value = "/feedback", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse actionFeedback(@ApiParam @Validated @RequestBody QueryDto params) { + public JsonResponse actionFeedback(@ApiParam @Validated @RequestBody QueryDto params) throws Exception { log.info("动作反馈:{}",params); patientService.actionFeedback(params.getParam(),params.getUserId()); log.info("动作反馈成功"); diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/dto/HospitalDto.java b/recovery/src/main/java/com/ccsens/recovery/bean/dto/HospitalDto.java index 0342e142..10ce0845 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/dto/HospitalDto.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/dto/HospitalDto.java @@ -23,8 +23,8 @@ public class HospitalDto { @Data @ApiModel("康复中心id") - public static class HospitalId{ - @NotNull(message = "康复中心id不能为空") + public static class RecoveryCentreId{ +// @NotNull(message = "康复中心id不能为空") @ApiModelProperty("康复中心id") private Long id; } diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/dto/PatientDto.java b/recovery/src/main/java/com/ccsens/recovery/bean/dto/PatientDto.java index 59bf33dd..30ea78e8 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/dto/PatientDto.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/dto/PatientDto.java @@ -22,6 +22,14 @@ public class PatientDto { private Long id; } + @Data + @ApiModel("任务详情id") + public static class TaskDetailId{ + @NotNull(message = "任务详情id") + @ApiModelProperty("任务详情id") + private Long detailId; + } + @Data @ApiModel("添加患者信息") public static class PatientDetail{ @@ -42,7 +50,7 @@ public class PatientDto { private String address; @NotNull(message = "请选择康复中心") @ApiModelProperty("康复中心id") - private Long hospitalId; + private Long recoveryCentreId; } @Data @@ -63,13 +71,11 @@ public class PatientDto { @ApiModelProperty("患者id") private Long patientId; @NotNull(message = "任务id不能为空") - @ApiModelProperty("任务id") - private Long taskId; + @ApiModelProperty("分解任务id") + private Long subTaskId; @NotNull(message = "处方项id不能为空") - @ApiModelProperty("处方项目id") + @ApiModelProperty("分解的处方项目id") private Long recipeProjectId; - @ApiModelProperty("智能机器人id") - private Long robotId; @ApiModelProperty("游戏id") private Long gameId; @ApiModelProperty("康复中心医生id") @@ -85,6 +91,8 @@ public class PatientDto { public static class EndDrill{ @ApiModelProperty("训练记录id") private Long id; + @ApiModelProperty("训练的分数") + private int score; } @Data @@ -95,5 +103,15 @@ public class PatientDto { @ApiModelProperty("动作的结果") private boolean result; } + @Data + @ApiModel("结束流程") + public static class EndRecovery{ + @NotNull(message = "患者id不能为空") + @ApiModelProperty("患者id") + private Long patientId; + @NotNull(message = "处方项id不能为空") + @ApiModelProperty("分解的处方项目id") + private Long recipeProjectId; + } } diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithActionFeedBack.java b/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithActionFeedBack.java new file mode 100644 index 00000000..9468165f --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithActionFeedBack.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.bean.message; + +import com.ccsens.recovery.util.Constant; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * @author 逗 + */ +@EqualsAndHashCode(callSuper = true) +@Data +public class RecoveryWithActionFeedBack extends BaseMessageDto{ + + @lombok.Data + public static class Data{ + //本次训练记录id + private Long recordId; + //动作是否正确 + private boolean result; + } + + private RecoveryWithActionFeedBack.Data data; + + public RecoveryWithActionFeedBack(){ + setType(Constant.Message.FEEDBACK); + setEvent(Constant.Message.FEEDBACK); + setTime(System.currentTimeMillis()); + } + +} diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithStartDrill.java b/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithStartDrill.java new file mode 100644 index 00000000..efa4b26c --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithStartDrill.java @@ -0,0 +1,32 @@ +package com.ccsens.recovery.bean.message; + +import com.ccsens.recovery.util.Constant; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * @author 逗 + */ +@EqualsAndHashCode(callSuper = true) +@Data +public class RecoveryWithStartDrill extends BaseMessageDto{ + + @lombok.Data + public static class Data{ + //病人id + private Long patientId; + //本次训练记录id + private Long recordId; + //游戏id + private Long gameId; + } + + private RecoveryWithStartDrill.Data data; + + public RecoveryWithStartDrill(){ + setType(Constant.Message.START_DRILL); + setEvent(Constant.Message.START_DRILL); + setTime(System.currentTimeMillis()); + } + +} diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/Hospital.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Hospital.java index 47c702f2..10c040f5 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/Hospital.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Hospital.java @@ -10,7 +10,7 @@ public class Hospital implements Serializable { private String name; - private Byte type; + private Long projectId; private Long operator; @@ -46,12 +46,12 @@ public class Hospital implements Serializable { this.name = name == null ? null : name.trim(); } - public Byte getType() { - return type; + public Long getProjectId() { + return projectId; } - public void setType(Byte type) { - this.type = type; + public void setProjectId(Long projectId) { + this.projectId = projectId; } public Long getOperator() { @@ -95,7 +95,7 @@ public class Hospital implements Serializable { sb.append(", id=").append(id); sb.append(", code=").append(code); sb.append(", name=").append(name); - sb.append(", type=").append(type); + sb.append(", projectId=").append(projectId); sb.append(", operator=").append(operator); sb.append(", createdAt=").append(createdAt); sb.append(", updatedAt=").append(updatedAt); diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalExample.java index b9ff9fcb..6bf35c23 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalExample.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalExample.java @@ -305,63 +305,63 @@ public class HospitalExample { return (Criteria) this; } - public Criteria andTypeIsNull() { - addCriterion("type is null"); + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); return (Criteria) this; } - public Criteria andTypeIsNotNull() { - addCriterion("type is not null"); + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); return (Criteria) this; } - public Criteria andTypeEqualTo(Byte value) { - addCriterion("type =", value, "type"); + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); return (Criteria) this; } - public Criteria andTypeNotEqualTo(Byte value) { - addCriterion("type <>", value, "type"); + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); return (Criteria) this; } - public Criteria andTypeGreaterThan(Byte value) { - addCriterion("type >", value, "type"); + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); return (Criteria) this; } - public Criteria andTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("type >=", value, "type"); + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); return (Criteria) this; } - public Criteria andTypeLessThan(Byte value) { - addCriterion("type <", value, "type"); + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); return (Criteria) this; } - public Criteria andTypeLessThanOrEqualTo(Byte value) { - addCriterion("type <=", value, "type"); + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); return (Criteria) this; } - public Criteria andTypeIn(List values) { - addCriterion("type in", values, "type"); + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); return (Criteria) this; } - public Criteria andTypeNotIn(List values) { - addCriterion("type not in", values, "type"); + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); return (Criteria) this; } - public Criteria andTypeBetween(Byte value1, Byte value2) { - addCriterion("type between", value1, value2, "type"); + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); return (Criteria) this; } - public Criteria andTypeNotBetween(Byte value1, Byte value2) { - addCriterion("type not between", value1, value2, "type"); + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); return (Criteria) this; } diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/Patient.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Patient.java index dca07123..cfaa3b4b 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/Patient.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Patient.java @@ -24,7 +24,7 @@ public class Patient implements Serializable { private String remark; - private Long hospitalId; + private Long centreId; private Long doctorId; @@ -120,12 +120,12 @@ public class Patient implements Serializable { this.remark = remark == null ? null : remark.trim(); } - public Long getHospitalId() { - return hospitalId; + public Long getCentreId() { + return centreId; } - public void setHospitalId(Long hospitalId) { - this.hospitalId = hospitalId; + public void setCentreId(Long centreId) { + this.centreId = centreId; } public Long getDoctorId() { @@ -192,7 +192,7 @@ public class Patient implements Serializable { sb.append(", address=").append(address); sb.append(", inputTime=").append(inputTime); sb.append(", remark=").append(remark); - sb.append(", hospitalId=").append(hospitalId); + sb.append(", centreId=").append(centreId); sb.append(", doctorId=").append(doctorId); sb.append(", projectId=").append(projectId); sb.append(", operator=").append(operator); diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientExample.java index 7de3c3c6..9589b760 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientExample.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientExample.java @@ -755,63 +755,63 @@ public class PatientExample { return (Criteria) this; } - public Criteria andHospitalIdIsNull() { - addCriterion("hospital_id is null"); + public Criteria andCentreIdIsNull() { + addCriterion("centre_id is null"); return (Criteria) this; } - public Criteria andHospitalIdIsNotNull() { - addCriterion("hospital_id is not null"); + public Criteria andCentreIdIsNotNull() { + addCriterion("centre_id is not null"); return (Criteria) this; } - public Criteria andHospitalIdEqualTo(Long value) { - addCriterion("hospital_id =", value, "hospitalId"); + public Criteria andCentreIdEqualTo(Long value) { + addCriterion("centre_id =", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdNotEqualTo(Long value) { - addCriterion("hospital_id <>", value, "hospitalId"); + public Criteria andCentreIdNotEqualTo(Long value) { + addCriterion("centre_id <>", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdGreaterThan(Long value) { - addCriterion("hospital_id >", value, "hospitalId"); + public Criteria andCentreIdGreaterThan(Long value) { + addCriterion("centre_id >", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { - addCriterion("hospital_id >=", value, "hospitalId"); + public Criteria andCentreIdGreaterThanOrEqualTo(Long value) { + addCriterion("centre_id >=", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdLessThan(Long value) { - addCriterion("hospital_id <", value, "hospitalId"); + public Criteria andCentreIdLessThan(Long value) { + addCriterion("centre_id <", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdLessThanOrEqualTo(Long value) { - addCriterion("hospital_id <=", value, "hospitalId"); + public Criteria andCentreIdLessThanOrEqualTo(Long value) { + addCriterion("centre_id <=", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdIn(List values) { - addCriterion("hospital_id in", values, "hospitalId"); + public Criteria andCentreIdIn(List values) { + addCriterion("centre_id in", values, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdNotIn(List values) { - addCriterion("hospital_id not in", values, "hospitalId"); + public Criteria andCentreIdNotIn(List values) { + addCriterion("centre_id not in", values, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdBetween(Long value1, Long value2) { - addCriterion("hospital_id between", value1, value2, "hospitalId"); + public Criteria andCentreIdBetween(Long value1, Long value2) { + addCriterion("centre_id between", value1, value2, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdNotBetween(Long value1, Long value2) { - addCriterion("hospital_id not between", value1, value2, "hospitalId"); + public Criteria andCentreIdNotBetween(Long value1, Long value2) { + addCriterion("centre_id not between", value1, value2, "centreId"); return (Criteria) this; } diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobot.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobot.java new file mode 100644 index 00000000..d955d279 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobot.java @@ -0,0 +1,117 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class PatientRobot implements Serializable { + private Long id; + + private Long patientId; + + private Long robotId; + + private Long startTime; + + private Long endTime; + + private Long operator; + + private Date createTime; + + private Date updateTime; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getPatientId() { + return patientId; + } + + public void setPatientId(Long patientId) { + this.patientId = patientId; + } + + public Long getRobotId() { + return robotId; + } + + public void setRobotId(Long robotId) { + this.robotId = robotId; + } + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Byte 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(", patientId=").append(patientId); + sb.append(", robotId=").append(robotId); + sb.append(", startTime=").append(startTime); + sb.append(", endTime=").append(endTime); + sb.append(", operator=").append(operator); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobotExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobotExample.java new file mode 100644 index 00000000..2058a054 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRobotExample.java @@ -0,0 +1,741 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class PatientRobotExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PatientRobotExample() { + 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 andPatientIdIsNull() { + addCriterion("patient_id is null"); + return (Criteria) this; + } + + public Criteria andPatientIdIsNotNull() { + addCriterion("patient_id is not null"); + return (Criteria) this; + } + + public Criteria andPatientIdEqualTo(Long value) { + addCriterion("patient_id =", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdNotEqualTo(Long value) { + addCriterion("patient_id <>", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdGreaterThan(Long value) { + addCriterion("patient_id >", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdGreaterThanOrEqualTo(Long value) { + addCriterion("patient_id >=", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdLessThan(Long value) { + addCriterion("patient_id <", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdLessThanOrEqualTo(Long value) { + addCriterion("patient_id <=", value, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdIn(List values) { + addCriterion("patient_id in", values, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdNotIn(List values) { + addCriterion("patient_id not in", values, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdBetween(Long value1, Long value2) { + addCriterion("patient_id between", value1, value2, "patientId"); + return (Criteria) this; + } + + public Criteria andPatientIdNotBetween(Long value1, Long value2) { + addCriterion("patient_id not between", value1, value2, "patientId"); + return (Criteria) this; + } + + public Criteria andRobotIdIsNull() { + addCriterion("robot_id is null"); + return (Criteria) this; + } + + public Criteria andRobotIdIsNotNull() { + addCriterion("robot_id is not null"); + return (Criteria) this; + } + + public Criteria andRobotIdEqualTo(Long value) { + addCriterion("robot_id =", value, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdNotEqualTo(Long value) { + addCriterion("robot_id <>", value, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdGreaterThan(Long value) { + addCriterion("robot_id >", value, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdGreaterThanOrEqualTo(Long value) { + addCriterion("robot_id >=", value, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdLessThan(Long value) { + addCriterion("robot_id <", value, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdLessThanOrEqualTo(Long value) { + addCriterion("robot_id <=", value, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdIn(List values) { + addCriterion("robot_id in", values, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdNotIn(List values) { + addCriterion("robot_id not in", values, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdBetween(Long value1, Long value2) { + addCriterion("robot_id between", value1, value2, "robotId"); + return (Criteria) this; + } + + public Criteria andRobotIdNotBetween(Long value1, Long value2) { + addCriterion("robot_id not between", value1, value2, "robotId"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNull() { + addCriterion("start_time is null"); + return (Criteria) this; + } + + public Criteria andStartTimeIsNotNull() { + addCriterion("start_time is not null"); + return (Criteria) this; + } + + public Criteria andStartTimeEqualTo(Long value) { + addCriterion("start_time =", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotEqualTo(Long value) { + addCriterion("start_time <>", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThan(Long value) { + addCriterion("start_time >", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { + addCriterion("start_time >=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThan(Long value) { + addCriterion("start_time <", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeLessThanOrEqualTo(Long value) { + addCriterion("start_time <=", value, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeIn(List values) { + addCriterion("start_time in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotIn(List values) { + addCriterion("start_time not in", values, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeBetween(Long value1, Long value2) { + addCriterion("start_time between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andStartTimeNotBetween(Long value1, Long value2) { + addCriterion("start_time not between", value1, value2, "startTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNull() { + addCriterion("end_time is null"); + return (Criteria) this; + } + + public Criteria andEndTimeIsNotNull() { + addCriterion("end_time is not null"); + return (Criteria) this; + } + + public Criteria andEndTimeEqualTo(Long value) { + addCriterion("end_time =", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotEqualTo(Long value) { + addCriterion("end_time <>", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThan(Long value) { + addCriterion("end_time >", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { + addCriterion("end_time >=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThan(Long value) { + addCriterion("end_time <", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeLessThanOrEqualTo(Long value) { + addCriterion("end_time <=", value, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeIn(List values) { + addCriterion("end_time in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotIn(List values) { + addCriterion("end_time not in", values, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeBetween(Long value1, Long value2) { + addCriterion("end_time between", value1, value2, "endTime"); + return (Criteria) this; + } + + public Criteria andEndTimeNotBetween(Long value1, Long value2) { + addCriterion("end_time not between", value1, value2, "endTime"); + 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 andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria 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/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecompose.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecompose.java new file mode 100644 index 00000000..82d64c27 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecompose.java @@ -0,0 +1,95 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecipeProjectDecompose implements Serializable { + private Long id; + + private Long recipeProjectId; + + private Long taskId; + + private Long operator; + + private Date createTime; + + private Date updateTime; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getRecipeProjectId() { + return recipeProjectId; + } + + public void setRecipeProjectId(Long recipeProjectId) { + this.recipeProjectId = recipeProjectId; + } + + public Long getTaskId() { + return taskId; + } + + public void setTaskId(Long taskId) { + this.taskId = taskId; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Byte 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(", recipeProjectId=").append(recipeProjectId); + sb.append(", taskId=").append(taskId); + sb.append(", operator=").append(operator); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecomposeExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecomposeExample.java new file mode 100644 index 00000000..460d1071 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectDecomposeExample.java @@ -0,0 +1,621 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecipeProjectDecomposeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecipeProjectDecomposeExample() { + 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 andRecipeProjectIdIsNull() { + addCriterion("recipe_project_id is null"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdIsNotNull() { + addCriterion("recipe_project_id is not null"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdEqualTo(Long value) { + addCriterion("recipe_project_id =", value, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdNotEqualTo(Long value) { + addCriterion("recipe_project_id <>", value, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdGreaterThan(Long value) { + addCriterion("recipe_project_id >", value, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("recipe_project_id >=", value, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdLessThan(Long value) { + addCriterion("recipe_project_id <", value, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdLessThanOrEqualTo(Long value) { + addCriterion("recipe_project_id <=", value, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdIn(List values) { + addCriterion("recipe_project_id in", values, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdNotIn(List values) { + addCriterion("recipe_project_id not in", values, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdBetween(Long value1, Long value2) { + addCriterion("recipe_project_id between", value1, value2, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andRecipeProjectIdNotBetween(Long value1, Long value2) { + addCriterion("recipe_project_id not between", value1, value2, "recipeProjectId"); + return (Criteria) this; + } + + public Criteria andTaskIdIsNull() { + addCriterion("task_id is null"); + return (Criteria) this; + } + + public Criteria andTaskIdIsNotNull() { + addCriterion("task_id is not null"); + return (Criteria) this; + } + + public Criteria andTaskIdEqualTo(Long value) { + addCriterion("task_id =", value, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdNotEqualTo(Long value) { + addCriterion("task_id <>", value, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdGreaterThan(Long value) { + addCriterion("task_id >", value, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdGreaterThanOrEqualTo(Long value) { + addCriterion("task_id >=", value, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdLessThan(Long value) { + addCriterion("task_id <", value, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdLessThanOrEqualTo(Long value) { + addCriterion("task_id <=", value, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdIn(List values) { + addCriterion("task_id in", values, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdNotIn(List values) { + addCriterion("task_id not in", values, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdBetween(Long value1, Long value2) { + addCriterion("task_id between", value1, value2, "taskId"); + return (Criteria) this; + } + + public Criteria andTaskIdNotBetween(Long value1, Long value2) { + addCriterion("task_id not between", value1, value2, "taskId"); + 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 andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria 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/recovery/src/main/java/com/ccsens/recovery/bean/po/RecRecord.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecord.java similarity index 77% rename from recovery/src/main/java/com/ccsens/recovery/bean/po/RecRecord.java rename to recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecord.java index 8e3e6cb1..3e99662a 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/RecRecord.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecord.java @@ -3,12 +3,14 @@ package com.ccsens.recovery.bean.po; import java.io.Serializable; import java.util.Date; -public class RecRecord implements Serializable { +public class RecipeRecord implements Serializable { private Long id; - private Long recipeProjectId; + private Long patientId; - private Long sceneDoctorId; + private Long decomposeId; + + private Long recoveryDoctorId; private Long robotId; @@ -44,20 +46,28 @@ public class RecRecord implements Serializable { this.id = id; } - public Long getRecipeProjectId() { - return recipeProjectId; + public Long getPatientId() { + return patientId; + } + + public void setPatientId(Long patientId) { + this.patientId = patientId; + } + + public Long getDecomposeId() { + return decomposeId; } - public void setRecipeProjectId(Long recipeProjectId) { - this.recipeProjectId = recipeProjectId; + public void setDecomposeId(Long decomposeId) { + this.decomposeId = decomposeId; } - public Long getSceneDoctorId() { - return sceneDoctorId; + public Long getRecoveryDoctorId() { + return recoveryDoctorId; } - public void setSceneDoctorId(Long sceneDoctorId) { - this.sceneDoctorId = sceneDoctorId; + public void setRecoveryDoctorId(Long recoveryDoctorId) { + this.recoveryDoctorId = recoveryDoctorId; } public Long getRobotId() { @@ -163,8 +173,9 @@ public class RecRecord implements Serializable { sb.append(" ["); sb.append("Hash = ").append(hashCode()); sb.append(", id=").append(id); - sb.append(", recipeProjectId=").append(recipeProjectId); - sb.append(", sceneDoctorId=").append(sceneDoctorId); + sb.append(", patientId=").append(patientId); + sb.append(", decomposeId=").append(decomposeId); + sb.append(", recoveryDoctorId=").append(recoveryDoctorId); sb.append(", robotId=").append(robotId); sb.append(", startTime=").append(startTime); sb.append(", endTime=").append(endTime); diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/RecRecordExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecordExample.java similarity index 83% rename from recovery/src/main/java/com/ccsens/recovery/bean/po/RecRecordExample.java rename to recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecordExample.java index 199910dc..6b45aaec 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/RecRecordExample.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecordExample.java @@ -4,14 +4,14 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; -public class RecRecordExample { +public class RecipeRecordExample { protected String orderByClause; protected boolean distinct; protected List oredCriteria; - public RecRecordExample() { + public RecipeRecordExample() { oredCriteria = new ArrayList(); } @@ -165,123 +165,183 @@ public class RecRecordExample { return (Criteria) this; } - public Criteria andRecipeProjectIdIsNull() { - addCriterion("recipe_project_id is null"); + public Criteria andPatientIdIsNull() { + addCriterion("patient_id is null"); return (Criteria) this; } - public Criteria andRecipeProjectIdIsNotNull() { - addCriterion("recipe_project_id is not null"); + public Criteria andPatientIdIsNotNull() { + addCriterion("patient_id is not null"); return (Criteria) this; } - public Criteria andRecipeProjectIdEqualTo(Long value) { - addCriterion("recipe_project_id =", value, "recipeProjectId"); + public Criteria andPatientIdEqualTo(Long value) { + addCriterion("patient_id =", value, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdNotEqualTo(Long value) { - addCriterion("recipe_project_id <>", value, "recipeProjectId"); + public Criteria andPatientIdNotEqualTo(Long value) { + addCriterion("patient_id <>", value, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdGreaterThan(Long value) { - addCriterion("recipe_project_id >", value, "recipeProjectId"); + public Criteria andPatientIdGreaterThan(Long value) { + addCriterion("patient_id >", value, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdGreaterThanOrEqualTo(Long value) { - addCriterion("recipe_project_id >=", value, "recipeProjectId"); + public Criteria andPatientIdGreaterThanOrEqualTo(Long value) { + addCriterion("patient_id >=", value, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdLessThan(Long value) { - addCriterion("recipe_project_id <", value, "recipeProjectId"); + public Criteria andPatientIdLessThan(Long value) { + addCriterion("patient_id <", value, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdLessThanOrEqualTo(Long value) { - addCriterion("recipe_project_id <=", value, "recipeProjectId"); + public Criteria andPatientIdLessThanOrEqualTo(Long value) { + addCriterion("patient_id <=", value, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdIn(List values) { - addCriterion("recipe_project_id in", values, "recipeProjectId"); + public Criteria andPatientIdIn(List values) { + addCriterion("patient_id in", values, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdNotIn(List values) { - addCriterion("recipe_project_id not in", values, "recipeProjectId"); + public Criteria andPatientIdNotIn(List values) { + addCriterion("patient_id not in", values, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdBetween(Long value1, Long value2) { - addCriterion("recipe_project_id between", value1, value2, "recipeProjectId"); + public Criteria andPatientIdBetween(Long value1, Long value2) { + addCriterion("patient_id between", value1, value2, "patientId"); return (Criteria) this; } - public Criteria andRecipeProjectIdNotBetween(Long value1, Long value2) { - addCriterion("recipe_project_id not between", value1, value2, "recipeProjectId"); + public Criteria andPatientIdNotBetween(Long value1, Long value2) { + addCriterion("patient_id not between", value1, value2, "patientId"); return (Criteria) this; } - public Criteria andSceneDoctorIdIsNull() { - addCriterion("scene_doctor_id is null"); + public Criteria andDecomposeIdIsNull() { + addCriterion("decompose_id is null"); return (Criteria) this; } - public Criteria andSceneDoctorIdIsNotNull() { - addCriterion("scene_doctor_id is not null"); + public Criteria andDecomposeIdIsNotNull() { + addCriterion("decompose_id is not null"); return (Criteria) this; } - public Criteria andSceneDoctorIdEqualTo(Long value) { - addCriterion("scene_doctor_id =", value, "sceneDoctorId"); + public Criteria andDecomposeIdEqualTo(Long value) { + addCriterion("decompose_id =", value, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdNotEqualTo(Long value) { - addCriterion("scene_doctor_id <>", value, "sceneDoctorId"); + public Criteria andDecomposeIdNotEqualTo(Long value) { + addCriterion("decompose_id <>", value, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdGreaterThan(Long value) { - addCriterion("scene_doctor_id >", value, "sceneDoctorId"); + public Criteria andDecomposeIdGreaterThan(Long value) { + addCriterion("decompose_id >", value, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdGreaterThanOrEqualTo(Long value) { - addCriterion("scene_doctor_id >=", value, "sceneDoctorId"); + public Criteria andDecomposeIdGreaterThanOrEqualTo(Long value) { + addCriterion("decompose_id >=", value, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdLessThan(Long value) { - addCriterion("scene_doctor_id <", value, "sceneDoctorId"); + public Criteria andDecomposeIdLessThan(Long value) { + addCriterion("decompose_id <", value, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdLessThanOrEqualTo(Long value) { - addCriterion("scene_doctor_id <=", value, "sceneDoctorId"); + public Criteria andDecomposeIdLessThanOrEqualTo(Long value) { + addCriterion("decompose_id <=", value, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdIn(List values) { - addCriterion("scene_doctor_id in", values, "sceneDoctorId"); + public Criteria andDecomposeIdIn(List values) { + addCriterion("decompose_id in", values, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdNotIn(List values) { - addCriterion("scene_doctor_id not in", values, "sceneDoctorId"); + public Criteria andDecomposeIdNotIn(List values) { + addCriterion("decompose_id not in", values, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdBetween(Long value1, Long value2) { - addCriterion("scene_doctor_id between", value1, value2, "sceneDoctorId"); + public Criteria andDecomposeIdBetween(Long value1, Long value2) { + addCriterion("decompose_id between", value1, value2, "decomposeId"); return (Criteria) this; } - public Criteria andSceneDoctorIdNotBetween(Long value1, Long value2) { - addCriterion("scene_doctor_id not between", value1, value2, "sceneDoctorId"); + public Criteria andDecomposeIdNotBetween(Long value1, Long value2) { + addCriterion("decompose_id not between", value1, value2, "decomposeId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdIsNull() { + addCriterion("recovery_doctor_id is null"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdIsNotNull() { + addCriterion("recovery_doctor_id is not null"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdEqualTo(Long value) { + addCriterion("recovery_doctor_id =", value, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdNotEqualTo(Long value) { + addCriterion("recovery_doctor_id <>", value, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdGreaterThan(Long value) { + addCriterion("recovery_doctor_id >", value, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdGreaterThanOrEqualTo(Long value) { + addCriterion("recovery_doctor_id >=", value, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdLessThan(Long value) { + addCriterion("recovery_doctor_id <", value, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdLessThanOrEqualTo(Long value) { + addCriterion("recovery_doctor_id <=", value, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdIn(List values) { + addCriterion("recovery_doctor_id in", values, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdNotIn(List values) { + addCriterion("recovery_doctor_id not in", values, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdBetween(Long value1, Long value2) { + addCriterion("recovery_doctor_id between", value1, value2, "recoveryDoctorId"); + return (Criteria) this; + } + + public Criteria andRecoveryDoctorIdNotBetween(Long value1, Long value2) { + addCriterion("recovery_doctor_id not between", value1, value2, "recoveryDoctorId"); return (Criteria) this; } diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentre.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentre.java new file mode 100644 index 00000000..5fdab21d --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentre.java @@ -0,0 +1,117 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecoveryCentre implements Serializable { + private Long id; + + private String name; + + private String address; + + private Byte hospitalId; + + private Long projectId; + + 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 getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + public Byte getHospitalId() { + return hospitalId; + } + + public void setHospitalId(Byte hospitalId) { + this.hospitalId = hospitalId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + 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(", address=").append(address); + sb.append(", hospitalId=").append(hospitalId); + sb.append(", projectId=").append(projectId); + 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/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentreExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentreExample.java new file mode 100644 index 00000000..6d8c1a19 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryCentreExample.java @@ -0,0 +1,761 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecoveryCentreExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecoveryCentreExample() { + 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 andAddressIsNull() { + addCriterion("address is null"); + return (Criteria) this; + } + + public Criteria andAddressIsNotNull() { + addCriterion("address is not null"); + return (Criteria) this; + } + + public Criteria andAddressEqualTo(String value) { + addCriterion("address =", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotEqualTo(String value) { + addCriterion("address <>", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThan(String value) { + addCriterion("address >", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThanOrEqualTo(String value) { + addCriterion("address >=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThan(String value) { + addCriterion("address <", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThanOrEqualTo(String value) { + addCriterion("address <=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLike(String value) { + addCriterion("address like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotLike(String value) { + addCriterion("address not like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressIn(List values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List values) { + addCriterion("address not in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressBetween(String value1, String value2) { + addCriterion("address between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotBetween(String value1, String value2) { + addCriterion("address not between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andHospitalIdIsNull() { + addCriterion("hospital_id is null"); + return (Criteria) this; + } + + public Criteria andHospitalIdIsNotNull() { + addCriterion("hospital_id is not null"); + return (Criteria) this; + } + + public Criteria andHospitalIdEqualTo(Byte value) { + addCriterion("hospital_id =", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdNotEqualTo(Byte value) { + addCriterion("hospital_id <>", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdGreaterThan(Byte value) { + addCriterion("hospital_id >", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdGreaterThanOrEqualTo(Byte value) { + addCriterion("hospital_id >=", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdLessThan(Byte value) { + addCriterion("hospital_id <", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdLessThanOrEqualTo(Byte value) { + addCriterion("hospital_id <=", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdIn(List values) { + addCriterion("hospital_id in", values, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdNotIn(List values) { + addCriterion("hospital_id not in", values, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdBetween(Byte value1, Byte value2) { + addCriterion("hospital_id between", value1, value2, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdNotBetween(Byte value1, Byte value2) { + addCriterion("hospital_id not between", value1, value2, "hospitalId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + 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/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctor.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctor.java new file mode 100644 index 00000000..d1f2b50d --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctor.java @@ -0,0 +1,139 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecoveryDoctor implements Serializable { + private Long id; + + private Long userId; + + private Long centreId; + + private String name; + + private Byte sex; + + private Integer age; + + private String remark; + + private Long operator; + + private Date createTime; + + private Date updateTime; + + 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 Long getCentreId() { + return centreId; + } + + public void setCentreId(Long centreId) { + this.centreId = centreId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Byte getSex() { + return sex; + } + + public void setSex(Byte sex) { + this.sex = sex; + } + + public Integer getAge() { + return age; + } + + public void setAge(Integer age) { + this.age = age; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Byte 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(", centreId=").append(centreId); + sb.append(", name=").append(name); + sb.append(", sex=").append(sex); + sb.append(", age=").append(age); + sb.append(", remark=").append(remark); + sb.append(", operator=").append(operator); + sb.append(", createTime=").append(createTime); + sb.append(", updateTime=").append(updateTime); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctorExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctorExample.java new file mode 100644 index 00000000..62c55841 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryDoctorExample.java @@ -0,0 +1,881 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecoveryDoctorExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecoveryDoctorExample() { + 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 andCentreIdIsNull() { + addCriterion("centre_id is null"); + return (Criteria) this; + } + + public Criteria andCentreIdIsNotNull() { + addCriterion("centre_id is not null"); + return (Criteria) this; + } + + public Criteria andCentreIdEqualTo(Long value) { + addCriterion("centre_id =", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdNotEqualTo(Long value) { + addCriterion("centre_id <>", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdGreaterThan(Long value) { + addCriterion("centre_id >", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdGreaterThanOrEqualTo(Long value) { + addCriterion("centre_id >=", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdLessThan(Long value) { + addCriterion("centre_id <", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdLessThanOrEqualTo(Long value) { + addCriterion("centre_id <=", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdIn(List values) { + addCriterion("centre_id in", values, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdNotIn(List values) { + addCriterion("centre_id not in", values, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdBetween(Long value1, Long value2) { + addCriterion("centre_id between", value1, value2, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdNotBetween(Long value1, Long value2) { + addCriterion("centre_id not between", value1, value2, "centreId"); + 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 andSexIsNull() { + addCriterion("sex is null"); + return (Criteria) this; + } + + public Criteria andSexIsNotNull() { + addCriterion("sex is not null"); + return (Criteria) this; + } + + public Criteria andSexEqualTo(Byte value) { + addCriterion("sex =", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexNotEqualTo(Byte value) { + addCriterion("sex <>", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexGreaterThan(Byte value) { + addCriterion("sex >", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexGreaterThanOrEqualTo(Byte value) { + addCriterion("sex >=", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexLessThan(Byte value) { + addCriterion("sex <", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexLessThanOrEqualTo(Byte value) { + addCriterion("sex <=", value, "sex"); + return (Criteria) this; + } + + public Criteria andSexIn(List values) { + addCriterion("sex in", values, "sex"); + return (Criteria) this; + } + + public Criteria andSexNotIn(List values) { + addCriterion("sex not in", values, "sex"); + return (Criteria) this; + } + + public Criteria andSexBetween(Byte value1, Byte value2) { + addCriterion("sex between", value1, value2, "sex"); + return (Criteria) this; + } + + public Criteria andSexNotBetween(Byte value1, Byte value2) { + addCriterion("sex not between", value1, value2, "sex"); + return (Criteria) this; + } + + public Criteria andAgeIsNull() { + addCriterion("age is null"); + return (Criteria) this; + } + + public Criteria andAgeIsNotNull() { + addCriterion("age is not null"); + return (Criteria) this; + } + + public Criteria andAgeEqualTo(Integer value) { + addCriterion("age =", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeNotEqualTo(Integer value) { + addCriterion("age <>", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeGreaterThan(Integer value) { + addCriterion("age >", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeGreaterThanOrEqualTo(Integer value) { + addCriterion("age >=", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeLessThan(Integer value) { + addCriterion("age <", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeLessThanOrEqualTo(Integer value) { + addCriterion("age <=", value, "age"); + return (Criteria) this; + } + + public Criteria andAgeIn(List values) { + addCriterion("age in", values, "age"); + return (Criteria) this; + } + + public Criteria andAgeNotIn(List values) { + addCriterion("age not in", values, "age"); + return (Criteria) this; + } + + public Criteria andAgeBetween(Integer value1, Integer value2) { + addCriterion("age between", value1, value2, "age"); + return (Criteria) this; + } + + public Criteria andAgeNotBetween(Integer value1, Integer value2) { + addCriterion("age not between", value1, value2, "age"); + return (Criteria) this; + } + + public Criteria andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria 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 andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria 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/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalRobot.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobot.java similarity index 83% rename from recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalRobot.java rename to recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobot.java index 781d2a94..d5b086ab 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalRobot.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobot.java @@ -3,14 +3,14 @@ package com.ccsens.recovery.bean.po; import java.io.Serializable; import java.util.Date; -public class HospitalRobot implements Serializable { +public class RecoveryRobot implements Serializable { private Long id; private String code; private Long userid; - private Byte hospitalId; + private Byte centreId; private Long operator; @@ -46,12 +46,12 @@ public class HospitalRobot implements Serializable { this.userid = userid; } - public Byte getHospitalId() { - return hospitalId; + public Byte getCentreId() { + return centreId; } - public void setHospitalId(Byte hospitalId) { - this.hospitalId = hospitalId; + public void setCentreId(Byte centreId) { + this.centreId = centreId; } public Long getOperator() { @@ -95,7 +95,7 @@ public class HospitalRobot implements Serializable { sb.append(", id=").append(id); sb.append(", code=").append(code); sb.append(", userid=").append(userid); - sb.append(", hospitalId=").append(hospitalId); + sb.append(", centreId=").append(centreId); sb.append(", operator=").append(operator); sb.append(", createdAt=").append(createdAt); sb.append(", updatedAt=").append(updatedAt); diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalRobotExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobotExample.java similarity index 89% rename from recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalRobotExample.java rename to recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobotExample.java index 28199f5e..c784db4b 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalRobotExample.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobotExample.java @@ -4,14 +4,14 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; -public class HospitalRobotExample { +public class RecoveryRobotExample { protected String orderByClause; protected boolean distinct; protected List oredCriteria; - public HospitalRobotExample() { + public RecoveryRobotExample() { oredCriteria = new ArrayList(); } @@ -295,63 +295,63 @@ public class HospitalRobotExample { return (Criteria) this; } - public Criteria andHospitalIdIsNull() { - addCriterion("hospital_id is null"); + public Criteria andCentreIdIsNull() { + addCriterion("centre_id is null"); return (Criteria) this; } - public Criteria andHospitalIdIsNotNull() { - addCriterion("hospital_id is not null"); + public Criteria andCentreIdIsNotNull() { + addCriterion("centre_id is not null"); return (Criteria) this; } - public Criteria andHospitalIdEqualTo(Byte value) { - addCriterion("hospital_id =", value, "hospitalId"); + public Criteria andCentreIdEqualTo(Byte value) { + addCriterion("centre_id =", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdNotEqualTo(Byte value) { - addCriterion("hospital_id <>", value, "hospitalId"); + public Criteria andCentreIdNotEqualTo(Byte value) { + addCriterion("centre_id <>", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdGreaterThan(Byte value) { - addCriterion("hospital_id >", value, "hospitalId"); + public Criteria andCentreIdGreaterThan(Byte value) { + addCriterion("centre_id >", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdGreaterThanOrEqualTo(Byte value) { - addCriterion("hospital_id >=", value, "hospitalId"); + public Criteria andCentreIdGreaterThanOrEqualTo(Byte value) { + addCriterion("centre_id >=", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdLessThan(Byte value) { - addCriterion("hospital_id <", value, "hospitalId"); + public Criteria andCentreIdLessThan(Byte value) { + addCriterion("centre_id <", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdLessThanOrEqualTo(Byte value) { - addCriterion("hospital_id <=", value, "hospitalId"); + public Criteria andCentreIdLessThanOrEqualTo(Byte value) { + addCriterion("centre_id <=", value, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdIn(List values) { - addCriterion("hospital_id in", values, "hospitalId"); + public Criteria andCentreIdIn(List values) { + addCriterion("centre_id in", values, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdNotIn(List values) { - addCriterion("hospital_id not in", values, "hospitalId"); + public Criteria andCentreIdNotIn(List values) { + addCriterion("centre_id not in", values, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdBetween(Byte value1, Byte value2) { - addCriterion("hospital_id between", value1, value2, "hospitalId"); + public Criteria andCentreIdBetween(Byte value1, Byte value2) { + addCriterion("centre_id between", value1, value2, "centreId"); return (Criteria) this; } - public Criteria andHospitalIdNotBetween(Byte value1, Byte value2) { - addCriterion("hospital_id not between", value1, value2, "hospitalId"); + public Criteria andCentreIdNotBetween(Byte value1, Byte value2) { + addCriterion("centre_id not between", value1, value2, "centreId"); return (Criteria) this; } diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/Relation.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Relation.java index dfeb50d5..4f5063e9 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/Relation.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Relation.java @@ -24,8 +24,6 @@ public class Relation implements Serializable { private String remark; - private Long doctorId; - private Long operator; private Date createTime; @@ -116,14 +114,6 @@ public class Relation implements Serializable { this.remark = remark == null ? null : remark.trim(); } - public Long getDoctorId() { - return doctorId; - } - - public void setDoctorId(Long doctorId) { - this.doctorId = doctorId; - } - public Long getOperator() { return operator; } @@ -172,7 +162,6 @@ public class Relation implements Serializable { sb.append(", address=").append(address); sb.append(", inputTime=").append(inputTime); sb.append(", remark=").append(remark); - sb.append(", doctorId=").append(doctorId); sb.append(", operator=").append(operator); sb.append(", createTime=").append(createTime); sb.append(", updateTime=").append(updateTime); diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/RelationExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RelationExample.java index 74499b95..e0c72781 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/po/RelationExample.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RelationExample.java @@ -755,66 +755,6 @@ public class RelationExample { 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 andOperatorIsNull() { addCriterion("operator is null"); return (Criteria) this; diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/vo/PatientVo.java b/recovery/src/main/java/com/ccsens/recovery/bean/vo/PatientVo.java index 0761540d..71d77b6a 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/vo/PatientVo.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/vo/PatientVo.java @@ -1,10 +1,10 @@ package com.ccsens.recovery.bean.vo; +import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import javax.validation.constraints.NotNull; /** * @author 逗 @@ -30,9 +30,9 @@ public class PatientVo { @ApiModelProperty("家庭地址") private String address; @ApiModelProperty("康复中心id") - private Long hospitalId; + private Long recoveryCentreId; @ApiModelProperty("康复中心名") - private String hospitalName; + private String recoveryCentreName; @ApiModelProperty("主治医生id") private Long doctorId; @ApiModelProperty("主治医生名称") @@ -40,10 +40,48 @@ public class PatientVo { } @Data - @ApiModel("训练记录id") + public static class RecipeRecordId{ @ApiModelProperty("训练记录id") private Long id; } + @Data + @ApiModel("全屏时查看患者信息") + public static class PatientFullScreen{ + @ApiModelProperty("患者id") + private Long patientId; + @ApiModelProperty("病人姓名") + private String name; + @ApiModelProperty("年龄") + private int age; + @ApiModelProperty("主治医生Id") + private Long doctorId; + @ApiModelProperty("主治医生名称") + private String doctorName; + @ApiModelProperty("病情") + private String condition; + @ApiModelProperty("治疗次数") + private int treatmentNum; + @ApiModelProperty("处方项id") + private Long recipeProjectId; + @ApiModelProperty("处方名称") + private String recipeName; + //"训练id" + @JsonIgnore + private Long drillId; + @ApiModelProperty("每天几次") + private int timesDay; + @ApiModelProperty("每次几组") + private int groupTimes; + @ApiModelProperty("每组几个") + private int severalGroup; + @ApiModelProperty("游戏id") + private Long gameId; + @ApiModelProperty("游戏名字") + private String gameName; + @ApiModelProperty("游戏路径") + private String gameUrl; + } + } diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/vo/RecipeVo.java b/recovery/src/main/java/com/ccsens/recovery/bean/vo/RecipeVo.java index 03f36f91..57e601ce 100644 --- a/recovery/src/main/java/com/ccsens/recovery/bean/vo/RecipeVo.java +++ b/recovery/src/main/java/com/ccsens/recovery/bean/vo/RecipeVo.java @@ -30,9 +30,9 @@ public class RecipeVo { @ApiModelProperty("游戏id") private Long id; @ApiModelProperty("游戏名称") - private Long name; + private String name; @ApiModelProperty("游戏路径") - private Long gameUrl; + private String gameUrl; } @Data diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/dao/PatientDao.java b/recovery/src/main/java/com/ccsens/recovery/persist/dao/PatientDao.java index 00c18f49..c61588c0 100644 --- a/recovery/src/main/java/com/ccsens/recovery/persist/dao/PatientDao.java +++ b/recovery/src/main/java/com/ccsens/recovery/persist/dao/PatientDao.java @@ -1,5 +1,6 @@ package com.ccsens.recovery.persist.dao; +import com.ccsens.recovery.bean.po.RecoveryRobot; import com.ccsens.recovery.bean.vo.PatientVo; import com.ccsens.recovery.bean.vo.RecipeVo; import com.ccsens.recovery.persist.mapper.PatientMapper; @@ -15,9 +16,18 @@ import java.util.List; public interface PatientDao extends PatientMapper { List queryPatientByDoctorId(@Param("doctorId") Long doctorId); - List queryPatientByHospitalId(@Param("hospitalId") Long hospitalId); + List queryPatientByHospitalId(@Param("recoveryCentreId") Long recoveryCentreId); PatientVo.Patient getPatientById(@Param("id")Long id); List queryRecipeByPatientId(@Param("patientId")Long patientId); + + PatientVo.PatientFullScreen getPatientFllScreen(@Param("detailId")Long detailId); + + /** + * 查找患者当前连接的机器人 + * @param patientId 患者id + * @return 机器人信息 + */ + RecoveryRobot getRobotByPatientId(@Param("patientId")Long patientId); } diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/dao/RecDrillDao.java b/recovery/src/main/java/com/ccsens/recovery/persist/dao/RecDrillDao.java new file mode 100644 index 00000000..4ed8c1bc --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/dao/RecDrillDao.java @@ -0,0 +1,23 @@ +package com.ccsens.recovery.persist.dao; + +import com.ccsens.recovery.bean.vo.RecipeVo; +import com.ccsens.recovery.persist.mapper.RecDrillMapper; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +import java.util.List; + + +/** + * @author 逗 + */ +@Repository +public interface RecDrillDao extends RecDrillMapper { + + /** + * 根据训练id查询游戏 + * @param drillId 训练id + * @return 返回关联的游戏信息 + */ + List getGameByDrillId(@Param("drillId") Long drillId); +} diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/HospitalRobotMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/HospitalRobotMapper.java deleted file mode 100644 index 39c5c013..00000000 --- a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/HospitalRobotMapper.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.ccsens.recovery.persist.mapper; - -import com.ccsens.recovery.bean.po.HospitalRobot; -import com.ccsens.recovery.bean.po.HospitalRobotExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface HospitalRobotMapper { - long countByExample(HospitalRobotExample example); - - int deleteByExample(HospitalRobotExample example); - - int deleteByPrimaryKey(Long id); - - int insert(HospitalRobot record); - - int insertSelective(HospitalRobot record); - - List selectByExample(HospitalRobotExample example); - - HospitalRobot selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") HospitalRobot record, @Param("example") HospitalRobotExample example); - - int updateByExample(@Param("record") HospitalRobot record, @Param("example") HospitalRobotExample example); - - int updateByPrimaryKeySelective(HospitalRobot record); - - int updateByPrimaryKey(HospitalRobot record); -} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientRobotMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientRobotMapper.java new file mode 100644 index 00000000..959549f9 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientRobotMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.PatientRobot; +import com.ccsens.recovery.bean.po.PatientRobotExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PatientRobotMapper { + long countByExample(PatientRobotExample example); + + int deleteByExample(PatientRobotExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PatientRobot record); + + int insertSelective(PatientRobot record); + + List selectByExample(PatientRobotExample example); + + PatientRobot selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") PatientRobot record, @Param("example") PatientRobotExample example); + + int updateByExample(@Param("record") PatientRobot record, @Param("example") PatientRobotExample example); + + int updateByPrimaryKeySelective(PatientRobot record); + + int updateByPrimaryKey(PatientRobot record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecRecordMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecRecordMapper.java deleted file mode 100644 index b53c4d43..00000000 --- a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecRecordMapper.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.ccsens.recovery.persist.mapper; - -import com.ccsens.recovery.bean.po.RecRecord; -import com.ccsens.recovery.bean.po.RecRecordExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface RecRecordMapper { - long countByExample(RecRecordExample example); - - int deleteByExample(RecRecordExample example); - - int deleteByPrimaryKey(Long id); - - int insert(RecRecord record); - - int insertSelective(RecRecord record); - - List selectByExample(RecRecordExample example); - - RecRecord selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") RecRecord record, @Param("example") RecRecordExample example); - - int updateByExample(@Param("record") RecRecord record, @Param("example") RecRecordExample example); - - int updateByPrimaryKeySelective(RecRecord record); - - int updateByPrimaryKey(RecRecord record); -} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeProjectDecomposeMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeProjectDecomposeMapper.java new file mode 100644 index 00000000..c6ab9f7d --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeProjectDecomposeMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecipeProjectDecompose; +import com.ccsens.recovery.bean.po.RecipeProjectDecomposeExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecipeProjectDecomposeMapper { + long countByExample(RecipeProjectDecomposeExample example); + + int deleteByExample(RecipeProjectDecomposeExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecipeProjectDecompose record); + + int insertSelective(RecipeProjectDecompose record); + + List selectByExample(RecipeProjectDecomposeExample example); + + RecipeProjectDecompose selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecipeProjectDecompose record, @Param("example") RecipeProjectDecomposeExample example); + + int updateByExample(@Param("record") RecipeProjectDecompose record, @Param("example") RecipeProjectDecomposeExample example); + + int updateByPrimaryKeySelective(RecipeProjectDecompose record); + + int updateByPrimaryKey(RecipeProjectDecompose record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeRecordMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeRecordMapper.java new file mode 100644 index 00000000..f7f4b875 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeRecordMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecipeRecord; +import com.ccsens.recovery.bean.po.RecipeRecordExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecipeRecordMapper { + long countByExample(RecipeRecordExample example); + + int deleteByExample(RecipeRecordExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecipeRecord record); + + int insertSelective(RecipeRecord record); + + List selectByExample(RecipeRecordExample example); + + RecipeRecord selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecipeRecord record, @Param("example") RecipeRecordExample example); + + int updateByExample(@Param("record") RecipeRecord record, @Param("example") RecipeRecordExample example); + + int updateByPrimaryKeySelective(RecipeRecord record); + + int updateByPrimaryKey(RecipeRecord record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryCentreMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryCentreMapper.java new file mode 100644 index 00000000..7bd4594d --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryCentreMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecoveryCentre; +import com.ccsens.recovery.bean.po.RecoveryCentreExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecoveryCentreMapper { + long countByExample(RecoveryCentreExample example); + + int deleteByExample(RecoveryCentreExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecoveryCentre record); + + int insertSelective(RecoveryCentre record); + + List selectByExample(RecoveryCentreExample example); + + RecoveryCentre selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecoveryCentre record, @Param("example") RecoveryCentreExample example); + + int updateByExample(@Param("record") RecoveryCentre record, @Param("example") RecoveryCentreExample example); + + int updateByPrimaryKeySelective(RecoveryCentre record); + + int updateByPrimaryKey(RecoveryCentre record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryDoctorMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryDoctorMapper.java new file mode 100644 index 00000000..b5f74e7a --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryDoctorMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecoveryDoctor; +import com.ccsens.recovery.bean.po.RecoveryDoctorExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecoveryDoctorMapper { + long countByExample(RecoveryDoctorExample example); + + int deleteByExample(RecoveryDoctorExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecoveryDoctor record); + + int insertSelective(RecoveryDoctor record); + + List selectByExample(RecoveryDoctorExample example); + + RecoveryDoctor selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecoveryDoctor record, @Param("example") RecoveryDoctorExample example); + + int updateByExample(@Param("record") RecoveryDoctor record, @Param("example") RecoveryDoctorExample example); + + int updateByPrimaryKeySelective(RecoveryDoctor record); + + int updateByPrimaryKey(RecoveryDoctor record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryRobotMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryRobotMapper.java new file mode 100644 index 00000000..3116dc84 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecoveryRobotMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecoveryRobot; +import com.ccsens.recovery.bean.po.RecoveryRobotExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecoveryRobotMapper { + long countByExample(RecoveryRobotExample example); + + int deleteByExample(RecoveryRobotExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecoveryRobot record); + + int insertSelective(RecoveryRobot record); + + List selectByExample(RecoveryRobotExample example); + + RecoveryRobot selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecoveryRobot record, @Param("example") RecoveryRobotExample example); + + int updateByExample(@Param("record") RecoveryRobot record, @Param("example") RecoveryRobotExample example); + + int updateByPrimaryKeySelective(RecoveryRobot record); + + int updateByPrimaryKey(RecoveryRobot record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/service/HospitalService.java b/recovery/src/main/java/com/ccsens/recovery/service/HospitalService.java index da5a4c2e..96ef64ad 100644 --- a/recovery/src/main/java/com/ccsens/recovery/service/HospitalService.java +++ b/recovery/src/main/java/com/ccsens/recovery/service/HospitalService.java @@ -17,7 +17,7 @@ import java.util.List; @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public class HospitalService implements IHospitalService{ @Override - public List queryRobotByHospital(HospitalDto.HospitalId param, Long userId) { + public List queryRobotByHospital(HospitalDto.RecoveryCentreId param, Long userId) { return null; } } diff --git a/recovery/src/main/java/com/ccsens/recovery/service/IHospitalService.java b/recovery/src/main/java/com/ccsens/recovery/service/IHospitalService.java index e43f2e65..9b12d3b3 100644 --- a/recovery/src/main/java/com/ccsens/recovery/service/IHospitalService.java +++ b/recovery/src/main/java/com/ccsens/recovery/service/IHospitalService.java @@ -15,5 +15,5 @@ public interface IHospitalService { * @param userId userId * @return 返回机器人信息 */ - List queryRobotByHospital(HospitalDto.HospitalId param, Long userId); + List queryRobotByHospital(HospitalDto.RecoveryCentreId param, Long userId); } diff --git a/recovery/src/main/java/com/ccsens/recovery/service/IPatientService.java b/recovery/src/main/java/com/ccsens/recovery/service/IPatientService.java index 830c95a2..3b1e72c7 100644 --- a/recovery/src/main/java/com/ccsens/recovery/service/IPatientService.java +++ b/recovery/src/main/java/com/ccsens/recovery/service/IPatientService.java @@ -24,7 +24,7 @@ public interface IPatientService { * @param userId userId * @return 患者列表 */ - List queryPatientByRecovery(HospitalDto.HospitalId param, Long userId); + List queryPatientByRecovery(HospitalDto.RecoveryCentreId param, Long userId); /** * 根据id查看患者详细信息 @@ -54,7 +54,7 @@ public interface IPatientService { * @param userId userID * @return 返回训练记录的id */ - PatientVo.RecipeRecordId startDrill(PatientDto.StartDrill param, Long userId); + PatientVo.RecipeRecordId startDrill(PatientDto.StartDrill param, Long userId) throws JsonProcessingException, Exception; /** * 结束训练 @@ -68,5 +68,20 @@ public interface IPatientService { * @param param 记录id和结果 * @param userId userId */ - void actionFeedback(PatientDto.ActionFeedback param, Long userId); + void actionFeedback(PatientDto.ActionFeedback param, Long userId) throws JsonProcessingException, Exception; + + /** + * 竖屏时通过任务id查看患者信息 + * @param param 任务详情id + * @param userId userId + * @return 返回患者本次处方项的信息 + */ + PatientVo.PatientFullScreen fullScreen(PatientDto.TaskDetailId param, Long userId); + + /** + * 结束康复流程 + * @param param 训练记录id + * @param userId userId + */ + void completeRecovery(PatientDto.EndRecovery param, Long userId) throws Exception; } diff --git a/recovery/src/main/java/com/ccsens/recovery/service/PatientService.java b/recovery/src/main/java/com/ccsens/recovery/service/PatientService.java index 6bf6038b..d168d4b3 100644 --- a/recovery/src/main/java/com/ccsens/recovery/service/PatientService.java +++ b/recovery/src/main/java/com/ccsens/recovery/service/PatientService.java @@ -1,17 +1,19 @@ package com.ccsens.recovery.service; +import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.lang.Snowflake; import cn.hutool.core.util.ObjectUtil; import com.ccsens.recovery.bean.dto.HospitalDto; import com.ccsens.recovery.bean.dto.PatientDto; +import com.ccsens.recovery.bean.message.RecoveryWithActionFeedBack; +import com.ccsens.recovery.bean.message.RecoveryWithStartDrill; import com.ccsens.recovery.bean.message.RecoveryWithStartRecipe; -import com.ccsens.recovery.bean.po.HospitalRobot; -import com.ccsens.recovery.bean.po.Patient; -import com.ccsens.recovery.bean.po.RecRecord; +import com.ccsens.recovery.bean.po.*; import com.ccsens.recovery.bean.vo.PatientVo; +import com.ccsens.recovery.bean.vo.RecipeVo; import com.ccsens.recovery.persist.dao.PatientDao; -import com.ccsens.recovery.persist.mapper.HospitalRobotMapper; -import com.ccsens.recovery.persist.mapper.RecRecordMapper; +import com.ccsens.recovery.persist.dao.RecDrillDao; +import com.ccsens.recovery.persist.mapper.*; import com.ccsens.util.JacksonUtil; import com.ccsens.util.bean.message.common.InMessage; import com.ccsens.util.bean.message.common.MessageConstant; @@ -25,7 +27,6 @@ import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; -import java.util.Arrays; import java.util.HashSet; import java.util.List; import java.util.Set; @@ -40,13 +41,21 @@ public class PatientService implements IPatientService{ @Resource private PatientDao patientDao; @Resource - private HospitalRobotMapper hospitalRobotMapper; + private RecoveryRobotMapper recoveryRobotMapper; @Resource private AmqpTemplate rabbitTemplate; @Resource private Snowflake snowflake; @Resource - private RecRecordMapper recRecordMapper; + private RecipeRecordMapper recipeRecordMapper; + @Resource + private RecDrillDao recDrillDao; + @Resource + private RecoveryDoctorMapper recoveryDoctorMapper; + @Resource + private PatientRobotMapper patientRobotMapper; + @Resource + private RecoveryCentreMapper recoveryCentreMapper; @Override public List queryPatientByDoctorId(HospitalDto.DoctorId param, Long userId) { @@ -55,8 +64,18 @@ public class PatientService implements IPatientService{ } @Override - public List queryPatientByRecovery(HospitalDto.HospitalId param, Long userId) { - return patientDao.queryPatientByHospitalId(param.getId()); + public List queryPatientByRecovery(HospitalDto.RecoveryCentreId param, Long userId) { + Long centreId = param.getId(); + if(ObjectUtil.isNull(centreId)){ + //如果康复中心id为空,通过userId查找康复师,然后查找康复中心的id + RecoveryDoctorExample recoveryDoctorExample = new RecoveryDoctorExample(); + recoveryDoctorExample.createCriteria().andUserIdEqualTo(userId); + List doctorList = recoveryDoctorMapper.selectByExample(recoveryDoctorExample); + if(CollectionUtil.isNotEmpty(doctorList)){ + centreId = doctorList.get(0).getCentreId(); + } + } + return patientDao.queryPatientByHospitalId(centreId); } @Override @@ -77,10 +96,18 @@ public class PatientService implements IPatientService{ return; } //查找机器人 - HospitalRobot robot = hospitalRobotMapper.selectByPrimaryKey(param.getRobotId()); + RecoveryRobot robot = recoveryRobotMapper.selectByPrimaryKey(param.getRobotId()); if(ObjectUtil.isNull(robot)){ return; } + //患者关联机器人 + PatientRobot patientRobot = new PatientRobot(); + patientRobot.setId(snowflake.nextId()); + patientRobot.setPatientId(patient.getId()); + patientRobot.setPatientId(robot.getId()); + patientRobot.setStartTime(System.currentTimeMillis()); + patientRobotMapper.insertSelective(patientRobot); + //获取接收者id Set userIdSet = new HashSet<>(); userIdSet.add(robot.getUserid().toString()); @@ -102,31 +129,143 @@ public class PatientService implements IPatientService{ } @Override - public PatientVo.RecipeRecordId startDrill(PatientDto.StartDrill param, Long userId) { + public PatientVo.RecipeRecordId startDrill(PatientDto.StartDrill param, Long userId) throws Exception { //存储一条训练记录 - RecRecord recRecord = new RecRecord(); + RecipeRecord recRecord = new RecipeRecord(); recRecord.setId(snowflake.nextId()); recRecord.setStartTime(System.currentTimeMillis()); - recRecord.setRecipeProjectId(param.getRecipeProjectId()); - recRecord.setSceneDoctorId(param.getSceneDoctorId()); + recRecord.setDecomposeId(param.getRecipeProjectId()); + recRecord.setRecoveryDoctorId(param.getSceneDoctorId()); recRecord.setGameId(param.getGameId()); recRecord.setRemoteGuidance(param.getRemoteGuidance()); recRecord.setRemoteDoctorId(param.getRemoteDoctorId()); - recRecord.setSubTaskId(param.getTaskId()); - recRecordMapper.insertSelective(recRecord); - //给对应的康复机器人发消息、机器人切换至全屏游戏 + recRecord.setSubTaskId(param.getSubTaskId()); + recipeRecordMapper.insertSelective(recRecord); + //发送消息 + RecoveryWithStartDrill recoveryWithStartDrill = new RecoveryWithStartDrill(); + RecoveryWithStartDrill.Data data = new RecoveryWithStartDrill.Data(); + data.setPatientId(param.getPatientId()); + data.setRecordId(recRecord.getId()); + data.setGameId(param.getGameId()); + recoveryWithStartDrill.setData(data); + //查询患者当前关联的机器人 + RecoveryRobot recoveryRobot = patientDao.getRobotByPatientId(param.getPatientId()); + //查询接收者 + Set userIdSet = new HashSet<>(); + userIdSet.add(recoveryRobot.getUserid().toString()); + userIdSet.add(param.getPatientId().toString()); + //封装成inMessage + MessageRule messageRule = MessageRule.defaultRule(MessageConstant.DomainType.User); + messageRule.setAckRule(MessageRule.AckRule.NONE); + messageRule.setOfflineDiscard((byte) 1); + + InMessage inMessage = new InMessage(); + inMessage.setToDomain(MessageConstant.DomainType.User); + inMessage.setTos(userIdSet); + inMessage.setData(JacksonUtil.beanToJson(recoveryWithStartDrill)); + inMessage.setRule(messageRule); + log.info("开始训练消息:{}",inMessage); + rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, + JacksonUtil.beanToJson(inMessage)); - return null; + //返回 + PatientVo.RecipeRecordId recipeRecordId = new PatientVo.RecipeRecordId(); + recipeRecordId.setId(recRecord.getId()); + return recipeRecordId; } @Override public void endDrill(PatientDto.EndDrill param, Long userId) { - + //查找训练记录 + RecipeRecord recipeRecord = recipeRecordMapper.selectByPrimaryKey(param.getId()); + if(ObjectUtil.isNotNull(recipeRecord)){ + //添加结束时间和分数 + recipeRecord.setEndTime(System.currentTimeMillis()); + recipeRecord.setScore(param.getScore()); + recipeRecordMapper.updateByPrimaryKeySelective(recipeRecord); + } } @Override - public void actionFeedback(PatientDto.ActionFeedback param, Long userId) { + public void actionFeedback(PatientDto.ActionFeedback param, Long userId) throws Exception { + Set userIdSet = new HashSet<>(); + //查找消息记录。 + RecipeRecord recipeRecord = recipeRecordMapper.selectByPrimaryKey(param.getRecordId()); + if(ObjectUtil.isNotNull(recipeRecord)){ + //查找患者信息 + Patient patient = patientDao.selectByPrimaryKey(recipeRecord.getPatientId()); + if(ObjectUtil.isNotNull(patient)){ + userIdSet.add(patient.getUserId().toString()); + //查询患者当前关联的机器人 + RecoveryRobot recoveryRobot = patientDao.getRobotByPatientId(patient.getId()); + userIdSet.add(recoveryRobot.getUserid().toString()); + } + } + //消息规则 + MessageRule messageRule = MessageRule.defaultRule(MessageConstant.DomainType.User); + messageRule.setAckRule(MessageRule.AckRule.NONE); + messageRule.setOfflineDiscard((byte) 1); + //生成消息 + RecoveryWithActionFeedBack actionFeedBack = new RecoveryWithActionFeedBack(); + RecoveryWithActionFeedBack.Data data = new RecoveryWithActionFeedBack.Data(); + data.setRecordId(param.getRecordId()); + data.setResult(param.isResult()); + actionFeedBack.setData(data); + + InMessage inMessage = new InMessage(); + inMessage.setToDomain(MessageConstant.DomainType.User); + inMessage.setTos(userIdSet); + inMessage.setData(JacksonUtil.beanToJson(actionFeedBack)); + inMessage.setRule(messageRule); + log.info("动作反馈:{}",inMessage); + rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, + JacksonUtil.beanToJson(inMessage)); + + } + + @Override + public PatientVo.PatientFullScreen fullScreen(PatientDto.TaskDetailId param, Long userId) { + PatientVo.PatientFullScreen patientFullScreen = patientDao.getPatientFllScreen(param.getDetailId()); + List gameList = recDrillDao.getGameByDrillId(patientFullScreen.getDrillId()); + if (CollectionUtil.isNotEmpty(gameList)) { + patientFullScreen.setGameId(gameList.get(0).getId()); + patientFullScreen.setGameName(gameList.get(0).getName()); + patientFullScreen.setGameUrl(gameList.get(0).getGameUrl()); + } + return patientFullScreen; } + @Override + public void completeRecovery(PatientDto.EndRecovery param, Long userId) throws Exception { + //TODO 将处方项目关联的任务设为完成 + //发送消息,让机器人切回康复中心的项目 + Set userIdSet = new HashSet<>(); + RecoveryWithStartRecipe recoveryWithStartRecipe = null; + + Patient patient = patientDao.selectByPrimaryKey(param.getPatientId()); + if(ObjectUtil.isNotNull(patient)){ + //查询患者当前关联的机器人 + RecoveryRobot recoveryRobot = patientDao.getRobotByPatientId(patient.getId()); + userIdSet.add(recoveryRobot.getUserid().toString()); + //查询患者所属的康复中心关联的项目 + RecoveryCentre recoveryCentre = recoveryCentreMapper.selectByPrimaryKey(patient.getCentreId()); + if(ObjectUtil.isNotNull(recoveryCentre)){ + recoveryWithStartRecipe = new RecoveryWithStartRecipe(patient.getProjectId()); + } + } + //消息规则 + MessageRule messageRule = MessageRule.defaultRule(MessageConstant.DomainType.User); + messageRule.setAckRule(MessageRule.AckRule.NONE); + messageRule.setOfflineDiscard((byte) 1); + //封装成inMessage + InMessage inMessage = new InMessage(); + inMessage.setToDomain(MessageConstant.DomainType.User); + inMessage.setTos(userIdSet); + inMessage.setData(JacksonUtil.beanToJson(recoveryWithStartRecipe)); + inMessage.setRule(messageRule); + log.info("开启康复流程消息:{}",inMessage); + rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, + JacksonUtil.beanToJson(inMessage)); + } } diff --git a/recovery/src/main/java/com/ccsens/recovery/util/Constant.java b/recovery/src/main/java/com/ccsens/recovery/util/Constant.java index 3598bc84..3a2e03e4 100644 --- a/recovery/src/main/java/com/ccsens/recovery/util/Constant.java +++ b/recovery/src/main/java/com/ccsens/recovery/util/Constant.java @@ -10,5 +10,9 @@ public class Constant { public static final class Message { /**启动康复流程*/ public static final String START_RECOVERY = "startRecovery"; + /**开始训练*/ + public static final String START_DRILL = "startDrill"; + /**动作反馈*/ + public static final String FEEDBACK = "feedback"; } } diff --git a/recovery/src/main/resources/mapper_dao/PatientDao.xml b/recovery/src/main/resources/mapper_dao/PatientDao.xml index 27f58d5a..4e2869de 100644 --- a/recovery/src/main/resources/mapper_dao/PatientDao.xml +++ b/recovery/src/main/resources/mapper_dao/PatientDao.xml @@ -12,20 +12,20 @@ p.id_card as idCord, p.phone as phone, p.address as address, - h.id as hospitalId, - h.`name` as hospitalName, + c.id as recoveryCentreId, + c.`name` as recoveryCentreName, d.id as doctorId, d.`name` as doctorName FROM t_patient p, t_doctor d, - t_hospital h + t_recovery_centre c WHERE p.doctor_id = d.id - and p.hospital_id = h.id + and p.centre_id = c.id and p.rec_status = 0 and d.rec_status = 0 - and h.rec_status = 0 + and c.rec_status = 0 and d.id = #{doctorId} @@ -121,4 +121,49 @@ r.rec_status = 0 and r.patient_id = #{patientId} + + \ No newline at end of file diff --git a/recovery/src/main/resources/mapper_dao/RecDrillDao.xml b/recovery/src/main/resources/mapper_dao/RecDrillDao.xml new file mode 100644 index 00000000..ef22e4b5 --- /dev/null +++ b/recovery/src/main/resources/mapper_dao/RecDrillDao.xml @@ -0,0 +1,17 @@ + + + + + + + \ No newline at end of file diff --git a/recovery/src/main/resources/mapper_raw/HospitalMapper.xml b/recovery/src/main/resources/mapper_raw/HospitalMapper.xml index e5207460..1146bff4 100644 --- a/recovery/src/main/resources/mapper_raw/HospitalMapper.xml +++ b/recovery/src/main/resources/mapper_raw/HospitalMapper.xml @@ -5,7 +5,7 @@ - + @@ -70,7 +70,7 @@ - id, code, name, type, operator, created_at, updated_at, rec_status + id, code, name, project_id, operator, created_at, updated_at, rec_status @@ -116,13 +116,13 @@ insert into t_patient (id, user_id, name, sex, age, id_card, phone, address, input_time, remark, - hospital_id, doctor_id, project_id, + centre_id, doctor_id, project_id, operator, create_time, update_time, rec_status) values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{sex,jdbcType=TINYINT}, #{age,jdbcType=INTEGER}, #{idCard,jdbcType=VARCHAR}, #{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{inputTime,jdbcType=BIGINT}, #{remark,jdbcType=VARCHAR}, - #{hospitalId,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{centreId,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) @@ -159,8 +159,8 @@ remark, - - hospital_id, + + centre_id, doctor_id, @@ -212,8 +212,8 @@ #{remark,jdbcType=VARCHAR}, - - #{hospitalId,jdbcType=BIGINT}, + + #{centreId,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, @@ -274,8 +274,8 @@ remark = #{record.remark,jdbcType=VARCHAR}, - - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, + + centre_id = #{record.centreId,jdbcType=BIGINT}, doctor_id = #{record.doctorId,jdbcType=BIGINT}, @@ -312,7 +312,7 @@ address = #{record.address,jdbcType=VARCHAR}, input_time = #{record.inputTime,jdbcType=BIGINT}, remark = #{record.remark,jdbcType=VARCHAR}, - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, + centre_id = #{record.centreId,jdbcType=BIGINT}, doctor_id = #{record.doctorId,jdbcType=BIGINT}, project_id = #{record.projectId,jdbcType=BIGINT}, operator = #{record.operator,jdbcType=BIGINT}, @@ -353,8 +353,8 @@ remark = #{remark,jdbcType=VARCHAR}, - - hospital_id = #{hospitalId,jdbcType=BIGINT}, + + centre_id = #{centreId,jdbcType=BIGINT}, doctor_id = #{doctorId,jdbcType=BIGINT}, @@ -388,7 +388,7 @@ address = #{address,jdbcType=VARCHAR}, input_time = #{inputTime,jdbcType=BIGINT}, remark = #{remark,jdbcType=VARCHAR}, - hospital_id = #{hospitalId,jdbcType=BIGINT}, + centre_id = #{centreId,jdbcType=BIGINT}, doctor_id = #{doctorId,jdbcType=BIGINT}, project_id = #{projectId,jdbcType=BIGINT}, operator = #{operator,jdbcType=BIGINT}, diff --git a/recovery/src/main/resources/mapper_raw/PatientRobotMapper.xml b/recovery/src/main/resources/mapper_raw/PatientRobotMapper.xml new file mode 100644 index 00000000..6f310f00 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/PatientRobotMapper.xml @@ -0,0 +1,276 @@ + + + + + + + + + + + + + + + + + + + + + + + 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, patient_id, robot_id, start_time, end_time, operator, create_time, update_time, + rec_status + + + + + delete from t_patient_robot + where id = #{id,jdbcType=BIGINT} + + + delete from t_patient_robot + + + + + + insert into t_patient_robot (id, patient_id, robot_id, + start_time, end_time, operator, + create_time, update_time, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{robotId,jdbcType=BIGINT}, + #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, + #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_patient_robot + + + id, + + + patient_id, + + + robot_id, + + + start_time, + + + end_time, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{patientId,jdbcType=BIGINT}, + + + #{robotId,jdbcType=BIGINT}, + + + #{startTime,jdbcType=BIGINT}, + + + #{endTime,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_patient_robot + + + id = #{record.id,jdbcType=BIGINT}, + + + patient_id = #{record.patientId,jdbcType=BIGINT}, + + + robot_id = #{record.robotId,jdbcType=BIGINT}, + + + start_time = #{record.startTime,jdbcType=BIGINT}, + + + end_time = #{record.endTime,jdbcType=BIGINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_patient_robot + set id = #{record.id,jdbcType=BIGINT}, + patient_id = #{record.patientId,jdbcType=BIGINT}, + robot_id = #{record.robotId,jdbcType=BIGINT}, + start_time = #{record.startTime,jdbcType=BIGINT}, + end_time = #{record.endTime,jdbcType=BIGINT}, + operator = #{record.operator,jdbcType=BIGINT}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_patient_robot + + + patient_id = #{patientId,jdbcType=BIGINT}, + + + robot_id = #{robotId,jdbcType=BIGINT}, + + + start_time = #{startTime,jdbcType=BIGINT}, + + + end_time = #{endTime,jdbcType=BIGINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_patient_robot + set patient_id = #{patientId,jdbcType=BIGINT}, + robot_id = #{robotId,jdbcType=BIGINT}, + start_time = #{startTime,jdbcType=BIGINT}, + end_time = #{endTime,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/recovery/src/main/resources/mapper_raw/RecipeProjectDecomposeMapper.xml b/recovery/src/main/resources/mapper_raw/RecipeProjectDecomposeMapper.xml new file mode 100644 index 00000000..4bb170ec --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecipeProjectDecomposeMapper.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, recipe_project_id, task_id, operator, create_time, update_time, rec_status + + + + + delete from t_recipe_project_decompose + where id = #{id,jdbcType=BIGINT} + + + delete from t_recipe_project_decompose + + + + + + insert into t_recipe_project_decompose (id, recipe_project_id, task_id, + operator, create_time, update_time, + rec_status) + values (#{id,jdbcType=BIGINT}, #{recipeProjectId,jdbcType=BIGINT}, #{taskId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_recipe_project_decompose + + + id, + + + recipe_project_id, + + + task_id, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{recipeProjectId,jdbcType=BIGINT}, + + + #{taskId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_recipe_project_decompose + + + id = #{record.id,jdbcType=BIGINT}, + + + recipe_project_id = #{record.recipeProjectId,jdbcType=BIGINT}, + + + task_id = #{record.taskId,jdbcType=BIGINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_recipe_project_decompose + set id = #{record.id,jdbcType=BIGINT}, + recipe_project_id = #{record.recipeProjectId,jdbcType=BIGINT}, + task_id = #{record.taskId,jdbcType=BIGINT}, + operator = #{record.operator,jdbcType=BIGINT}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_recipe_project_decompose + + + recipe_project_id = #{recipeProjectId,jdbcType=BIGINT}, + + + task_id = #{taskId,jdbcType=BIGINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_recipe_project_decompose + set recipe_project_id = #{recipeProjectId,jdbcType=BIGINT}, + task_id = #{taskId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/recovery/src/main/resources/mapper_raw/RecRecordMapper.xml b/recovery/src/main/resources/mapper_raw/RecipeRecordMapper.xml similarity index 75% rename from recovery/src/main/resources/mapper_raw/RecRecordMapper.xml rename to recovery/src/main/resources/mapper_raw/RecipeRecordMapper.xml index 160481b2..a256dc0f 100644 --- a/recovery/src/main/resources/mapper_raw/RecRecordMapper.xml +++ b/recovery/src/main/resources/mapper_raw/RecipeRecordMapper.xml @@ -1,10 +1,11 @@ - - + + - - + + + @@ -77,17 +78,17 @@ - id, recipe_project_id, scene_doctor_id, robot_id, start_time, end_time, game_id, - remote_guidance, remote_doctor_id, score, sub_task_id, operator, create_time, update_time, - rec_status + id, patient_id, decompose_id, recovery_doctor_id, robot_id, start_time, end_time, + game_id, remote_guidance, remote_doctor_id, score, sub_task_id, operator, create_time, + update_time, rec_status - select distinct - from t_rec_record + from t_recipe_record @@ -98,44 +99,47 @@ - delete from t_rec_record + delete from t_recipe_record where id = #{id,jdbcType=BIGINT} - - delete from t_rec_record + + delete from t_recipe_record - - insert into t_rec_record (id, recipe_project_id, scene_doctor_id, - robot_id, start_time, end_time, - game_id, remote_guidance, remote_doctor_id, - score, sub_task_id, operator, - create_time, update_time, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{recipeProjectId,jdbcType=BIGINT}, #{sceneDoctorId,jdbcType=BIGINT}, - #{robotId,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, - #{gameId,jdbcType=BIGINT}, #{remoteGuidance,jdbcType=TINYINT}, #{remoteDoctorId,jdbcType=BIGINT}, - #{score,jdbcType=INTEGER}, #{subTaskId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, - #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) + + insert into t_recipe_record (id, patient_id, decompose_id, + recovery_doctor_id, robot_id, start_time, + end_time, game_id, remote_guidance, + remote_doctor_id, score, sub_task_id, + operator, create_time, update_time, + rec_status) + values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{decomposeId,jdbcType=BIGINT}, + #{recoveryDoctorId,jdbcType=BIGINT}, #{robotId,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT}, + #{endTime,jdbcType=BIGINT}, #{gameId,jdbcType=BIGINT}, #{remoteGuidance,jdbcType=TINYINT}, + #{remoteDoctorId,jdbcType=BIGINT}, #{score,jdbcType=INTEGER}, #{subTaskId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) - - insert into t_rec_record + + insert into t_recipe_record id, - - recipe_project_id, + + patient_id, - - scene_doctor_id, + + decompose_id, + + + recovery_doctor_id, robot_id, @@ -178,11 +182,14 @@ #{id,jdbcType=BIGINT}, - - #{recipeProjectId,jdbcType=BIGINT}, + + #{patientId,jdbcType=BIGINT}, + + + #{decomposeId,jdbcType=BIGINT}, - - #{sceneDoctorId,jdbcType=BIGINT}, + + #{recoveryDoctorId,jdbcType=BIGINT}, #{robotId,jdbcType=BIGINT}, @@ -222,23 +229,26 @@ - + select count(*) from t_recipe_record - update t_rec_record + update t_recipe_record id = #{record.id,jdbcType=BIGINT}, - - recipe_project_id = #{record.recipeProjectId,jdbcType=BIGINT}, + + patient_id = #{record.patientId,jdbcType=BIGINT}, - - scene_doctor_id = #{record.sceneDoctorId,jdbcType=BIGINT}, + + decompose_id = #{record.decomposeId,jdbcType=BIGINT}, + + + recovery_doctor_id = #{record.recoveryDoctorId,jdbcType=BIGINT}, robot_id = #{record.robotId,jdbcType=BIGINT}, @@ -282,10 +292,11 @@ - update t_rec_record + update t_recipe_record set id = #{record.id,jdbcType=BIGINT}, - recipe_project_id = #{record.recipeProjectId,jdbcType=BIGINT}, - scene_doctor_id = #{record.sceneDoctorId,jdbcType=BIGINT}, + patient_id = #{record.patientId,jdbcType=BIGINT}, + decompose_id = #{record.decomposeId,jdbcType=BIGINT}, + recovery_doctor_id = #{record.recoveryDoctorId,jdbcType=BIGINT}, robot_id = #{record.robotId,jdbcType=BIGINT}, start_time = #{record.startTime,jdbcType=BIGINT}, end_time = #{record.endTime,jdbcType=BIGINT}, @@ -302,14 +313,17 @@ - - update t_rec_record + + update t_recipe_record - - recipe_project_id = #{recipeProjectId,jdbcType=BIGINT}, + + patient_id = #{patientId,jdbcType=BIGINT}, + + + decompose_id = #{decomposeId,jdbcType=BIGINT}, - - scene_doctor_id = #{sceneDoctorId,jdbcType=BIGINT}, + + recovery_doctor_id = #{recoveryDoctorId,jdbcType=BIGINT}, robot_id = #{robotId,jdbcType=BIGINT}, @@ -350,10 +364,11 @@ where id = #{id,jdbcType=BIGINT} - - update t_rec_record - set recipe_project_id = #{recipeProjectId,jdbcType=BIGINT}, - scene_doctor_id = #{sceneDoctorId,jdbcType=BIGINT}, + + update t_recipe_record + set patient_id = #{patientId,jdbcType=BIGINT}, + decompose_id = #{decomposeId,jdbcType=BIGINT}, + recovery_doctor_id = #{recoveryDoctorId,jdbcType=BIGINT}, robot_id = #{robotId,jdbcType=BIGINT}, start_time = #{startTime,jdbcType=BIGINT}, end_time = #{endTime,jdbcType=BIGINT}, diff --git a/recovery/src/main/resources/mapper_raw/RecoveryCentreMapper.xml b/recovery/src/main/resources/mapper_raw/RecoveryCentreMapper.xml new file mode 100644 index 00000000..257a2707 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecoveryCentreMapper.xml @@ -0,0 +1,275 @@ + + + + + + + + + + + + + + + + + + + + + + + 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, address, hospital_id, project_id, operator, created_at, updated_at, rec_status + + + + + delete from t_recovery_centre + where id = #{id,jdbcType=BIGINT} + + + delete from t_recovery_centre + + + + + + insert into t_recovery_centre (id, name, address, + hospital_id, project_id, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, + #{hospitalId,jdbcType=TINYINT}, #{projectId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_recovery_centre + + + id, + + + name, + + + address, + + + hospital_id, + + + project_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{address,jdbcType=VARCHAR}, + + + #{hospitalId,jdbcType=TINYINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_recovery_centre + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + hospital_id = #{record.hospitalId,jdbcType=TINYINT}, + + + project_id = #{record.projectId,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_recovery_centre + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + address = #{record.address,jdbcType=VARCHAR}, + hospital_id = #{record.hospitalId,jdbcType=TINYINT}, + project_id = #{record.projectId,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_recovery_centre + + + name = #{name,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + hospital_id = #{hospitalId,jdbcType=TINYINT}, + + + project_id = #{projectId,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_recovery_centre + set name = #{name,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + hospital_id = #{hospitalId,jdbcType=TINYINT}, + project_id = #{projectId,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/recovery/src/main/resources/mapper_raw/RecoveryDoctorMapper.xml b/recovery/src/main/resources/mapper_raw/RecoveryDoctorMapper.xml new file mode 100644 index 00000000..2148c380 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecoveryDoctorMapper.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, user_id, centre_id, name, sex, age, remark, operator, create_time, update_time, + rec_status + + + + + delete from t_recovery_doctor + where id = #{id,jdbcType=BIGINT} + + + delete from t_recovery_doctor + + + + + + insert into t_recovery_doctor (id, user_id, centre_id, + name, sex, age, remark, + operator, create_time, update_time, + rec_status) + values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{centreId,jdbcType=BIGINT}, + #{name,jdbcType=VARCHAR}, #{sex,jdbcType=TINYINT}, #{age,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_recovery_doctor + + + id, + + + user_id, + + + centre_id, + + + name, + + + sex, + + + age, + + + remark, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{centreId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{sex,jdbcType=TINYINT}, + + + #{age,jdbcType=INTEGER}, + + + #{remark,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_recovery_doctor + + + id = #{record.id,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + centre_id = #{record.centreId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + sex = #{record.sex,jdbcType=TINYINT}, + + + age = #{record.age,jdbcType=INTEGER}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_recovery_doctor + set id = #{record.id,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + centre_id = #{record.centreId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + sex = #{record.sex,jdbcType=TINYINT}, + age = #{record.age,jdbcType=INTEGER}, + remark = #{record.remark,jdbcType=VARCHAR}, + operator = #{record.operator,jdbcType=BIGINT}, + create_time = #{record.createTime,jdbcType=TIMESTAMP}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_recovery_doctor + + + user_id = #{userId,jdbcType=BIGINT}, + + + centre_id = #{centreId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + sex = #{sex,jdbcType=TINYINT}, + + + age = #{age,jdbcType=INTEGER}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + operator = #{operator,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_recovery_doctor + set user_id = #{userId,jdbcType=BIGINT}, + centre_id = #{centreId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + sex = #{sex,jdbcType=TINYINT}, + age = #{age,jdbcType=INTEGER}, + remark = #{remark,jdbcType=VARCHAR}, + operator = #{operator,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/recovery/src/main/resources/mapper_raw/HospitalRobotMapper.xml b/recovery/src/main/resources/mapper_raw/RecoveryRobotMapper.xml similarity index 82% rename from recovery/src/main/resources/mapper_raw/HospitalRobotMapper.xml rename to recovery/src/main/resources/mapper_raw/RecoveryRobotMapper.xml index 6bcdf437..233979e7 100644 --- a/recovery/src/main/resources/mapper_raw/HospitalRobotMapper.xml +++ b/recovery/src/main/resources/mapper_raw/RecoveryRobotMapper.xml @@ -1,11 +1,11 @@ - - + + - + @@ -70,15 +70,15 @@ - id, code, userId, hospital_id, operator, created_at, updated_at, rec_status + id, code, userId, centre_id, operator, created_at, updated_at, rec_status - select distinct - from t_hospital_robot + from t_recovery_robot @@ -89,29 +89,29 @@ - delete from t_hospital_robot + delete from t_recovery_robot where id = #{id,jdbcType=BIGINT} - - delete from t_hospital_robot + + delete from t_recovery_robot - - insert into t_hospital_robot (id, code, userId, - hospital_id, operator, created_at, + + insert into t_recovery_robot (id, code, userId, + centre_id, operator, created_at, updated_at, rec_status) values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{userid,jdbcType=BIGINT}, - #{hospitalId,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{centreId,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) - - insert into t_hospital_robot + + insert into t_recovery_robot id, @@ -122,8 +122,8 @@ userId, - - hospital_id, + + centre_id, operator, @@ -148,8 +148,8 @@ #{userid,jdbcType=BIGINT}, - - #{hospitalId,jdbcType=TINYINT}, + + #{centreId,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, @@ -165,14 +165,14 @@ - + select count(*) from t_recovery_robot - update t_hospital_robot + update t_recovery_robot id = #{record.id,jdbcType=BIGINT}, @@ -183,8 +183,8 @@ userId = #{record.userid,jdbcType=BIGINT}, - - hospital_id = #{record.hospitalId,jdbcType=TINYINT}, + + centre_id = #{record.centreId,jdbcType=TINYINT}, operator = #{record.operator,jdbcType=BIGINT}, @@ -204,11 +204,11 @@ - update t_hospital_robot + update t_recovery_robot set id = #{record.id,jdbcType=BIGINT}, code = #{record.code,jdbcType=VARCHAR}, userId = #{record.userid,jdbcType=BIGINT}, - hospital_id = #{record.hospitalId,jdbcType=TINYINT}, + centre_id = #{record.centreId,jdbcType=TINYINT}, operator = #{record.operator,jdbcType=BIGINT}, created_at = #{record.createdAt,jdbcType=TIMESTAMP}, updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, @@ -217,8 +217,8 @@ - - update t_hospital_robot + + update t_recovery_robot code = #{code,jdbcType=VARCHAR}, @@ -226,8 +226,8 @@ userId = #{userid,jdbcType=BIGINT}, - - hospital_id = #{hospitalId,jdbcType=TINYINT}, + + centre_id = #{centreId,jdbcType=TINYINT}, operator = #{operator,jdbcType=BIGINT}, @@ -244,11 +244,11 @@ where id = #{id,jdbcType=BIGINT} - - update t_hospital_robot + + update t_recovery_robot set code = #{code,jdbcType=VARCHAR}, userId = #{userid,jdbcType=BIGINT}, - hospital_id = #{hospitalId,jdbcType=TINYINT}, + centre_id = #{centreId,jdbcType=TINYINT}, operator = #{operator,jdbcType=BIGINT}, created_at = #{createdAt,jdbcType=TIMESTAMP}, updated_at = #{updatedAt,jdbcType=TIMESTAMP}, diff --git a/recovery/src/main/resources/mapper_raw/RelationMapper.xml b/recovery/src/main/resources/mapper_raw/RelationMapper.xml index 7bdf9baf..40c2bb8e 100644 --- a/recovery/src/main/resources/mapper_raw/RelationMapper.xml +++ b/recovery/src/main/resources/mapper_raw/RelationMapper.xml @@ -12,7 +12,6 @@ - @@ -77,8 +76,8 @@ - id, user_id, name, sex, age, id_card, phone, address, input_time, remark, doctor_id, - operator, create_time, update_time, rec_status + id, user_id, name, sex, age, id_card, phone, address, input_time, remark, operator, + create_time, update_time, rec_status