diff --git a/pom.xml b/pom.xml index 6a98bbc6..d208788b 100644 --- a/pom.xml +++ b/pom.xml @@ -9,17 +9,18 @@ cloudutil util tall + recovery - game - mt - wisdomcar - beneficiation + + + + - health + - tcm + diff --git a/recovery/pom.xml b/recovery/pom.xml new file mode 100644 index 00000000..2d28f8d0 --- /dev/null +++ b/recovery/pom.xml @@ -0,0 +1,71 @@ + + + + ccsenscloud + com.ccsens + 1.0-SNAPSHOT + + 4.0.0 + + recovery + + 1.8 + + + + + + cloudutil + com.ccsens + 1.0-SNAPSHOT + + + + + com.ccsens + util + 1.0-SNAPSHOT + compile + + + + + + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.7 + + ${basedir}/src/main/resources/mbg.xml + true + + + + mysql + mysql-connector-java + 5.1.34 + + + + + org.springframework.boot + spring-boot-maven-plugin + + com.ccsens.recovery.RecoveryApplication + + + + + + repackage + + + + + + + + + diff --git a/recovery/src/main/java/com/ccsens/recovery/RecoveryApplication.java b/recovery/src/main/java/com/ccsens/recovery/RecoveryApplication.java new file mode 100644 index 00000000..6bcf6394 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/RecoveryApplication.java @@ -0,0 +1,28 @@ +package com.ccsens.recovery; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.web.servlet.ServletComponentScan; +import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; +import org.springframework.cloud.openfeign.EnableFeignClients; +import org.springframework.scheduling.annotation.EnableAsync; + + +/** + * @author 逗 + */ +@MapperScan(basePackages = {"com.ccsens.recovery.persist.*"}) +@ServletComponentScan +@EnableAsync + +@EnableCircuitBreaker +@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") +@SpringBootApplication(scanBasePackages = "com.ccsens") +public class RecoveryApplication { + + public static void main(String[] args) { + SpringApplication.run(RecoveryApplication.class, args); + } + +} diff --git a/recovery/src/main/java/com/ccsens/recovery/api/DebugController.java b/recovery/src/main/java/com/ccsens/recovery/api/DebugController.java new file mode 100644 index 00000000..1d8b6828 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/api/DebugController.java @@ -0,0 +1,28 @@ +package com.ccsens.recovery.api; + +import com.ccsens.util.JsonResponse; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.servlet.http.HttpServletRequest; + +@Api(tags = "DEBUG" , description = "DebugController | ") +@RestController +@RequestMapping("/debug") +@Slf4j +public class DebugController { + @ApiOperation(value = "/测试",notes = "") + @ApiImplicitParams({ + }) + @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) + public JsonResponse debug(HttpServletRequest request) throws Exception { + + return JsonResponse.newInstance().ok("测试"); + } + +} diff --git a/recovery/src/main/java/com/ccsens/recovery/api/HospitalController.java b/recovery/src/main/java/com/ccsens/recovery/api/HospitalController.java new file mode 100644 index 00000000..97acfbfa --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/api/HospitalController.java @@ -0,0 +1,43 @@ +package com.ccsens.recovery.api; + +import com.ccsens.cloudutil.annotation.MustLogin; +import com.ccsens.recovery.bean.dto.HospitalDto; +import com.ccsens.recovery.bean.vo.HospitalVo; +import com.ccsens.recovery.service.IHospitalService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Api(tags = "医院相关接口" , description = "") +@RestController +@RequestMapping("/hospital") +@Slf4j +public class HospitalController { + @Resource + private IHospitalService hospitalService; + + @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) { + log.info("查看康复中心所有的智能机器人:{}",params); + List robotInfos = hospitalService.queryRobotByHospital(params.getParam(),params.getUserId()); + log.info("查看康复中心所有的智能机器人成功:{}",robotInfos); + return JsonResponse.newInstance().ok(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 new file mode 100644 index 00000000..c567b9ee --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/api/PatientController.java @@ -0,0 +1,143 @@ +package com.ccsens.recovery.api; + +import com.ccsens.cloudutil.annotation.MustLogin; +import com.ccsens.recovery.bean.dto.HospitalDto; +import com.ccsens.recovery.bean.dto.PatientDto; +import com.ccsens.recovery.bean.vo.PatientVo; +import com.ccsens.recovery.service.IPatientService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Api(tags = "患者相关接口" , description = "") +@RestController +@RequestMapping("/patient") +@Slf4j +public class PatientController { + @Resource + private IPatientService patientService; + + @MustLogin + @ApiOperation(value = "主治医生查看患者列表", notes = "zy:") + @RequestMapping(value = "/doctorId", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryPatientByDoctorId(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("主治医生查看患者列表:{}",params); + List patientList = patientService.queryPatientByDoctorId(params.getParam(),params.getUserId()); + log.info("主治医生查看患者列表成功:{}",patientList); + return JsonResponse.newInstance().ok(patientList); + } + + @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) { + log.info("康复中心查看患者列表:{}",params); + List patientList = patientService.queryPatientByRecovery(params.getParam(),params.getUserId()); + log.info("康复中心查看患者列表成功:{}",patientList); + return JsonResponse.newInstance().ok(patientList); + } + + @MustLogin + @ApiOperation(value = "通过身份证号模糊查询患者信息(当前康复中心下)", notes = "zy:") + @RequestMapping(value = "/vague", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse vaguePatientByIdCard(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看患者的详细信息:{}",params); + List patient = patientService.vaguePatientByIdCard(params.getParam(),params.getUserId()); + log.info("查看患者的详细信息成功:{}",patient); + return JsonResponse.newInstance().ok(patient); + } + + @MustLogin + @ApiOperation(value = "查看患者的详细信息", notes = "zy:") + @RequestMapping(value = "/detail", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse getPatientById(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看患者的详细信息:{}",params); + PatientVo.Patient patient = patientService.getPatientById(params.getParam(),params.getUserId()); + log.info("查看患者的详细信息成功:{}",patient); + 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"}) + public JsonResponse addPatient(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("添加患者:{}",params); + patientService.addPatient(params.getParam(),params.getUserId()); + log.info("添加患者成功"); + return JsonResponse.newInstance().ok(); + } + + @MustLogin + @ApiOperation(value = "启动康复流程(康复师选择患者)", notes = "zy:") + @RequestMapping(value = "/choose", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse choosePatient(@ApiParam @Validated @RequestBody QueryDto params) throws Exception { + log.info("启动康复流程:{}",params); + patientService.choosePatient(params.getParam(),params.getUserId()); + log.info("启动康复流程成功"); + return JsonResponse.newInstance().ok(); + } + + @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) throws Exception { + log.info("开启训练:{}",params); + PatientVo.RecipeRecordId recipeRecordId = patientService.startDrill(params.getParam(),params.getUserId()); + log.info("开启训练成功:{}",recipeRecordId); + return JsonResponse.newInstance().ok(recipeRecordId); + } + + @MustLogin + @ApiOperation(value = "结束训练", notes = "zy:") + @RequestMapping(value = "/end", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse endDrill(@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) throws Exception { + log.info("动作反馈:{}",params); + patientService.actionFeedback(params.getParam(),params.getUserId()); + log.info("动作反馈成功"); + return JsonResponse.newInstance().ok(); + } +} diff --git a/recovery/src/main/java/com/ccsens/recovery/api/RecipeController.java b/recovery/src/main/java/com/ccsens/recovery/api/RecipeController.java new file mode 100644 index 00000000..ae723f8c --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/api/RecipeController.java @@ -0,0 +1,83 @@ +package com.ccsens.recovery.api; + +import com.ccsens.cloudutil.annotation.MustLogin; +import com.ccsens.recovery.bean.dto.PatientDto; +import com.ccsens.recovery.bean.dto.RecipeDto; +import com.ccsens.recovery.bean.vo.RecipeVo; +import com.ccsens.recovery.service.IRecipeService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Api(tags = "处方训练相关" , description = "") +@RestController +@RequestMapping("/recipe") +@Slf4j +public class RecipeController { + @Resource + private IRecipeService recipeService; + + @MustLogin + @ApiOperation(value = "查看所有训练", notes = "zy:") + @RequestMapping(value = "/queryDrill", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryDrill(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看所有训练:{}",params); + List drillList = recipeService.queryDrill(params.getUserId()); + log.info("查看所有训练成功:{}",drillList); + return JsonResponse.newInstance().ok(drillList); + } + + @MustLogin + @ApiOperation(value = "查看训练项目对应的游戏", notes = "zy:") + @RequestMapping(value = "/game", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryGameByDrill(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看训练项目对应的游戏:{}",params); + List gameList = recipeService.queryGameByDrill(params.getParam(),params.getUserId()); + log.info("查看训练项目对应的游戏成功:{}",gameList); + return JsonResponse.newInstance().ok(gameList); + } + + @MustLogin + @ApiOperation(value = "给患者添加处方", notes = "zy:") + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse queryPatientByDoctorId(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("主治医生查看患者列表:{}",params); + recipeService.queryPatientByDoctorId(params.getParam(),params.getUserId()); + log.info("主治医生查看患者列表成功"); + return JsonResponse.newInstance().ok(); + } + + @MustLogin + @ApiOperation(value = "查看患者的处方信息", notes = "zy:查找患者所有的处方信息,按倒叙排列") + @RequestMapping(value = "/queryRecipe", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryRecipeByPatientId(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看患者的处方信息:{}",params); + List patientRecipeList = recipeService.queryRecipeByPatientId(params.getParam(),params.getUserId()); + log.info("查看患者的处方信息成功:{}",patientRecipeList); + return JsonResponse.newInstance().ok(patientRecipeList); + } + + @MustLogin + @ApiOperation(value = "查看患者处方项下的训练记录", notes = "zy:") + @RequestMapping(value = "/queryRecipeRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryRecipeRecord(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看患者处方项下的训练记录:{}",params); + List recipeRecords = recipeService.queryRecipeRecord(params.getParam(),params.getUserId()); + log.info("查看患者处方项下的训练记录成功:{}",recipeRecords); + return JsonResponse.newInstance().ok(recipeRecords); + } +} 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 new file mode 100644 index 00000000..10ce0845 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/dto/HospitalDto.java @@ -0,0 +1,33 @@ +package com.ccsens.recovery.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; + +/** + * @author 逗 + */ +@Data +public class HospitalDto { + + @Data + @ApiModel("医生id") + public static class DoctorId{ + @NotNull(message = "医生id不能为空") + @ApiModelProperty("医生id") + private Long id; + } + + @Data + @ApiModel("康复中心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 new file mode 100644 index 00000000..dd958196 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/dto/PatientDto.java @@ -0,0 +1,124 @@ +package com.ccsens.recovery.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; + +/** + * @author 逗 + */ +@Data +public class PatientDto { + + + @Data + @ApiModel("患者id") + public static class PatientId{ + @NotNull(message = "患者id不能为空") + @ApiModelProperty("患者id") + private Long id; + } + + @Data + @ApiModel("身份证号模糊查询患者信息") + public static class VaguePatient{ + @ApiModelProperty("身份证号") + private String idCard; + } + + @Data + @ApiModel("任务详情id") + public static class TaskDetailId{ + @NotNull(message = "任务详情id") + @ApiModelProperty("任务详情id") + private Long detailId; + } + + @Data + @ApiModel("添加患者信息") + public static class PatientDetail{ + @NotBlank(message = "请输入姓名") + @ApiModelProperty("姓名") + private String name; + @ApiModelProperty("性别 0女 1男") + private byte sex; + @ApiModelProperty("年龄") + private int age; + @NotBlank(message = "请输入身份证号") + @ApiModelProperty("身份证号") + private String idCard; + @NotBlank(message = "请输入联系方式") + @ApiModelProperty("联系方式") + private String phone; + @ApiModelProperty("家庭地址") + private String address; + @NotNull(message = "请选择康复中心") + @ApiModelProperty("康复中心id") + private Long recoveryCentreId; + } + + @Data + @ApiModel("康复医生选择需要训练的患者") + public static class ChoosePatient{ + @NotNull(message = "患者id不能为空") + @ApiModelProperty("患者id") + private Long id; + @NotNull(message = "机器人id不能为空") + @ApiModelProperty("机器人id") + private Long robotId; + } + + @Data + @ApiModel("开启训练") + public static class StartDrill{ + @NotNull(message = "患者id不能为空") + @ApiModelProperty("患者id") + private Long patientId; + @NotNull(message = "任务id不能为空") + @ApiModelProperty("分解任务id") + private Long subTaskId; + @NotNull(message = "处方项id不能为空") + @ApiModelProperty("分解的处方项目id") + private Long recipeProjectId; + @ApiModelProperty("游戏id") + private Long gameId; + @ApiModelProperty("康复中心医生id") + private Long sceneDoctorId; + @ApiModelProperty("是否有远程指导 0否 1是") + private byte remoteGuidance; + @ApiModelProperty("远程指导医生id") + private Long remoteDoctorId; + } + + @Data + @ApiModel("结束训练") + public static class EndDrill{ + @ApiModelProperty("训练记录id") + private Long id; + @ApiModelProperty("训练的分数") + private int score; + } + + @Data + @ApiModel("动作反馈") + public static class ActionFeedback{ + @ApiModelProperty("训练记录id") + private Long recordId; + @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/dto/RecipeDto.java b/recovery/src/main/java/com/ccsens/recovery/bean/dto/RecipeDto.java new file mode 100644 index 00000000..4b33e2d0 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/dto/RecipeDto.java @@ -0,0 +1,65 @@ +package com.ccsens.recovery.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; +import java.util.List; + +/** + * @author 逗 + */ +@Data +public class RecipeDto { + + @Data + @ApiModel("处方项id") + public static class RecipeProjectId{ + @NotNull(message = "处方项id不能为空") + @ApiModelProperty("处方项id") + private Long id; + } + + @Data + @ApiModel("给患者添加处方") + public static class DrillId{ + @NotNull(message = "训练项目id不能为空") + @ApiModelProperty("训练项目id") + private Long id; + } + + @Data + @ApiModel("给患者添加处方") + public static class AddRecipe{ + @NotNull(message = "患者id不能为空") + @ApiModelProperty("患者id") + private Long id; + @NotNull(message = "请指定开始时间") + @ApiModelProperty("开始时间") + private Long startTime; + @NotNull(message = "请指定结束时间") + @ApiModelProperty("结束时间") + private Long endTime; + @ApiModelProperty("训练项目") + private List recipeProjectList; + } + + @Data + @ApiModel("处方项信息") + public static class RecipeProject{ + @NotNull(message = "请训练的项目") + @ApiModelProperty("康复训练的id") + private Long drillId; + @ApiModelProperty("训练频率(默认:每天)") + private String cycle = "每天"; + @ApiModelProperty("每天几次") + private int timesDay; + @ApiModelProperty("每次几组") + private int groupTimes; + @ApiModelProperty("每组几个") + private int severalGroup; + } + + +} diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/message/BaseMessageDto.java b/recovery/src/main/java/com/ccsens/recovery/bean/message/BaseMessageDto.java new file mode 100644 index 00000000..4a1e5983 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/message/BaseMessageDto.java @@ -0,0 +1,66 @@ +package com.ccsens.recovery.bean.message; + +import cn.hutool.core.collection.CollectionUtil; +import com.alibaba.fastjson.JSONObject; +import com.ccsens.util.bean.message.common.InMessage; +import lombok.Data; + +import java.util.ArrayList; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +@Data +public class BaseMessageDto { + @Data + public static class MessageUser { + private Long id; + private Long userId; //本质上是authId //20190507 本质上是userId + private String nickname; + private String avatarUrl; + private boolean hasRead; + public MessageUser(){ + hasRead = false; + } + public MessageUser(Long userId){ + hasRead = false; + this.userId = userId; + } + public MessageUser(Long id,Long userId,String nickname,String avatarUrl){ + this(); + this.id = id; + this.userId = userId; + this.nickname = nickname; + this.avatarUrl = avatarUrl; + } + + public static List userIdToUsers(List userIds) { + List users = new ArrayList<>(); + userIds.forEach(userId ->{ + users.add(new MessageUser(userId)); + }); + return users; + } + } + + private Long time; + private String type; + private String event; + private Long projectId; + private MessageUser sender; + private List receivers; +// private Object data; + + public Set receiversTransTos() { + Set tos = new HashSet<>(); + if (CollectionUtil.isEmpty(receivers)) { + return tos; + } + receivers.forEach(receiver -> { + InMessage.To to = new InMessage.To(receiver.getUserId()); + tos.add(JSONObject.toJSONString(to)); + }); + + return tos; + } +} 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/message/RecoveryWithStartRecipe.java b/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithStartRecipe.java new file mode 100644 index 00000000..1e34236d --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/message/RecoveryWithStartRecipe.java @@ -0,0 +1,34 @@ +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 RecoveryWithStartRecipe extends BaseMessageDto{ + + @lombok.Data + public static class Data{ + private Long projectId; + } + + private Data data; + + public RecoveryWithStartRecipe(){ + setType(Constant.Message.SWITCHOVER_PROJECT); + setEvent(Constant.Message.SWITCHOVER_PROJECT); + setTime(System.currentTimeMillis()); + } + + public RecoveryWithStartRecipe(Long projectId){ + this(); + Data d = new Data(); + d.setProjectId(projectId); + setData(d); + } +} diff --git a/recovery/src/main/java/com/ccsens/recovery/bean/po/Doctor.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Doctor.java new file mode 100644 index 00000000..946a8963 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Doctor.java @@ -0,0 +1,150 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Doctor implements Serializable { + private Long id; + + private Long userId; + + private Long hospitalId; + + private Byte position; + + 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 getHospitalId() { + return hospitalId; + } + + public void setHospitalId(Long hospitalId) { + this.hospitalId = hospitalId; + } + + public Byte getPosition() { + return position; + } + + public void setPosition(Byte position) { + this.position = position; + } + + 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(", hospitalId=").append(hospitalId); + sb.append(", position=").append(position); + 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/DoctorExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/DoctorExample.java new file mode 100644 index 00000000..75b5da4b --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/DoctorExample.java @@ -0,0 +1,941 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DoctorExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DoctorExample() { + 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 andHospitalIdIsNull() { + addCriterion("hospital_id is null"); + return (Criteria) this; + } + + public Criteria andHospitalIdIsNotNull() { + addCriterion("hospital_id is not null"); + return (Criteria) this; + } + + public Criteria andHospitalIdEqualTo(Long value) { + addCriterion("hospital_id =", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdNotEqualTo(Long value) { + addCriterion("hospital_id <>", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdGreaterThan(Long value) { + addCriterion("hospital_id >", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { + addCriterion("hospital_id >=", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdLessThan(Long value) { + addCriterion("hospital_id <", value, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdLessThanOrEqualTo(Long 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(Long value1, Long value2) { + addCriterion("hospital_id between", value1, value2, "hospitalId"); + return (Criteria) this; + } + + public Criteria andHospitalIdNotBetween(Long value1, Long value2) { + addCriterion("hospital_id not between", value1, value2, "hospitalId"); + return (Criteria) this; + } + + public Criteria andPositionIsNull() { + addCriterion("position is null"); + return (Criteria) this; + } + + public Criteria andPositionIsNotNull() { + addCriterion("position is not null"); + return (Criteria) this; + } + + public Criteria andPositionEqualTo(Byte value) { + addCriterion("position =", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotEqualTo(Byte value) { + addCriterion("position <>", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionGreaterThan(Byte value) { + addCriterion("position >", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionGreaterThanOrEqualTo(Byte value) { + addCriterion("position >=", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionLessThan(Byte value) { + addCriterion("position <", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionLessThanOrEqualTo(Byte value) { + addCriterion("position <=", value, "position"); + return (Criteria) this; + } + + public Criteria andPositionIn(List values) { + addCriterion("position in", values, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotIn(List values) { + addCriterion("position not in", values, "position"); + return (Criteria) this; + } + + public Criteria andPositionBetween(Byte value1, Byte value2) { + addCriterion("position between", value1, value2, "position"); + return (Criteria) this; + } + + public Criteria andPositionNotBetween(Byte value1, Byte value2) { + addCriterion("position not between", value1, value2, "position"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria 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/Hospital.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Hospital.java new file mode 100644 index 00000000..10c040f5 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Hospital.java @@ -0,0 +1,106 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Hospital implements Serializable { + private Long id; + + private String code; + + private String name; + + 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 getCode() { + return code; + } + + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + 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(", code=").append(code); + sb.append(", name=").append(name); + 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/HospitalExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalExample.java new file mode 100644 index 00000000..6bf35c23 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/HospitalExample.java @@ -0,0 +1,701 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HospitalExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public HospitalExample() { + 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 andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria 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 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/Patient.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Patient.java new file mode 100644 index 00000000..cfaa3b4b --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Patient.java @@ -0,0 +1,205 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Patient implements Serializable { + private Long id; + + private Long userId; + + private String name; + + private Byte sex; + + private Integer age; + + private String idCard; + + private String phone; + + private String address; + + private Long inputTime; + + private String remark; + + private Long centreId; + + private Long doctorId; + + private Long projectId; + + 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 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 getIdCard() { + return idCard; + } + + public void setIdCard(String idCard) { + this.idCard = idCard == null ? null : idCard.trim(); + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone == null ? null : phone.trim(); + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + public Long getInputTime() { + return inputTime; + } + + public void setInputTime(Long inputTime) { + this.inputTime = inputTime; + } + + public String getRemark() { + return remark; + } + + public void setRemark(String remark) { + this.remark = remark == null ? null : remark.trim(); + } + + public Long getCentreId() { + return centreId; + } + + public void setCentreId(Long centreId) { + this.centreId = centreId; + } + + public Long getDoctorId() { + return doctorId; + } + + public void setDoctorId(Long doctorId) { + this.doctorId = doctorId; + } + + 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 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(", name=").append(name); + sb.append(", sex=").append(sex); + sb.append(", age=").append(age); + sb.append(", idCard=").append(idCard); + sb.append(", phone=").append(phone); + sb.append(", address=").append(address); + sb.append(", inputTime=").append(inputTime); + sb.append(", remark=").append(remark); + sb.append(", centreId=").append(centreId); + sb.append(", doctorId=").append(doctorId); + sb.append(", projectId=").append(projectId); + 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/PatientExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientExample.java new file mode 100644 index 00000000..9589b760 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientExample.java @@ -0,0 +1,1271 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class PatientExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PatientExample() { + 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 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 andIdCardIsNull() { + addCriterion("id_card is null"); + return (Criteria) this; + } + + public Criteria andIdCardIsNotNull() { + addCriterion("id_card is not null"); + return (Criteria) this; + } + + public Criteria andIdCardEqualTo(String value) { + addCriterion("id_card =", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotEqualTo(String value) { + addCriterion("id_card <>", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThan(String value) { + addCriterion("id_card >", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThanOrEqualTo(String value) { + addCriterion("id_card >=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThan(String value) { + addCriterion("id_card <", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThanOrEqualTo(String value) { + addCriterion("id_card <=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLike(String value) { + addCriterion("id_card like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotLike(String value) { + addCriterion("id_card not like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardIn(List values) { + addCriterion("id_card in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotIn(List values) { + addCriterion("id_card not in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardBetween(String value1, String value2) { + addCriterion("id_card between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotBetween(String value1, String value2) { + addCriterion("id_card not between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria 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 andInputTimeIsNull() { + addCriterion("input_time is null"); + return (Criteria) this; + } + + public Criteria andInputTimeIsNotNull() { + addCriterion("input_time is not null"); + return (Criteria) this; + } + + public Criteria andInputTimeEqualTo(Long value) { + addCriterion("input_time =", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeNotEqualTo(Long value) { + addCriterion("input_time <>", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeGreaterThan(Long value) { + addCriterion("input_time >", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeGreaterThanOrEqualTo(Long value) { + addCriterion("input_time >=", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeLessThan(Long value) { + addCriterion("input_time <", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeLessThanOrEqualTo(Long value) { + addCriterion("input_time <=", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeIn(List values) { + addCriterion("input_time in", values, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeNotIn(List values) { + addCriterion("input_time not in", values, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeBetween(Long value1, Long value2) { + addCriterion("input_time between", value1, value2, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeNotBetween(Long value1, Long value2) { + addCriterion("input_time not between", value1, value2, "inputTime"); + 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 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 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 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 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/PatientRelation.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRelation.java new file mode 100644 index 00000000..977e3dac --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRelation.java @@ -0,0 +1,95 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class PatientRelation implements Serializable { + private Long id; + + private Long patientId; + + private Long relationId; + + 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 getRelationId() { + return relationId; + } + + public void setRelationId(Long relationId) { + this.relationId = relationId; + } + + 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(", relationId=").append(relationId); + 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/PatientRelationExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRelationExample.java new file mode 100644 index 00000000..b81a1d81 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/PatientRelationExample.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 PatientRelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public PatientRelationExample() { + 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 andRelationIdIsNull() { + addCriterion("relation_id is null"); + return (Criteria) this; + } + + public Criteria andRelationIdIsNotNull() { + addCriterion("relation_id is not null"); + return (Criteria) this; + } + + public Criteria andRelationIdEqualTo(Long value) { + addCriterion("relation_id =", value, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdNotEqualTo(Long value) { + addCriterion("relation_id <>", value, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdGreaterThan(Long value) { + addCriterion("relation_id >", value, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdGreaterThanOrEqualTo(Long value) { + addCriterion("relation_id >=", value, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdLessThan(Long value) { + addCriterion("relation_id <", value, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdLessThanOrEqualTo(Long value) { + addCriterion("relation_id <=", value, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdIn(List values) { + addCriterion("relation_id in", values, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdNotIn(List values) { + addCriterion("relation_id not in", values, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdBetween(Long value1, Long value2) { + addCriterion("relation_id between", value1, value2, "relationId"); + return (Criteria) this; + } + + public Criteria andRelationIdNotBetween(Long value1, Long value2) { + addCriterion("relation_id not between", value1, value2, "relationId"); + 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/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/RecDrill.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrill.java new file mode 100644 index 00000000..8bacf58f --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrill.java @@ -0,0 +1,106 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecDrill implements Serializable { + private Long id; + + private String name; + + private String video; + + 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 String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getVideo() { + return video; + } + + public void setVideo(String video) { + this.video = video == null ? null : video.trim(); + } + + 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(", name=").append(name); + sb.append(", video=").append(video); + 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/RecDrillExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrillExample.java new file mode 100644 index 00000000..ef43b8cc --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrillExample.java @@ -0,0 +1,711 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecDrillExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecDrillExample() { + 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 andVideoIsNull() { + addCriterion("video is null"); + return (Criteria) this; + } + + public Criteria andVideoIsNotNull() { + addCriterion("video is not null"); + return (Criteria) this; + } + + public Criteria andVideoEqualTo(String value) { + addCriterion("video =", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoNotEqualTo(String value) { + addCriterion("video <>", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoGreaterThan(String value) { + addCriterion("video >", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoGreaterThanOrEqualTo(String value) { + addCriterion("video >=", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoLessThan(String value) { + addCriterion("video <", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoLessThanOrEqualTo(String value) { + addCriterion("video <=", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoLike(String value) { + addCriterion("video like", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoNotLike(String value) { + addCriterion("video not like", value, "video"); + return (Criteria) this; + } + + public Criteria andVideoIn(List values) { + addCriterion("video in", values, "video"); + return (Criteria) this; + } + + public Criteria andVideoNotIn(List values) { + addCriterion("video not in", values, "video"); + return (Criteria) this; + } + + public Criteria andVideoBetween(String value1, String value2) { + addCriterion("video between", value1, value2, "video"); + return (Criteria) this; + } + + public Criteria andVideoNotBetween(String value1, String value2) { + addCriterion("video not between", value1, value2, "video"); + 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/RecDrillGame.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrillGame.java new file mode 100644 index 00000000..3c10bce9 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrillGame.java @@ -0,0 +1,95 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecDrillGame implements Serializable { + private Long id; + + private Long drillId; + + private Long gameId; + + 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 getDrillId() { + return drillId; + } + + public void setDrillId(Long drillId) { + this.drillId = drillId; + } + + public Long getGameId() { + return gameId; + } + + public void setGameId(Long gameId) { + this.gameId = gameId; + } + + 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(", drillId=").append(drillId); + sb.append(", gameId=").append(gameId); + 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/RecDrillGameExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrillGameExample.java new file mode 100644 index 00000000..256c8b95 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecDrillGameExample.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 RecDrillGameExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecDrillGameExample() { + 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 andDrillIdIsNull() { + addCriterion("drill_id is null"); + return (Criteria) this; + } + + public Criteria andDrillIdIsNotNull() { + addCriterion("drill_id is not null"); + return (Criteria) this; + } + + public Criteria andDrillIdEqualTo(Long value) { + addCriterion("drill_id =", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdNotEqualTo(Long value) { + addCriterion("drill_id <>", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdGreaterThan(Long value) { + addCriterion("drill_id >", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdGreaterThanOrEqualTo(Long value) { + addCriterion("drill_id >=", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdLessThan(Long value) { + addCriterion("drill_id <", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdLessThanOrEqualTo(Long value) { + addCriterion("drill_id <=", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdIn(List values) { + addCriterion("drill_id in", values, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdNotIn(List values) { + addCriterion("drill_id not in", values, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdBetween(Long value1, Long value2) { + addCriterion("drill_id between", value1, value2, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdNotBetween(Long value1, Long value2) { + addCriterion("drill_id not between", value1, value2, "drillId"); + return (Criteria) this; + } + + public Criteria andGameIdIsNull() { + addCriterion("game_id is null"); + return (Criteria) this; + } + + public Criteria andGameIdIsNotNull() { + addCriterion("game_id is not null"); + return (Criteria) this; + } + + public Criteria andGameIdEqualTo(Long value) { + addCriterion("game_id =", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdNotEqualTo(Long value) { + addCriterion("game_id <>", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdGreaterThan(Long value) { + addCriterion("game_id >", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdGreaterThanOrEqualTo(Long value) { + addCriterion("game_id >=", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdLessThan(Long value) { + addCriterion("game_id <", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdLessThanOrEqualTo(Long value) { + addCriterion("game_id <=", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdIn(List values) { + addCriterion("game_id in", values, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdNotIn(List values) { + addCriterion("game_id not in", values, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdBetween(Long value1, Long value2) { + addCriterion("game_id between", value1, value2, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdNotBetween(Long value1, Long value2) { + addCriterion("game_id not between", value1, value2, "gameId"); + 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/RecGame.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecGame.java new file mode 100644 index 00000000..d222f2be --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecGame.java @@ -0,0 +1,106 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecGame implements Serializable { + private Long id; + + private String name; + + private String gameUrl; + + 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 String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getGameUrl() { + return gameUrl; + } + + public void setGameUrl(String gameUrl) { + this.gameUrl = gameUrl == null ? null : gameUrl.trim(); + } + + 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(", name=").append(name); + sb.append(", gameUrl=").append(gameUrl); + 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/RecGameExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecGameExample.java new file mode 100644 index 00000000..e4b9cfe9 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecGameExample.java @@ -0,0 +1,711 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecGameExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecGameExample() { + 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 andGameUrlIsNull() { + addCriterion("game_url is null"); + return (Criteria) this; + } + + public Criteria andGameUrlIsNotNull() { + addCriterion("game_url is not null"); + return (Criteria) this; + } + + public Criteria andGameUrlEqualTo(String value) { + addCriterion("game_url =", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlNotEqualTo(String value) { + addCriterion("game_url <>", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlGreaterThan(String value) { + addCriterion("game_url >", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlGreaterThanOrEqualTo(String value) { + addCriterion("game_url >=", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlLessThan(String value) { + addCriterion("game_url <", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlLessThanOrEqualTo(String value) { + addCriterion("game_url <=", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlLike(String value) { + addCriterion("game_url like", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlNotLike(String value) { + addCriterion("game_url not like", value, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlIn(List values) { + addCriterion("game_url in", values, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlNotIn(List values) { + addCriterion("game_url not in", values, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlBetween(String value1, String value2) { + addCriterion("game_url between", value1, value2, "gameUrl"); + return (Criteria) this; + } + + public Criteria andGameUrlNotBetween(String value1, String value2) { + addCriterion("game_url not between", value1, value2, "gameUrl"); + 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/Recipe.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Recipe.java new file mode 100644 index 00000000..4e34bef4 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Recipe.java @@ -0,0 +1,128 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Recipe implements Serializable { + private Long id; + + private Long patientId; + + private Long doctorId; + + private Long startTime; + + private Long endTime; + + private Byte type; + + 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 getDoctorId() { + return doctorId; + } + + public void setDoctorId(Long doctorId) { + this.doctorId = doctorId; + } + + 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 Byte getType() { + return type; + } + + public void setType(Byte type) { + this.type = type; + } + + 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(", doctorId=").append(doctorId); + sb.append(", startTime=").append(startTime); + sb.append(", endTime=").append(endTime); + sb.append(", type=").append(type); + 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/RecipeExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeExample.java new file mode 100644 index 00000000..549221e9 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeExample.java @@ -0,0 +1,801 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecipeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecipeExample() { + 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 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 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 andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(Byte value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(Byte value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(Byte value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(Byte value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(Byte value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeIn(List values) { + addCriterion("type in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotIn(List values) { + addCriterion("type not in", values, "type"); + return (Criteria) this; + } + + public Criteria andTypeBetween(Byte value1, Byte value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(Byte value1, Byte value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria 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/RecipeProject.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProject.java new file mode 100644 index 00000000..3ab9a7b7 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProject.java @@ -0,0 +1,150 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecipeProject implements Serializable { + private Long id; + + private Long recipeId; + + private Long drillId; + + private String cycle; + + private Integer timesDay; + + private Integer groupTimes; + + private Integer severalGroup; + + 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 getRecipeId() { + return recipeId; + } + + public void setRecipeId(Long recipeId) { + this.recipeId = recipeId; + } + + public Long getDrillId() { + return drillId; + } + + public void setDrillId(Long drillId) { + this.drillId = drillId; + } + + public String getCycle() { + return cycle; + } + + public void setCycle(String cycle) { + this.cycle = cycle == null ? null : cycle.trim(); + } + + public Integer getTimesDay() { + return timesDay; + } + + public void setTimesDay(Integer timesDay) { + this.timesDay = timesDay; + } + + public Integer getGroupTimes() { + return groupTimes; + } + + public void setGroupTimes(Integer groupTimes) { + this.groupTimes = groupTimes; + } + + public Integer getSeveralGroup() { + return severalGroup; + } + + public void setSeveralGroup(Integer severalGroup) { + this.severalGroup = severalGroup; + } + + 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(", recipeId=").append(recipeId); + sb.append(", drillId=").append(drillId); + sb.append(", cycle=").append(cycle); + sb.append(", timesDay=").append(timesDay); + sb.append(", groupTimes=").append(groupTimes); + sb.append(", severalGroup=").append(severalGroup); + 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/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/RecipeProjectExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectExample.java new file mode 100644 index 00000000..baa629a5 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeProjectExample.java @@ -0,0 +1,931 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecipeProjectExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecipeProjectExample() { + 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 andRecipeIdIsNull() { + addCriterion("recipe_id is null"); + return (Criteria) this; + } + + public Criteria andRecipeIdIsNotNull() { + addCriterion("recipe_id is not null"); + return (Criteria) this; + } + + public Criteria andRecipeIdEqualTo(Long value) { + addCriterion("recipe_id =", value, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdNotEqualTo(Long value) { + addCriterion("recipe_id <>", value, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdGreaterThan(Long value) { + addCriterion("recipe_id >", value, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdGreaterThanOrEqualTo(Long value) { + addCriterion("recipe_id >=", value, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdLessThan(Long value) { + addCriterion("recipe_id <", value, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdLessThanOrEqualTo(Long value) { + addCriterion("recipe_id <=", value, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdIn(List values) { + addCriterion("recipe_id in", values, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdNotIn(List values) { + addCriterion("recipe_id not in", values, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdBetween(Long value1, Long value2) { + addCriterion("recipe_id between", value1, value2, "recipeId"); + return (Criteria) this; + } + + public Criteria andRecipeIdNotBetween(Long value1, Long value2) { + addCriterion("recipe_id not between", value1, value2, "recipeId"); + return (Criteria) this; + } + + public Criteria andDrillIdIsNull() { + addCriterion("drill_id is null"); + return (Criteria) this; + } + + public Criteria andDrillIdIsNotNull() { + addCriterion("drill_id is not null"); + return (Criteria) this; + } + + public Criteria andDrillIdEqualTo(Long value) { + addCriterion("drill_id =", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdNotEqualTo(Long value) { + addCriterion("drill_id <>", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdGreaterThan(Long value) { + addCriterion("drill_id >", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdGreaterThanOrEqualTo(Long value) { + addCriterion("drill_id >=", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdLessThan(Long value) { + addCriterion("drill_id <", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdLessThanOrEqualTo(Long value) { + addCriterion("drill_id <=", value, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdIn(List values) { + addCriterion("drill_id in", values, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdNotIn(List values) { + addCriterion("drill_id not in", values, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdBetween(Long value1, Long value2) { + addCriterion("drill_id between", value1, value2, "drillId"); + return (Criteria) this; + } + + public Criteria andDrillIdNotBetween(Long value1, Long value2) { + addCriterion("drill_id not between", value1, value2, "drillId"); + return (Criteria) this; + } + + public Criteria andCycleIsNull() { + addCriterion("cycle is null"); + return (Criteria) this; + } + + public Criteria andCycleIsNotNull() { + addCriterion("cycle is not null"); + return (Criteria) this; + } + + public Criteria andCycleEqualTo(String value) { + addCriterion("cycle =", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleNotEqualTo(String value) { + addCriterion("cycle <>", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleGreaterThan(String value) { + addCriterion("cycle >", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleGreaterThanOrEqualTo(String value) { + addCriterion("cycle >=", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleLessThan(String value) { + addCriterion("cycle <", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleLessThanOrEqualTo(String value) { + addCriterion("cycle <=", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleLike(String value) { + addCriterion("cycle like", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleNotLike(String value) { + addCriterion("cycle not like", value, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleIn(List values) { + addCriterion("cycle in", values, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleNotIn(List values) { + addCriterion("cycle not in", values, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleBetween(String value1, String value2) { + addCriterion("cycle between", value1, value2, "cycle"); + return (Criteria) this; + } + + public Criteria andCycleNotBetween(String value1, String value2) { + addCriterion("cycle not between", value1, value2, "cycle"); + return (Criteria) this; + } + + public Criteria andTimesDayIsNull() { + addCriterion("times_day is null"); + return (Criteria) this; + } + + public Criteria andTimesDayIsNotNull() { + addCriterion("times_day is not null"); + return (Criteria) this; + } + + public Criteria andTimesDayEqualTo(Integer value) { + addCriterion("times_day =", value, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayNotEqualTo(Integer value) { + addCriterion("times_day <>", value, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayGreaterThan(Integer value) { + addCriterion("times_day >", value, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayGreaterThanOrEqualTo(Integer value) { + addCriterion("times_day >=", value, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayLessThan(Integer value) { + addCriterion("times_day <", value, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayLessThanOrEqualTo(Integer value) { + addCriterion("times_day <=", value, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayIn(List values) { + addCriterion("times_day in", values, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayNotIn(List values) { + addCriterion("times_day not in", values, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayBetween(Integer value1, Integer value2) { + addCriterion("times_day between", value1, value2, "timesDay"); + return (Criteria) this; + } + + public Criteria andTimesDayNotBetween(Integer value1, Integer value2) { + addCriterion("times_day not between", value1, value2, "timesDay"); + return (Criteria) this; + } + + public Criteria andGroupTimesIsNull() { + addCriterion("group_times is null"); + return (Criteria) this; + } + + public Criteria andGroupTimesIsNotNull() { + addCriterion("group_times is not null"); + return (Criteria) this; + } + + public Criteria andGroupTimesEqualTo(Integer value) { + addCriterion("group_times =", value, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesNotEqualTo(Integer value) { + addCriterion("group_times <>", value, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesGreaterThan(Integer value) { + addCriterion("group_times >", value, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesGreaterThanOrEqualTo(Integer value) { + addCriterion("group_times >=", value, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesLessThan(Integer value) { + addCriterion("group_times <", value, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesLessThanOrEqualTo(Integer value) { + addCriterion("group_times <=", value, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesIn(List values) { + addCriterion("group_times in", values, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesNotIn(List values) { + addCriterion("group_times not in", values, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesBetween(Integer value1, Integer value2) { + addCriterion("group_times between", value1, value2, "groupTimes"); + return (Criteria) this; + } + + public Criteria andGroupTimesNotBetween(Integer value1, Integer value2) { + addCriterion("group_times not between", value1, value2, "groupTimes"); + return (Criteria) this; + } + + public Criteria andSeveralGroupIsNull() { + addCriterion("several_group is null"); + return (Criteria) this; + } + + public Criteria andSeveralGroupIsNotNull() { + addCriterion("several_group is not null"); + return (Criteria) this; + } + + public Criteria andSeveralGroupEqualTo(Integer value) { + addCriterion("several_group =", value, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupNotEqualTo(Integer value) { + addCriterion("several_group <>", value, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupGreaterThan(Integer value) { + addCriterion("several_group >", value, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupGreaterThanOrEqualTo(Integer value) { + addCriterion("several_group >=", value, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupLessThan(Integer value) { + addCriterion("several_group <", value, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupLessThanOrEqualTo(Integer value) { + addCriterion("several_group <=", value, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupIn(List values) { + addCriterion("several_group in", values, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupNotIn(List values) { + addCriterion("several_group not in", values, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupBetween(Integer value1, Integer value2) { + addCriterion("several_group between", value1, value2, "severalGroup"); + return (Criteria) this; + } + + public Criteria andSeveralGroupNotBetween(Integer value1, Integer value2) { + addCriterion("several_group not between", value1, value2, "severalGroup"); + 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/RecipeRecord.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecord.java new file mode 100644 index 00000000..3e99662a --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecord.java @@ -0,0 +1,194 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecipeRecord implements Serializable { + private Long id; + + private Long patientId; + + private Long decomposeId; + + private Long recoveryDoctorId; + + private Long robotId; + + private Long startTime; + + private Long endTime; + + private Long gameId; + + private Byte remoteGuidance; + + private Long remoteDoctorId; + + private Integer score; + + private Long subTaskId; + + 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 getDecomposeId() { + return decomposeId; + } + + public void setDecomposeId(Long decomposeId) { + this.decomposeId = decomposeId; + } + + public Long getRecoveryDoctorId() { + return recoveryDoctorId; + } + + public void setRecoveryDoctorId(Long recoveryDoctorId) { + this.recoveryDoctorId = recoveryDoctorId; + } + + 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 getGameId() { + return gameId; + } + + public void setGameId(Long gameId) { + this.gameId = gameId; + } + + public Byte getRemoteGuidance() { + return remoteGuidance; + } + + public void setRemoteGuidance(Byte remoteGuidance) { + this.remoteGuidance = remoteGuidance; + } + + public Long getRemoteDoctorId() { + return remoteDoctorId; + } + + public void setRemoteDoctorId(Long remoteDoctorId) { + this.remoteDoctorId = remoteDoctorId; + } + + public Integer getScore() { + return score; + } + + public void setScore(Integer score) { + this.score = score; + } + + public Long getSubTaskId() { + return subTaskId; + } + + public void setSubTaskId(Long subTaskId) { + this.subTaskId = subTaskId; + } + + 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(", decomposeId=").append(decomposeId); + sb.append(", recoveryDoctorId=").append(recoveryDoctorId); + sb.append(", robotId=").append(robotId); + sb.append(", startTime=").append(startTime); + sb.append(", endTime=").append(endTime); + sb.append(", gameId=").append(gameId); + sb.append(", remoteGuidance=").append(remoteGuidance); + sb.append(", remoteDoctorId=").append(remoteDoctorId); + sb.append(", score=").append(score); + sb.append(", subTaskId=").append(subTaskId); + 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/RecipeRecordExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecordExample.java new file mode 100644 index 00000000..6b45aaec --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecipeRecordExample.java @@ -0,0 +1,1161 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecipeRecordExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecipeRecordExample() { + 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 andDecomposeIdIsNull() { + addCriterion("decompose_id is null"); + return (Criteria) this; + } + + public Criteria andDecomposeIdIsNotNull() { + addCriterion("decompose_id is not null"); + return (Criteria) this; + } + + public Criteria andDecomposeIdEqualTo(Long value) { + addCriterion("decompose_id =", value, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdNotEqualTo(Long value) { + addCriterion("decompose_id <>", value, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdGreaterThan(Long value) { + addCriterion("decompose_id >", value, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdGreaterThanOrEqualTo(Long value) { + addCriterion("decompose_id >=", value, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdLessThan(Long value) { + addCriterion("decompose_id <", value, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdLessThanOrEqualTo(Long value) { + addCriterion("decompose_id <=", value, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdIn(List values) { + addCriterion("decompose_id in", values, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdNotIn(List values) { + addCriterion("decompose_id not in", values, "decomposeId"); + return (Criteria) this; + } + + public Criteria andDecomposeIdBetween(Long value1, Long value2) { + addCriterion("decompose_id between", value1, value2, "decomposeId"); + return (Criteria) this; + } + + 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; + } + + 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 andGameIdIsNull() { + addCriterion("game_id is null"); + return (Criteria) this; + } + + public Criteria andGameIdIsNotNull() { + addCriterion("game_id is not null"); + return (Criteria) this; + } + + public Criteria andGameIdEqualTo(Long value) { + addCriterion("game_id =", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdNotEqualTo(Long value) { + addCriterion("game_id <>", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdGreaterThan(Long value) { + addCriterion("game_id >", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdGreaterThanOrEqualTo(Long value) { + addCriterion("game_id >=", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdLessThan(Long value) { + addCriterion("game_id <", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdLessThanOrEqualTo(Long value) { + addCriterion("game_id <=", value, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdIn(List values) { + addCriterion("game_id in", values, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdNotIn(List values) { + addCriterion("game_id not in", values, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdBetween(Long value1, Long value2) { + addCriterion("game_id between", value1, value2, "gameId"); + return (Criteria) this; + } + + public Criteria andGameIdNotBetween(Long value1, Long value2) { + addCriterion("game_id not between", value1, value2, "gameId"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceIsNull() { + addCriterion("remote_guidance is null"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceIsNotNull() { + addCriterion("remote_guidance is not null"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceEqualTo(Byte value) { + addCriterion("remote_guidance =", value, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceNotEqualTo(Byte value) { + addCriterion("remote_guidance <>", value, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceGreaterThan(Byte value) { + addCriterion("remote_guidance >", value, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceGreaterThanOrEqualTo(Byte value) { + addCriterion("remote_guidance >=", value, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceLessThan(Byte value) { + addCriterion("remote_guidance <", value, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceLessThanOrEqualTo(Byte value) { + addCriterion("remote_guidance <=", value, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceIn(List values) { + addCriterion("remote_guidance in", values, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceNotIn(List values) { + addCriterion("remote_guidance not in", values, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceBetween(Byte value1, Byte value2) { + addCriterion("remote_guidance between", value1, value2, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteGuidanceNotBetween(Byte value1, Byte value2) { + addCriterion("remote_guidance not between", value1, value2, "remoteGuidance"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdIsNull() { + addCriterion("remote_doctor_id is null"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdIsNotNull() { + addCriterion("remote_doctor_id is not null"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdEqualTo(Long value) { + addCriterion("remote_doctor_id =", value, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdNotEqualTo(Long value) { + addCriterion("remote_doctor_id <>", value, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdGreaterThan(Long value) { + addCriterion("remote_doctor_id >", value, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdGreaterThanOrEqualTo(Long value) { + addCriterion("remote_doctor_id >=", value, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdLessThan(Long value) { + addCriterion("remote_doctor_id <", value, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdLessThanOrEqualTo(Long value) { + addCriterion("remote_doctor_id <=", value, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdIn(List values) { + addCriterion("remote_doctor_id in", values, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdNotIn(List values) { + addCriterion("remote_doctor_id not in", values, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdBetween(Long value1, Long value2) { + addCriterion("remote_doctor_id between", value1, value2, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andRemoteDoctorIdNotBetween(Long value1, Long value2) { + addCriterion("remote_doctor_id not between", value1, value2, "remoteDoctorId"); + return (Criteria) this; + } + + public Criteria andScoreIsNull() { + addCriterion("score is null"); + return (Criteria) this; + } + + public Criteria andScoreIsNotNull() { + addCriterion("score is not null"); + return (Criteria) this; + } + + public Criteria andScoreEqualTo(Integer value) { + addCriterion("score =", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreNotEqualTo(Integer value) { + addCriterion("score <>", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreGreaterThan(Integer value) { + addCriterion("score >", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreGreaterThanOrEqualTo(Integer value) { + addCriterion("score >=", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreLessThan(Integer value) { + addCriterion("score <", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreLessThanOrEqualTo(Integer value) { + addCriterion("score <=", value, "score"); + return (Criteria) this; + } + + public Criteria andScoreIn(List values) { + addCriterion("score in", values, "score"); + return (Criteria) this; + } + + public Criteria andScoreNotIn(List values) { + addCriterion("score not in", values, "score"); + return (Criteria) this; + } + + public Criteria andScoreBetween(Integer value1, Integer value2) { + addCriterion("score between", value1, value2, "score"); + return (Criteria) this; + } + + public Criteria andScoreNotBetween(Integer value1, Integer value2) { + addCriterion("score not between", value1, value2, "score"); + return (Criteria) this; + } + + public Criteria andSubTaskIdIsNull() { + addCriterion("sub_task_id is null"); + return (Criteria) this; + } + + public Criteria andSubTaskIdIsNotNull() { + addCriterion("sub_task_id is not null"); + return (Criteria) this; + } + + public Criteria andSubTaskIdEqualTo(Long value) { + addCriterion("sub_task_id =", value, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdNotEqualTo(Long value) { + addCriterion("sub_task_id <>", value, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdGreaterThan(Long value) { + addCriterion("sub_task_id >", value, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdGreaterThanOrEqualTo(Long value) { + addCriterion("sub_task_id >=", value, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdLessThan(Long value) { + addCriterion("sub_task_id <", value, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdLessThanOrEqualTo(Long value) { + addCriterion("sub_task_id <=", value, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdIn(List values) { + addCriterion("sub_task_id in", values, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdNotIn(List values) { + addCriterion("sub_task_id not in", values, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdBetween(Long value1, Long value2) { + addCriterion("sub_task_id between", value1, value2, "subTaskId"); + return (Criteria) this; + } + + public Criteria andSubTaskIdNotBetween(Long value1, Long value2) { + addCriterion("sub_task_id not between", value1, value2, "subTaskId"); + 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/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/RecoveryRobot.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobot.java new file mode 100644 index 00000000..d5b086ab --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobot.java @@ -0,0 +1,106 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class RecoveryRobot implements Serializable { + private Long id; + + private String code; + + private Long userid; + + private Byte centreId; + + 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 getCode() { + return code; + } + + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + public Long getUserid() { + return userid; + } + + public void setUserid(Long userid) { + this.userid = userid; + } + + public Byte getCentreId() { + return centreId; + } + + public void setCentreId(Byte centreId) { + this.centreId = centreId; + } + + 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(", code=").append(code); + sb.append(", userid=").append(userid); + sb.append(", centreId=").append(centreId); + 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/RecoveryRobotExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobotExample.java new file mode 100644 index 00000000..c784db4b --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RecoveryRobotExample.java @@ -0,0 +1,691 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RecoveryRobotExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RecoveryRobotExample() { + 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 andCodeIsNull() { + addCriterion("code is null"); + return (Criteria) this; + } + + public Criteria andCodeIsNotNull() { + addCriterion("code is not null"); + return (Criteria) this; + } + + public Criteria andCodeEqualTo(String value) { + addCriterion("code =", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotEqualTo(String value) { + addCriterion("code <>", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThan(String value) { + addCriterion("code >", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeGreaterThanOrEqualTo(String value) { + addCriterion("code >=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThan(String value) { + addCriterion("code <", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLessThanOrEqualTo(String value) { + addCriterion("code <=", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeLike(String value) { + addCriterion("code like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotLike(String value) { + addCriterion("code not like", value, "code"); + return (Criteria) this; + } + + public Criteria andCodeIn(List values) { + addCriterion("code in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotIn(List values) { + addCriterion("code not in", values, "code"); + return (Criteria) this; + } + + public Criteria andCodeBetween(String value1, String value2) { + addCriterion("code between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andCodeNotBetween(String value1, String value2) { + addCriterion("code not between", value1, value2, "code"); + return (Criteria) this; + } + + public Criteria andUseridIsNull() { + addCriterion("userId is null"); + return (Criteria) this; + } + + public Criteria andUseridIsNotNull() { + addCriterion("userId is not null"); + return (Criteria) this; + } + + public Criteria andUseridEqualTo(Long value) { + addCriterion("userId =", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridNotEqualTo(Long value) { + addCriterion("userId <>", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridGreaterThan(Long value) { + addCriterion("userId >", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridGreaterThanOrEqualTo(Long value) { + addCriterion("userId >=", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridLessThan(Long value) { + addCriterion("userId <", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridLessThanOrEqualTo(Long value) { + addCriterion("userId <=", value, "userid"); + return (Criteria) this; + } + + public Criteria andUseridIn(List values) { + addCriterion("userId in", values, "userid"); + return (Criteria) this; + } + + public Criteria andUseridNotIn(List values) { + addCriterion("userId not in", values, "userid"); + return (Criteria) this; + } + + public Criteria andUseridBetween(Long value1, Long value2) { + addCriterion("userId between", value1, value2, "userid"); + return (Criteria) this; + } + + public Criteria andUseridNotBetween(Long value1, Long value2) { + addCriterion("userId 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(Byte value) { + addCriterion("centre_id =", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdNotEqualTo(Byte value) { + addCriterion("centre_id <>", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdGreaterThan(Byte value) { + addCriterion("centre_id >", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdGreaterThanOrEqualTo(Byte value) { + addCriterion("centre_id >=", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdLessThan(Byte value) { + addCriterion("centre_id <", value, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdLessThanOrEqualTo(Byte 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(Byte value1, Byte value2) { + addCriterion("centre_id between", value1, value2, "centreId"); + return (Criteria) this; + } + + public Criteria andCentreIdNotBetween(Byte value1, Byte value2) { + addCriterion("centre_id not between", value1, value2, "centreId"); + 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/Relation.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/Relation.java new file mode 100644 index 00000000..4f5063e9 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/Relation.java @@ -0,0 +1,172 @@ +package com.ccsens.recovery.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Relation implements Serializable { + private Long id; + + private Long userId; + + private String name; + + private Byte sex; + + private Integer age; + + private String idCard; + + private String phone; + + private String address; + + private Long inputTime; + + 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 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 getIdCard() { + return idCard; + } + + public void setIdCard(String idCard) { + this.idCard = idCard == null ? null : idCard.trim(); + } + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone == null ? null : phone.trim(); + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + public Long getInputTime() { + return inputTime; + } + + public void setInputTime(Long inputTime) { + this.inputTime = inputTime; + } + + 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(", name=").append(name); + sb.append(", sex=").append(sex); + sb.append(", age=").append(age); + sb.append(", idCard=").append(idCard); + sb.append(", phone=").append(phone); + sb.append(", address=").append(address); + sb.append(", inputTime=").append(inputTime); + 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/RelationExample.java b/recovery/src/main/java/com/ccsens/recovery/bean/po/RelationExample.java new file mode 100644 index 00000000..e0c72781 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/po/RelationExample.java @@ -0,0 +1,1091 @@ +package com.ccsens.recovery.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class RelationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public RelationExample() { + 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 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 andIdCardIsNull() { + addCriterion("id_card is null"); + return (Criteria) this; + } + + public Criteria andIdCardIsNotNull() { + addCriterion("id_card is not null"); + return (Criteria) this; + } + + public Criteria andIdCardEqualTo(String value) { + addCriterion("id_card =", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotEqualTo(String value) { + addCriterion("id_card <>", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThan(String value) { + addCriterion("id_card >", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardGreaterThanOrEqualTo(String value) { + addCriterion("id_card >=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThan(String value) { + addCriterion("id_card <", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLessThanOrEqualTo(String value) { + addCriterion("id_card <=", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardLike(String value) { + addCriterion("id_card like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotLike(String value) { + addCriterion("id_card not like", value, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardIn(List values) { + addCriterion("id_card in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotIn(List values) { + addCriterion("id_card not in", values, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardBetween(String value1, String value2) { + addCriterion("id_card between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andIdCardNotBetween(String value1, String value2) { + addCriterion("id_card not between", value1, value2, "idCard"); + return (Criteria) this; + } + + public Criteria andPhoneIsNull() { + addCriterion("phone is null"); + return (Criteria) this; + } + + public Criteria andPhoneIsNotNull() { + addCriterion("phone is not null"); + return (Criteria) this; + } + + public Criteria andPhoneEqualTo(String value) { + addCriterion("phone =", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotEqualTo(String value) { + addCriterion("phone <>", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThan(String value) { + addCriterion("phone >", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneGreaterThanOrEqualTo(String value) { + addCriterion("phone >=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThan(String value) { + addCriterion("phone <", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLessThanOrEqualTo(String value) { + addCriterion("phone <=", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneLike(String value) { + addCriterion("phone like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotLike(String value) { + addCriterion("phone not like", value, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneIn(List values) { + addCriterion("phone in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotIn(List values) { + addCriterion("phone not in", values, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneBetween(String value1, String value2) { + addCriterion("phone between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria andPhoneNotBetween(String value1, String value2) { + addCriterion("phone not between", value1, value2, "phone"); + return (Criteria) this; + } + + public Criteria 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 andInputTimeIsNull() { + addCriterion("input_time is null"); + return (Criteria) this; + } + + public Criteria andInputTimeIsNotNull() { + addCriterion("input_time is not null"); + return (Criteria) this; + } + + public Criteria andInputTimeEqualTo(Long value) { + addCriterion("input_time =", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeNotEqualTo(Long value) { + addCriterion("input_time <>", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeGreaterThan(Long value) { + addCriterion("input_time >", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeGreaterThanOrEqualTo(Long value) { + addCriterion("input_time >=", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeLessThan(Long value) { + addCriterion("input_time <", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeLessThanOrEqualTo(Long value) { + addCriterion("input_time <=", value, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeIn(List values) { + addCriterion("input_time in", values, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeNotIn(List values) { + addCriterion("input_time not in", values, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeBetween(Long value1, Long value2) { + addCriterion("input_time between", value1, value2, "inputTime"); + return (Criteria) this; + } + + public Criteria andInputTimeNotBetween(Long value1, Long value2) { + addCriterion("input_time not between", value1, value2, "inputTime"); + 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/vo/HospitalVo.java b/recovery/src/main/java/com/ccsens/recovery/bean/vo/HospitalVo.java new file mode 100644 index 00000000..cf338b2f --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/vo/HospitalVo.java @@ -0,0 +1,24 @@ +package com.ccsens.recovery.bean.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + + +/** + * @author 逗 + */ +@Data +public class HospitalVo { + + @Data + @ApiModel("机器人信息") + public static class RobotInfo{ + @ApiModelProperty("机器人id") + private Long id; + @ApiModelProperty("机器人code") + private String code; + } + + +} 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 new file mode 100644 index 00000000..71d77b6a --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/vo/PatientVo.java @@ -0,0 +1,87 @@ +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; + + +/** + * @author 逗 + */ +@Data +public class PatientVo { + + @Data + @ApiModel("患者信息") + public static class Patient{ + @ApiModelProperty("患者id") + private Long id; + @ApiModelProperty("姓名") + private String name; + @ApiModelProperty("性别 0女 1男") + private byte sex; + @ApiModelProperty("年龄") + private int age; + @ApiModelProperty("身份证号") + private String idCard; + @ApiModelProperty("联系方式") + private String phone; + @ApiModelProperty("家庭地址") + private String address; + @ApiModelProperty("康复中心id") + private Long recoveryCentreId; + @ApiModelProperty("康复中心名") + private String recoveryCentreName; + @ApiModelProperty("主治医生id") + private Long doctorId; + @ApiModelProperty("主治医生名称") + private String doctorName; + } + + @Data + + 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 new file mode 100644 index 00000000..bdedd8d9 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/bean/vo/RecipeVo.java @@ -0,0 +1,100 @@ +package com.ccsens.recovery.bean.vo; + +import com.ccsens.recovery.bean.dto.RecipeDto; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotNull; +import java.util.List; + +/** + * @author 逗 + */ +@Data +public class RecipeVo { + + @Data + @ApiModel("训练项目") + public static class Drill{ + @ApiModelProperty("训练id") + private Long id; + @ApiModelProperty("名称") + private Long name; + @ApiModelProperty("训练标准的视频") + private Long video; + } + @Data + @ApiModel("小游戏信息") + public static class Game{ + @ApiModelProperty("游戏id") + private Long id; + @ApiModelProperty("游戏名称") + private String name; + @ApiModelProperty("游戏路径") + private String gameUrl; + } + + @Data + @ApiModel("患者的处方信息") + public static class PatientRecipe{ + @ApiModelProperty("处方id") + private Long id; + @ApiModelProperty("开始时间") + private Long startTime; + @ApiModelProperty("结束时间") + private Long endTime; + @ApiModelProperty("处方类型 0医生开的 1自由训练") + private byte type; + @ApiModelProperty("医生id") + private Long doctorId; + @ApiModelProperty("医生名称") + private String doctorName; + @ApiModelProperty("处方项目列表") + private List recipeProjectList; + } + + @Data + @ApiModel("查找处方项信息列表") + public static class RecipeProject{ + @ApiModelProperty("处方项目id") + private Long recipeProjectId; + @ApiModelProperty("康复训练的id") + private Long drillId; + @ApiModelProperty("训练名") + private String drillName; + @ApiModelProperty("训练频率") + private String cycle; + @ApiModelProperty("每天几次") + private int timesDay; + @ApiModelProperty("每次几组") + private int groupTimes; + @ApiModelProperty("每组几个") + private int severalGroup; + } + + @Data + @ApiModel("患者在处方项下的训练记录") + public static class RecipeRecord{ + @ApiModelProperty("记录id") + private Long id; + @ApiModelProperty("开始时间") + private Long startTime; + @ApiModelProperty("结束时间") + private Long endTime; + @ApiModelProperty("使用的智能机器人id") + private Long robotId; + @ApiModelProperty("康复中心医生id") + private Long sceneDoctorId; + @ApiModelProperty("康复中心医生名") + private Long sceneDoctorName; + @ApiModelProperty("使用的游戏的名称") + private Long gameName; + @ApiModelProperty("是否有远程指导0否 1是") + private Long remoteGuidance; + @ApiModelProperty("远程指导医生id") + private Long remoteDoctorId; + @ApiModelProperty("远程指导医生名") + private Long remoteDoctorName; + } +} diff --git a/recovery/src/main/java/com/ccsens/recovery/config/BeanConfig.java b/recovery/src/main/java/com/ccsens/recovery/config/BeanConfig.java new file mode 100644 index 00000000..ec588cfd --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/config/BeanConfig.java @@ -0,0 +1,31 @@ +package com.ccsens.recovery.config; + +import com.ccsens.recovery.intercept.MybatisInterceptor; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * @description: + * @author: wuHuiJuan + * @create: 2019/12/03 18:01 + */ +@Configuration +public class BeanConfig { +// @Bean +// public static PropertySourcesPlaceholderConfigurer properties(){ +// PropertySourcesPlaceholderConfigurer conf = new PropertySourcesPlaceholderConfigurer(); +// YamlPropertiesFactoryBean yml = new YamlPropertiesFactoryBean(); +// yml.setResources(new ClassPathResource("business.yml")); +// conf.setProperties(yml.getObject()); +// return conf; +// } + + /** + * 注册拦截器 + */ + @Bean + public MybatisInterceptor mybatisInterceptor() { + MybatisInterceptor interceptor = new MybatisInterceptor(); + return interceptor; + } +} diff --git a/recovery/src/main/java/com/ccsens/recovery/config/SpringConfig.java b/recovery/src/main/java/com/ccsens/recovery/config/SpringConfig.java new file mode 100644 index 00000000..1fa10f82 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/config/SpringConfig.java @@ -0,0 +1,168 @@ +package com.ccsens.recovery.config; + + +import cn.hutool.core.lang.Snowflake; +import cn.hutool.core.util.IdUtil; +import com.ccsens.util.config.DruidProps; +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.module.SimpleModule; +import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import org.springframework.http.MediaType; +import org.springframework.http.converter.HttpMessageConverter; +import org.springframework.http.converter.StringHttpMessageConverter; +import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; +import org.springframework.web.servlet.config.annotation.*; + +import javax.annotation.Resource; +import javax.sql.DataSource; +import java.nio.charset.Charset; +import java.util.ArrayList; +import java.util.List; + +@Configuration +public class SpringConfig implements WebMvcConfigurer { + @Resource + private DruidProps druidPropsUtil; + @Value("${spring.snowflake.workerId}") + private String workerId; + @Value("${spring.snowflake.datacenterId}") + private String datacenterId; + + /** + * 配置Converter + * @return + */ + @Bean + public HttpMessageConverter responseStringConverter() { + StringHttpMessageConverter converter = new StringHttpMessageConverter( + Charset.forName("UTF-8")); + return converter; + } + + @Bean + public HttpMessageConverter responseJsonConverter(){ + MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); + List mediaTypeList = new ArrayList<>(); + mediaTypeList.add(MediaType.TEXT_HTML); + mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8); + converter.setSupportedMediaTypes(mediaTypeList); + + //converter.setObjectMapper(); + ObjectMapper objectMapper = new ObjectMapper(); + SimpleModule simpleModule = new SimpleModule(); + simpleModule.addSerializer(Long.class, ToStringSerializer.instance); + simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); + objectMapper.registerModule(simpleModule); + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + converter.setObjectMapper(objectMapper); + + return converter; + } + + @Override + public void configureMessageConverters(List> converters) { + //super.configureMessageConverters(converters); + converters.add(responseStringConverter()); + converters.add(responseJsonConverter()); + } + + @Override + public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { + configurer.favorPathExtension(false); + } + + @Override + public void addCorsMappings(CorsRegistry registry) { + registry.addMapping("/**").allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") +// .allowedMethods("*") // 允许提交请求的方法,*表示全部允许 + .allowedOrigins("*") // #允许向该服务器提交请求的URI,*表示全部允许 + .allowCredentials(true) // 允许cookies跨域 + .allowedHeaders("*") // #允许访问的头信息,*表示全部 + .maxAge(18000L); // 预检请求的缓存时间(秒),即在这个时间段里,对于相同的跨域请求不会再预检了 + + } + + /** + * 配置视图解析器 SpringBoot建议使用Thymeleaf代替jsp,动态页面默认路径:resources/template,静态页面默认路径: resources/static + * @return + */ +// @Bean +// public ViewResolver getViewResolver() { +// InternalResourceViewResolver resolver = new InternalResourceViewResolver(); +// resolver.setPrefix("/WEB-INF/views/"); +// resolver.setSuffix(".jsp"); +// return resolver; +// } +// @Override +// public void configureDefaultServletHandling( +// DefaultServletHandlerConfigurer configurer) { +// configurer.enable(); +// } + + + /** + * 配置静态资源 + */ + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) { + registry.addResourceHandler("swagger-ui.html") + .addResourceLocations("classpath:/META-INF/resources/"); + registry.addResourceHandler("/webjars/**") + .addResourceLocations("classpath:/META-INF/resources/webjars/"); + + registry.addResourceHandler("/uploads/**") + .addResourceLocations("file:///home/cloud/recovery/uploads/"); + //super.addResourceHandlers(registry); + } + + /** + * 配置拦截器 + * @param registry + */ + @Override + public void addInterceptors(InterceptorRegistry registry) { + //addPathPatterns 用于添加拦截规则 + //excludePathPatterns 用于排除拦截 +// registry.addInterceptor(tokenInterceptor()) +// .addPathPatterns("/projects/**") +// .addPathPatterns("/messages/**") +// .addPathPatterns("/users/**") +// .excludePathPatterns("/users/signin") +// .excludePathPatterns("/users/smscode") +// .excludePathPatterns("/users/signup") +// .excludePathPatterns("/users/password") +// .excludePathPatterns("/users/account") +// .excludePathPatterns("/users/token") +// .excludePathPatterns("/users/claims") +// .addPathPatterns("/plugins/**") +// .addPathPatterns("/delivers/**") +// .addPathPatterns("/tasks/**") +// .addPathPatterns("/members/**") +// .addPathPatterns("/templates/**") +// .addPathPatterns("/hardware/**"); + //super.addInterceptors(registry); + } +// +// @Bean +// public TokenInterceptor tokenInterceptor(){ +// return new TokenInterceptor(); +// } + + /** + * 配置数据源(单数据源) + */ + @Bean + public DataSource dataSource(){ + return druidPropsUtil.createDruidDataSource(); + } + + @Bean + public Snowflake snowflake(){ +// return new Snowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); + return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); + } +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/config/SwaggerConfigure.java b/recovery/src/main/java/com/ccsens/recovery/config/SwaggerConfigure.java new file mode 100644 index 00000000..71c5012c --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/config/SwaggerConfigure.java @@ -0,0 +1,56 @@ +package com.ccsens.recovery.config; + +import com.ccsens.util.WebConstant; +import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import springfox.documentation.builders.ParameterBuilder; +import springfox.documentation.builders.RequestHandlerSelectors; +import springfox.documentation.schema.ModelRef; +import springfox.documentation.service.ApiInfo; +import springfox.documentation.service.Parameter; +import springfox.documentation.spi.DocumentationType; +import springfox.documentation.spring.web.plugins.Docket; +import springfox.documentation.swagger2.annotations.EnableSwagger2; + +import java.util.ArrayList; +import java.util.List; + +@Configuration +@EnableSwagger2 +@ConditionalOnExpression("${swagger.enable}") +//public class SwaggerConfigure extends WebMvcConfigurationSupport { +public class SwaggerConfigure /*implements WebMvcConfigurer*/ { + @Bean + public Docket customDocket() { + // + return new Docket(DocumentationType.SWAGGER_2) + .apiInfo(apiInfo()) + .select() + .apis(RequestHandlerSelectors + .basePackage("com.ccsens.recovery.api")) + .build() + .globalOperationParameters(setHeaderToken()); + } + + private ApiInfo apiInfo() { + return new ApiInfo("Swagger Tall-game",//大标题 title + "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题 + "1.0.0",//版本 + "http://swagger.io/terms/",//termsOfServiceUrl + "zhangsan",//作者 + "Apache 2.0",//链接显示文字 + "http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接 + ); + } + + private List setHeaderToken() { + ParameterBuilder tokenPar = new ParameterBuilder(); + List pars = new ArrayList<>(); + tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token") + .defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX) + .modelRef(new ModelRef("string")).parameterType("header").required(false).build(); + pars.add(tokenPar.build()); + return pars; + } +} diff --git a/recovery/src/main/java/com/ccsens/recovery/intercept/MybatisInterceptor.java b/recovery/src/main/java/com/ccsens/recovery/intercept/MybatisInterceptor.java new file mode 100644 index 00000000..be586c16 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/intercept/MybatisInterceptor.java @@ -0,0 +1,159 @@ +package com.ccsens.recovery.intercept; + +import cn.hutool.core.collection.CollectionUtil; +import com.ccsens.util.WebConstant; +import org.apache.ibatis.executor.Executor; +import org.apache.ibatis.mapping.BoundSql; +import org.apache.ibatis.mapping.MappedStatement; +import org.apache.ibatis.mapping.ResultMap; +import org.apache.ibatis.mapping.SqlSource; +import org.apache.ibatis.plugin.*; +import org.apache.ibatis.reflection.DefaultReflectorFactory; +import org.apache.ibatis.reflection.MetaObject; +import org.apache.ibatis.reflection.factory.DefaultObjectFactory; +import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory; +import org.apache.ibatis.session.ResultHandler; +import org.apache.ibatis.session.RowBounds; + +import java.lang.reflect.InvocationTargetException; +import java.lang.reflect.Method; +import java.util.List; +import java.util.Map; +import java.util.Properties; + +/** + * @description: + * @author: wuHuiJuan + * @create: 2019/12/11 10:58 + */ +@Intercepts({ + @Signature( + type = Executor.class, + method = "query", + args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class} + ) +}) +public class MybatisInterceptor implements Interceptor { + @Override + public Object intercept(Invocation invocation) throws Throwable { + + + String selectByExample = "selectByExample"; + String countByExample = "countByExample"; + String countByExample2 = "selectByExample_COUNT"; + String selectByPrimaryKey = "selectByPrimaryKey"; + + Object[] args = invocation.getArgs(); + MappedStatement statement = (MappedStatement) args[0]; + if (statement.getId().endsWith(selectByExample) + || statement.getId().endsWith(countByExample) + || statement.getId().endsWith(countByExample2)) { + //XXXExample + Object example = args[1]; + + addCondition(statement, example); + + + + + } else if (statement.getId().endsWith(selectByPrimaryKey)) { + BoundSql boundSql = statement.getBoundSql(args[1]); + String sql = boundSql.getSql() + " and rec_status = 0"; + MappedStatement newStatement = newMappedStatement(statement, new BoundSqlSqlSource(boundSql)); + MetaObject msObject = MetaObject.forObject(newStatement, new DefaultObjectFactory(), new DefaultObjectWrapperFactory(),new DefaultReflectorFactory()); + msObject.setValue("sqlSource.boundSql.sql", sql); + args[0] = newStatement; + } + + return invocation.proceed(); + } + + private void addCondition(MappedStatement statement, Object example) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException { + if (example instanceof Map) { + example = ((Map) example).get("_ORIGINAL_PARAMETER_OBJECT"); + } + + + Method method = example.getClass().getMethod("getOredCriteria", null); + //获取到条件数组,第一个是Criteria + List list = (List) method.invoke(example); + if (CollectionUtil.isEmpty(list)) { + Class clazz = ((ResultMap) statement.getResultMaps().get(0)).getType(); + String exampleName = clazz.getName() + "Example"; + Object paramExample = Class.forName(exampleName).newInstance(); + Method createCriteria = paramExample.getClass().getMethod("createCriteria"); + Object criteria = createCriteria.invoke(paramExample); + Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); + andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); + list.add(criteria); + } else { + Object criteria = list.get(0); + Method getCriteria = criteria.getClass().getMethod("getCriteria"); + List params = (List) getCriteria.invoke(criteria); + boolean hasDel = false; + for (Object param : params) { + Method getCondition = param.getClass().getMethod("getCondition"); + Object condition = getCondition.invoke(param); + if ("rec_status =".equals(condition)) { + hasDel = true; + } + } + if (!hasDel) { + Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); + andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); + } + + } + + } + + @Override + public Object plugin(Object target) { + return Plugin.wrap(target, this); + } + + @Override + public void setProperties(Properties properties) { + + } + + private MappedStatement newMappedStatement(MappedStatement ms, SqlSource newSqlSource) { + MappedStatement.Builder builder = + new MappedStatement.Builder(ms.getConfiguration(), ms.getId(), newSqlSource, ms.getSqlCommandType()); + builder.resource(ms.getResource()); + builder.fetchSize(ms.getFetchSize()); + builder.statementType(ms.getStatementType()); + builder.keyGenerator(ms.getKeyGenerator()); + if (ms.getKeyProperties() != null && ms.getKeyProperties().length != 0) { + StringBuilder keyProperties = new StringBuilder(); + for (String keyProperty : ms.getKeyProperties()) { + keyProperties.append(keyProperty).append(","); + } + keyProperties.delete(keyProperties.length() - 1, keyProperties.length()); + builder.keyProperty(keyProperties.toString()); + } + builder.timeout(ms.getTimeout()); + builder.parameterMap(ms.getParameterMap()); + builder.resultMaps(ms.getResultMaps()); + builder.resultSetType(ms.getResultSetType()); + builder.cache(ms.getCache()); + builder.flushCacheRequired(ms.isFlushCacheRequired()); + builder.useCache(ms.isUseCache()); + + return builder.build(); + } + + + // 定义一个内部辅助类,作用是包装sq + class BoundSqlSqlSource implements SqlSource { + private BoundSql boundSql; + public BoundSqlSqlSource(BoundSql boundSql) { + this.boundSql = boundSql; + } + @Override + public BoundSql getBoundSql(Object parameterObject) { + return boundSql; + } + } + +} 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 new file mode 100644 index 00000000..ce2903f3 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/dao/PatientDao.java @@ -0,0 +1,41 @@ +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; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * @author 逗 + */ +@Repository +public interface PatientDao extends PatientMapper { + List queryPatientByDoctorId(@Param("doctorId") Long doctorId); + + 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); + + /** + * 通过身份证号模糊查询患者信息 + * @param idCard 身份证号 + * @param centreId 康复中心id + * @return 患者信息 + */ + List vaguePatientByIdCard(@Param("idCard")String idCard, @Param("centreId")Long centreId); +} 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/DoctorMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/DoctorMapper.java new file mode 100644 index 00000000..1cb70185 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/DoctorMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.Doctor; +import com.ccsens.recovery.bean.po.DoctorExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DoctorMapper { + long countByExample(DoctorExample example); + + int deleteByExample(DoctorExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Doctor record); + + int insertSelective(Doctor record); + + List selectByExample(DoctorExample example); + + Doctor selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Doctor record, @Param("example") DoctorExample example); + + int updateByExample(@Param("record") Doctor record, @Param("example") DoctorExample example); + + int updateByPrimaryKeySelective(Doctor record); + + int updateByPrimaryKey(Doctor record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/HospitalMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/HospitalMapper.java new file mode 100644 index 00000000..e1562a7a --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/HospitalMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.Hospital; +import com.ccsens.recovery.bean.po.HospitalExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface HospitalMapper { + long countByExample(HospitalExample example); + + int deleteByExample(HospitalExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Hospital record); + + int insertSelective(Hospital record); + + List selectByExample(HospitalExample example); + + Hospital selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Hospital record, @Param("example") HospitalExample example); + + int updateByExample(@Param("record") Hospital record, @Param("example") HospitalExample example); + + int updateByPrimaryKeySelective(Hospital record); + + int updateByPrimaryKey(Hospital record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientMapper.java new file mode 100644 index 00000000..08f68027 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.Patient; +import com.ccsens.recovery.bean.po.PatientExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PatientMapper { + long countByExample(PatientExample example); + + int deleteByExample(PatientExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Patient record); + + int insertSelective(Patient record); + + List selectByExample(PatientExample example); + + Patient selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Patient record, @Param("example") PatientExample example); + + int updateByExample(@Param("record") Patient record, @Param("example") PatientExample example); + + int updateByPrimaryKeySelective(Patient record); + + int updateByPrimaryKey(Patient record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientRelationMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientRelationMapper.java new file mode 100644 index 00000000..64636002 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/PatientRelationMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.PatientRelation; +import com.ccsens.recovery.bean.po.PatientRelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface PatientRelationMapper { + long countByExample(PatientRelationExample example); + + int deleteByExample(PatientRelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(PatientRelation record); + + int insertSelective(PatientRelation record); + + List selectByExample(PatientRelationExample example); + + PatientRelation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") PatientRelation record, @Param("example") PatientRelationExample example); + + int updateByExample(@Param("record") PatientRelation record, @Param("example") PatientRelationExample example); + + int updateByPrimaryKeySelective(PatientRelation record); + + int updateByPrimaryKey(PatientRelation 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/RecDrillGameMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecDrillGameMapper.java new file mode 100644 index 00000000..d91613ab --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecDrillGameMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecDrillGame; +import com.ccsens.recovery.bean.po.RecDrillGameExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecDrillGameMapper { + long countByExample(RecDrillGameExample example); + + int deleteByExample(RecDrillGameExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecDrillGame record); + + int insertSelective(RecDrillGame record); + + List selectByExample(RecDrillGameExample example); + + RecDrillGame selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecDrillGame record, @Param("example") RecDrillGameExample example); + + int updateByExample(@Param("record") RecDrillGame record, @Param("example") RecDrillGameExample example); + + int updateByPrimaryKeySelective(RecDrillGame record); + + int updateByPrimaryKey(RecDrillGame record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecDrillMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecDrillMapper.java new file mode 100644 index 00000000..d7961396 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecDrillMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecDrill; +import com.ccsens.recovery.bean.po.RecDrillExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecDrillMapper { + long countByExample(RecDrillExample example); + + int deleteByExample(RecDrillExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecDrill record); + + int insertSelective(RecDrill record); + + List selectByExample(RecDrillExample example); + + RecDrill selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecDrill record, @Param("example") RecDrillExample example); + + int updateByExample(@Param("record") RecDrill record, @Param("example") RecDrillExample example); + + int updateByPrimaryKeySelective(RecDrill record); + + int updateByPrimaryKey(RecDrill record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecGameMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecGameMapper.java new file mode 100644 index 00000000..0ffd3641 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecGameMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecGame; +import com.ccsens.recovery.bean.po.RecGameExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecGameMapper { + long countByExample(RecGameExample example); + + int deleteByExample(RecGameExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecGame record); + + int insertSelective(RecGame record); + + List selectByExample(RecGameExample example); + + RecGame selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecGame record, @Param("example") RecGameExample example); + + int updateByExample(@Param("record") RecGame record, @Param("example") RecGameExample example); + + int updateByPrimaryKeySelective(RecGame record); + + int updateByPrimaryKey(RecGame record); +} \ No newline at end of file diff --git a/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeMapper.java new file mode 100644 index 00000000..db71ca1a --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.Recipe; +import com.ccsens.recovery.bean.po.RecipeExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecipeMapper { + long countByExample(RecipeExample example); + + int deleteByExample(RecipeExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Recipe record); + + int insertSelective(Recipe record); + + List selectByExample(RecipeExample example); + + Recipe selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Recipe record, @Param("example") RecipeExample example); + + int updateByExample(@Param("record") Recipe record, @Param("example") RecipeExample example); + + int updateByPrimaryKeySelective(Recipe record); + + int updateByPrimaryKey(Recipe 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/RecipeProjectMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeProjectMapper.java new file mode 100644 index 00000000..d2fdc267 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RecipeProjectMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.RecipeProject; +import com.ccsens.recovery.bean.po.RecipeProjectExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RecipeProjectMapper { + long countByExample(RecipeProjectExample example); + + int deleteByExample(RecipeProjectExample example); + + int deleteByPrimaryKey(Long id); + + int insert(RecipeProject record); + + int insertSelective(RecipeProject record); + + List selectByExample(RecipeProjectExample example); + + RecipeProject selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") RecipeProject record, @Param("example") RecipeProjectExample example); + + int updateByExample(@Param("record") RecipeProject record, @Param("example") RecipeProjectExample example); + + int updateByPrimaryKeySelective(RecipeProject record); + + int updateByPrimaryKey(RecipeProject 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/persist/mapper/RelationMapper.java b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RelationMapper.java new file mode 100644 index 00000000..3b9b0d40 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/persist/mapper/RelationMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.recovery.persist.mapper; + +import com.ccsens.recovery.bean.po.Relation; +import com.ccsens.recovery.bean.po.RelationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface RelationMapper { + long countByExample(RelationExample example); + + int deleteByExample(RelationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Relation record); + + int insertSelective(Relation record); + + List selectByExample(RelationExample example); + + Relation selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Relation record, @Param("example") RelationExample example); + + int updateByExample(@Param("record") Relation record, @Param("example") RelationExample example); + + int updateByPrimaryKeySelective(Relation record); + + int updateByPrimaryKey(Relation 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 new file mode 100644 index 00000000..96ef64ad --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/service/HospitalService.java @@ -0,0 +1,23 @@ +package com.ccsens.recovery.service; + +import com.ccsens.recovery.bean.dto.HospitalDto; +import com.ccsens.recovery.bean.vo.HospitalVo; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import java.util.List; + +/** + * @author 逗 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class HospitalService implements IHospitalService{ + @Override + 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 new file mode 100644 index 00000000..9b12d3b3 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/service/IHospitalService.java @@ -0,0 +1,19 @@ +package com.ccsens.recovery.service; + +import com.ccsens.recovery.bean.dto.HospitalDto; +import com.ccsens.recovery.bean.vo.HospitalVo; + +import java.util.List; + +/** + * @author 逗 + */ +public interface IHospitalService { + /** + * 查看康复中心所有的机器人 + * @param param 康复中心id + * @param userId userId + * @return 返回机器人信息 + */ + 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 new file mode 100644 index 00000000..10d01f94 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/service/IPatientService.java @@ -0,0 +1,95 @@ +package com.ccsens.recovery.service; + +import com.ccsens.recovery.bean.dto.HospitalDto; +import com.ccsens.recovery.bean.dto.PatientDto; +import com.ccsens.recovery.bean.vo.PatientVo; +import com.fasterxml.jackson.core.JsonProcessingException; + +import java.util.List; + +/** + * @author 逗 + */ +public interface IPatientService { + /** + * 根据医生id查找患者列表 + * @param param 医生id + * @param userId userId + * @return 患者列表 + */ + List queryPatientByDoctorId(HospitalDto.DoctorId param, Long userId); + /** + * 康复中心查找患者列表 + * @param param 康复中心id + * @param userId userId + * @return 患者列表 + */ + List queryPatientByRecovery(HospitalDto.RecoveryCentreId param, Long userId); + + /** + * 根据id查看患者详细信息 + * @param param 患者id + * @param userId userId + * @return 返回患者详情 + */ + PatientVo.Patient getPatientById(PatientDto.PatientId param, Long userId); + + /** + * 添加患者信息 + * @param param 患者详细信息 + * @param userId userId + */ + void addPatient(PatientDto.PatientDetail param, Long userId); + + /** + * 康复医生选择需要作训练的患者 + * @param param 患者id和机器人id + * @param userId userId + */ + void choosePatient(PatientDto.ChoosePatient param, Long userId) throws Exception; + + /** + * 开启训练 + * @param param 训练的信息 + * @param userId userID + * @return 返回训练记录的id + */ + PatientVo.RecipeRecordId startDrill(PatientDto.StartDrill param, Long userId) throws Exception; + + /** + * 结束训练 + * @param param 训练记录id + * @param userId userId + */ + void endDrill(PatientDto.EndDrill param, Long userId); + + /** + * 动作反馈 + * @param param 记录id和结果 + * @param userId userId + */ + void actionFeedback(PatientDto.ActionFeedback param, Long userId) throws 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; + + /** + * 通过身份证号模糊查询康复中心的患者信息 + * @param param 身份证号 + * @param userId 康复医生的userId + * @return 返回患者列表 + */ + List vaguePatientByIdCard(PatientDto.VaguePatient param, Long userId); +} diff --git a/recovery/src/main/java/com/ccsens/recovery/service/IRecipeService.java b/recovery/src/main/java/com/ccsens/recovery/service/IRecipeService.java new file mode 100644 index 00000000..fd194ca9 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/service/IRecipeService.java @@ -0,0 +1,50 @@ +package com.ccsens.recovery.service; + +import com.ccsens.recovery.bean.dto.PatientDto; +import com.ccsens.recovery.bean.dto.RecipeDto; +import com.ccsens.recovery.bean.vo.RecipeVo; + +import java.util.List; + +/** + * @author 逗 + */ +public interface IRecipeService { + /** + * 给患者添加处方 + * @param param 处方信息 + * @param userId userId + */ + void queryPatientByDoctorId(RecipeDto.AddRecipe param, Long userId); + + /** + * 查找所有训练的项目 + * @param userId userId + * @return 所有训练项目 + */ + List queryDrill(Long userId); + + /** + * 查看患者的处方信息 + * @param param 患者id + * @param userId userId + * @return 患者的处方信息 + */ + List queryRecipeByPatientId(PatientDto.PatientId param, Long userId); + + /** + * 查找训练项目关联的游戏信息 + * @param param 训练项目id + * @param userId userId + * @return 返回游戏信息 + */ + List queryGameByDrill(RecipeDto.DrillId param, Long userId); + + /** + * 查看患者在处方项下的训练记录 + * @param param 处方项id + * @param userId userId + * @return 返回训练记录,倒叙 + */ + List queryRecipeRecord(RecipeDto.RecipeProjectId param, Long userId); +} diff --git a/recovery/src/main/java/com/ccsens/recovery/service/PatientService.java b/recovery/src/main/java/com/ccsens/recovery/service/PatientService.java new file mode 100644 index 00000000..5ef9d019 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/service/PatientService.java @@ -0,0 +1,284 @@ +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.*; +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.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; +import com.ccsens.util.bean.message.common.MessageRule; +import com.ccsens.util.config.RabbitMQConfig; +import com.fasterxml.jackson.core.JsonProcessingException; +import lombok.extern.slf4j.Slf4j; +import org.springframework.amqp.core.AmqpTemplate; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * @author 逗 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class PatientService implements IPatientService{ + @Resource + private PatientDao patientDao; + @Resource + private RecoveryRobotMapper recoveryRobotMapper; + @Resource + private AmqpTemplate rabbitTemplate; + @Resource + private Snowflake snowflake; + @Resource + 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) { + //查找患者表 + return patientDao.queryPatientByDoctorId(param.getId()); + } + + @Override + 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 + public PatientVo.Patient getPatientById(PatientDto.PatientId param, Long userId) { + return patientDao.getPatientById(param.getId()); + } + + @Override + public void addPatient(PatientDto.PatientDetail param, Long userId) { + + } + + @Override + public void choosePatient(PatientDto.ChoosePatient param, Long userId) throws Exception { + //查找患者 + Patient patient = patientDao.selectByPrimaryKey(param.getId()); + if(ObjectUtil.isNull(patient)){ + return; + } + //查找机器人 + 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()); + //生成消息 + RecoveryWithStartRecipe recoveryWithStartRecipe = new RecoveryWithStartRecipe(patient.getProjectId()); + //封装成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(recoveryWithStartRecipe)); + inMessage.setRule(messageRule); + log.info("开启康复流程消息:{}",inMessage); + rabbitTemplate.convertAndSend(RabbitMQConfig.MESSAGE_QUEUE_NAME, + JacksonUtil.beanToJson(inMessage)); + } + + @Override + public PatientVo.RecipeRecordId startDrill(PatientDto.StartDrill param, Long userId) throws Exception { + //存储一条训练记录 + RecipeRecord recRecord = new RecipeRecord(); + recRecord.setId(snowflake.nextId()); + recRecord.setStartTime(System.currentTimeMillis()); + recRecord.setDecomposeId(param.getRecipeProjectId()); + recRecord.setRecoveryDoctorId(param.getSceneDoctorId()); + recRecord.setGameId(param.getGameId()); + recRecord.setRemoteGuidance(param.getRemoteGuidance()); + recRecord.setRemoteDoctorId(param.getRemoteDoctorId()); + 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)); + + //返回 + 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) 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)); + } + + @Override + public List vaguePatientByIdCard(PatientDto.VaguePatient param, Long userId) { + Long centreId = null; + //如果康复中心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.vaguePatientByIdCard(param.getIdCard(),centreId); + } +} diff --git a/recovery/src/main/java/com/ccsens/recovery/service/RecipeService.java b/recovery/src/main/java/com/ccsens/recovery/service/RecipeService.java new file mode 100644 index 00000000..02150363 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/service/RecipeService.java @@ -0,0 +1,48 @@ +package com.ccsens.recovery.service; + +import com.ccsens.recovery.bean.dto.PatientDto; +import com.ccsens.recovery.bean.dto.RecipeDto; +import com.ccsens.recovery.bean.vo.RecipeVo; +import com.ccsens.recovery.persist.dao.PatientDao; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.List; +/** + * @author 逗 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class RecipeService implements IRecipeService{ + @Resource + private PatientDao patientDao; + + @Override + public void queryPatientByDoctorId(RecipeDto.AddRecipe param, Long userId) { + + } + + @Override + public List queryDrill(Long userId) { + return null; + } + + @Override + public List queryRecipeByPatientId(PatientDto.PatientId param, Long userId) { + return patientDao.queryRecipeByPatientId(param.getId()); + } + + @Override + public List queryGameByDrill(RecipeDto.DrillId param, Long userId) { + return null; + } + + @Override + public List queryRecipeRecord(RecipeDto.RecipeProjectId param, Long userId) { + return null; + } +} diff --git a/recovery/src/main/java/com/ccsens/recovery/util/Constant.java b/recovery/src/main/java/com/ccsens/recovery/util/Constant.java new file mode 100644 index 00000000..6a85f9c6 --- /dev/null +++ b/recovery/src/main/java/com/ccsens/recovery/util/Constant.java @@ -0,0 +1,18 @@ +package com.ccsens.recovery.util; + + +/** + * @author 逗 + */ +public class Constant { + + /**消息*/ + public static final class Message { + /**切换项目*/ + public static final String SWITCHOVER_PROJECT = "switchoverProject"; + /**开始训练*/ + public static final String START_DRILL = "startDrill"; + /**动作反馈*/ + public static final String FEEDBACK = "feedback"; + } +} diff --git a/recovery/src/main/resources/application-common.yml b/recovery/src/main/resources/application-common.yml new file mode 100644 index 00000000..cc810567 --- /dev/null +++ b/recovery/src/main/resources/application-common.yml @@ -0,0 +1,28 @@ +logging: + level: + com: + favorites: DEBUG + org: + hibernate: ERROR + springframework: + web: DEBUG +mybatis: + config-location: classpath:mybatis/mybatis-config.xml + mapper-locations: classpath*:mapper_*/*.xml + type-aliases-package: com.ccsens.recovery.bean +server: + tomcat: + uri-encoding: UTF-8 +spring: + http: + encoding: + charset: UTF-8 + enabled: true + force: true + log-request-details: true + servlet: + multipart: + max-file-size: 10MB + max-request-size: 100MB + + diff --git a/recovery/src/main/resources/application-dev.yml b/recovery/src/main/resources/application-dev.yml new file mode 100644 index 00000000..0e06960b --- /dev/null +++ b/recovery/src/main/resources/application-dev.yml @@ -0,0 +1,39 @@ +server: + port: 7190 + servlet: + context-path: +spring: + snowflake: + datacenterId: 1 + workerId: 1 + application: + name: recovery + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: test.tall.wiki +# host: 127.0.0.1 + password: 111111 + port: 5672 + username: admin + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 + password: '' + port: 6379 + timeout: 1000ms +swagger: + enable: true + +gatewayUrl: https://test.tall.wiki/gateway/ + +file: + path: /home/cloud/recovery/uploads/ + domain: https://test.tall.wiki/gateway/recovery/ + imgDomain: https://test.tall.wiki/gateway/recovery/uploads/ diff --git a/recovery/src/main/resources/application-prod.yml b/recovery/src/main/resources/application-prod.yml new file mode 100644 index 00000000..0c663924 --- /dev/null +++ b/recovery/src/main/resources/application-prod.yml @@ -0,0 +1,41 @@ +server: + port: 7190 + servlet: + context-path: +spring: + snowflake: + datacenterId: 1 + workerId: 1 + application: + name: recovery + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: 127.0.0.1 + password: 111111 + port: 5672 + username: admin + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 +# password: '' + password: 'areowqr!@43ef' + port: 6379 + timeout: 1000ms +swagger: + enable: false +eureka: + instance: + ip-address: 121.36.3.207 + +gatewayUrl: https://www.tall.wiki/gateway/ +file: + path: /home/cloud/recovery/uploads/ + domain: https://www.tall.wiki/gateway/recovery/ + imgDomain: https://www.tall.wiki/gateway/recovery/uploads \ No newline at end of file diff --git a/recovery/src/main/resources/application-test.yml b/recovery/src/main/resources/application-test.yml new file mode 100644 index 00000000..216f0810 --- /dev/null +++ b/recovery/src/main/resources/application-test.yml @@ -0,0 +1,40 @@ +server: + port: 7190 + servlet: + context-path: +spring: + snowflake: + datacenterId: 1 + workerId: 1 + application: + name: recovery + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: 127.0.0.1 + password: guest + port: 5672 + username: guest + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 + password: '' + port: 6379 + timeout: 1000ms +swagger: + enable: true +eureka: + instance: + ip-address: 127.0.0.1 + +gatewayUrl: https://test.tall.wiki/gateway/ +file: + path: /home/cloud/recovery/uploads/ + domain: https://test.tall.wiki/gateway/recovery + imgDomain: https://test.tall.wiki/gateway/recovery/uploads diff --git a/recovery/src/main/resources/application.yml b/recovery/src/main/resources/application.yml new file mode 100644 index 00000000..ee27f352 --- /dev/null +++ b/recovery/src/main/resources/application.yml @@ -0,0 +1,6 @@ +spring: + profiles: + active: test + include: util-test,common + + diff --git a/recovery/src/main/resources/druid-dev.yml b/recovery/src/main/resources/druid-dev.yml new file mode 100644 index 00000000..71f0639a --- /dev/null +++ b/recovery/src/main/resources/druid-dev.yml @@ -0,0 +1,37 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 + password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 +# password: 1b01d55a27843cfc487ce8dd6915fc22 + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 + url: jdbc:mysql://49.233.89.188:3306/recovery?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true +# url: jdbc:mysql://49.232.6.143:3306/tall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true +# url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_TALL +# env: CCSENS_ENTERPRISE \ No newline at end of file diff --git a/recovery/src/main/resources/druid-prod.yml b/recovery/src/main/resources/druid-prod.yml new file mode 100644 index 00000000..16d5181c --- /dev/null +++ b/recovery/src/main/resources/druid-prod.yml @@ -0,0 +1,34 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://127.0.0.1:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 +# password: 7cdefb88e0b8c8a401b66a83ee0cf80387461268074d1c3dcb146ab485318633 + password: + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 + url: jdbc:mysql://127.0.0.1/recovery?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_HEALTH \ No newline at end of file diff --git a/recovery/src/main/resources/druid-test.yml b/recovery/src/main/resources/druid-test.yml new file mode 100644 index 00000000..a731dfef --- /dev/null +++ b/recovery/src/main/resources/druid-test.yml @@ -0,0 +1,35 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 +# password: + password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 +# url: jdbc:mysql://127.0.0.1/tall?useUnicode=true&characterEncoding=UTF-8 + url: jdbc:mysql://test.tall.wiki/recovery?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_TALL \ No newline at end of file diff --git a/recovery/src/main/resources/logback-spring.xml b/recovery/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..74631f70 --- /dev/null +++ b/recovery/src/main/resources/logback-spring.xml @@ -0,0 +1,196 @@ + + + + + + + + + + logback + + + + + + + + + + + + + + + + + info + + + ${CONSOLE_LOG_PATTERN} + + UTF-8 + + + + + + + + + + ${log.path}/log_debug.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + debug + ACCEPT + DENY + + + + + + + ${log.path}/log_info.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + info + ACCEPT + DENY + + + + + + + ${log.path}/log_warn.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + warn + ACCEPT + DENY + + + + + + + + ${log.path}/log_error.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + ERROR + ACCEPT + DENY + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/recovery/src/main/resources/mapper_dao/PatientDao.xml b/recovery/src/main/resources/mapper_dao/PatientDao.xml new file mode 100644 index 00000000..0e9bbc52 --- /dev/null +++ b/recovery/src/main/resources/mapper_dao/PatientDao.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ 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/DoctorMapper.xml b/recovery/src/main/resources/mapper_raw/DoctorMapper.xml new file mode 100644 index 00000000..37361863 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/DoctorMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, user_id, hospital_id, position, name, sex, age, remark, operator, create_time, + update_time, rec_status + + + + + delete from t_doctor + where id = #{id,jdbcType=BIGINT} + + + delete from t_doctor + + + + + + insert into t_doctor (id, user_id, hospital_id, + position, name, sex, + age, remark, operator, + create_time, update_time, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{hospitalId,jdbcType=BIGINT}, + #{position,jdbcType=TINYINT}, #{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_doctor + + + id, + + + user_id, + + + hospital_id, + + + position, + + + name, + + + sex, + + + age, + + + remark, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{hospitalId,jdbcType=BIGINT}, + + + #{position,jdbcType=TINYINT}, + + + #{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_doctor + + + id = #{record.id,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + hospital_id = #{record.hospitalId,jdbcType=BIGINT}, + + + position = #{record.position,jdbcType=TINYINT}, + + + 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_doctor + set id = #{record.id,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + hospital_id = #{record.hospitalId,jdbcType=BIGINT}, + position = #{record.position,jdbcType=TINYINT}, + 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_doctor + + + user_id = #{userId,jdbcType=BIGINT}, + + + hospital_id = #{hospitalId,jdbcType=BIGINT}, + + + position = #{position,jdbcType=TINYINT}, + + + 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_doctor + set user_id = #{userId,jdbcType=BIGINT}, + hospital_id = #{hospitalId,jdbcType=BIGINT}, + position = #{position,jdbcType=TINYINT}, + 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/HospitalMapper.xml b/recovery/src/main/resources/mapper_raw/HospitalMapper.xml new file mode 100644 index 00000000..1146bff4 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/HospitalMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + 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, code, name, project_id, operator, created_at, updated_at, rec_status + + + + + delete from t_hospital + where id = #{id,jdbcType=BIGINT} + + + delete from t_hospital + + + + + + insert into t_hospital (id, code, name, + project_id, operator, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{projectId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_hospital + + + id, + + + code, + + + name, + + + project_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{projectId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_hospital + + + id = #{record.id,jdbcType=BIGINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + 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_hospital + set id = #{record.id,jdbcType=BIGINT}, + code = #{record.code,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + 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_hospital + + + code = #{code,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + 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_hospital + set code = #{code,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + 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/PatientMapper.xml b/recovery/src/main/resources/mapper_raw/PatientMapper.xml new file mode 100644 index 00000000..18530ef5 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/PatientMapper.xml @@ -0,0 +1,400 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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, name, sex, age, id_card, phone, address, input_time, remark, centre_id, + doctor_id, project_id, operator, create_time, update_time, rec_status + + + + + delete from t_patient + where id = #{id,jdbcType=BIGINT} + + + delete from t_patient + + + + + + insert into t_patient (id, user_id, name, + sex, age, id_card, phone, + address, input_time, remark, + 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}, + #{centreId,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_patient + + + id, + + + user_id, + + + name, + + + sex, + + + age, + + + id_card, + + + phone, + + + address, + + + input_time, + + + remark, + + + centre_id, + + + doctor_id, + + + project_id, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{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}, + + + #{centreId,jdbcType=BIGINT}, + + + #{doctorId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_patient + + + id = #{record.id,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + sex = #{record.sex,jdbcType=TINYINT}, + + + age = #{record.age,jdbcType=INTEGER}, + + + id_card = #{record.idCard,jdbcType=VARCHAR}, + + + phone = #{record.phone,jdbcType=VARCHAR}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + input_time = #{record.inputTime,jdbcType=BIGINT}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + centre_id = #{record.centreId,jdbcType=BIGINT}, + + + doctor_id = #{record.doctorId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,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 + set id = #{record.id,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + sex = #{record.sex,jdbcType=TINYINT}, + age = #{record.age,jdbcType=INTEGER}, + id_card = #{record.idCard,jdbcType=VARCHAR}, + phone = #{record.phone,jdbcType=VARCHAR}, + address = #{record.address,jdbcType=VARCHAR}, + input_time = #{record.inputTime,jdbcType=BIGINT}, + remark = #{record.remark,jdbcType=VARCHAR}, + centre_id = #{record.centreId,jdbcType=BIGINT}, + doctor_id = #{record.doctorId,jdbcType=BIGINT}, + project_id = #{record.projectId,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 + + + user_id = #{userId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + sex = #{sex,jdbcType=TINYINT}, + + + age = #{age,jdbcType=INTEGER}, + + + id_card = #{idCard,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + input_time = #{inputTime,jdbcType=BIGINT}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + centre_id = #{centreId,jdbcType=BIGINT}, + + + doctor_id = #{doctorId,jdbcType=BIGINT}, + + + project_id = #{projectId,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 + set user_id = #{userId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + sex = #{sex,jdbcType=TINYINT}, + age = #{age,jdbcType=INTEGER}, + id_card = #{idCard,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + input_time = #{inputTime,jdbcType=BIGINT}, + remark = #{remark,jdbcType=VARCHAR}, + centre_id = #{centreId,jdbcType=BIGINT}, + doctor_id = #{doctorId,jdbcType=BIGINT}, + project_id = #{projectId,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/PatientRelationMapper.xml b/recovery/src/main/resources/mapper_raw/PatientRelationMapper.xml new file mode 100644 index 00000000..d3484472 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/PatientRelationMapper.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, patient_id, relation_id, operator, create_time, update_time, rec_status + + + + + delete from t_patient_relation + where id = #{id,jdbcType=BIGINT} + + + delete from t_patient_relation + + + + + + insert into t_patient_relation (id, patient_id, relation_id, + operator, create_time, update_time, + rec_status) + values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{relationId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_patient_relation + + + id, + + + patient_id, + + + relation_id, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{patientId,jdbcType=BIGINT}, + + + #{relationId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_patient_relation + + + id = #{record.id,jdbcType=BIGINT}, + + + patient_id = #{record.patientId,jdbcType=BIGINT}, + + + relation_id = #{record.relationId,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_relation + set id = #{record.id,jdbcType=BIGINT}, + patient_id = #{record.patientId,jdbcType=BIGINT}, + relation_id = #{record.relationId,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_relation + + + patient_id = #{patientId,jdbcType=BIGINT}, + + + relation_id = #{relationId,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_relation + set patient_id = #{patientId,jdbcType=BIGINT}, + relation_id = #{relationId,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/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/RecDrillGameMapper.xml b/recovery/src/main/resources/mapper_raw/RecDrillGameMapper.xml new file mode 100644 index 00000000..29748696 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecDrillGameMapper.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, drill_id, game_id, operator, create_time, update_time, rec_status + + + + + delete from t_rec_drill_game + where id = #{id,jdbcType=BIGINT} + + + delete from t_rec_drill_game + + + + + + insert into t_rec_drill_game (id, drill_id, game_id, + operator, create_time, update_time, + rec_status) + values (#{id,jdbcType=BIGINT}, #{drillId,jdbcType=BIGINT}, #{gameId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_rec_drill_game + + + id, + + + drill_id, + + + game_id, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{drillId,jdbcType=BIGINT}, + + + #{gameId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_rec_drill_game + + + id = #{record.id,jdbcType=BIGINT}, + + + drill_id = #{record.drillId,jdbcType=BIGINT}, + + + game_id = #{record.gameId,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_rec_drill_game + set id = #{record.id,jdbcType=BIGINT}, + drill_id = #{record.drillId,jdbcType=BIGINT}, + game_id = #{record.gameId,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_rec_drill_game + + + drill_id = #{drillId,jdbcType=BIGINT}, + + + game_id = #{gameId,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_rec_drill_game + set drill_id = #{drillId,jdbcType=BIGINT}, + game_id = #{gameId,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/RecDrillMapper.xml b/recovery/src/main/resources/mapper_raw/RecDrillMapper.xml new file mode 100644 index 00000000..1fdce168 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecDrillMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + 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, video, remark, operator, create_time, update_time, rec_status + + + + + delete from t_rec_drill + where id = #{id,jdbcType=BIGINT} + + + delete from t_rec_drill + + + + + + insert into t_rec_drill (id, name, video, + remark, operator, create_time, + update_time, rec_status) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{video,jdbcType=VARCHAR}, + #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, + #{updateTime,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_rec_drill + + + id, + + + name, + + + video, + + + remark, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{video,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_rec_drill + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + video = #{record.video,jdbcType=VARCHAR}, + + + 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_rec_drill + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + video = #{record.video,jdbcType=VARCHAR}, + 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_rec_drill + + + name = #{name,jdbcType=VARCHAR}, + + + video = #{video,jdbcType=VARCHAR}, + + + 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_rec_drill + set name = #{name,jdbcType=VARCHAR}, + video = #{video,jdbcType=VARCHAR}, + 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/RecGameMapper.xml b/recovery/src/main/resources/mapper_raw/RecGameMapper.xml new file mode 100644 index 00000000..4e38c33b --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecGameMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + 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, game_url, remark, operator, create_time, update_time, rec_status + + + + + delete from t_rec_game + where id = #{id,jdbcType=BIGINT} + + + delete from t_rec_game + + + + + + insert into t_rec_game (id, name, game_url, + remark, operator, create_time, + update_time, rec_status) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{gameUrl,jdbcType=VARCHAR}, + #{remark,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, + #{updateTime,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_rec_game + + + id, + + + name, + + + game_url, + + + remark, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{gameUrl,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_rec_game + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + game_url = #{record.gameUrl,jdbcType=VARCHAR}, + + + 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_rec_game + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + game_url = #{record.gameUrl,jdbcType=VARCHAR}, + 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_rec_game + + + name = #{name,jdbcType=VARCHAR}, + + + game_url = #{gameUrl,jdbcType=VARCHAR}, + + + 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_rec_game + set name = #{name,jdbcType=VARCHAR}, + game_url = #{gameUrl,jdbcType=VARCHAR}, + 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/RecipeMapper.xml b/recovery/src/main/resources/mapper_raw/RecipeMapper.xml new file mode 100644 index 00000000..5600f873 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecipeMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + 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, doctor_id, start_time, end_time, type, operator, create_time, update_time, + rec_status + + + + + delete from t_recipe + where id = #{id,jdbcType=BIGINT} + + + delete from t_recipe + + + + + + insert into t_recipe (id, patient_id, doctor_id, + start_time, end_time, type, + operator, create_time, update_time, + rec_status) + values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, + #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_recipe + + + id, + + + patient_id, + + + doctor_id, + + + start_time, + + + end_time, + + + type, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{patientId,jdbcType=BIGINT}, + + + #{doctorId,jdbcType=BIGINT}, + + + #{startTime,jdbcType=BIGINT}, + + + #{endTime,jdbcType=BIGINT}, + + + #{type,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_recipe + + + id = #{record.id,jdbcType=BIGINT}, + + + patient_id = #{record.patientId,jdbcType=BIGINT}, + + + doctor_id = #{record.doctorId,jdbcType=BIGINT}, + + + start_time = #{record.startTime,jdbcType=BIGINT}, + + + end_time = #{record.endTime,jdbcType=BIGINT}, + + + type = #{record.type,jdbcType=TINYINT}, + + + 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 + set id = #{record.id,jdbcType=BIGINT}, + patient_id = #{record.patientId,jdbcType=BIGINT}, + doctor_id = #{record.doctorId,jdbcType=BIGINT}, + start_time = #{record.startTime,jdbcType=BIGINT}, + end_time = #{record.endTime,jdbcType=BIGINT}, + type = #{record.type,jdbcType=TINYINT}, + 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 + + + patient_id = #{patientId,jdbcType=BIGINT}, + + + doctor_id = #{doctorId,jdbcType=BIGINT}, + + + start_time = #{startTime,jdbcType=BIGINT}, + + + end_time = #{endTime,jdbcType=BIGINT}, + + + type = #{type,jdbcType=TINYINT}, + + + 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 + set patient_id = #{patientId,jdbcType=BIGINT}, + doctor_id = #{doctorId,jdbcType=BIGINT}, + start_time = #{startTime,jdbcType=BIGINT}, + end_time = #{endTime,jdbcType=BIGINT}, + type = #{type,jdbcType=TINYINT}, + 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/RecipeProjectMapper.xml b/recovery/src/main/resources/mapper_raw/RecipeProjectMapper.xml new file mode 100644 index 00000000..6fc535ff --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecipeProjectMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, recipe_id, drill_id, cycle, times_day, group_times, several_group, task_id, operator, + create_time, update_time, rec_status + + + + + delete from t_recipe_project + where id = #{id,jdbcType=BIGINT} + + + delete from t_recipe_project + + + + + + insert into t_recipe_project (id, recipe_id, drill_id, + cycle, times_day, group_times, + several_group, task_id, operator, + create_time, update_time, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{recipeId,jdbcType=BIGINT}, #{drillId,jdbcType=BIGINT}, + #{cycle,jdbcType=VARCHAR}, #{timesDay,jdbcType=INTEGER}, #{groupTimes,jdbcType=INTEGER}, + #{severalGroup,jdbcType=INTEGER}, #{taskId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, + #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_recipe_project + + + id, + + + recipe_id, + + + drill_id, + + + cycle, + + + times_day, + + + group_times, + + + several_group, + + + task_id, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{recipeId,jdbcType=BIGINT}, + + + #{drillId,jdbcType=BIGINT}, + + + #{cycle,jdbcType=VARCHAR}, + + + #{timesDay,jdbcType=INTEGER}, + + + #{groupTimes,jdbcType=INTEGER}, + + + #{severalGroup,jdbcType=INTEGER}, + + + #{taskId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_recipe_project + + + id = #{record.id,jdbcType=BIGINT}, + + + recipe_id = #{record.recipeId,jdbcType=BIGINT}, + + + drill_id = #{record.drillId,jdbcType=BIGINT}, + + + cycle = #{record.cycle,jdbcType=VARCHAR}, + + + times_day = #{record.timesDay,jdbcType=INTEGER}, + + + group_times = #{record.groupTimes,jdbcType=INTEGER}, + + + several_group = #{record.severalGroup,jdbcType=INTEGER}, + + + 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 + set id = #{record.id,jdbcType=BIGINT}, + recipe_id = #{record.recipeId,jdbcType=BIGINT}, + drill_id = #{record.drillId,jdbcType=BIGINT}, + cycle = #{record.cycle,jdbcType=VARCHAR}, + times_day = #{record.timesDay,jdbcType=INTEGER}, + group_times = #{record.groupTimes,jdbcType=INTEGER}, + several_group = #{record.severalGroup,jdbcType=INTEGER}, + 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 + + + recipe_id = #{recipeId,jdbcType=BIGINT}, + + + drill_id = #{drillId,jdbcType=BIGINT}, + + + cycle = #{cycle,jdbcType=VARCHAR}, + + + times_day = #{timesDay,jdbcType=INTEGER}, + + + group_times = #{groupTimes,jdbcType=INTEGER}, + + + several_group = #{severalGroup,jdbcType=INTEGER}, + + + 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 + set recipe_id = #{recipeId,jdbcType=BIGINT}, + drill_id = #{drillId,jdbcType=BIGINT}, + cycle = #{cycle,jdbcType=VARCHAR}, + times_day = #{timesDay,jdbcType=INTEGER}, + group_times = #{groupTimes,jdbcType=INTEGER}, + several_group = #{severalGroup,jdbcType=INTEGER}, + 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/RecipeRecordMapper.xml b/recovery/src/main/resources/mapper_raw/RecipeRecordMapper.xml new file mode 100644 index 00000000..a256dc0f --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecipeRecordMapper.xml @@ -0,0 +1,386 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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, 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 + + + + + delete from t_recipe_record + where id = #{id,jdbcType=BIGINT} + + + delete from t_recipe_record + + + + + + 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_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, + + + + + #{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}, + + + + + + update t_recipe_record + + + id = #{record.id,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}, + + + game_id = #{record.gameId,jdbcType=BIGINT}, + + + remote_guidance = #{record.remoteGuidance,jdbcType=TINYINT}, + + + remote_doctor_id = #{record.remoteDoctorId,jdbcType=BIGINT}, + + + score = #{record.score,jdbcType=INTEGER}, + + + sub_task_id = #{record.subTaskId,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_record + set id = #{record.id,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}, + game_id = #{record.gameId,jdbcType=BIGINT}, + remote_guidance = #{record.remoteGuidance,jdbcType=TINYINT}, + remote_doctor_id = #{record.remoteDoctorId,jdbcType=BIGINT}, + score = #{record.score,jdbcType=INTEGER}, + sub_task_id = #{record.subTaskId,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_record + + + 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}, + + + game_id = #{gameId,jdbcType=BIGINT}, + + + remote_guidance = #{remoteGuidance,jdbcType=TINYINT}, + + + remote_doctor_id = #{remoteDoctorId,jdbcType=BIGINT}, + + + score = #{score,jdbcType=INTEGER}, + + + sub_task_id = #{subTaskId,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_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}, + game_id = #{gameId,jdbcType=BIGINT}, + remote_guidance = #{remoteGuidance,jdbcType=TINYINT}, + remote_doctor_id = #{remoteDoctorId,jdbcType=BIGINT}, + score = #{score,jdbcType=INTEGER}, + sub_task_id = #{subTaskId,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/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/RecoveryRobotMapper.xml b/recovery/src/main/resources/mapper_raw/RecoveryRobotMapper.xml new file mode 100644 index 00000000..233979e7 --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RecoveryRobotMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + 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, code, userId, centre_id, operator, created_at, updated_at, rec_status + + + + + delete from t_recovery_robot + where id = #{id,jdbcType=BIGINT} + + + delete from t_recovery_robot + + + + + + 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}, + #{centreId,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_recovery_robot + + + id, + + + code, + + + userId, + + + centre_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{userid,jdbcType=BIGINT}, + + + #{centreId,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_recovery_robot + + + id = #{record.id,jdbcType=BIGINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + userId = #{record.userid,jdbcType=BIGINT}, + + + centre_id = #{record.centreId,jdbcType=TINYINT}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_recovery_robot + set id = #{record.id,jdbcType=BIGINT}, + code = #{record.code,jdbcType=VARCHAR}, + userId = #{record.userid,jdbcType=BIGINT}, + centre_id = #{record.centreId,jdbcType=TINYINT}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_recovery_robot + + + code = #{code,jdbcType=VARCHAR}, + + + userId = #{userid,jdbcType=BIGINT}, + + + centre_id = #{centreId,jdbcType=TINYINT}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_recovery_robot + set code = #{code,jdbcType=VARCHAR}, + userId = #{userid,jdbcType=BIGINT}, + centre_id = #{centreId,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/recovery/src/main/resources/mapper_raw/RelationMapper.xml b/recovery/src/main/resources/mapper_raw/RelationMapper.xml new file mode 100644 index 00000000..40c2bb8e --- /dev/null +++ b/recovery/src/main/resources/mapper_raw/RelationMapper.xml @@ -0,0 +1,353 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, user_id, name, sex, age, id_card, phone, address, input_time, remark, operator, + create_time, update_time, rec_status + + + + + delete from t_relation + where id = #{id,jdbcType=BIGINT} + + + delete from t_relation + + + + + + insert into t_relation (id, user_id, name, + sex, age, id_card, phone, + address, input_time, remark, + 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}, + #{operator,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_relation + + + id, + + + user_id, + + + name, + + + sex, + + + age, + + + id_card, + + + phone, + + + address, + + + input_time, + + + remark, + + + operator, + + + create_time, + + + update_time, + + + rec_status, + + + + + #{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}, + + + #{operator,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_relation + + + id = #{record.id,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + sex = #{record.sex,jdbcType=TINYINT}, + + + age = #{record.age,jdbcType=INTEGER}, + + + id_card = #{record.idCard,jdbcType=VARCHAR}, + + + phone = #{record.phone,jdbcType=VARCHAR}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + input_time = #{record.inputTime,jdbcType=BIGINT}, + + + 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_relation + set id = #{record.id,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + sex = #{record.sex,jdbcType=TINYINT}, + age = #{record.age,jdbcType=INTEGER}, + id_card = #{record.idCard,jdbcType=VARCHAR}, + phone = #{record.phone,jdbcType=VARCHAR}, + address = #{record.address,jdbcType=VARCHAR}, + input_time = #{record.inputTime,jdbcType=BIGINT}, + 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_relation + + + user_id = #{userId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + sex = #{sex,jdbcType=TINYINT}, + + + age = #{age,jdbcType=INTEGER}, + + + id_card = #{idCard,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + input_time = #{inputTime,jdbcType=BIGINT}, + + + 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_relation + set user_id = #{userId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + sex = #{sex,jdbcType=TINYINT}, + age = #{age,jdbcType=INTEGER}, + id_card = #{idCard,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + input_time = #{inputTime,jdbcType=BIGINT}, + 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/mybatis/mybatis-config.xml b/recovery/src/main/resources/mybatis/mybatis-config.xml new file mode 100644 index 00000000..e5a218dd --- /dev/null +++ b/recovery/src/main/resources/mybatis/mybatis-config.xml @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/util/src/main/java/com/ccsens/util/cron/NatureToDate.java b/util/src/main/java/com/ccsens/util/cron/NatureToDate.java index 9d42c485..1eaabc48 100644 --- a/util/src/main/java/com/ccsens/util/cron/NatureToDate.java +++ b/util/src/main/java/com/ccsens/util/cron/NatureToDate.java @@ -20,8 +20,8 @@ public class NatureToDate { public static void main(String[] args) throws Exception { SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - Date start = sdf.parse("2019-11-1 8:00:00"); - Date end = sdf.parse("2020-11-30 8:00:00"); + Date start = sdf.parse("2019-11-1 0:00:00"); + Date end = sdf.parse("2019-11-2 0:00:00"); // System.out.println("每周一:" + generateDates("每周一", start, end)); // System.out.println("每周二:" + generateDates("每周二", start, end)); @@ -42,7 +42,8 @@ public class NatureToDate { // System.out.println("入职第一月:" + generateDates("入职第一月", start, end)); // System.out.println("入职第一年:" + generateDates("入职第一年", start, end)); // System.out.println("第八天:" + generateDates("第八天", start, end)); - System.out.println("第1天:" + generateDates("第1天", start, end)); +// System.out.println("第1天:" + generateDates("第1天", start, end)); + System.out.println("每40分钟:" + generateDates("每40分钟", start, end)); // System.out.println("每月15号下午5点:" + generateDates("每月15号下午5点", start, end)); // log.info("周一到周五 8点-9点: " + generateDates("周一到周五 18点", start, end)); diff --git a/util/src/test/java/com/ccsens/util/Base64Test.java b/util/src/test/java/com/ccsens/util/Base64Test.java index a987ed96..f3605f88 100644 --- a/util/src/test/java/com/ccsens/util/Base64Test.java +++ b/util/src/test/java/com/ccsens/util/Base64Test.java @@ -5,11 +5,9 @@ import cn.hutool.core.util.ZipUtil; import com.ccsens.util.exception.BaseException; import lombok.extern.slf4j.Slf4j; import org.junit.Test; -import sun.misc.BASE64Decoder; -import sun.misc.BASE64Encoder; + import java.io.File; -import java.io.FileInputStream; import java.io.FileOutputStream; /** @@ -63,55 +61,45 @@ public class Base64Test { } } +// +// /** +// * 文件转base64 +// * +// * @param path +// * @return +// * @throws Exception +// */ +// public static String encodeBase64File(String path) throws Exception { +// File file = new File(path); +// ; +// FileInputStream inputFile = new FileInputStream(file); +// byte[] buffer = new byte[(int) file.length()]; +// inputFile.read(buffer); +// inputFile.close(); +// return new BASE64Encoder().encode(buffer); +// +// } +// +// +// /** +// * 将base64字符解码保存文件 +// * +// * @param base64Code +// * @param targetPath +// * @throws Exception +// */ +// +// public static void decoderBase64File(String base64Code, String targetPath) +// throws Exception { +// File file = new File(targetPath); +// if (!file.getParentFile().exists()) { +// file.getParentFile().mkdirs(); +// } +// byte[] buffer = new BASE64Decoder().decodeBuffer(base64Code); +// FileOutputStream out = new FileOutputStream(targetPath); +// out.write(buffer); +// out.close(); +// +// } - /** - * 文件转base64 - * - * @param path - * @return - * @throws Exception - */ - public static String encodeBase64File(String path) throws Exception { - File file = new File(path); - ; - FileInputStream inputFile = new FileInputStream(file); - byte[] buffer = new byte[(int) file.length()]; - inputFile.read(buffer); - inputFile.close(); - return new BASE64Encoder().encode(buffer); - - } - - - /** - * 将base64字符解码保存文件 - * - * @param base64Code - * @param targetPath - * @throws Exception - */ - - public static void decoderBase64File(String base64Code, String targetPath) - throws Exception { - File file = new File(targetPath); - if (!file.getParentFile().exists()) { - file.getParentFile().mkdirs(); - } - byte[] buffer = new BASE64Decoder().decodeBuffer(base64Code); - FileOutputStream out = new FileOutputStream(targetPath); - out.write(buffer); - out.close(); - - } - - public static void main(String[] args) { - try { - String str = "//MoxAAKCAK+H0IYAKSAFAJ7Q4Nao5EADB+D+sPfPiCkQZeUcUGO3/p/yH//Ts/9b1//ffQq+p935uzOuWlg5rezcALDwNOh//MoxBIRcR7AAZh4AHcbzbom7yguThXM1rf/0k1q0t5ra/pq2vDhS7i11v6pPve1TWWf+qz/////8+30tb4sfFb///+ojYr6//MoxAcPAQLAAdgoAFOOWWcdUkchoqwNfpeP4qSf/9RMWL9Dt6EBTTGGAQJgF0RigV4iivJf//2dv/VYX5NCU8yY+swC+Q7D//MoxAYOSnLEAJNEuAQeoxAVUkXqPph+EtOL6x9P/k79RRbrSDCaL9RJK/Pf3////+n9f5v1b9P6/xe1W4Sn9NX6iiBVYyKk//MoxAcO+ra4AJzEuJeZAXMbqWdsRYEaz6Hj+S/5Hs+rFjTqU6helf9Mq/pf0/t+n//b9f4P+v9/7/l6cqfccY8sW/yn0DMO//MoxAYOuhrEyoNKmIRpmZ3nQIl61rMBDgO5FDx9ITemYn/Y6FsRfyaQvxEE/Vv1///////9P0F+W6uR5B+DJCk1Ut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J0KiMpQAVgYAP2xtczkRIN8DpCHmx5NZwcgWWLLImpBaRoSohQSgVTdN1l9IQnEpl4nF1qNEC4yf003V6////////////MoxK0YGRqUAZp4APvUhTfrT/qbb00zcPkBIGOD9f8YwE4h8zNUgOvea+uFc+COnn/9VkRISEQNnzDrAtIqxAS9z18NwWmo//MoxIcXWr7AAc+AABvCUZPrdq1YW55r+g4hv7f////////1TZlKVDo6V3K50IjsUhznIyIZxgCJEU0KAkEccjkgjcH7mCYA//MoxGQV2tLIAGvEuFcHh/ZViVTb/zS2FMJeP/XWMSgsR5u7vXtNaYgzjgp6+24p3Ag2OeH62rRie2t6ATf5v///////2//+//MoxEcVwscCXmvEulK/9WO71soUReMgqwRVGJADQW623bDSYfx8MisPHq1g8hwU61uo3G0JdJv/q0MW0ec9M6jdteDni6vT//MoxCsUkUMWXmteclrbce5wI+ebW7/Dch0T5//9ozuRf//+r7uvrCVNYZdsCpxUcD2ch2oCqx2WOWgSAfmExMgcZ8/mIrIV//MoxBMRis8GXlNEuyn1F4JMWanQqKQfDKnpIrMRylv6ki8b/4Y//T/p//////////J/MUzfZYYjNGOCr93by1X+k47gBfLe//MoxAcL+NbEAGtUcK1nAR4LD+uNquy1EECGi0OMtQnPHtP///////IqkdiQ7QJQtQVmj5Ya/hbgOjb+sjgqFv1HACiHRFwI//MoxBIKwK68ABQOTIwcsgZ3W////////7XZEgXcCRWD1oODUh39A4tAChAuP9UjAb+f/rMRvIfudICe/7v/rb////////////MoxCINCra0AGwEuf///T/8ibtQMQW9X0Jomtj8i1X84yJ0EpBdFfqNxGQJ+7fUSy71srWXUH/rST/9v/////////////5a//MoxCgM0u6oAJNEuH07O3d2K2va4YUylQTw+8A8Ps51kAx0EZElU0x4qAMe+yTkEIKYxWGD6qQa/7Yk/lv//////5VgoPPd//MoxC8NQOaplInKcGJcqEjzKmM/72FApsKCxzsGHZTj/O1surRATWieLr++sNridjQ0oOiUFJ387///////KxEeTX6n9Iuq//MoxDUNCIpwAjYeTI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IaFTw4szQmCABT19yTDF8wZgPC06RXIgRJbpJELEx0dGGABqQLLIGXrtmiRU0d1GMvBBa3SR//MoxCcMuMrYAFJScJUDrePU7///////0BqTEBQH/6QCkuWuAcCSOdyRKc5AlRLeArwoEA0Ka1guUQnZq0hR8kFNWFgWu/////MoxC8NMNbldEmMcP//2aNnovKg9JMw1oI8zc+UENfKktAwXRvad2tEMXWeyl6rapQsfsxLM13VjK6P/////+tdYx6K84K+//MoxDUMYPbMAGoYcMLpR6vyhblS3KAl6hWnbCee9+sT25CLT1y1ixF++gO5dI//////20qSyQcr1fOCnsIU91L9C3KkTHiY//MoxD4L+P7IAGnYcDZ79b/0dQwxM46MIoxI6lUyWDEW2FKKn//////X5klb//QqL//8wDw9YpuyIsQviOpfob1DDWQJjnoL//MoxEkMCPrEAGnScI7gCXgKLvqTQa2NGMkzijf/////9tWOf2f32Ppq6hdBzJvWEVKfDp+Ej7AMJilxEUxy6VsLVdTR8bip//MoxFMNERLZlGnKcL0wCIUFzwEPNMd//////09C1Nb39Naa8lQRguaQkQjd9xQQfCIfecFgyT42r5WnfKOpKkVId2B4Qs6F//MoxFkNIPK8AGlQcBrk///////27af63qYFGabrOAL4LeDSiRwbMK0s6zYbRzSCx9jPSJrJ2wZ357LTJY8IkcWgAZf///////MoxF8M8OK4AInQcP///x9QrVUU6Gfr+wSrMaXtWjecsegKiBy4fl+MpjrdGvxe/zlbvf/LLI0uqiWGM1NYVjUiXFYkVPh3//MoxGYMWOK0AIpGcP//////069TzoiDt2oGlQzCk7rLtrsB//iGuR+o9DWlo1BqCoGhnDYdK96qaM3dgJRAvQMGYwIrJJSj//MoxG8QkPKgysYGcDGOKAWwRk1dX/akkNob+n/eE9IUFly3/WGkA0GuIYNKETl1v4/4HqMzUQiATQLfB4U2FzU1AVAejXb6//MoxGcTAQLWXnoGclD3zzutiVk03dtpzAJH+nIxZMqJRhgMG36BKd4SFaz1H/8bqTedac6bP//0KgwKbsEA2nwVcagUwXjk//MoxFYRyPK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/6dLebppXmfV90dV911NPd0bmIWPLD5w0ssL/PH6/kdYEctJ3+7//MoxAwP4Vaky8EYAOXO204TIeW7nM/yUlKMRdawrOmGLsNMi4q/mFHKA+lNSbNv6X1HErB95IiwOnRQN7gI8VoAbbbba3XW//MoxAcOmAcCXgBEAoHsFwEosBRj0ytQeU02OOsrQymscYICRo5bFQQYOehgk/4Puhy1kne3/pfbIVBgLWgRfTWZAYChIXDZ//MoxAcMKF68AAJSKMDCrRIQMhdEKAXEAqf4Rf9cpUvahb3ztC2aFfd/o//6ncktam01WDXqUv//lgU4t7PMoV1OtFKCnA/j//MoxBERQU7UAHvGcI4BiG3EYbP1fnOt4yDFsaK3XeN/76T/N0IvvmhF9dx0UTlwfBwx3NXrn1NPidbC//t69JdRmC4bMq6c//MoxAcLqG7cAANwKHigrk37OW8dzFN3W/X/t7ea1ENoHCQdlBl9/8U1s/uft1A8QwJIVUX6kxNAKCi+iiVAYaop/b////////MoxBMMIqrUAGiEuf/////Rv+nbOR/oRP53/T9VT9i+WdRqF1Bt/XWttf4tQPGWjZbWNgy4T5xPg2/////////////6W/GR//MoxB0Mqr7EAJiEuPdIom7am+qL/Kf9L66jFZkswoUxLJL61DPggxM0VrMAJURkEvY9/X///////////X+qfDFBa+h9FlEh//MoxCUMgh64AJNEmOT+WxQGjq0A0G7wVBbuvxt2HgIBzwbkL8xTe9V3ZeCitSxVn/////xYGoNLWd1hJ+Rh0FTvLbp12WOv//MoxC4MyFKYAVkQAIiJrDUNVQA0IQCIwAYzAQB4HpO1AVhmFkNosjds27w5XerGRwrdO9zbnO/59WHzD/7eOGmFS5/T9nzz//MoxDUXgyKEf484AO5k///8H7qOMOMQX/09rL7KTRTzWc0mpv+v//2V5hhIw0rOF54+GTxE/////X////ReiFq57x85kMto//MoxBIQex68AcA4Ad7fz3M0ZnV2zFrmefoqtU8cIGMY70GjDjHEzT3U8/Ub3U4fFYlg8GilS5UF4yPnzg/8T/6f9yuwME4J//MoxAsL+xLkFAAEuYY4I4gQRWQvtq6Lor6pRmTzU/z6/up1MYQQpJeRvyrLaVqCREkP/AA/8z9FFAThAJBmA4wA//////////MoxBYNKbbplDhKlP0f7df106PqpQ6Ci5z+p9Qken1V0PrWd2adbCLiz1o+S4folAWcAQuEMOkFQLxianCRAH9FH//0G/////MoxBwPkurIyqNEuG//////0/fMihWoZTPvM2ubjI+iv/6pf/yasZnY7zt8DqoqLt4n6ykQYD9Dsn2rdFEug3YtL+3+7f////MoxBgPqubIyowEuFN/r/6/9v+3+HbvyCdLaEf1a4Ae1Oqe2qvzunLqzJcBFI5Q9FUNVfrmZgBzl9D3SDwCUz/b/X////////MoxBQMqrrIAIqKuP//5f+3+FI/6LvbQRIb9hFm+hHOvRkVvpUSYkPuK0r7WH8CuCaNa1MgkTgJJv9v////////////VvbM//MoxBwM6gLAAJtEmB15eGGHogyEWIiI+96gppFgqaJKaCmw1f0yMIkGKgVR/WxiAzTP/X/////////////b6gwws06eYp/0//MoxCMNCiq0AJNEmAITjjTmOeYkXTNYAhJOk8j1Kv5SLxAQUunjN3VjkHQDm/3/////////////lI9ERFARjVyoyZaoLNaV//MoxCkMKeKkAKHEmBF5ZJrSC7C19A+Cty1pcQDZEPz1e7KLwOxe///////lip1MSu7TLA0HTwM0ohxstCYbMrCZ0qo16s8O//MoxDMMwFqMABYYJIQCmC+yk0Eh8Avi/tb//////aiP0M2Uvla1xg/m/9W/2sVgGkhSVWgbUm0DMpVGIAuMgCAC38s4Di6c//MoxDsLYpaAtGgKuGszOUUynRJeqhEpZ///+r/0dH1/U/w0xYaliolVBYTxFR0M06wSB2IcBNpNDikhIsy4m1Q9FP3+v6v3//MoxEgKUFZcLDPEJK96WM1f//2f/6uz0AIABAyLpUKQAO3jaTSEUOnfrj4rs1NE2qaks6pToN61vWgzsfQmBoPA6bk8QYNI//MoxFkKeD5cV0kYAMUFtDnHDhuS6JeTt58kjrpHXN4PhsPeAyev7/svYj6/r9+O+mr4meWyjs6IRRNUMndmfKIpou7ZXZ/8//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w/kJy4MILYfxlmlk3nrLzdk0EF//fqp////b6//MoxKUX2ubSX0w4Av////W9Cg6alf+//tf866mTN3M3MBCy//xwj6JjLpdEn2YGQkdNgstWGQFCEBFxK6JUypEUJT3VhMJB//MoxIAW6xKkAZhoAf5Z9esM3E52JYHw6TnaDRKTzVjtu/RrigJoUXTX////bqJgAyJ1lyZcogHyhQUBAYYGhVxAHQIJBZAH//MoxF8YKO60AdhgAJhd8zBvjJvE0AbqEzfbgEiNGAzZB3FCy43EPObG4Z+7/pBIKqi0iIFAsH5dGvwSgoWBUXNUVf////j3//MoxDkTmM7AAGvYcBZaiiFCzIbZPuUtgcAI4CESyUQ8gYobbbSV7AC6gf6oDFpaIDRzfwhhJp80MASWL85T7Nv/PaooGtnG//MoxCUQQNseXlvKchnpfUSDoNQWPM2/////9Wk2SOsOvpwp1lTvh2l+EMeTA4VUTwPrZqcDX1qnDem4cCQWtlhYfTuD4fNJ//MoxB8MaNbEymsQcGDcIWbpmvgmoq7//////1173UXoh2HR0lA20bbyBWXm1sYkeJkoD9mxHJA/kgZT77fbDhhPXvVcWzxK//MoxCgNGLqoAGveTOJTe7//////3r+k9SrmgLh9kI8S32u9DO+ZakiQN7XGw/zuUsW64J+LlGy8G4m/4ECNtZGIfZ////////MoxC4MuLakAFYeTNoshApT/xkT1/SpRgOaq+A7ht/FwpYL7GCwwrVUrfenHSh8TJ7Sz4rIGWHbP///////31436ukBSCka//MoxDYMQKqgAHveTKxhQdiO9E8I16xUihU95EUq65w9R2JDSFuUObMyHVzqFd1/v///////S1SZ73uFVQqwTwA8OwGoStSi//MoxEANELKcAGveTJizHyteGME5HF62oa2aIEBPIeyGJIswoyC6W8Of//////+v4TUVd793JEOC7NAABsA/HUDpHbghyO3u//MoxEYNOKadlGvGTKpZt/UGL57mra4JO+Hgo6MTSo0Ku93///////Kld4UW7/0rISNXobZoWSPf4SHjfnYFOR0ns+ixrMzN//MoxEwNAK6dvoPMTIjuZdsSktelQRJokREameR4Tou/b////////r6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n//MoxDMMAYq0ymqElHHahp0CLNybkBXPJRwyobNY1LotQzTzHsaf9X9n//tjJb////+hgNUyrv4rKswO3I+FCDt1DoKNqKh7//MoxD4LuGaMys4YKG0MRB21Szmd6tTZ4Vxg5NVT769n0UaadHPNGuix2lD8r///1aEdtktkiiksoqJw+A+eGgTuSBDC/bqj//MoxEoM8FpwFVkYAA3/nQUIP/+UwACCi//7nRmOQN/0tvxAsphARN//hENgkJ1I//4EIA+QAZEBqv//X///6N///vTU7pV9//MoxFEQidKsy4UQACm+/2/6emv/tndXo3pOS1RikcyoNRDkOehBV1cXOjIwCDqqjPWv///z/6/////+R7HUXU66pd7f+r51//MoxEkMIxq0AcAoANvf//zyuhTMjPUy2kkJK1lRLoQZnSOYgCwZKh4///6VJZkJzhCTkav09W5/e///cj7GtMVmOQ6oFfmG//MoxFMMkwLMKgBEuUdSPuDEzhzEJDFDwmoSSSQAASORQf/t7PQJOAZni+ZKwk4JIAYyTHDT9v///////+XTzbfVtDN1mQMA//MoxFsLEw7YCgAEubBzvZpQpjP9CbVLcBf/1B1odpbXbbbbauw/L5VBq7QoBAHcH0lt00ky7kBkbYIlApUtjoJgvkYJcIaT//MoxGkP8bsGXnnEliySSU8W1Vamf8w980f7Ddvx/+n9beaPLZNG/jcxnup4TFlQ1DEFimqz9im6/ckyII5Au9ldqDRrttth//MoxGQXagbyXNUOmqwbrVJEUw7j1rUdAVKKCikLKQnh8/ScIdXbMA2Nz08ft9BWMb0Hj/jH/Dr/mb1UEuf/7v+pMlzFHOqc//MoxEET4rLmXGqKu7/M/7/1JW1pzugtFsxqZfrSHKBFHICaPmwBdGIWKPGuSJAb9L9bfr/1///////+Z/SUhibOAiTCGDyt//MoxCwNMe68AKNEmOsO+/VlTvkULVv861OUBQ4A+IiSLtRHSDbHN/KLfrb+///////////0+UoC7KugcbETOS92YPRUzxES//MoxDIMgfa4wowEmOusvBhEDRAxGpEXadHwAlADzHCyXRLpv/Q///////////2bo9C9CookKkJ10f1aJgWOw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A3z9c1QcYwlZT39Y//MoxBkRoPbEyotScKgSjYURfPbYEvryhKxkULps48FQ0bU9Dff////53WeUNA1KE8cfWGjY1IHqOJX+xTCGRMI+uZA4D38x//MoxA0NQs7EAJtEuRwN2SpOaV01WJw7iTZFupL//////////////1/7U/29eoImWpbvtqX+YD0CHAWhHqSoBdgVDauxWUPa//MoxBMMINa8AJNQcP967iXTFgVB2PgdlHf//////9uG9EuTaXStS2IxZf2NyJBDgyCbJ7p3GcDbTZf6ydf/byto4ElDWuco//MoxB0MmP64AIwEcLDH//////629anWSzl2A0G1tMw20goaHVff64AegdEJYJBQtFH16j1XxedvyiSX9aOv/X06AQECs6lT//MoxCUMAP8KXimEcvnv/////LHfI6waHdD5QINPsIMrGuhHZ4NSP9HBwyPwGLIdxr4IQmFVY8qGyIEPu2v/TYcp////yC3+//MoxDANMFKAKhYMJJ63rPxS+rOOAtFrtoigHjjdf7HwEoxuwcY/8teqLkaqufk77+n8g8jJ6E/8nv9/05NdTndd3/RTpyHT//MoxDYPAv6cADhEuSXUwGjDqv90IxhKagyDVH537PpEUKHxcJS+Hox8pl6Efxug6ICpmcm3lQ52lRr0JWiOrdCfZNdep53v//MoxDUUmw6sABDKuT979Fa8c8klTuQg0XiZzAAOOIROgocACKIPIZR9NQ//x1vyWd0qtem2yKwikyxamFkqKupizSQRFhU1//MoxB0NGL7EygBETNSuk4vUr/dR6CM9k8eEomJCVChyXKqDyvZxAAQgcoXgjEmFWARh1nOh8al22fPrr/WP/7f+X3SrZE93//MoxCMMkUK8AGvEcPQhMgQQED1tH//////X5ur//mKc4CdTP9RQt/QF7gmQNqLxDxyxmB/HlM0Jxlod9vur/f1Sl5mzqcmj//MoxCsQ+VLAAMTEcAgFWwEIHEgY5wobml//2Zg///97HYqHrRvx8BfUoopikACsADYEiNxhwPcSQTI1Mx3kQ////6fsvy9C//MoxCIQOVLIAJNEcKJWfkOJYw5AACdp9xl3/+LVhFI91Hq12kagJSdmajTw4R9Z8WoAnA1cbvAz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aMh0IaQPxW+MNVS7A8A2ixNUelY9fLf///JsLHXg//MoxE0LGFLEAAYeJJCwh//+z//kskIc75HZSAN8HeGi005KI2XIAJDUlhrJZ0zRn3f///s2WuU0+kUvp3/9f/2Z90VXF84H//MoxFsLQGK8ABYeKOXBsQNBAnX1C5AZE05jlN///+mhJnV2+qN/TfQ5Ppavsn99bdtFOdnkbVKSO7uWQQacPnMcXciAIKAA//MoxGkNGFq4AG4eJIX//////////5f02MsZ//6/9bbf///bU9nR6lzVcscPnqzM6mHU6nElJUAoTIBGLx8mAFoFAAtljLH///MoxG8NIxLMAFAKudH/yP//////7//+6vUiszVI9aFcwQAKasNPiMpU5oPt//yiED//9I8AAf/7aug//////6f9M9Lb3bap//MoxHUMOyLYAABOvJEfRFSqpZHEwgzDZsfvZPkjqFNep3/Q3IM//dcEqvhMDZQ6haBAUKydIKH8Sv/////9hcFYnAZ0gMhl//MoxH8MQb8WXghElittnRVcXvaqKA0IkONlTruIhFET1PEt/ysejz3FAZjpWtUCCgJkKhn////////////XqRzOokylKCPU//MoxIkMEas1/gBKlqQTBo7Q/rzVZ6TrPQGGlgUTXbYbbC7XAeGbY1DBkHFeuk012qDTvk2v3W0uiWXPXWf/+s6JHoFXtW4K//MoxJMM6FLQACpSJB4kHav/OzvszomIqv7hLzFFC+HdOGe6xa0dD4F5c6aA8hZmrOXU23628fy9Q8mIiz2OCsodK5239MWf//MoxJoNAdrUAFiElGxWvjVVB3PPuDoCKwGuy956VSAOm1+Rw0lUxzeUpfx/6ftNPc8nS4GguJQWCYSMkv//fZ+hA0AURCOC//MoxKENiGsSXlPWKgF5CmyUGNZN1AJ9IAkTA7AQgSbYn+xoSDowrYnIiEgIjxm0nPvocteqH/tPV0Zuvp9/6X/s6un//9GZ//MoxKUM2O6UAMNKcKx////9EMMVzR+Ti2UJBY/////Kk55AYIgseNBmTi2shWuR+81d////3////pPzHaQa54+85JQseRPP//MoxKwL8GqYyVgYAP5YwdZFGyoXGhIanCxnL/6T2MmK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EcIKjBg8BFSDDv2f//////9RVP//0VUxBTUUzLjk5LjVVVVVVVVVVVVVMQU1FMy45OS41VVVVVVVVVVVV//MoxLMLSFJIAE4SJFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVMQU1FMy45OS41VVVVVVVVVVVV//MoxMALIFJAAnvMJFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVMQU1FMy45OS41VVVVVVVVVVVV//MoxM4MSFoQCmMMJFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MoxMQAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MoxMQAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV//MoxMQAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV"; - String outUrl = "D://mp3/AVLT_1.mp3"; - decoderBase64File(str, outUrl); - } catch (Exception e) { - e.printStackTrace(); - - } - } }