From 9ff01298c1ba82ce63e9ef395ac6b7e1a25e60d2 Mon Sep 17 00:00:00 2001 From: zhizhi wu <2377881365@qq.com> Date: Tue, 31 Aug 2021 09:19:25 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../carbasics/CarbasicsApplication.java | 1 - .../ccsens/carbasics/api/CarController.java | 66 - .../ccsens/carbasics/api/DebugController.java | 19 - .../api/FirstAidRecordController.java | 58 + .../carbasics/api/PatientController.java | 139 +- .../carbasics/api/ProjectController.java | 27 +- .../carbasics/api/RecordController.java | 69 - .../ccsens/carbasics/api/RoleController.java | 2 +- .../carbasics/api/StatisticalController.java | 65 +- .../carbasics/api/WorkerController.java | 65 - .../ccsens/carbasics/bean/dto/PatientDto.java | 15 +- .../carbasics/bean/po/CodeDictionaries.java | 265 +- .../bean/po/CodeDictionariesExample.java | 1730 +++++------ .../bean/po/{Working.java => CodeParent.java} | 210 +- ...ingExample.java => CodeParentExample.java} | 1380 ++++----- .../com/ccsens/carbasics/bean/po/Doctor.java | 172 - .../carbasics/bean/po/DoctorExample.java | 1081 ------- .../ccsens/carbasics/bean/po/FirstAid.java | 452 ++- .../carbasics/bean/po/FirstAidExample.java | 2760 ++++++++--------- ...PatientWisdomCar.java => FirstAidLog.java} | 232 +- ...arExample.java => FirstAidLogExample.java} | 1480 ++++----- ...rstAidMessage.java => FirstAidMember.java} | 199 +- ...xample.java => FirstAidMemberExample.java} | 1300 ++++---- .../carbasics/bean/po/FirstAidRecord.java | 254 +- .../bean/po/FirstAidRecordExample.java | 1640 +++++----- .../carbasics/bean/po/FirstAidRecordLog.java | 254 +- .../bean/po/FirstAidRecordLogExample.java | 1640 +++++----- .../carbasics/bean/po/FirstAidStandard.java | 106 - ...ttendanceRecord.java => Organization.java} | 298 +- .../bean/po/OrganizationDepartment.java | 128 + ...ava => OrganizationDepartmentExample.java} | 1580 +++++----- ...dExample.java => OrganizationExample.java} | 1900 ++++++------ ...WisdomCar.java => OrganizationMember.java} | 243 +- ...le.java => OrganizationMemberExample.java} | 1570 +++++----- .../{Wroking.java => OrganizationParent.java} | 210 +- .../bean/po/OrganizationParentExample.java | 621 ++++ ...ospital.java => OrganizationPosition.java} | 232 +- ....java => OrganizationPositionExample.java} | 1550 +++++---- .../bean/po/OrganizationProject.java | 95 + ...e.java => OrganizationProjectExample.java} | 1360 ++++---- ...rRecord.java => OrganizationTemplate.java} | 221 +- ....java => OrganizationTemplateExample.java} | 1380 ++++----- .../com/ccsens/carbasics/bean/po/Patient.java | 161 - .../carbasics/bean/po/PatientExample.java | 1021 ------ .../com/ccsens/carbasics/bean/po/Rfid.java | 150 - .../ccsens/carbasics/bean/po/RfidExample.java | 951 ------ .../com/ccsens/carbasics/bean/po/Step.java | 254 +- .../ccsens/carbasics/bean/po/StepExample.java | 1650 +++++----- .../ccsens/carbasics/bean/vo/PatientVo.java | 24 +- .../ccsens/carbasics/mq/RabbitController.java | 205 -- .../persist/dao/AttendanceRecordDao.java | 28 - .../carbasics/persist/dao/CarRecordDao.java | 24 - .../carbasics/persist/dao/CodeParentDao.java | 20 + .../carbasics/persist/dao/DoctorDao.java | 30 - .../persist/dao/FirstAidMessageDao.java | 20 - .../carbasics/persist/dao/HospitalDao.java | 32 - .../carbasics/persist/dao/PatientDao.java | 44 +- .../persist/dao/PatientWisdomCarDao.java | 46 - .../ccsens/carbasics/persist/dao/RfidDao.java | 19 - .../carbasics/persist/dao/WorkingDao.java | 31 - .../mapper/AttendanceRecordMapper.java | 31 - .../persist/mapper/CarRecordMapper.java | 31 - .../mapper/CodeDictionariesMapper.java | 59 +- .../persist/mapper/CodeParentMapper.java | 30 + .../persist/mapper/DoctorMapper.java | 31 - .../persist/mapper/FirstAidLogMapper.java | 30 + .../persist/mapper/FirstAidMapper.java | 59 +- .../persist/mapper/FirstAidMemberMapper.java | 30 + .../persist/mapper/FirstAidMessageMapper.java | 31 - .../mapper/FirstAidRecordLogMapper.java | 59 +- .../persist/mapper/FirstAidRecordMapper.java | 59 +- .../mapper/FirstAidStandardMapper.java | 31 - .../persist/mapper/HospitalMapper.java | 31 - .../mapper/OrganizationDepartmentMapper.java | 30 + .../persist/mapper/OrganizationMapper.java | 30 + .../mapper/OrganizationMemberMapper.java | 30 + .../mapper/OrganizationParentMapper.java | 30 + .../mapper/OrganizationPositionMapper.java | 30 + .../mapper/OrganizationProjectMapper.java | 30 + .../mapper/OrganizationTemplateMapper.java | 30 + .../persist/mapper/PatientMapper.java | 31 - .../mapper/PatientWisdomCarMapper.java | 31 - .../carbasics/persist/mapper/RfidMapper.java | 31 - .../carbasics/persist/mapper/StepMapper.java | 59 +- .../persist/mapper/WisdomCarMapper.java | 31 - .../persist/mapper/WorkingMapper.java | 31 - .../persist/mapper/WrokingMapper.java | 31 - .../service/DictionariesService.java | 65 +- .../service/FirstAidRecordService.java | 194 ++ .../service/IFirstAidRecordService.java | 35 + .../carbasics/service/IFirstAidService.java | 11 + .../carbasics/service/IPatientService.java | 65 - .../service/IPatientWisdomCarService.java | 32 - .../carbasics/service/IQcpProjectService.java | 9 +- .../carbasics/service/IRecordService.java | 33 - .../service/IStatisticalService.java | 37 - .../carbasics/service/IWorkerService.java | 34 - .../carbasics/service/PatientService.java | 312 -- .../service/PatientWisdomCarService.java | 178 -- .../carbasics/service/QcpProjectService.java | 308 +- .../carbasics/service/RecordService.java | 571 ---- .../carbasics/service/StatisticalService.java | 126 +- .../carbasics/service/WorkerService.java | 98 - .../com/ccsens/carbasics/util/Constant.java | 85 +- .../carbasics/util/DefaultCodeError.java | 1 + src/main/resources/application-dev.yml | 4 +- src/main/resources/application-prod.yml | 4 +- src/main/resources/application-test.yml | 4 +- .../mapper_dao/AttendanceRecordDao.xml | 35 - .../resources/mapper_dao/CarRecordDao.xml | 33 - .../resources/mapper_dao/CodeParentDao.xml | 15 + src/main/resources/mapper_dao/DoctorDao.xml | 45 - .../mapper_dao/FirstAidMessageDao.xml | 19 - src/main/resources/mapper_dao/HospitalDao.xml | 38 - src/main/resources/mapper_dao/PatientDao.xml | 117 +- .../mapper_dao/PatientWisdomCarDao.xml | 49 - src/main/resources/mapper_dao/RfidDao.xml | 11 - src/main/resources/mapper_dao/WorkingDao.xml | 37 - .../mapper_raw/CodeDictionariesMapper.xml | 595 ++-- ...WorkingMapper.xml => CodeParentMapper.xml} | 516 ++- .../resources/mapper_raw/DoctorMapper.xml | 353 --- ...domCarMapper.xml => FirstAidLogMapper.xml} | 550 ++-- .../resources/mapper_raw/FirstAidMapper.xml | 863 +++--- ...ageMapper.xml => FirstAidMemberMapper.xml} | 499 ++- .../mapper_raw/FirstAidRecordLogMapper.xml | 580 ++-- .../mapper_raw/FirstAidRecordMapper.xml | 580 ++-- .../mapper_raw/FirstAidStandardMapper.xml | 258 -- .../OrganizationDepartmentMapper.xml | 291 ++ ...ecordMapper.xml => OrganizationMapper.xml} | 644 ++-- ...apper.xml => OrganizationMemberMapper.xml} | 565 ++-- ...apper.xml => OrganizationParentMapper.xml} | 516 ++- ...per.xml => OrganizationPositionMapper.xml} | 548 ++-- .../mapper_raw/OrganizationProjectMapper.xml | 243 ++ ...per.xml => OrganizationTemplateMapper.xml} | 531 ++-- .../resources/mapper_raw/PatientMapper.xml | 338 -- src/main/resources/mapper_raw/RfidMapper.xml | 323 -- src/main/resources/mapper_raw/StepMapper.xml | 579 ++-- src/main/resources/mbg.xml | 33 +- 138 files changed, 18957 insertions(+), 25799 deletions(-) delete mode 100644 src/main/java/com/ccsens/carbasics/api/CarController.java create mode 100644 src/main/java/com/ccsens/carbasics/api/FirstAidRecordController.java delete mode 100644 src/main/java/com/ccsens/carbasics/api/RecordController.java delete mode 100644 src/main/java/com/ccsens/carbasics/api/WorkerController.java rename src/main/java/com/ccsens/carbasics/bean/po/{Working.java => CodeParent.java} (60%) rename src/main/java/com/ccsens/carbasics/bean/po/{WorkingExample.java => CodeParentExample.java} (68%) delete mode 100644 src/main/java/com/ccsens/carbasics/bean/po/Doctor.java delete mode 100644 src/main/java/com/ccsens/carbasics/bean/po/DoctorExample.java rename src/main/java/com/ccsens/carbasics/bean/po/{PatientWisdomCar.java => FirstAidLog.java} (59%) rename src/main/java/com/ccsens/carbasics/bean/po/{PatientWisdomCarExample.java => FirstAidLogExample.java} (72%) rename src/main/java/com/ccsens/carbasics/bean/po/{FirstAidMessage.java => FirstAidMember.java} (65%) rename src/main/java/com/ccsens/carbasics/bean/po/{FirstAidStandardExample.java => FirstAidMemberExample.java} (67%) delete mode 100644 src/main/java/com/ccsens/carbasics/bean/po/FirstAidStandard.java rename src/main/java/com/ccsens/carbasics/bean/po/{AttendanceRecord.java => Organization.java} (55%) create mode 100644 src/main/java/com/ccsens/carbasics/bean/po/OrganizationDepartment.java rename src/main/java/com/ccsens/carbasics/bean/po/{CarRecordExample.java => OrganizationDepartmentExample.java} (66%) rename src/main/java/com/ccsens/carbasics/bean/po/{AttendanceRecordExample.java => OrganizationExample.java} (67%) rename src/main/java/com/ccsens/carbasics/bean/po/{WisdomCar.java => OrganizationMember.java} (63%) rename src/main/java/com/ccsens/carbasics/bean/po/{WisdomCarExample.java => OrganizationMemberExample.java} (72%) rename src/main/java/com/ccsens/carbasics/bean/po/{Wroking.java => OrganizationParent.java} (60%) create mode 100644 src/main/java/com/ccsens/carbasics/bean/po/OrganizationParentExample.java rename src/main/java/com/ccsens/carbasics/bean/po/{Hospital.java => OrganizationPosition.java} (75%) rename src/main/java/com/ccsens/carbasics/bean/po/{HospitalExample.java => OrganizationPositionExample.java} (82%) create mode 100644 src/main/java/com/ccsens/carbasics/bean/po/OrganizationProject.java rename src/main/java/com/ccsens/carbasics/bean/po/{WrokingExample.java => OrganizationProjectExample.java} (68%) rename src/main/java/com/ccsens/carbasics/bean/po/{CarRecord.java => OrganizationTemplate.java} (61%) rename src/main/java/com/ccsens/carbasics/bean/po/{FirstAidMessageExample.java => OrganizationTemplateExample.java} (75%) delete mode 100644 src/main/java/com/ccsens/carbasics/bean/po/Patient.java delete mode 100644 src/main/java/com/ccsens/carbasics/bean/po/PatientExample.java delete mode 100644 src/main/java/com/ccsens/carbasics/bean/po/Rfid.java delete mode 100644 src/main/java/com/ccsens/carbasics/bean/po/RfidExample.java delete mode 100644 src/main/java/com/ccsens/carbasics/mq/RabbitController.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/AttendanceRecordDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/CarRecordDao.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/CodeParentDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/DoctorDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/FirstAidMessageDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/HospitalDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/PatientWisdomCarDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/RfidDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/dao/WorkingDao.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/AttendanceRecordMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/CarRecordMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/CodeParentMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/DoctorMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidLogMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMemberMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMessageMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidStandardMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/HospitalMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationDepartmentMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMemberMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationParentMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationPositionMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationProjectMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationTemplateMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/PatientMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/PatientWisdomCarMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/RfidMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/WisdomCarMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/WorkingMapper.java delete mode 100644 src/main/java/com/ccsens/carbasics/persist/mapper/WrokingMapper.java create mode 100644 src/main/java/com/ccsens/carbasics/service/FirstAidRecordService.java create mode 100644 src/main/java/com/ccsens/carbasics/service/IFirstAidRecordService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/IPatientService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/IPatientWisdomCarService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/IRecordService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/IWorkerService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/PatientService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/PatientWisdomCarService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/RecordService.java delete mode 100644 src/main/java/com/ccsens/carbasics/service/WorkerService.java delete mode 100644 src/main/resources/mapper_dao/AttendanceRecordDao.xml delete mode 100644 src/main/resources/mapper_dao/CarRecordDao.xml create mode 100644 src/main/resources/mapper_dao/CodeParentDao.xml delete mode 100644 src/main/resources/mapper_dao/DoctorDao.xml delete mode 100644 src/main/resources/mapper_dao/FirstAidMessageDao.xml delete mode 100644 src/main/resources/mapper_dao/HospitalDao.xml delete mode 100644 src/main/resources/mapper_dao/PatientWisdomCarDao.xml delete mode 100644 src/main/resources/mapper_dao/RfidDao.xml delete mode 100644 src/main/resources/mapper_dao/WorkingDao.xml rename src/main/resources/mapper_raw/{WorkingMapper.xml => CodeParentMapper.xml} (67%) delete mode 100644 src/main/resources/mapper_raw/DoctorMapper.xml rename src/main/resources/mapper_raw/{PatientWisdomCarMapper.xml => FirstAidLogMapper.xml} (68%) rename src/main/resources/mapper_raw/{FirstAidMessageMapper.xml => FirstAidMemberMapper.xml} (72%) delete mode 100644 src/main/resources/mapper_raw/FirstAidStandardMapper.xml create mode 100644 src/main/resources/mapper_raw/OrganizationDepartmentMapper.xml rename src/main/resources/mapper_raw/{AttendanceRecordMapper.xml => OrganizationMapper.xml} (64%) rename src/main/resources/mapper_raw/{WisdomCarMapper.xml => OrganizationMemberMapper.xml} (69%) rename src/main/resources/mapper_raw/{WrokingMapper.xml => OrganizationParentMapper.xml} (67%) rename src/main/resources/mapper_raw/{HospitalMapper.xml => OrganizationPositionMapper.xml} (78%) create mode 100644 src/main/resources/mapper_raw/OrganizationProjectMapper.xml rename src/main/resources/mapper_raw/{CarRecordMapper.xml => OrganizationTemplateMapper.xml} (68%) delete mode 100644 src/main/resources/mapper_raw/PatientMapper.xml delete mode 100644 src/main/resources/mapper_raw/RfidMapper.xml diff --git a/src/main/java/com/ccsens/carbasics/CarbasicsApplication.java b/src/main/java/com/ccsens/carbasics/CarbasicsApplication.java index be9813b..80bcdb6 100644 --- a/src/main/java/com/ccsens/carbasics/CarbasicsApplication.java +++ b/src/main/java/com/ccsens/carbasics/CarbasicsApplication.java @@ -19,7 +19,6 @@ import org.springframework.scheduling.annotation.EnableAsync; @EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") @SpringBootApplication @ComponentScan(basePackages = "com.ccsens", excludeFilters = { @ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE, value = RibbonConfiguration.class)}) - public class CarbasicsApplication { public static void main(String[] args) { diff --git a/src/main/java/com/ccsens/carbasics/api/CarController.java b/src/main/java/com/ccsens/carbasics/api/CarController.java deleted file mode 100644 index f9b203d..0000000 --- a/src/main/java/com/ccsens/carbasics/api/CarController.java +++ /dev/null @@ -1,66 +0,0 @@ -package com.ccsens.carbasics.api; - -import com.ccsens.carbasics.bean.dto.CarDto; -import com.ccsens.carbasics.bean.vo.CarVo; -import com.ccsens.carbasics.service.IPatientWisdomCarService; -import com.ccsens.cloudutil.annotation.MustLogin; -import com.ccsens.util.CodeError; -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; - -/** - * @description:平车相关 - * @author: whj - * @time: 2021/7/27 16:39 - */ -@Api(tags = "平车相关") -@RestController -@RequestMapping("/car") -@Slf4j -public class CarController { - -// @Resource -// private IPatientWisdomCarService patientWisdomCarService; - -// @MustLogin -// @ApiOperation(value = "查询医院的平车信息") -// @RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse> query(@ApiParam @Validated @RequestBody QueryDto params) { -// log.info("查询医院的平车信息:{}", params); -// List list = patientWisdomCarService.query(params.getUserId()); -// log.info("查询医院的平车信息结果:{}", list); -// return JsonResponse.newInstance().ok(list); -// } - -// @MustLogin -// @ApiOperation(value = "查询患者绑定的平车信息") -// @RequestMapping(value = "/queryBind", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse queryBind(@ApiParam @Validated @RequestBody QueryDto params) { -// log.info("查询患者绑定的平车信息:{}", params); -// CarVo.QueryBind bind = patientWisdomCarService.queryBind(params.getParam(), params.getUserId()); -// log.info("查询患者绑定的平车信息结果:{}", bind); -// return JsonResponse.newInstance().ok(bind); -// } - -// @MustLogin -// @ApiOperation(value = "绑定平车") -// @RequestMapping(value = "/bind", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse bind(@ApiParam @Validated @RequestBody QueryDto params) { -// log.info("绑定平车:{}", params); -// CodeError.Code codeError = patientWisdomCarService.bind(params.getParam(), params.getUserId()); -// log.info("绑定平车结果:{}", codeError); -// return JsonResponse.newInstance().ok(codeError); -// } -} diff --git a/src/main/java/com/ccsens/carbasics/api/DebugController.java b/src/main/java/com/ccsens/carbasics/api/DebugController.java index d3e4b2e..0eee4da 100644 --- a/src/main/java/com/ccsens/carbasics/api/DebugController.java +++ b/src/main/java/com/ccsens/carbasics/api/DebugController.java @@ -1,21 +1,14 @@ package com.ccsens.carbasics.api; -import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; -import com.ccsens.carbasics.service.IRecordService; import com.ccsens.util.JsonResponse; -import com.ccsens.util.bean.dto.QueryDto; import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; -import io.swagger.annotations.ApiParam; import lombok.extern.slf4j.Slf4j; -import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; -import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; @Api(tags = "DEBUG" , description = "DebugController | ") @@ -24,9 +17,6 @@ import javax.servlet.http.HttpServletRequest; @Slf4j public class DebugController { - @Resource - private IRecordService recordService; - @ApiOperation(value = "/测试",notes = "") @ApiImplicitParams({ }) @@ -36,13 +26,4 @@ public class DebugController { return JsonResponse.newInstance().ok("测试"); } - @ApiOperation(value = "/测试消息接收存放",notes = "") - @ApiImplicitParams({ - }) - @RequestMapping(value="/record",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) - public JsonResponse record(@ApiParam @Validated @RequestBody QueryDto params) throws Exception { - recordService.disposeMessage(params.getParam()); - return JsonResponse.newInstance().ok("测试"); - } - } diff --git a/src/main/java/com/ccsens/carbasics/api/FirstAidRecordController.java b/src/main/java/com/ccsens/carbasics/api/FirstAidRecordController.java new file mode 100644 index 0000000..3922cc4 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/api/FirstAidRecordController.java @@ -0,0 +1,58 @@ +package com.ccsens.carbasics.api; + +import com.ccsens.carbasics.bean.dto.PatientDto; +import com.ccsens.carbasics.bean.vo.PatientVo; +import com.ccsens.carbasics.service.IFirstAidRecordService; +import com.ccsens.cloudutil.annotation.MustLogin; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import com.github.pagehelper.PageInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.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; + + +/** + * @author 逗 + */ +@Api(tags = "数据录入相关" , description = "") +@RestController +@RequestMapping("/patient") +@Slf4j +public class FirstAidRecordController { + @Resource + private IFirstAidRecordService patientService; + + @MustLogin + @ApiOperation(value = "查询类型的所有下级和完成情况", notes = "") + @RequestMapping(value = "/subordinate", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse querySubordinate(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + PatientVo.QuerySubordinate querySubordinate = patientService.querySubordinate(params.getParam(), params.getUserId()); + return JsonResponse.newInstance().ok(querySubordinate); + } + + @MustLogin + @ApiOperation(value = "批量提交急救信息", notes = "") + @RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse saveAidRecordN(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + patientService.saveAidRecordN(params.getParam(), params.getUserId()); + return JsonResponse.newInstance().ok(); + } + + @MustLogin + @ApiOperation(value = "批量查询急救信息", notes = "") + @RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse queryAidRecordN(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + PatientVo.QueryAidRecordN queryAidRecord = patientService.queryAidRecordN(params.getParam(), params.getUserId()); + return JsonResponse.newInstance().ok(queryAidRecord); + } + +} diff --git a/src/main/java/com/ccsens/carbasics/api/PatientController.java b/src/main/java/com/ccsens/carbasics/api/PatientController.java index 87af287..6cb5256 100644 --- a/src/main/java/com/ccsens/carbasics/api/PatientController.java +++ b/src/main/java/com/ccsens/carbasics/api/PatientController.java @@ -1,94 +1,45 @@ -package com.ccsens.carbasics.api; - -import com.ccsens.carbasics.bean.dto.PatientDto; -import com.ccsens.carbasics.bean.dto.StatisticalDto; -import com.ccsens.carbasics.bean.vo.PatientVo; -import com.ccsens.carbasics.service.IPatientService; -import com.ccsens.cloudutil.annotation.MustLogin; -import com.ccsens.util.JsonResponse; -import com.ccsens.util.bean.dto.QueryDto; -import com.github.pagehelper.PageInfo; -import io.swagger.annotations.Api; -import io.swagger.annotations.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; - - -/** - * @author 逗 - */ -@Api(tags = "患者相关" , description = "") -@RestController -@RequestMapping("/patient") -@Slf4j -public class PatientController { - @Resource - private IPatientService patientService; - - @MustLogin - @ApiOperation(value = "查询患者列表", notes = "查询患者列表") - @RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryPatientList(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - PageInfo patientList = patientService.queryPatientList(params.getParam(), params.getUserId()); - return JsonResponse.newInstance().ok(patientList); - } - -// @MustLogin -// @ApiOperation(value = "批量提交急救信息", notes = "") -// @RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse saveAidRecord(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ -// patientService.saveAidRecord(params.getParam(), params.getUserId()); -// return JsonResponse.newInstance().ok(); -// } -// -// @MustLogin -// @ApiOperation(value = "批量查询急救信息", notes = "") -// @RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse queryAidRecord(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ -// PatientVo.QueryAidRecord queryAidRecord = patientService.queryAidRecord(params.getParam(), params.getUserId()); -// return JsonResponse.newInstance().ok(queryAidRecord); -// } - - @MustLogin - @ApiOperation(value = "查询类型的所有下级和完成情况", notes = "") - @RequestMapping(value = "/subordinate", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse querySubordinate(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - PatientVo.QuerySubordinate querySubordinate = patientService.querySubordinate(params.getParam(), params.getUserId()); - return JsonResponse.newInstance().ok(querySubordinate); - } -// - - - @MustLogin - @ApiOperation(value = "时间沙漏", notes = "") - @RequestMapping(value = "/sandClock", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse timeSandClock(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - PatientVo.TimeSandClock timeSandClock = patientService.timeSandClock(params.getParam(), params.getUserId()); - return JsonResponse.newInstance().ok(timeSandClock); - } - - - @MustLogin - @ApiOperation(value = "批量提交急救信息", notes = "") - @RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse saveAidRecordN(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - patientService.saveAidRecordN(params.getParam(), params.getUserId()); - return JsonResponse.newInstance().ok(); - } - - @MustLogin - @ApiOperation(value = "批量查询急救信息", notes = "") - @RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse queryAidRecordN(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - PatientVo.QueryAidRecordN queryAidRecord = patientService.queryAidRecordN(params.getParam(), params.getUserId()); - return JsonResponse.newInstance().ok(queryAidRecord); - } - -} +package com.ccsens.carbasics.api; + +import com.ccsens.carbasics.bean.dto.PatientDto; +import com.ccsens.carbasics.bean.vo.PatientVo; +import com.ccsens.carbasics.service.IFirstAidService; +import com.ccsens.cloudutil.annotation.MustLogin; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import com.github.pagehelper.PageInfo; +import io.swagger.annotations.Api; +import io.swagger.annotations.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; + +/** + * @description: + * @author: whj + * @time: 2021/8/30 18:18 + */ +@Api(tags = "患者列表相关" , description = "") +@RestController +@RequestMapping("/patient") +@Slf4j +public class PatientController { + + @Resource + private IFirstAidService firstAidService; + + @MustLogin + @ApiOperation(value = "病例列表", notes = "分诊护士/神内医生/神外医生查看相关病例") + @RequestMapping(value = "/querySelf", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> querySelf(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ + log.info("查询自己相关的病例列表:{}", params); + PageInfo page = firstAidService.querySelf(params.getParam(), params.getUserId()); + log.info("查询自己相关的病例列表成功"); + return JsonResponse.newInstance().ok(page); + } +} diff --git a/src/main/java/com/ccsens/carbasics/api/ProjectController.java b/src/main/java/com/ccsens/carbasics/api/ProjectController.java index b04eb3c..0e0bf11 100644 --- a/src/main/java/com/ccsens/carbasics/api/ProjectController.java +++ b/src/main/java/com/ccsens/carbasics/api/ProjectController.java @@ -42,15 +42,15 @@ public class ProjectController { return JsonResponse.newInstance().ok(projectById); } - @MustLogin - @ApiOperation(value = "创建病例", notes = "") - @RequestMapping(value = "/createCase", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse createCase(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - log.info("创建病例开始:{}",params); - ProjectVo.CreateCaseV projectId = qcpProjectService.createCase(params.getParam(), params.getUserId()); - log.info("创建病例结束{}",projectId); - return JsonResponse.newInstance().ok(projectId); - } +// @MustLogin +// @ApiOperation(value = "创建病例", notes = "") +// @RequestMapping(value = "/createCase", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse createCase(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ +// log.info("创建病例开始:{}",params); +// ProjectVo.CreateCaseV projectId = qcpProjectService.createCase(params.getParam(), params.getUserId()); +// log.info("创建病例结束{}",projectId); +// return JsonResponse.newInstance().ok(projectId); +// } @MustLogin @@ -63,13 +63,4 @@ public class ProjectController { return JsonResponse.newInstance().ok(); } - @MustLogin - @ApiOperation(value = "查询当前项目最新消息", notes = "") - @RequestMapping(value = "/queryNewMessage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse queryNewMessage(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - log.info("创建病例开始:{}",params); - ProjectVo.NewMessage newMessage = qcpProjectService.queryNewMessage(params.getParam(), params.getUserId()); - log.info("创建病例结束{}",newMessage); - return JsonResponse.newInstance().ok(newMessage); - } } diff --git a/src/main/java/com/ccsens/carbasics/api/RecordController.java b/src/main/java/com/ccsens/carbasics/api/RecordController.java deleted file mode 100644 index 9f7a04f..0000000 --- a/src/main/java/com/ccsens/carbasics/api/RecordController.java +++ /dev/null @@ -1,69 +0,0 @@ -package com.ccsens.carbasics.api; - -import cn.hutool.core.util.CharsetUtil; -import com.ccsens.carbasics.bean.dto.RecordDto; -import com.ccsens.carbasics.bean.vo.RecordVo; -import com.ccsens.carbasics.service.IRecordService; -import com.ccsens.util.DateUtil; -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.apache.poi.ss.usermodel.Workbook; -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 javax.servlet.http.HttpServletResponse; -import java.io.IOException; -import java.net.URLEncoder; -import java.util.Date; -import java.util.List; - -/** - * @author whj - */ -@Slf4j -@Api(tags = "消息记录相关api" ) -@RestController -@RequestMapping("/record") -public class RecordController { - -// @Resource -// private IRecordService recordService; -// @ApiOperation(value = "查询智慧平车称重和rfid记录", notes = "") -// @RequestMapping(value = "/weightList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) -// public JsonResponse timeList(@ApiParam @Validated @RequestBody QueryDto params){ -// log.info("查询智慧平车称重和rfid记录:{}", params); -// if (params.getParam().getEndTime() != null) { -// params.getParam().setEndTime(params.getParam().getEndTime() + 24 * 3600 *1000); -// } -// List list = recordService.queryWeightAndRfid(params.getParam(), params.getUserId()); -// log.info("查询智慧平车称重和rfid记录结果:{}",list); -// return JsonResponse.newInstance().ok(list); -// } - -// @ApiOperation(value = "智慧平车称重和rfid记录导出", notes = "") -// @RequestMapping(value = "/weightExport", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) -// public void weightExport(@ApiParam @Validated RecordDto.WeightAndRfidExport param, HttpServletResponse response) throws IOException { -// log.info("导出智慧平车称重和rfid记录:{}", param); -// if (param.getEndTime() != null) { -// param.setEndTime(param.getEndTime() + 24 * 3600 *1000); -// } -// Workbook workbook = recordService.exportWeightAndRfid(param); -// log.info("导出智慧平车称重和rfid记录结果结束"); -// Date start = new Date(); -// start.setTime(param.getStartTime()); -// Date end = new Date(); -// end.setTime(param.getEndTime() - 24 * 3600 * 1000); -// String fileName = "智慧平车记录"+ DateUtil.format(start, DateUtil.yyyyMMdd) + "-" + DateUtil.format(end, DateUtil.yyyyMMdd) +".xlsx"; -// response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8)); -// workbook.write(response.getOutputStream()); -// } - -} diff --git a/src/main/java/com/ccsens/carbasics/api/RoleController.java b/src/main/java/com/ccsens/carbasics/api/RoleController.java index aa54eb1..f74bd12 100644 --- a/src/main/java/com/ccsens/carbasics/api/RoleController.java +++ b/src/main/java/com/ccsens/carbasics/api/RoleController.java @@ -33,7 +33,7 @@ public class RoleController { @ApiOperation(value = "根据项目id查找角色", notes = "") @RequestMapping(value = "/show", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse queryByProjectId(@ApiParam @Validated @RequestBody QueryDto params) { - CRoleVo.QueryRole queryRole = roleService.QueryShowRole(params.getParam(), params.getUserId()); + CRoleVo.QueryRole queryRole = roleService.queryShowRole(params.getParam(), params.getUserId()); return JsonResponse.newInstance().ok(queryRole); } diff --git a/src/main/java/com/ccsens/carbasics/api/StatisticalController.java b/src/main/java/com/ccsens/carbasics/api/StatisticalController.java index 867dab3..30f0602 100644 --- a/src/main/java/com/ccsens/carbasics/api/StatisticalController.java +++ b/src/main/java/com/ccsens/carbasics/api/StatisticalController.java @@ -1,27 +1,15 @@ package com.ccsens.carbasics.api; -import com.ccsens.carbasics.bean.dto.StatisticalDto; -import com.ccsens.carbasics.bean.vo.StatisticalVo; -import com.ccsens.carbasics.bean.vo.StatisticsVo; import com.ccsens.carbasics.service.IStatisticalService; -import com.ccsens.cloudutil.annotation.MustLogin; -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; /** - * @description:统计查询 + * @description: 统计查询 * @author: whj * @time: 2021/7/28 8:54 */ @@ -33,55 +21,4 @@ public class StatisticalController { @Resource private IStatisticalService statisticalService; - - @MustLogin - @ApiOperation(value = "急救环节完成情况") - @RequestMapping(value = "/step", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryStep(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("查询急救环节完成情况:{}", params); - List steps = statisticalService.queryStep(params.getParam(), params.getUserId()); - log.info("询急救环节完成情况结果:{}", steps); - return JsonResponse.newInstance().ok(steps); - } - - @MustLogin - @ApiOperation(value = "查询质控报告") - @RequestMapping(value = "/queryQuality", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryQuality(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("查询质控报告:{}", params); - List qualities = statisticalService.queryQuality(params.getParam(), params.getUserId()); - log.info("查询质控报告结果:{}", qualities); - return JsonResponse.newInstance().ok(qualities); - } - - - @MustLogin - @ApiOperation(value = "查询每天质控报告") - @RequestMapping(value = "/queryQuality/everyday", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryEveryDayQuality(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("查询每天质控报告:{}", params); - List qualities = statisticalService.queryEveryDayQuality(params.getUserId()); - log.info("查询每天质控报告结果:{}", qualities); - return JsonResponse.newInstance().ok(qualities); - } - - @MustLogin - @ApiOperation(value = "急救各个节点时间统计", notes = "") - @RequestMapping(value = "/getPointTime", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse getPointTime(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("急救各个节点时间统计:{}",params); - StatisticsVo.PointTimeList pointTime = statisticalService.getPointTime(params.getParam(),params.getUserId()); - log.info("急救各个节点时间统计"); - return JsonResponse.newInstance().ok(pointTime); - } - - @MustLogin - @ApiOperation(value = "急救数量统计图数据", notes = "") - @RequestMapping(value = "/selResult", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse selResult(@ApiParam @Validated @RequestBody QueryDto params) { - log.info("急救各个节点时间统计:{}",params); - StatisticsVo.UseNumsVo useNumsVo = statisticalService.selResult(params.getParam(),params.getUserId()); - log.info("急救各个节点时间统计"); - return JsonResponse.newInstance().ok(useNumsVo); - } } diff --git a/src/main/java/com/ccsens/carbasics/api/WorkerController.java b/src/main/java/com/ccsens/carbasics/api/WorkerController.java deleted file mode 100644 index b6b1fdb..0000000 --- a/src/main/java/com/ccsens/carbasics/api/WorkerController.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.ccsens.carbasics.api; - -import com.ccsens.carbasics.bean.dto.WorkerDto; -import com.ccsens.carbasics.bean.vo.WorkerVo; -import com.ccsens.carbasics.service.IWorkerService; -import com.ccsens.cloudutil.annotation.MustLogin; -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; -import java.util.Map; - -/** - * @author AUSU - */ -@Api(tags = "人员相关" , description = "") -@RestController -@RequestMapping("/worker") -@Slf4j -public class WorkerController { - - @Resource - IWorkerService workerService; - - @MustLogin - @ApiOperation(value = "添加到场人员信息", notes = "添加到场人员信息") - @RequestMapping(value = "/addArriveWorker", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse addArriveWorker(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - log.info("添加到场人员信息接口开始{}",params); - workerService.addArriveWorker(params.getParam(), params.getUserId()); - log.info("添加到场人员信息接口结束"); - return JsonResponse.newInstance().ok(); - } - - @MustLogin - @ApiOperation(value = "查询到场人员信息", notes = "查询到场人员信息") - @RequestMapping(value = "/queryArriveWorker", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse> queryArriveWorker(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - log.info("查询到场人员信息开始{}",params); - List workerInfoList = workerService.queryArriveWorker(params.getParam(), params.getUserId()); - log.info("查询到场人员信息结束{}",workerInfoList); - return JsonResponse.newInstance().ok(workerInfoList); - } - - @MustLogin - @ApiOperation(value = "查询医院成员和急救期间是否值班", notes = "查询医院成员和急救期间是否值班") - @RequestMapping(value = "/queryAllDoctor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) - public JsonResponse>> queryAllDoctor(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ - log.info("添加到场人员信息接口开始{}",params); - Map> workerInfoList = workerService.queryAllDoctor(params.getUserId()); - log.info("添加到场人员信息接口结束"); - return JsonResponse.newInstance().ok(workerInfoList); - } - -} diff --git a/src/main/java/com/ccsens/carbasics/bean/dto/PatientDto.java b/src/main/java/com/ccsens/carbasics/bean/dto/PatientDto.java index 4751dd1..6bab432 100644 --- a/src/main/java/com/ccsens/carbasics/bean/dto/PatientDto.java +++ b/src/main/java/com/ccsens/carbasics/bean/dto/PatientDto.java @@ -18,12 +18,17 @@ public class PatientDto { @ApiModel("查询医院下的患者列表") public static class QueryPatient{ @Min(value = 0,message = "请查询正确的患者类型") - @Max(value=2,message = "请查询正确的患者类型") - @ApiModelProperty("患者类型 0急救患者 1平车患者 2转归患者") - private int type; + @Max(value=1,message = "请查询正确的患者类型") + @ApiModelProperty("患者类型 0:急诊 1:转归") + private byte firstAidType; @Length(max = 20,message = "名称过长") @ApiModelProperty("患者名称 不传查询全部") - private String patientName; + private String name; + @ApiModelProperty("查询权限 0 :查自己创建的 1:查自己录入的和无医生加入的,默认0") + private byte type = 0; + @NotNull + @ApiModelProperty("项目ID") + private Long projectId; @ApiModelProperty("第几页") @Min(value = 1) @@ -89,7 +94,7 @@ public class PatientDto { private Long projectId; @Max(value=1,message = "请查询正确的提交人类型") @ApiModelProperty("提交人类型(0平车 1人)") - private byte userType = 0; + private byte userType = 1; @ApiModelProperty("code和答案") private List codeAndAnswerList; } diff --git a/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionaries.java b/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionaries.java index f8b8519..f175544 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionaries.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionaries.java @@ -1,139 +1,128 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class CodeDictionaries implements Serializable { - private Long id; - - private String question; - - private String questionCode; - - private String parentCode; - - private Long hospitalId; - - private String taskName; - - private Long stepId; - - 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 getQuestion() { - return question; - } - - public void setQuestion(String question) { - this.question = question == null ? null : question.trim(); - } - - public String getQuestionCode() { - return questionCode; - } - - public void setQuestionCode(String questionCode) { - this.questionCode = questionCode == null ? null : questionCode.trim(); - } - - public String getParentCode() { - return parentCode; - } - - public void setParentCode(String parentCode) { - this.parentCode = parentCode == null ? null : parentCode.trim(); - } - - public Long getHospitalId() { - return hospitalId; - } - - public void setHospitalId(Long hospitalId) { - this.hospitalId = hospitalId; - } - - public String getTaskName() { - return taskName; - } - - public void setTaskName(String taskName) { - this.taskName = taskName == null ? null : taskName.trim(); - } - - public Long getStepId() { - return stepId; - } - - public void setStepId(Long stepId) { - this.stepId = stepId; - } - - 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(", question=").append(question); - sb.append(", questionCode=").append(questionCode); - sb.append(", parentCode=").append(parentCode); - sb.append(", hospitalId=").append(hospitalId); - sb.append(", taskName=").append(taskName); - sb.append(", stepId=").append(stepId); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class CodeDictionaries implements Serializable { + private Long id; + + private String question; + + private String questionCode; + + private Long hospitalId; + + private String taskName; + + private Long stepId; + + 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 getQuestion() { + return question; + } + + public void setQuestion(String question) { + this.question = question == null ? null : question.trim(); + } + + public String getQuestionCode() { + return questionCode; + } + + public void setQuestionCode(String questionCode) { + this.questionCode = questionCode == null ? null : questionCode.trim(); + } + + public Long getHospitalId() { + return hospitalId; + } + + public void setHospitalId(Long hospitalId) { + this.hospitalId = hospitalId; + } + + public String getTaskName() { + return taskName; + } + + public void setTaskName(String taskName) { + this.taskName = taskName == null ? null : taskName.trim(); + } + + public Long getStepId() { + return stepId; + } + + public void setStepId(Long stepId) { + this.stepId = stepId; + } + + 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(", question=").append(question); + sb.append(", questionCode=").append(questionCode); + sb.append(", hospitalId=").append(hospitalId); + sb.append(", taskName=").append(taskName); + sb.append(", stepId=").append(stepId); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionariesExample.java b/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionariesExample.java index 99cbc7e..9615f45 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionariesExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/CodeDictionariesExample.java @@ -1,901 +1,831 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class CodeDictionariesExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public CodeDictionariesExample() { - 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 andQuestionIsNull() { - addCriterion("question is null"); - return (Criteria) this; - } - - public Criteria andQuestionIsNotNull() { - addCriterion("question is not null"); - return (Criteria) this; - } - - public Criteria andQuestionEqualTo(String value) { - addCriterion("question =", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionNotEqualTo(String value) { - addCriterion("question <>", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionGreaterThan(String value) { - addCriterion("question >", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionGreaterThanOrEqualTo(String value) { - addCriterion("question >=", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionLessThan(String value) { - addCriterion("question <", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionLessThanOrEqualTo(String value) { - addCriterion("question <=", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionLike(String value) { - addCriterion("question like", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionNotLike(String value) { - addCriterion("question not like", value, "question"); - return (Criteria) this; - } - - public Criteria andQuestionIn(List values) { - addCriterion("question in", values, "question"); - return (Criteria) this; - } - - public Criteria andQuestionNotIn(List values) { - addCriterion("question not in", values, "question"); - return (Criteria) this; - } - - public Criteria andQuestionBetween(String value1, String value2) { - addCriterion("question between", value1, value2, "question"); - return (Criteria) this; - } - - public Criteria andQuestionNotBetween(String value1, String value2) { - addCriterion("question not between", value1, value2, "question"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIsNull() { - addCriterion("question_code is null"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIsNotNull() { - addCriterion("question_code is not null"); - return (Criteria) this; - } - - public Criteria andQuestionCodeEqualTo(String value) { - addCriterion("question_code =", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotEqualTo(String value) { - addCriterion("question_code <>", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeGreaterThan(String value) { - addCriterion("question_code >", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { - addCriterion("question_code >=", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLessThan(String value) { - addCriterion("question_code <", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLessThanOrEqualTo(String value) { - addCriterion("question_code <=", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLike(String value) { - addCriterion("question_code like", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotLike(String value) { - addCriterion("question_code not like", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIn(List values) { - addCriterion("question_code in", values, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotIn(List values) { - addCriterion("question_code not in", values, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeBetween(String value1, String value2) { - addCriterion("question_code between", value1, value2, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotBetween(String value1, String value2) { - addCriterion("question_code not between", value1, value2, "questionCode"); - return (Criteria) this; - } - - public Criteria andParentCodeIsNull() { - addCriterion("parent_code is null"); - return (Criteria) this; - } - - public Criteria andParentCodeIsNotNull() { - addCriterion("parent_code is not null"); - return (Criteria) this; - } - - public Criteria andParentCodeEqualTo(String value) { - addCriterion("parent_code =", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeNotEqualTo(String value) { - addCriterion("parent_code <>", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeGreaterThan(String value) { - addCriterion("parent_code >", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeGreaterThanOrEqualTo(String value) { - addCriterion("parent_code >=", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeLessThan(String value) { - addCriterion("parent_code <", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeLessThanOrEqualTo(String value) { - addCriterion("parent_code <=", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeLike(String value) { - addCriterion("parent_code like", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeNotLike(String value) { - addCriterion("parent_code not like", value, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeIn(List values) { - addCriterion("parent_code in", values, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeNotIn(List values) { - addCriterion("parent_code not in", values, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeBetween(String value1, String value2) { - addCriterion("parent_code between", value1, value2, "parentCode"); - return (Criteria) this; - } - - public Criteria andParentCodeNotBetween(String value1, String value2) { - addCriterion("parent_code not between", value1, value2, "parentCode"); - 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 andTaskNameIsNull() { - addCriterion("task_name is null"); - return (Criteria) this; - } - - public Criteria andTaskNameIsNotNull() { - addCriterion("task_name is not null"); - return (Criteria) this; - } - - public Criteria andTaskNameEqualTo(String value) { - addCriterion("task_name =", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameNotEqualTo(String value) { - addCriterion("task_name <>", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameGreaterThan(String value) { - addCriterion("task_name >", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameGreaterThanOrEqualTo(String value) { - addCriterion("task_name >=", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameLessThan(String value) { - addCriterion("task_name <", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameLessThanOrEqualTo(String value) { - addCriterion("task_name <=", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameLike(String value) { - addCriterion("task_name like", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameNotLike(String value) { - addCriterion("task_name not like", value, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameIn(List values) { - addCriterion("task_name in", values, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameNotIn(List values) { - addCriterion("task_name not in", values, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameBetween(String value1, String value2) { - addCriterion("task_name between", value1, value2, "taskName"); - return (Criteria) this; - } - - public Criteria andTaskNameNotBetween(String value1, String value2) { - addCriterion("task_name not between", value1, value2, "taskName"); - return (Criteria) this; - } - - public Criteria andStepIdIsNull() { - addCriterion("step_id is null"); - return (Criteria) this; - } - - public Criteria andStepIdIsNotNull() { - addCriterion("step_id is not null"); - return (Criteria) this; - } - - public Criteria andStepIdEqualTo(Long value) { - addCriterion("step_id =", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotEqualTo(Long value) { - addCriterion("step_id <>", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThan(Long value) { - addCriterion("step_id >", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThanOrEqualTo(Long value) { - addCriterion("step_id >=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThan(Long value) { - addCriterion("step_id <", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThanOrEqualTo(Long value) { - addCriterion("step_id <=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdIn(List values) { - addCriterion("step_id in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotIn(List values) { - addCriterion("step_id not in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdBetween(Long value1, Long value2) { - addCriterion("step_id between", value1, value2, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotBetween(Long value1, Long value2) { - addCriterion("step_id not between", value1, value2, "stepId"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CodeDictionariesExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CodeDictionariesExample() { + 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 andQuestionIsNull() { + addCriterion("question is null"); + return (Criteria) this; + } + + public Criteria andQuestionIsNotNull() { + addCriterion("question is not null"); + return (Criteria) this; + } + + public Criteria andQuestionEqualTo(String value) { + addCriterion("question =", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotEqualTo(String value) { + addCriterion("question <>", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionGreaterThan(String value) { + addCriterion("question >", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionGreaterThanOrEqualTo(String value) { + addCriterion("question >=", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionLessThan(String value) { + addCriterion("question <", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionLessThanOrEqualTo(String value) { + addCriterion("question <=", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionLike(String value) { + addCriterion("question like", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotLike(String value) { + addCriterion("question not like", value, "question"); + return (Criteria) this; + } + + public Criteria andQuestionIn(List values) { + addCriterion("question in", values, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotIn(List values) { + addCriterion("question not in", values, "question"); + return (Criteria) this; + } + + public Criteria andQuestionBetween(String value1, String value2) { + addCriterion("question between", value1, value2, "question"); + return (Criteria) this; + } + + public Criteria andQuestionNotBetween(String value1, String value2) { + addCriterion("question not between", value1, value2, "question"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIsNull() { + addCriterion("question_code is null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIsNotNull() { + addCriterion("question_code is not null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeEqualTo(String value) { + addCriterion("question_code =", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotEqualTo(String value) { + addCriterion("question_code <>", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThan(String value) { + addCriterion("question_code >", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { + addCriterion("question_code >=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThan(String value) { + addCriterion("question_code <", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThanOrEqualTo(String value) { + addCriterion("question_code <=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLike(String value) { + addCriterion("question_code like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotLike(String value) { + addCriterion("question_code not like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIn(List values) { + addCriterion("question_code in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotIn(List values) { + addCriterion("question_code not in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeBetween(String value1, String value2) { + addCriterion("question_code between", value1, value2, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotBetween(String value1, String value2) { + addCriterion("question_code not between", value1, value2, "questionCode"); + 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 andTaskNameIsNull() { + addCriterion("task_name is null"); + return (Criteria) this; + } + + public Criteria andTaskNameIsNotNull() { + addCriterion("task_name is not null"); + return (Criteria) this; + } + + public Criteria andTaskNameEqualTo(String value) { + addCriterion("task_name =", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameNotEqualTo(String value) { + addCriterion("task_name <>", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameGreaterThan(String value) { + addCriterion("task_name >", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameGreaterThanOrEqualTo(String value) { + addCriterion("task_name >=", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameLessThan(String value) { + addCriterion("task_name <", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameLessThanOrEqualTo(String value) { + addCriterion("task_name <=", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameLike(String value) { + addCriterion("task_name like", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameNotLike(String value) { + addCriterion("task_name not like", value, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameIn(List values) { + addCriterion("task_name in", values, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameNotIn(List values) { + addCriterion("task_name not in", values, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameBetween(String value1, String value2) { + addCriterion("task_name between", value1, value2, "taskName"); + return (Criteria) this; + } + + public Criteria andTaskNameNotBetween(String value1, String value2) { + addCriterion("task_name not between", value1, value2, "taskName"); + return (Criteria) this; + } + + public Criteria andStepIdIsNull() { + addCriterion("step_id is null"); + return (Criteria) this; + } + + public Criteria andStepIdIsNotNull() { + addCriterion("step_id is not null"); + return (Criteria) this; + } + + public Criteria andStepIdEqualTo(Long value) { + addCriterion("step_id =", value, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdNotEqualTo(Long value) { + addCriterion("step_id <>", value, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdGreaterThan(Long value) { + addCriterion("step_id >", value, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdGreaterThanOrEqualTo(Long value) { + addCriterion("step_id >=", value, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdLessThan(Long value) { + addCriterion("step_id <", value, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdLessThanOrEqualTo(Long value) { + addCriterion("step_id <=", value, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdIn(List values) { + addCriterion("step_id in", values, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdNotIn(List values) { + addCriterion("step_id not in", values, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdBetween(Long value1, Long value2) { + addCriterion("step_id between", value1, value2, "stepId"); + return (Criteria) this; + } + + public Criteria andStepIdNotBetween(Long value1, Long value2) { + addCriterion("step_id not between", value1, value2, "stepId"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/Working.java b/src/main/java/com/ccsens/carbasics/bean/po/CodeParent.java similarity index 60% rename from src/main/java/com/ccsens/carbasics/bean/po/Working.java rename to src/main/java/com/ccsens/carbasics/bean/po/CodeParent.java index 3fc989c..3cfef93 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/Working.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/CodeParent.java @@ -1,117 +1,95 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Working implements Serializable { - private Long id; - - private Long doctorId; - - private Long startTime; - - private Long endTime; - - private Byte post; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getDoctorId() { - return doctorId; - } - - public void setDoctorId(Long doctorId) { - this.doctorId = doctorId; - } - - public 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 getPost() { - return post; - } - - public void setPost(Byte post) { - this.post = post; - } - - public Long getOperator() { - return operator; - } - - public void setOperator(Long operator) { - this.operator = operator; - } - - public Date getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public Byte getRecStatus() { - return recStatus; - } - - public void setRecStatus(Byte recStatus) { - this.recStatus = recStatus; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", doctorId=").append(doctorId); - sb.append(", startTime=").append(startTime); - sb.append(", endTime=").append(endTime); - sb.append(", post=").append(post); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class CodeParent implements Serializable { + private Long id; + + private String questionCode; + + private String parentCode; + + 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 getQuestionCode() { + return questionCode; + } + + public void setQuestionCode(String questionCode) { + this.questionCode = questionCode == null ? null : questionCode.trim(); + } + + public String getParentCode() { + return parentCode; + } + + public void setParentCode(String parentCode) { + this.parentCode = parentCode == null ? null : parentCode.trim(); + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", questionCode=").append(questionCode); + sb.append(", parentCode=").append(parentCode); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/WorkingExample.java b/src/main/java/com/ccsens/carbasics/bean/po/CodeParentExample.java similarity index 68% rename from src/main/java/com/ccsens/carbasics/bean/po/WorkingExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/CodeParentExample.java index b8f85d5..72ac653 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/WorkingExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/CodeParentExample.java @@ -1,741 +1,641 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class WorkingExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public WorkingExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andDoctorIdIsNull() { - addCriterion("doctor_id is null"); - return (Criteria) this; - } - - public Criteria andDoctorIdIsNotNull() { - addCriterion("doctor_id is not null"); - return (Criteria) this; - } - - public Criteria andDoctorIdEqualTo(Long value) { - addCriterion("doctor_id =", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdNotEqualTo(Long value) { - addCriterion("doctor_id <>", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdGreaterThan(Long value) { - addCriterion("doctor_id >", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdGreaterThanOrEqualTo(Long value) { - addCriterion("doctor_id >=", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdLessThan(Long value) { - addCriterion("doctor_id <", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdLessThanOrEqualTo(Long value) { - addCriterion("doctor_id <=", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdIn(List values) { - addCriterion("doctor_id in", values, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdNotIn(List values) { - addCriterion("doctor_id not in", values, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdBetween(Long value1, Long value2) { - addCriterion("doctor_id between", value1, value2, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdNotBetween(Long value1, Long value2) { - addCriterion("doctor_id not between", value1, value2, "doctorId"); - return (Criteria) this; - } - - public Criteria 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 andPostIsNull() { - addCriterion("post is null"); - return (Criteria) this; - } - - public Criteria andPostIsNotNull() { - addCriterion("post is not null"); - return (Criteria) this; - } - - public Criteria andPostEqualTo(Byte value) { - addCriterion("post =", value, "post"); - return (Criteria) this; - } - - public Criteria andPostNotEqualTo(Byte value) { - addCriterion("post <>", value, "post"); - return (Criteria) this; - } - - public Criteria andPostGreaterThan(Byte value) { - addCriterion("post >", value, "post"); - return (Criteria) this; - } - - public Criteria andPostGreaterThanOrEqualTo(Byte value) { - addCriterion("post >=", value, "post"); - return (Criteria) this; - } - - public Criteria andPostLessThan(Byte value) { - addCriterion("post <", value, "post"); - return (Criteria) this; - } - - public Criteria andPostLessThanOrEqualTo(Byte value) { - addCriterion("post <=", value, "post"); - return (Criteria) this; - } - - public Criteria andPostIn(List values) { - addCriterion("post in", values, "post"); - return (Criteria) this; - } - - public Criteria andPostNotIn(List values) { - addCriterion("post not in", values, "post"); - return (Criteria) this; - } - - public Criteria andPostBetween(Byte value1, Byte value2) { - addCriterion("post between", value1, value2, "post"); - return (Criteria) this; - } - - public Criteria andPostNotBetween(Byte value1, Byte value2) { - addCriterion("post not between", value1, value2, "post"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CodeParentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CodeParentExample() { + 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 andQuestionCodeIsNull() { + addCriterion("question_code is null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIsNotNull() { + addCriterion("question_code is not null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeEqualTo(String value) { + addCriterion("question_code =", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotEqualTo(String value) { + addCriterion("question_code <>", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThan(String value) { + addCriterion("question_code >", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { + addCriterion("question_code >=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThan(String value) { + addCriterion("question_code <", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThanOrEqualTo(String value) { + addCriterion("question_code <=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLike(String value) { + addCriterion("question_code like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotLike(String value) { + addCriterion("question_code not like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIn(List values) { + addCriterion("question_code in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotIn(List values) { + addCriterion("question_code not in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeBetween(String value1, String value2) { + addCriterion("question_code between", value1, value2, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotBetween(String value1, String value2) { + addCriterion("question_code not between", value1, value2, "questionCode"); + return (Criteria) this; + } + + public Criteria andParentCodeIsNull() { + addCriterion("parent_code is null"); + return (Criteria) this; + } + + public Criteria andParentCodeIsNotNull() { + addCriterion("parent_code is not null"); + return (Criteria) this; + } + + public Criteria andParentCodeEqualTo(String value) { + addCriterion("parent_code =", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeNotEqualTo(String value) { + addCriterion("parent_code <>", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeGreaterThan(String value) { + addCriterion("parent_code >", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeGreaterThanOrEqualTo(String value) { + addCriterion("parent_code >=", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeLessThan(String value) { + addCriterion("parent_code <", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeLessThanOrEqualTo(String value) { + addCriterion("parent_code <=", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeLike(String value) { + addCriterion("parent_code like", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeNotLike(String value) { + addCriterion("parent_code not like", value, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeIn(List values) { + addCriterion("parent_code in", values, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeNotIn(List values) { + addCriterion("parent_code not in", values, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeBetween(String value1, String value2) { + addCriterion("parent_code between", value1, value2, "parentCode"); + return (Criteria) this; + } + + public Criteria andParentCodeNotBetween(String value1, String value2) { + addCriterion("parent_code not between", value1, value2, "parentCode"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/Doctor.java b/src/main/java/com/ccsens/carbasics/bean/po/Doctor.java deleted file mode 100644 index 956b235..0000000 --- a/src/main/java/com/ccsens/carbasics/bean/po/Doctor.java +++ /dev/null @@ -1,172 +0,0 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Doctor implements Serializable { - private Long id; - - private Byte post; - - private Byte department; - - private Long hospitalId; - - private String name; - - private String serial; - - private String phone; - - private Byte gender; - - private String rfid; - - private Long userId; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Byte getPost() { - return post; - } - - public void setPost(Byte post) { - this.post = post; - } - - public Byte getDepartment() { - return department; - } - - public void setDepartment(Byte department) { - this.department = department; - } - - public Long getHospitalId() { - return hospitalId; - } - - public void setHospitalId(Long hospitalId) { - this.hospitalId = hospitalId; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name == null ? null : name.trim(); - } - - public String getSerial() { - return serial; - } - - public void setSerial(String serial) { - this.serial = serial == null ? null : serial.trim(); - } - - public String getPhone() { - return phone; - } - - public void setPhone(String phone) { - this.phone = phone == null ? null : phone.trim(); - } - - public Byte getGender() { - return gender; - } - - public void setGender(Byte gender) { - this.gender = gender; - } - - public String getRfid() { - return rfid; - } - - public void setRfid(String rfid) { - this.rfid = rfid == null ? null : rfid.trim(); - } - - public Long getUserId() { - return userId; - } - - public void setUserId(Long userId) { - this.userId = userId; - } - - 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(", post=").append(post); - sb.append(", department=").append(department); - sb.append(", hospitalId=").append(hospitalId); - sb.append(", name=").append(name); - sb.append(", serial=").append(serial); - sb.append(", phone=").append(phone); - sb.append(", gender=").append(gender); - sb.append(", rfid=").append(rfid); - sb.append(", userId=").append(userId); - sb.append(", operator=").append(operator); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/DoctorExample.java b/src/main/java/com/ccsens/carbasics/bean/po/DoctorExample.java deleted file mode 100644 index 041e71a..0000000 --- a/src/main/java/com/ccsens/carbasics/bean/po/DoctorExample.java +++ /dev/null @@ -1,1081 +0,0 @@ -package com.ccsens.carbasics.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 andPostIsNull() { - addCriterion("post is null"); - return (Criteria) this; - } - - public Criteria andPostIsNotNull() { - addCriterion("post is not null"); - return (Criteria) this; - } - - public Criteria andPostEqualTo(Byte value) { - addCriterion("post =", value, "post"); - return (Criteria) this; - } - - public Criteria andPostNotEqualTo(Byte value) { - addCriterion("post <>", value, "post"); - return (Criteria) this; - } - - public Criteria andPostGreaterThan(Byte value) { - addCriterion("post >", value, "post"); - return (Criteria) this; - } - - public Criteria andPostGreaterThanOrEqualTo(Byte value) { - addCriterion("post >=", value, "post"); - return (Criteria) this; - } - - public Criteria andPostLessThan(Byte value) { - addCriterion("post <", value, "post"); - return (Criteria) this; - } - - public Criteria andPostLessThanOrEqualTo(Byte value) { - addCriterion("post <=", value, "post"); - return (Criteria) this; - } - - public Criteria andPostIn(List values) { - addCriterion("post in", values, "post"); - return (Criteria) this; - } - - public Criteria andPostNotIn(List values) { - addCriterion("post not in", values, "post"); - return (Criteria) this; - } - - public Criteria andPostBetween(Byte value1, Byte value2) { - addCriterion("post between", value1, value2, "post"); - return (Criteria) this; - } - - public Criteria andPostNotBetween(Byte value1, Byte value2) { - addCriterion("post not between", value1, value2, "post"); - return (Criteria) this; - } - - public Criteria andDepartmentIsNull() { - addCriterion("department is null"); - return (Criteria) this; - } - - public Criteria andDepartmentIsNotNull() { - addCriterion("department is not null"); - return (Criteria) this; - } - - public Criteria andDepartmentEqualTo(Byte value) { - addCriterion("department =", value, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentNotEqualTo(Byte value) { - addCriterion("department <>", value, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentGreaterThan(Byte value) { - addCriterion("department >", value, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentGreaterThanOrEqualTo(Byte value) { - addCriterion("department >=", value, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentLessThan(Byte value) { - addCriterion("department <", value, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentLessThanOrEqualTo(Byte value) { - addCriterion("department <=", value, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentIn(List values) { - addCriterion("department in", values, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentNotIn(List values) { - addCriterion("department not in", values, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentBetween(Byte value1, Byte value2) { - addCriterion("department between", value1, value2, "department"); - return (Criteria) this; - } - - public Criteria andDepartmentNotBetween(Byte value1, Byte value2) { - addCriterion("department not between", value1, value2, "department"); - 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 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 andSerialIsNull() { - addCriterion("serial is null"); - return (Criteria) this; - } - - public Criteria andSerialIsNotNull() { - addCriterion("serial is not null"); - return (Criteria) this; - } - - public Criteria andSerialEqualTo(String value) { - addCriterion("serial =", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotEqualTo(String value) { - addCriterion("serial <>", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThan(String value) { - addCriterion("serial >", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThanOrEqualTo(String value) { - addCriterion("serial >=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThan(String value) { - addCriterion("serial <", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThanOrEqualTo(String value) { - addCriterion("serial <=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLike(String value) { - addCriterion("serial like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotLike(String value) { - addCriterion("serial not like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialIn(List values) { - addCriterion("serial in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotIn(List values) { - addCriterion("serial not in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialBetween(String value1, String value2) { - addCriterion("serial between", value1, value2, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotBetween(String value1, String value2) { - addCriterion("serial not between", value1, value2, "serial"); - 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 andGenderIsNull() { - addCriterion("gender is null"); - return (Criteria) this; - } - - public Criteria andGenderIsNotNull() { - addCriterion("gender is not null"); - return (Criteria) this; - } - - public Criteria andGenderEqualTo(Byte value) { - addCriterion("gender =", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderNotEqualTo(Byte value) { - addCriterion("gender <>", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderGreaterThan(Byte value) { - addCriterion("gender >", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderGreaterThanOrEqualTo(Byte value) { - addCriterion("gender >=", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderLessThan(Byte value) { - addCriterion("gender <", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderLessThanOrEqualTo(Byte value) { - addCriterion("gender <=", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderIn(List values) { - addCriterion("gender in", values, "gender"); - return (Criteria) this; - } - - public Criteria andGenderNotIn(List values) { - addCriterion("gender not in", values, "gender"); - return (Criteria) this; - } - - public Criteria andGenderBetween(Byte value1, Byte value2) { - addCriterion("gender between", value1, value2, "gender"); - return (Criteria) this; - } - - public Criteria andGenderNotBetween(Byte value1, Byte value2) { - addCriterion("gender not between", value1, value2, "gender"); - return (Criteria) this; - } - - public Criteria andRfidIsNull() { - addCriterion("rfid is null"); - return (Criteria) this; - } - - public Criteria andRfidIsNotNull() { - addCriterion("rfid is not null"); - return (Criteria) this; - } - - public Criteria andRfidEqualTo(String value) { - addCriterion("rfid =", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotEqualTo(String value) { - addCriterion("rfid <>", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidGreaterThan(String value) { - addCriterion("rfid >", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidGreaterThanOrEqualTo(String value) { - addCriterion("rfid >=", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidLessThan(String value) { - addCriterion("rfid <", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidLessThanOrEqualTo(String value) { - addCriterion("rfid <=", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidLike(String value) { - addCriterion("rfid like", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotLike(String value) { - addCriterion("rfid not like", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidIn(List values) { - addCriterion("rfid in", values, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotIn(List values) { - addCriterion("rfid not in", values, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidBetween(String value1, String value2) { - addCriterion("rfid between", value1, value2, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotBetween(String value1, String value2) { - addCriterion("rfid not between", value1, value2, "rfid"); - 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 andOperatorIsNull() { - addCriterion("operator is null"); - return (Criteria) this; - } - - public Criteria andOperatorIsNotNull() { - addCriterion("operator is not null"); - return (Criteria) this; - } - - public Criteria andOperatorEqualTo(Long value) { - addCriterion("operator =", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotEqualTo(Long value) { - addCriterion("operator <>", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorGreaterThan(Long value) { - addCriterion("operator >", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorGreaterThanOrEqualTo(Long value) { - addCriterion("operator >=", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorLessThan(Long value) { - addCriterion("operator <", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorLessThanOrEqualTo(Long value) { - addCriterion("operator <=", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorIn(List values) { - addCriterion("operator in", values, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotIn(List values) { - addCriterion("operator not in", values, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorBetween(Long value1, Long value2) { - addCriterion("operator between", value1, value2, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotBetween(Long value1, Long value2) { - addCriterion("operator not between", value1, value2, "operator"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNull() { - addCriterion("created_at is null"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNotNull() { - addCriterion("created_at is not null"); - return (Criteria) this; - } - - public Criteria andCreatedAtEqualTo(Date value) { - addCriterion("created_at =", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotEqualTo(Date value) { - addCriterion("created_at <>", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThan(Date value) { - addCriterion("created_at >", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("created_at >=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThan(Date value) { - addCriterion("created_at <", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThanOrEqualTo(Date value) { - addCriterion("created_at <=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtIn(List values) { - addCriterion("created_at in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotIn(List values) { - addCriterion("created_at not in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtBetween(Date value1, Date value2) { - addCriterion("created_at between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotBetween(Date value1, Date value2) { - addCriterion("created_at not between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNull() { - addCriterion("updated_at is null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNotNull() { - addCriterion("updated_at is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtEqualTo(Date value) { - addCriterion("updated_at =", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotEqualTo(Date value) { - addCriterion("updated_at <>", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThan(Date value) { - addCriterion("updated_at >", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("updated_at >=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThan(Date value) { - addCriterion("updated_at <", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { - addCriterion("updated_at <=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIn(List values) { - addCriterion("updated_at in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotIn(List values) { - addCriterion("updated_at not in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtBetween(Date value1, Date value2) { - addCriterion("updated_at between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { - addCriterion("updated_at not between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNull() { - addCriterion("rec_status is null"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNotNull() { - addCriterion("rec_status is not null"); - return (Criteria) this; - } - - public Criteria andRecStatusEqualTo(Byte value) { - addCriterion("rec_status =", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotEqualTo(Byte value) { - addCriterion("rec_status <>", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThan(Byte value) { - addCriterion("rec_status >", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { - addCriterion("rec_status >=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThan(Byte value) { - addCriterion("rec_status <", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThanOrEqualTo(Byte value) { - addCriterion("rec_status <=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusIn(List values) { - addCriterion("rec_status in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotIn(List values) { - addCriterion("rec_status not in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusBetween(Byte value1, Byte value2) { - addCriterion("rec_status between", value1, value2, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { - addCriterion("rec_status not between", value1, value2, "recStatus"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAid.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAid.java index ad74062..2c56e42 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAid.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAid.java @@ -1,249 +1,205 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class FirstAid implements Serializable { - private Long id; - - private Long patientId; - - private Long projectId; - - private Byte type; - - private Byte valueType; - - private Byte saveType; - - private String kinsfolkPhone; - - private String medicalRecordNum; - - private String parientSn; - - private Long time; - - private Byte hospitalStroke; - - private Long arriveHospitalTime; - - private Long hospitalizedTime; - - private Long lastNormalTime; - - private String pathway; - - private Byte inHospitalType; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private Byte timeType; - - 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 getProjectId() { - return projectId; - } - - public void setProjectId(Long projectId) { - this.projectId = projectId; - } - - public Byte getType() { - return type; - } - - public void setType(Byte type) { - this.type = type; - } - - public Byte getValueType() { - return valueType; - } - - public void setValueType(Byte valueType) { - this.valueType = valueType; - } - - public Byte getSaveType() { - return saveType; - } - - public void setSaveType(Byte saveType) { - this.saveType = saveType; - } - - public String getKinsfolkPhone() { - return kinsfolkPhone; - } - - public void setKinsfolkPhone(String kinsfolkPhone) { - this.kinsfolkPhone = kinsfolkPhone == null ? null : kinsfolkPhone.trim(); - } - - public String getMedicalRecordNum() { - return medicalRecordNum; - } - - public void setMedicalRecordNum(String medicalRecordNum) { - this.medicalRecordNum = medicalRecordNum == null ? null : medicalRecordNum.trim(); - } - - public String getParientSn() { - return parientSn; - } - - public void setParientSn(String parientSn) { - this.parientSn = parientSn == null ? null : parientSn.trim(); - } - - public Long getTime() { - return time; - } - - public void setTime(Long time) { - this.time = time; - } - - public Byte getHospitalStroke() { - return hospitalStroke; - } - - public void setHospitalStroke(Byte hospitalStroke) { - this.hospitalStroke = hospitalStroke; - } - - public Long getArriveHospitalTime() { - return arriveHospitalTime; - } - - public void setArriveHospitalTime(Long arriveHospitalTime) { - this.arriveHospitalTime = arriveHospitalTime; - } - - public Long getHospitalizedTime() { - return hospitalizedTime; - } - - public void setHospitalizedTime(Long hospitalizedTime) { - this.hospitalizedTime = hospitalizedTime; - } - - public Long getLastNormalTime() { - return lastNormalTime; - } - - public void setLastNormalTime(Long lastNormalTime) { - this.lastNormalTime = lastNormalTime; - } - - public String getPathway() { - return pathway; - } - - public void setPathway(String pathway) { - this.pathway = pathway == null ? null : pathway.trim(); - } - - public Byte getInHospitalType() { - return inHospitalType; - } - - public void setInHospitalType(Byte inHospitalType) { - this.inHospitalType = inHospitalType; - } - - 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; - } - - public Byte getTimeType() { - return timeType; - } - - public void setTimeType(Byte timeType) { - this.timeType = timeType; - } - - @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(", projectId=").append(projectId); - sb.append(", type=").append(type); - sb.append(", valueType=").append(valueType); - sb.append(", saveType=").append(saveType); - sb.append(", kinsfolkPhone=").append(kinsfolkPhone); - sb.append(", medicalRecordNum=").append(medicalRecordNum); - sb.append(", parientSn=").append(parientSn); - sb.append(", time=").append(time); - sb.append(", hospitalStroke=").append(hospitalStroke); - sb.append(", arriveHospitalTime=").append(arriveHospitalTime); - sb.append(", hospitalizedTime=").append(hospitalizedTime); - sb.append(", lastNormalTime=").append(lastNormalTime); - sb.append(", pathway=").append(pathway); - sb.append(", inHospitalType=").append(inHospitalType); - sb.append(", operator=").append(operator); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append(", timeType=").append(timeType); - sb.append("]"); - return sb.toString(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class FirstAid implements Serializable { + private Long id; + + private String name; + + private Byte gender; + + private Integer age; + + private String nation; + + private String idcard; + + private String phone; + + private Byte type; + + private Byte valueType; + + private Byte saveType; + + private Byte dataStatus; + + private Long projectId; + + private Long hospitalId; + + 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 Byte getGender() { + return gender; + } + + public void setGender(Byte gender) { + this.gender = gender; + } + + public Integer getAge() { + return age; + } + + public void setAge(Integer age) { + this.age = age; + } + + public String getNation() { + return nation; + } + + public void setNation(String nation) { + this.nation = nation == null ? null : nation.trim(); + } + + 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 Byte getType() { + return type; + } + + public void setType(Byte type) { + this.type = type; + } + + public Byte getValueType() { + return valueType; + } + + public void setValueType(Byte valueType) { + this.valueType = valueType; + } + + public Byte getSaveType() { + return saveType; + } + + public void setSaveType(Byte saveType) { + this.saveType = saveType; + } + + public Byte getDataStatus() { + return dataStatus; + } + + public void setDataStatus(Byte dataStatus) { + this.dataStatus = dataStatus; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public Long getHospitalId() { + return hospitalId; + } + + public void setHospitalId(Long hospitalId) { + this.hospitalId = hospitalId; + } + + 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(", gender=").append(gender); + sb.append(", age=").append(age); + sb.append(", nation=").append(nation); + sb.append(", idcard=").append(idcard); + sb.append(", phone=").append(phone); + sb.append(", type=").append(type); + sb.append(", valueType=").append(valueType); + sb.append(", saveType=").append(saveType); + sb.append(", dataStatus=").append(dataStatus); + sb.append(", projectId=").append(projectId); + sb.append(", hospitalId=").append(hospitalId); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidExample.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidExample.java index 0bb3b5f..f2698fc 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidExample.java @@ -1,1501 +1,1261 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class FirstAidExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public FirstAidExample() { - 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 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 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 andValueTypeIsNull() { - addCriterion("value_type is null"); - return (Criteria) this; - } - - public Criteria andValueTypeIsNotNull() { - addCriterion("value_type is not null"); - return (Criteria) this; - } - - public Criteria andValueTypeEqualTo(Byte value) { - addCriterion("value_type =", value, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeNotEqualTo(Byte value) { - addCriterion("value_type <>", value, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeGreaterThan(Byte value) { - addCriterion("value_type >", value, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("value_type >=", value, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeLessThan(Byte value) { - addCriterion("value_type <", value, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeLessThanOrEqualTo(Byte value) { - addCriterion("value_type <=", value, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeIn(List values) { - addCriterion("value_type in", values, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeNotIn(List values) { - addCriterion("value_type not in", values, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeBetween(Byte value1, Byte value2) { - addCriterion("value_type between", value1, value2, "valueType"); - return (Criteria) this; - } - - public Criteria andValueTypeNotBetween(Byte value1, Byte value2) { - addCriterion("value_type not between", value1, value2, "valueType"); - return (Criteria) this; - } - - public Criteria andSaveTypeIsNull() { - addCriterion("save_type is null"); - return (Criteria) this; - } - - public Criteria andSaveTypeIsNotNull() { - addCriterion("save_type is not null"); - return (Criteria) this; - } - - public Criteria andSaveTypeEqualTo(Byte value) { - addCriterion("save_type =", value, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeNotEqualTo(Byte value) { - addCriterion("save_type <>", value, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeGreaterThan(Byte value) { - addCriterion("save_type >", value, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("save_type >=", value, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeLessThan(Byte value) { - addCriterion("save_type <", value, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeLessThanOrEqualTo(Byte value) { - addCriterion("save_type <=", value, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeIn(List values) { - addCriterion("save_type in", values, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeNotIn(List values) { - addCriterion("save_type not in", values, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeBetween(Byte value1, Byte value2) { - addCriterion("save_type between", value1, value2, "saveType"); - return (Criteria) this; - } - - public Criteria andSaveTypeNotBetween(Byte value1, Byte value2) { - addCriterion("save_type not between", value1, value2, "saveType"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneIsNull() { - addCriterion("kinsfolk_phone is null"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneIsNotNull() { - addCriterion("kinsfolk_phone is not null"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneEqualTo(String value) { - addCriterion("kinsfolk_phone =", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneNotEqualTo(String value) { - addCriterion("kinsfolk_phone <>", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneGreaterThan(String value) { - addCriterion("kinsfolk_phone >", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneGreaterThanOrEqualTo(String value) { - addCriterion("kinsfolk_phone >=", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneLessThan(String value) { - addCriterion("kinsfolk_phone <", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneLessThanOrEqualTo(String value) { - addCriterion("kinsfolk_phone <=", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneLike(String value) { - addCriterion("kinsfolk_phone like", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneNotLike(String value) { - addCriterion("kinsfolk_phone not like", value, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneIn(List values) { - addCriterion("kinsfolk_phone in", values, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneNotIn(List values) { - addCriterion("kinsfolk_phone not in", values, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneBetween(String value1, String value2) { - addCriterion("kinsfolk_phone between", value1, value2, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andKinsfolkPhoneNotBetween(String value1, String value2) { - addCriterion("kinsfolk_phone not between", value1, value2, "kinsfolkPhone"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumIsNull() { - addCriterion("medical_record_num is null"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumIsNotNull() { - addCriterion("medical_record_num is not null"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumEqualTo(String value) { - addCriterion("medical_record_num =", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumNotEqualTo(String value) { - addCriterion("medical_record_num <>", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumGreaterThan(String value) { - addCriterion("medical_record_num >", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumGreaterThanOrEqualTo(String value) { - addCriterion("medical_record_num >=", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumLessThan(String value) { - addCriterion("medical_record_num <", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumLessThanOrEqualTo(String value) { - addCriterion("medical_record_num <=", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumLike(String value) { - addCriterion("medical_record_num like", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumNotLike(String value) { - addCriterion("medical_record_num not like", value, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumIn(List values) { - addCriterion("medical_record_num in", values, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumNotIn(List values) { - addCriterion("medical_record_num not in", values, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumBetween(String value1, String value2) { - addCriterion("medical_record_num between", value1, value2, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andMedicalRecordNumNotBetween(String value1, String value2) { - addCriterion("medical_record_num not between", value1, value2, "medicalRecordNum"); - return (Criteria) this; - } - - public Criteria andParientSnIsNull() { - addCriterion("parient_sn is null"); - return (Criteria) this; - } - - public Criteria andParientSnIsNotNull() { - addCriterion("parient_sn is not null"); - return (Criteria) this; - } - - public Criteria andParientSnEqualTo(String value) { - addCriterion("parient_sn =", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnNotEqualTo(String value) { - addCriterion("parient_sn <>", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnGreaterThan(String value) { - addCriterion("parient_sn >", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnGreaterThanOrEqualTo(String value) { - addCriterion("parient_sn >=", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnLessThan(String value) { - addCriterion("parient_sn <", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnLessThanOrEqualTo(String value) { - addCriterion("parient_sn <=", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnLike(String value) { - addCriterion("parient_sn like", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnNotLike(String value) { - addCriterion("parient_sn not like", value, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnIn(List values) { - addCriterion("parient_sn in", values, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnNotIn(List values) { - addCriterion("parient_sn not in", values, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnBetween(String value1, String value2) { - addCriterion("parient_sn between", value1, value2, "parientSn"); - return (Criteria) this; - } - - public Criteria andParientSnNotBetween(String value1, String value2) { - addCriterion("parient_sn not between", value1, value2, "parientSn"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Long value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Long value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Long value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Long value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Long value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Long value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Long value1, Long value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Long value1, Long value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeIsNull() { - addCriterion("hospital_stroke is null"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeIsNotNull() { - addCriterion("hospital_stroke is not null"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeEqualTo(Byte value) { - addCriterion("hospital_stroke =", value, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeNotEqualTo(Byte value) { - addCriterion("hospital_stroke <>", value, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeGreaterThan(Byte value) { - addCriterion("hospital_stroke >", value, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeGreaterThanOrEqualTo(Byte value) { - addCriterion("hospital_stroke >=", value, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeLessThan(Byte value) { - addCriterion("hospital_stroke <", value, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeLessThanOrEqualTo(Byte value) { - addCriterion("hospital_stroke <=", value, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeIn(List values) { - addCriterion("hospital_stroke in", values, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeNotIn(List values) { - addCriterion("hospital_stroke not in", values, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeBetween(Byte value1, Byte value2) { - addCriterion("hospital_stroke between", value1, value2, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andHospitalStrokeNotBetween(Byte value1, Byte value2) { - addCriterion("hospital_stroke not between", value1, value2, "hospitalStroke"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeIsNull() { - addCriterion("arrive_hospital_time is null"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeIsNotNull() { - addCriterion("arrive_hospital_time is not null"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeEqualTo(Long value) { - addCriterion("arrive_hospital_time =", value, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeNotEqualTo(Long value) { - addCriterion("arrive_hospital_time <>", value, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeGreaterThan(Long value) { - addCriterion("arrive_hospital_time >", value, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeGreaterThanOrEqualTo(Long value) { - addCriterion("arrive_hospital_time >=", value, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeLessThan(Long value) { - addCriterion("arrive_hospital_time <", value, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeLessThanOrEqualTo(Long value) { - addCriterion("arrive_hospital_time <=", value, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeIn(List values) { - addCriterion("arrive_hospital_time in", values, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeNotIn(List values) { - addCriterion("arrive_hospital_time not in", values, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeBetween(Long value1, Long value2) { - addCriterion("arrive_hospital_time between", value1, value2, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andArriveHospitalTimeNotBetween(Long value1, Long value2) { - addCriterion("arrive_hospital_time not between", value1, value2, "arriveHospitalTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeIsNull() { - addCriterion("hospitalized_time is null"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeIsNotNull() { - addCriterion("hospitalized_time is not null"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeEqualTo(Long value) { - addCriterion("hospitalized_time =", value, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeNotEqualTo(Long value) { - addCriterion("hospitalized_time <>", value, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeGreaterThan(Long value) { - addCriterion("hospitalized_time >", value, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeGreaterThanOrEqualTo(Long value) { - addCriterion("hospitalized_time >=", value, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeLessThan(Long value) { - addCriterion("hospitalized_time <", value, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeLessThanOrEqualTo(Long value) { - addCriterion("hospitalized_time <=", value, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeIn(List values) { - addCriterion("hospitalized_time in", values, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeNotIn(List values) { - addCriterion("hospitalized_time not in", values, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeBetween(Long value1, Long value2) { - addCriterion("hospitalized_time between", value1, value2, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andHospitalizedTimeNotBetween(Long value1, Long value2) { - addCriterion("hospitalized_time not between", value1, value2, "hospitalizedTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeIsNull() { - addCriterion("last_normal_time is null"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeIsNotNull() { - addCriterion("last_normal_time is not null"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeEqualTo(Long value) { - addCriterion("last_normal_time =", value, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeNotEqualTo(Long value) { - addCriterion("last_normal_time <>", value, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeGreaterThan(Long value) { - addCriterion("last_normal_time >", value, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeGreaterThanOrEqualTo(Long value) { - addCriterion("last_normal_time >=", value, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeLessThan(Long value) { - addCriterion("last_normal_time <", value, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeLessThanOrEqualTo(Long value) { - addCriterion("last_normal_time <=", value, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeIn(List values) { - addCriterion("last_normal_time in", values, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeNotIn(List values) { - addCriterion("last_normal_time not in", values, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeBetween(Long value1, Long value2) { - addCriterion("last_normal_time between", value1, value2, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andLastNormalTimeNotBetween(Long value1, Long value2) { - addCriterion("last_normal_time not between", value1, value2, "lastNormalTime"); - return (Criteria) this; - } - - public Criteria andPathwayIsNull() { - addCriterion("pathway is null"); - return (Criteria) this; - } - - public Criteria andPathwayIsNotNull() { - addCriterion("pathway is not null"); - return (Criteria) this; - } - - public Criteria andPathwayEqualTo(String value) { - addCriterion("pathway =", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayNotEqualTo(String value) { - addCriterion("pathway <>", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayGreaterThan(String value) { - addCriterion("pathway >", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayGreaterThanOrEqualTo(String value) { - addCriterion("pathway >=", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayLessThan(String value) { - addCriterion("pathway <", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayLessThanOrEqualTo(String value) { - addCriterion("pathway <=", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayLike(String value) { - addCriterion("pathway like", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayNotLike(String value) { - addCriterion("pathway not like", value, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayIn(List values) { - addCriterion("pathway in", values, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayNotIn(List values) { - addCriterion("pathway not in", values, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayBetween(String value1, String value2) { - addCriterion("pathway between", value1, value2, "pathway"); - return (Criteria) this; - } - - public Criteria andPathwayNotBetween(String value1, String value2) { - addCriterion("pathway not between", value1, value2, "pathway"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeIsNull() { - addCriterion("in_hospital_type is null"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeIsNotNull() { - addCriterion("in_hospital_type is not null"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeEqualTo(Byte value) { - addCriterion("in_hospital_type =", value, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeNotEqualTo(Byte value) { - addCriterion("in_hospital_type <>", value, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeGreaterThan(Byte value) { - addCriterion("in_hospital_type >", value, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("in_hospital_type >=", value, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeLessThan(Byte value) { - addCriterion("in_hospital_type <", value, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeLessThanOrEqualTo(Byte value) { - addCriterion("in_hospital_type <=", value, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeIn(List values) { - addCriterion("in_hospital_type in", values, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeNotIn(List values) { - addCriterion("in_hospital_type not in", values, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeBetween(Byte value1, Byte value2) { - addCriterion("in_hospital_type between", value1, value2, "inHospitalType"); - return (Criteria) this; - } - - public Criteria andInHospitalTypeNotBetween(Byte value1, Byte value2) { - addCriterion("in_hospital_type not between", value1, value2, "inHospitalType"); - 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 Criteria andTimeTypeIsNull() { - addCriterion("time_type is null"); - return (Criteria) this; - } - - public Criteria andTimeTypeIsNotNull() { - addCriterion("time_type is not null"); - return (Criteria) this; - } - - public Criteria andTimeTypeEqualTo(Byte value) { - addCriterion("time_type =", value, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeNotEqualTo(Byte value) { - addCriterion("time_type <>", value, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeGreaterThan(Byte value) { - addCriterion("time_type >", value, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("time_type >=", value, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeLessThan(Byte value) { - addCriterion("time_type <", value, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeLessThanOrEqualTo(Byte value) { - addCriterion("time_type <=", value, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeIn(List values) { - addCriterion("time_type in", values, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeNotIn(List values) { - addCriterion("time_type not in", values, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeBetween(Byte value1, Byte value2) { - addCriterion("time_type between", value1, value2, "timeType"); - return (Criteria) this; - } - - public Criteria andTimeTypeNotBetween(Byte value1, Byte value2) { - addCriterion("time_type not between", value1, value2, "timeType"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class FirstAidExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public FirstAidExample() { + 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 andGenderIsNull() { + addCriterion("gender is null"); + return (Criteria) this; + } + + public Criteria andGenderIsNotNull() { + addCriterion("gender is not null"); + return (Criteria) this; + } + + public Criteria andGenderEqualTo(Byte value) { + addCriterion("gender =", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotEqualTo(Byte value) { + addCriterion("gender <>", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderGreaterThan(Byte value) { + addCriterion("gender >", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderGreaterThanOrEqualTo(Byte value) { + addCriterion("gender >=", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderLessThan(Byte value) { + addCriterion("gender <", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderLessThanOrEqualTo(Byte value) { + addCriterion("gender <=", value, "gender"); + return (Criteria) this; + } + + public Criteria andGenderIn(List values) { + addCriterion("gender in", values, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotIn(List values) { + addCriterion("gender not in", values, "gender"); + return (Criteria) this; + } + + public Criteria andGenderBetween(Byte value1, Byte value2) { + addCriterion("gender between", value1, value2, "gender"); + return (Criteria) this; + } + + public Criteria andGenderNotBetween(Byte value1, Byte value2) { + addCriterion("gender not between", value1, value2, "gender"); + return (Criteria) this; + } + + public Criteria 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 andNationIsNull() { + addCriterion("nation is null"); + return (Criteria) this; + } + + public Criteria andNationIsNotNull() { + addCriterion("nation is not null"); + return (Criteria) this; + } + + public Criteria andNationEqualTo(String value) { + addCriterion("nation =", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotEqualTo(String value) { + addCriterion("nation <>", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationGreaterThan(String value) { + addCriterion("nation >", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationGreaterThanOrEqualTo(String value) { + addCriterion("nation >=", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationLessThan(String value) { + addCriterion("nation <", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationLessThanOrEqualTo(String value) { + addCriterion("nation <=", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationLike(String value) { + addCriterion("nation like", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotLike(String value) { + addCriterion("nation not like", value, "nation"); + return (Criteria) this; + } + + public Criteria andNationIn(List values) { + addCriterion("nation in", values, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotIn(List values) { + addCriterion("nation not in", values, "nation"); + return (Criteria) this; + } + + public Criteria andNationBetween(String value1, String value2) { + addCriterion("nation between", value1, value2, "nation"); + return (Criteria) this; + } + + public Criteria andNationNotBetween(String value1, String value2) { + addCriterion("nation not between", value1, value2, "nation"); + return (Criteria) this; + } + + public Criteria andIdcardIsNull() { + addCriterion("idcard is null"); + return (Criteria) this; + } + + public Criteria andIdcardIsNotNull() { + addCriterion("idcard is not null"); + return (Criteria) this; + } + + public Criteria andIdcardEqualTo(String value) { + addCriterion("idcard =", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardNotEqualTo(String value) { + addCriterion("idcard <>", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardGreaterThan(String value) { + addCriterion("idcard >", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardGreaterThanOrEqualTo(String value) { + addCriterion("idcard >=", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardLessThan(String value) { + addCriterion("idcard <", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardLessThanOrEqualTo(String value) { + addCriterion("idcard <=", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardLike(String value) { + addCriterion("idcard like", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardNotLike(String value) { + addCriterion("idcard not like", value, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardIn(List values) { + addCriterion("idcard in", values, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardNotIn(List values) { + addCriterion("idcard not in", values, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardBetween(String value1, String value2) { + addCriterion("idcard between", value1, value2, "idcard"); + return (Criteria) this; + } + + public Criteria andIdcardNotBetween(String value1, String value2) { + addCriterion("idcard not between", value1, value2, "idcard"); + return (Criteria) this; + } + + public Criteria 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 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 andValueTypeIsNull() { + addCriterion("value_type is null"); + return (Criteria) this; + } + + public Criteria andValueTypeIsNotNull() { + addCriterion("value_type is not null"); + return (Criteria) this; + } + + public Criteria andValueTypeEqualTo(Byte value) { + addCriterion("value_type =", value, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeNotEqualTo(Byte value) { + addCriterion("value_type <>", value, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeGreaterThan(Byte value) { + addCriterion("value_type >", value, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("value_type >=", value, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeLessThan(Byte value) { + addCriterion("value_type <", value, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeLessThanOrEqualTo(Byte value) { + addCriterion("value_type <=", value, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeIn(List values) { + addCriterion("value_type in", values, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeNotIn(List values) { + addCriterion("value_type not in", values, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeBetween(Byte value1, Byte value2) { + addCriterion("value_type between", value1, value2, "valueType"); + return (Criteria) this; + } + + public Criteria andValueTypeNotBetween(Byte value1, Byte value2) { + addCriterion("value_type not between", value1, value2, "valueType"); + return (Criteria) this; + } + + public Criteria andSaveTypeIsNull() { + addCriterion("save_type is null"); + return (Criteria) this; + } + + public Criteria andSaveTypeIsNotNull() { + addCriterion("save_type is not null"); + return (Criteria) this; + } + + public Criteria andSaveTypeEqualTo(Byte value) { + addCriterion("save_type =", value, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeNotEqualTo(Byte value) { + addCriterion("save_type <>", value, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeGreaterThan(Byte value) { + addCriterion("save_type >", value, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("save_type >=", value, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeLessThan(Byte value) { + addCriterion("save_type <", value, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeLessThanOrEqualTo(Byte value) { + addCriterion("save_type <=", value, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeIn(List values) { + addCriterion("save_type in", values, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeNotIn(List values) { + addCriterion("save_type not in", values, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeBetween(Byte value1, Byte value2) { + addCriterion("save_type between", value1, value2, "saveType"); + return (Criteria) this; + } + + public Criteria andSaveTypeNotBetween(Byte value1, Byte value2) { + addCriterion("save_type not between", value1, value2, "saveType"); + return (Criteria) this; + } + + public Criteria andDataStatusIsNull() { + addCriterion("data_status is null"); + return (Criteria) this; + } + + public Criteria andDataStatusIsNotNull() { + addCriterion("data_status is not null"); + return (Criteria) this; + } + + public Criteria andDataStatusEqualTo(Byte value) { + addCriterion("data_status =", value, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusNotEqualTo(Byte value) { + addCriterion("data_status <>", value, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusGreaterThan(Byte value) { + addCriterion("data_status >", value, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("data_status >=", value, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusLessThan(Byte value) { + addCriterion("data_status <", value, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusLessThanOrEqualTo(Byte value) { + addCriterion("data_status <=", value, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusIn(List values) { + addCriterion("data_status in", values, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusNotIn(List values) { + addCriterion("data_status not in", values, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusBetween(Byte value1, Byte value2) { + addCriterion("data_status between", value1, value2, "dataStatus"); + return (Criteria) this; + } + + public Criteria andDataStatusNotBetween(Byte value1, Byte value2) { + addCriterion("data_status not between", value1, value2, "dataStatus"); + 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 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 andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/PatientWisdomCar.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidLog.java similarity index 59% rename from src/main/java/com/ccsens/carbasics/bean/po/PatientWisdomCar.java rename to src/main/java/com/ccsens/carbasics/bean/po/FirstAidLog.java index d7709b4..912aaed 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/PatientWisdomCar.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidLog.java @@ -1,117 +1,117 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class PatientWisdomCar implements Serializable { - private Long id; - - private Long firstAidId; - - private Long carId; - - private Long startTime; - - private Long endTime; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getFirstAidId() { - return firstAidId; - } - - public void setFirstAidId(Long firstAidId) { - this.firstAidId = firstAidId; - } - - public Long getCarId() { - return carId; - } - - public void setCarId(Long carId) { - this.carId = carId; - } - - 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 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(", firstAidId=").append(firstAidId); - sb.append(", carId=").append(carId); - sb.append(", startTime=").append(startTime); - sb.append(", endTime=").append(endTime); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class FirstAidLog implements Serializable { + private Long id; + + private Long firstAidId; + + private Long operationTime; + + private Long operationUserId; + + private Byte operationType; + + private Byte operationRole; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getFirstAidId() { + return firstAidId; + } + + public void setFirstAidId(Long firstAidId) { + this.firstAidId = firstAidId; + } + + public Long getOperationTime() { + return operationTime; + } + + public void setOperationTime(Long operationTime) { + this.operationTime = operationTime; + } + + public Long getOperationUserId() { + return operationUserId; + } + + public void setOperationUserId(Long operationUserId) { + this.operationUserId = operationUserId; + } + + public Byte getOperationType() { + return operationType; + } + + public void setOperationType(Byte operationType) { + this.operationType = operationType; + } + + public Byte getOperationRole() { + return operationRole; + } + + public void setOperationRole(Byte operationRole) { + this.operationRole = operationRole; + } + + 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(", firstAidId=").append(firstAidId); + sb.append(", operationTime=").append(operationTime); + sb.append(", operationUserId=").append(operationUserId); + sb.append(", operationType=").append(operationType); + sb.append(", operationRole=").append(operationRole); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/PatientWisdomCarExample.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidLogExample.java similarity index 72% rename from src/main/java/com/ccsens/carbasics/bean/po/PatientWisdomCarExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/FirstAidLogExample.java index 87139ef..2f5d666 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/PatientWisdomCarExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidLogExample.java @@ -1,741 +1,741 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class PatientWisdomCarExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public PatientWisdomCarExample() { - 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 andFirstAidIdIsNull() { - addCriterion("first_aid_id is null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIsNotNull() { - addCriterion("first_aid_id is not null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdEqualTo(Long value) { - addCriterion("first_aid_id =", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotEqualTo(Long value) { - addCriterion("first_aid_id <>", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThan(Long value) { - addCriterion("first_aid_id >", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { - addCriterion("first_aid_id >=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThan(Long value) { - addCriterion("first_aid_id <", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { - addCriterion("first_aid_id <=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIn(List values) { - addCriterion("first_aid_id in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotIn(List values) { - addCriterion("first_aid_id not in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdBetween(Long value1, Long value2) { - addCriterion("first_aid_id between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { - addCriterion("first_aid_id not between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andCarIdIsNull() { - addCriterion("car_id is null"); - return (Criteria) this; - } - - public Criteria andCarIdIsNotNull() { - addCriterion("car_id is not null"); - return (Criteria) this; - } - - public Criteria andCarIdEqualTo(Long value) { - addCriterion("car_id =", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdNotEqualTo(Long value) { - addCriterion("car_id <>", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdGreaterThan(Long value) { - addCriterion("car_id >", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdGreaterThanOrEqualTo(Long value) { - addCriterion("car_id >=", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdLessThan(Long value) { - addCriterion("car_id <", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdLessThanOrEqualTo(Long value) { - addCriterion("car_id <=", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdIn(List values) { - addCriterion("car_id in", values, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdNotIn(List values) { - addCriterion("car_id not in", values, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdBetween(Long value1, Long value2) { - addCriterion("car_id between", value1, value2, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdNotBetween(Long value1, Long value2) { - addCriterion("car_id not between", value1, value2, "carId"); - 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 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class FirstAidLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public FirstAidLogExample() { + 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 andFirstAidIdIsNull() { + addCriterion("first_aid_id is null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIsNotNull() { + addCriterion("first_aid_id is not null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdEqualTo(Long value) { + addCriterion("first_aid_id =", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotEqualTo(Long value) { + addCriterion("first_aid_id <>", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThan(Long value) { + addCriterion("first_aid_id >", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { + addCriterion("first_aid_id >=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThan(Long value) { + addCriterion("first_aid_id <", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { + addCriterion("first_aid_id <=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIn(List values) { + addCriterion("first_aid_id in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotIn(List values) { + addCriterion("first_aid_id not in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdBetween(Long value1, Long value2) { + addCriterion("first_aid_id between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { + addCriterion("first_aid_id not between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andOperationTimeIsNull() { + addCriterion("operation_time is null"); + return (Criteria) this; + } + + public Criteria andOperationTimeIsNotNull() { + addCriterion("operation_time is not null"); + return (Criteria) this; + } + + public Criteria andOperationTimeEqualTo(Long value) { + addCriterion("operation_time =", value, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeNotEqualTo(Long value) { + addCriterion("operation_time <>", value, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeGreaterThan(Long value) { + addCriterion("operation_time >", value, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeGreaterThanOrEqualTo(Long value) { + addCriterion("operation_time >=", value, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeLessThan(Long value) { + addCriterion("operation_time <", value, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeLessThanOrEqualTo(Long value) { + addCriterion("operation_time <=", value, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeIn(List values) { + addCriterion("operation_time in", values, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeNotIn(List values) { + addCriterion("operation_time not in", values, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeBetween(Long value1, Long value2) { + addCriterion("operation_time between", value1, value2, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationTimeNotBetween(Long value1, Long value2) { + addCriterion("operation_time not between", value1, value2, "operationTime"); + return (Criteria) this; + } + + public Criteria andOperationUserIdIsNull() { + addCriterion("operation_user_id is null"); + return (Criteria) this; + } + + public Criteria andOperationUserIdIsNotNull() { + addCriterion("operation_user_id is not null"); + return (Criteria) this; + } + + public Criteria andOperationUserIdEqualTo(Long value) { + addCriterion("operation_user_id =", value, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdNotEqualTo(Long value) { + addCriterion("operation_user_id <>", value, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdGreaterThan(Long value) { + addCriterion("operation_user_id >", value, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("operation_user_id >=", value, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdLessThan(Long value) { + addCriterion("operation_user_id <", value, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdLessThanOrEqualTo(Long value) { + addCriterion("operation_user_id <=", value, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdIn(List values) { + addCriterion("operation_user_id in", values, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdNotIn(List values) { + addCriterion("operation_user_id not in", values, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdBetween(Long value1, Long value2) { + addCriterion("operation_user_id between", value1, value2, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationUserIdNotBetween(Long value1, Long value2) { + addCriterion("operation_user_id not between", value1, value2, "operationUserId"); + return (Criteria) this; + } + + public Criteria andOperationTypeIsNull() { + addCriterion("operation_type is null"); + return (Criteria) this; + } + + public Criteria andOperationTypeIsNotNull() { + addCriterion("operation_type is not null"); + return (Criteria) this; + } + + public Criteria andOperationTypeEqualTo(Byte value) { + addCriterion("operation_type =", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeNotEqualTo(Byte value) { + addCriterion("operation_type <>", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeGreaterThan(Byte value) { + addCriterion("operation_type >", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("operation_type >=", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeLessThan(Byte value) { + addCriterion("operation_type <", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeLessThanOrEqualTo(Byte value) { + addCriterion("operation_type <=", value, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeIn(List values) { + addCriterion("operation_type in", values, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeNotIn(List values) { + addCriterion("operation_type not in", values, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeBetween(Byte value1, Byte value2) { + addCriterion("operation_type between", value1, value2, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationTypeNotBetween(Byte value1, Byte value2) { + addCriterion("operation_type not between", value1, value2, "operationType"); + return (Criteria) this; + } + + public Criteria andOperationRoleIsNull() { + addCriterion("operation_role is null"); + return (Criteria) this; + } + + public Criteria andOperationRoleIsNotNull() { + addCriterion("operation_role is not null"); + return (Criteria) this; + } + + public Criteria andOperationRoleEqualTo(Byte value) { + addCriterion("operation_role =", value, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleNotEqualTo(Byte value) { + addCriterion("operation_role <>", value, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleGreaterThan(Byte value) { + addCriterion("operation_role >", value, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleGreaterThanOrEqualTo(Byte value) { + addCriterion("operation_role >=", value, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleLessThan(Byte value) { + addCriterion("operation_role <", value, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleLessThanOrEqualTo(Byte value) { + addCriterion("operation_role <=", value, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleIn(List values) { + addCriterion("operation_role in", values, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleNotIn(List values) { + addCriterion("operation_role not in", values, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleBetween(Byte value1, Byte value2) { + addCriterion("operation_role between", value1, value2, "operationRole"); + return (Criteria) this; + } + + public Criteria andOperationRoleNotBetween(Byte value1, Byte value2) { + addCriterion("operation_role not between", value1, value2, "operationRole"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMessage.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMember.java similarity index 65% rename from src/main/java/com/ccsens/carbasics/bean/po/FirstAidMessage.java rename to src/main/java/com/ccsens/carbasics/bean/po/FirstAidMember.java index eeb4dc8..1a09771 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMessage.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMember.java @@ -1,106 +1,95 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class FirstAidMessage implements Serializable { - private Long id; - - private Long firstAidId; - - private String content; - - private Long toUser; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getFirstAidId() { - return firstAidId; - } - - public void setFirstAidId(Long firstAidId) { - this.firstAidId = firstAidId; - } - - public String getContent() { - return content; - } - - public void setContent(String content) { - this.content = content == null ? null : content.trim(); - } - - public Long getToUser() { - return toUser; - } - - public void setToUser(Long toUser) { - this.toUser = toUser; - } - - 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(", firstAidId=").append(firstAidId); - sb.append(", content=").append(content); - sb.append(", toUser=").append(toUser); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class FirstAidMember implements Serializable { + private Long id; + + private Long firstAidId; + + private Long createUserId; + + private Long recordUserId; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getFirstAidId() { + return firstAidId; + } + + public void setFirstAidId(Long firstAidId) { + this.firstAidId = firstAidId; + } + + public Long getCreateUserId() { + return createUserId; + } + + public void setCreateUserId(Long createUserId) { + this.createUserId = createUserId; + } + + public Long getRecordUserId() { + return recordUserId; + } + + public void setRecordUserId(Long recordUserId) { + this.recordUserId = recordUserId; + } + + 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(", firstAidId=").append(firstAidId); + sb.append(", createUserId=").append(createUserId); + sb.append(", recordUserId=").append(recordUserId); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidStandardExample.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMemberExample.java similarity index 67% rename from src/main/java/com/ccsens/carbasics/bean/po/FirstAidStandardExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/FirstAidMemberExample.java index f63a704..0d4c8aa 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidStandardExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMemberExample.java @@ -1,681 +1,621 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class FirstAidStandardExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public FirstAidStandardExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andTypeIsNull() { - addCriterion("type is null"); - return (Criteria) this; - } - - public Criteria andTypeIsNotNull() { - addCriterion("type is not null"); - return (Criteria) this; - } - - public Criteria andTypeEqualTo(Byte value) { - addCriterion("type =", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotEqualTo(Byte value) { - addCriterion("type <>", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThan(Byte value) { - addCriterion("type >", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("type >=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThan(Byte value) { - addCriterion("type <", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThanOrEqualTo(Byte value) { - addCriterion("type <=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeIn(List values) { - addCriterion("type in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotIn(List values) { - addCriterion("type not in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeBetween(Byte value1, Byte value2) { - addCriterion("type between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotBetween(Byte value1, Byte value2) { - addCriterion("type not between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria 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 andStepIdIsNull() { - addCriterion("step_id is null"); - return (Criteria) this; - } - - public Criteria andStepIdIsNotNull() { - addCriterion("step_id is not null"); - return (Criteria) this; - } - - public Criteria andStepIdEqualTo(Long value) { - addCriterion("step_id =", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotEqualTo(Long value) { - addCriterion("step_id <>", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThan(Long value) { - addCriterion("step_id >", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThanOrEqualTo(Long value) { - addCriterion("step_id >=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThan(Long value) { - addCriterion("step_id <", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThanOrEqualTo(Long value) { - addCriterion("step_id <=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdIn(List values) { - addCriterion("step_id in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotIn(List values) { - addCriterion("step_id not in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdBetween(Long value1, Long value2) { - addCriterion("step_id between", value1, value2, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotBetween(Long value1, Long value2) { - addCriterion("step_id not between", value1, value2, "stepId"); - return (Criteria) this; - } - - public Criteria andDurationIsNull() { - addCriterion("duration is null"); - return (Criteria) this; - } - - public Criteria andDurationIsNotNull() { - addCriterion("duration is not null"); - return (Criteria) this; - } - - public Criteria andDurationEqualTo(Long value) { - addCriterion("duration =", value, "duration"); - return (Criteria) this; - } - - public Criteria andDurationNotEqualTo(Long value) { - addCriterion("duration <>", value, "duration"); - return (Criteria) this; - } - - public Criteria andDurationGreaterThan(Long value) { - addCriterion("duration >", value, "duration"); - return (Criteria) this; - } - - public Criteria andDurationGreaterThanOrEqualTo(Long value) { - addCriterion("duration >=", value, "duration"); - return (Criteria) this; - } - - public Criteria andDurationLessThan(Long value) { - addCriterion("duration <", value, "duration"); - return (Criteria) this; - } - - public Criteria andDurationLessThanOrEqualTo(Long value) { - addCriterion("duration <=", value, "duration"); - return (Criteria) this; - } - - public Criteria andDurationIn(List values) { - addCriterion("duration in", values, "duration"); - return (Criteria) this; - } - - public Criteria andDurationNotIn(List values) { - addCriterion("duration not in", values, "duration"); - return (Criteria) this; - } - - public Criteria andDurationBetween(Long value1, Long value2) { - addCriterion("duration between", value1, value2, "duration"); - return (Criteria) this; - } - - public Criteria andDurationNotBetween(Long value1, Long value2) { - addCriterion("duration not between", value1, value2, "duration"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class FirstAidMemberExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public FirstAidMemberExample() { + 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 andFirstAidIdIsNull() { + addCriterion("first_aid_id is null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIsNotNull() { + addCriterion("first_aid_id is not null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdEqualTo(Long value) { + addCriterion("first_aid_id =", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotEqualTo(Long value) { + addCriterion("first_aid_id <>", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThan(Long value) { + addCriterion("first_aid_id >", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { + addCriterion("first_aid_id >=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThan(Long value) { + addCriterion("first_aid_id <", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { + addCriterion("first_aid_id <=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIn(List values) { + addCriterion("first_aid_id in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotIn(List values) { + addCriterion("first_aid_id not in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdBetween(Long value1, Long value2) { + addCriterion("first_aid_id between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { + addCriterion("first_aid_id not between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdIsNull() { + addCriterion("create_user_id is null"); + return (Criteria) this; + } + + public Criteria andCreateUserIdIsNotNull() { + addCriterion("create_user_id is not null"); + return (Criteria) this; + } + + public Criteria andCreateUserIdEqualTo(Long value) { + addCriterion("create_user_id =", value, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdNotEqualTo(Long value) { + addCriterion("create_user_id <>", value, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdGreaterThan(Long value) { + addCriterion("create_user_id >", value, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("create_user_id >=", value, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdLessThan(Long value) { + addCriterion("create_user_id <", value, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdLessThanOrEqualTo(Long value) { + addCriterion("create_user_id <=", value, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdIn(List values) { + addCriterion("create_user_id in", values, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdNotIn(List values) { + addCriterion("create_user_id not in", values, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdBetween(Long value1, Long value2) { + addCriterion("create_user_id between", value1, value2, "createUserId"); + return (Criteria) this; + } + + public Criteria andCreateUserIdNotBetween(Long value1, Long value2) { + addCriterion("create_user_id not between", value1, value2, "createUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdIsNull() { + addCriterion("record_user_id is null"); + return (Criteria) this; + } + + public Criteria andRecordUserIdIsNotNull() { + addCriterion("record_user_id is not null"); + return (Criteria) this; + } + + public Criteria andRecordUserIdEqualTo(Long value) { + addCriterion("record_user_id =", value, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdNotEqualTo(Long value) { + addCriterion("record_user_id <>", value, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdGreaterThan(Long value) { + addCriterion("record_user_id >", value, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("record_user_id >=", value, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdLessThan(Long value) { + addCriterion("record_user_id <", value, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdLessThanOrEqualTo(Long value) { + addCriterion("record_user_id <=", value, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdIn(List values) { + addCriterion("record_user_id in", values, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdNotIn(List values) { + addCriterion("record_user_id not in", values, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdBetween(Long value1, Long value2) { + addCriterion("record_user_id between", value1, value2, "recordUserId"); + return (Criteria) this; + } + + public Criteria andRecordUserIdNotBetween(Long value1, Long value2) { + addCriterion("record_user_id not between", value1, value2, "recordUserId"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecord.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecord.java index 7d5faad..34c4b81 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecord.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecord.java @@ -1,128 +1,128 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class FirstAidRecord implements Serializable { - private Long id; - - private Long firstAidId; - - private String questionCode; - - private String answer; - - private Long submitUserId; - - private Byte submitUserType; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getFirstAidId() { - return firstAidId; - } - - public void setFirstAidId(Long firstAidId) { - this.firstAidId = firstAidId; - } - - public String getQuestionCode() { - return questionCode; - } - - public void setQuestionCode(String questionCode) { - this.questionCode = questionCode == null ? null : questionCode.trim(); - } - - public String getAnswer() { - return answer; - } - - public void setAnswer(String answer) { - this.answer = answer == null ? null : answer.trim(); - } - - public Long getSubmitUserId() { - return submitUserId; - } - - public void setSubmitUserId(Long submitUserId) { - this.submitUserId = submitUserId; - } - - public Byte getSubmitUserType() { - return submitUserType; - } - - public void setSubmitUserType(Byte submitUserType) { - this.submitUserType = submitUserType; - } - - 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(", firstAidId=").append(firstAidId); - sb.append(", questionCode=").append(questionCode); - sb.append(", answer=").append(answer); - sb.append(", submitUserId=").append(submitUserId); - sb.append(", submitUserType=").append(submitUserType); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class FirstAidRecord implements Serializable { + private Long id; + + private Long firstAidId; + + private String questionCode; + + private String answer; + + private Long submitUserId; + + private Byte submitUserType; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getFirstAidId() { + return firstAidId; + } + + public void setFirstAidId(Long firstAidId) { + this.firstAidId = firstAidId; + } + + public String getQuestionCode() { + return questionCode; + } + + public void setQuestionCode(String questionCode) { + this.questionCode = questionCode == null ? null : questionCode.trim(); + } + + public String getAnswer() { + return answer; + } + + public void setAnswer(String answer) { + this.answer = answer == null ? null : answer.trim(); + } + + public Long getSubmitUserId() { + return submitUserId; + } + + public void setSubmitUserId(Long submitUserId) { + this.submitUserId = submitUserId; + } + + public Byte getSubmitUserType() { + return submitUserType; + } + + public void setSubmitUserType(Byte submitUserType) { + this.submitUserType = submitUserType; + } + + 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(", firstAidId=").append(firstAidId); + sb.append(", questionCode=").append(questionCode); + sb.append(", answer=").append(answer); + sb.append(", submitUserId=").append(submitUserId); + sb.append(", submitUserType=").append(submitUserType); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordExample.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordExample.java index 52aa037..7eeb5b7 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordExample.java @@ -1,821 +1,821 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class FirstAidRecordExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public FirstAidRecordExample() { - 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 andFirstAidIdIsNull() { - addCriterion("first_aid_id is null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIsNotNull() { - addCriterion("first_aid_id is not null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdEqualTo(Long value) { - addCriterion("first_aid_id =", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotEqualTo(Long value) { - addCriterion("first_aid_id <>", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThan(Long value) { - addCriterion("first_aid_id >", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { - addCriterion("first_aid_id >=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThan(Long value) { - addCriterion("first_aid_id <", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { - addCriterion("first_aid_id <=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIn(List values) { - addCriterion("first_aid_id in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotIn(List values) { - addCriterion("first_aid_id not in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdBetween(Long value1, Long value2) { - addCriterion("first_aid_id between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { - addCriterion("first_aid_id not between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIsNull() { - addCriterion("question_code is null"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIsNotNull() { - addCriterion("question_code is not null"); - return (Criteria) this; - } - - public Criteria andQuestionCodeEqualTo(String value) { - addCriterion("question_code =", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotEqualTo(String value) { - addCriterion("question_code <>", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeGreaterThan(String value) { - addCriterion("question_code >", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { - addCriterion("question_code >=", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLessThan(String value) { - addCriterion("question_code <", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLessThanOrEqualTo(String value) { - addCriterion("question_code <=", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLike(String value) { - addCriterion("question_code like", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotLike(String value) { - addCriterion("question_code not like", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIn(List values) { - addCriterion("question_code in", values, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotIn(List values) { - addCriterion("question_code not in", values, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeBetween(String value1, String value2) { - addCriterion("question_code between", value1, value2, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotBetween(String value1, String value2) { - addCriterion("question_code not between", value1, value2, "questionCode"); - return (Criteria) this; - } - - public Criteria andAnswerIsNull() { - addCriterion("answer is null"); - return (Criteria) this; - } - - public Criteria andAnswerIsNotNull() { - addCriterion("answer is not null"); - return (Criteria) this; - } - - public Criteria andAnswerEqualTo(String value) { - addCriterion("answer =", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotEqualTo(String value) { - addCriterion("answer <>", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerGreaterThan(String value) { - addCriterion("answer >", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerGreaterThanOrEqualTo(String value) { - addCriterion("answer >=", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerLessThan(String value) { - addCriterion("answer <", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerLessThanOrEqualTo(String value) { - addCriterion("answer <=", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerLike(String value) { - addCriterion("answer like", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotLike(String value) { - addCriterion("answer not like", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerIn(List values) { - addCriterion("answer in", values, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotIn(List values) { - addCriterion("answer not in", values, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerBetween(String value1, String value2) { - addCriterion("answer between", value1, value2, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotBetween(String value1, String value2) { - addCriterion("answer not between", value1, value2, "answer"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdIsNull() { - addCriterion("submit_user_id is null"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdIsNotNull() { - addCriterion("submit_user_id is not null"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdEqualTo(Long value) { - addCriterion("submit_user_id =", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdNotEqualTo(Long value) { - addCriterion("submit_user_id <>", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdGreaterThan(Long value) { - addCriterion("submit_user_id >", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdGreaterThanOrEqualTo(Long value) { - addCriterion("submit_user_id >=", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdLessThan(Long value) { - addCriterion("submit_user_id <", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdLessThanOrEqualTo(Long value) { - addCriterion("submit_user_id <=", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdIn(List values) { - addCriterion("submit_user_id in", values, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdNotIn(List values) { - addCriterion("submit_user_id not in", values, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdBetween(Long value1, Long value2) { - addCriterion("submit_user_id between", value1, value2, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdNotBetween(Long value1, Long value2) { - addCriterion("submit_user_id not between", value1, value2, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeIsNull() { - addCriterion("submit_user_type is null"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeIsNotNull() { - addCriterion("submit_user_type is not null"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeEqualTo(Byte value) { - addCriterion("submit_user_type =", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeNotEqualTo(Byte value) { - addCriterion("submit_user_type <>", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeGreaterThan(Byte value) { - addCriterion("submit_user_type >", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("submit_user_type >=", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeLessThan(Byte value) { - addCriterion("submit_user_type <", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeLessThanOrEqualTo(Byte value) { - addCriterion("submit_user_type <=", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeIn(List values) { - addCriterion("submit_user_type in", values, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeNotIn(List values) { - addCriterion("submit_user_type not in", values, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeBetween(Byte value1, Byte value2) { - addCriterion("submit_user_type between", value1, value2, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeNotBetween(Byte value1, Byte value2) { - addCriterion("submit_user_type not between", value1, value2, "submitUserType"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class FirstAidRecordExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public FirstAidRecordExample() { + 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 andFirstAidIdIsNull() { + addCriterion("first_aid_id is null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIsNotNull() { + addCriterion("first_aid_id is not null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdEqualTo(Long value) { + addCriterion("first_aid_id =", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotEqualTo(Long value) { + addCriterion("first_aid_id <>", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThan(Long value) { + addCriterion("first_aid_id >", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { + addCriterion("first_aid_id >=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThan(Long value) { + addCriterion("first_aid_id <", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { + addCriterion("first_aid_id <=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIn(List values) { + addCriterion("first_aid_id in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotIn(List values) { + addCriterion("first_aid_id not in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdBetween(Long value1, Long value2) { + addCriterion("first_aid_id between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { + addCriterion("first_aid_id not between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIsNull() { + addCriterion("question_code is null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIsNotNull() { + addCriterion("question_code is not null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeEqualTo(String value) { + addCriterion("question_code =", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotEqualTo(String value) { + addCriterion("question_code <>", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThan(String value) { + addCriterion("question_code >", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { + addCriterion("question_code >=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThan(String value) { + addCriterion("question_code <", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThanOrEqualTo(String value) { + addCriterion("question_code <=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLike(String value) { + addCriterion("question_code like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotLike(String value) { + addCriterion("question_code not like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIn(List values) { + addCriterion("question_code in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotIn(List values) { + addCriterion("question_code not in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeBetween(String value1, String value2) { + addCriterion("question_code between", value1, value2, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotBetween(String value1, String value2) { + addCriterion("question_code not between", value1, value2, "questionCode"); + return (Criteria) this; + } + + public Criteria andAnswerIsNull() { + addCriterion("answer is null"); + return (Criteria) this; + } + + public Criteria andAnswerIsNotNull() { + addCriterion("answer is not null"); + return (Criteria) this; + } + + public Criteria andAnswerEqualTo(String value) { + addCriterion("answer =", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotEqualTo(String value) { + addCriterion("answer <>", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerGreaterThan(String value) { + addCriterion("answer >", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerGreaterThanOrEqualTo(String value) { + addCriterion("answer >=", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerLessThan(String value) { + addCriterion("answer <", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerLessThanOrEqualTo(String value) { + addCriterion("answer <=", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerLike(String value) { + addCriterion("answer like", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotLike(String value) { + addCriterion("answer not like", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerIn(List values) { + addCriterion("answer in", values, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotIn(List values) { + addCriterion("answer not in", values, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerBetween(String value1, String value2) { + addCriterion("answer between", value1, value2, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotBetween(String value1, String value2) { + addCriterion("answer not between", value1, value2, "answer"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdIsNull() { + addCriterion("submit_user_id is null"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdIsNotNull() { + addCriterion("submit_user_id is not null"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdEqualTo(Long value) { + addCriterion("submit_user_id =", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdNotEqualTo(Long value) { + addCriterion("submit_user_id <>", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdGreaterThan(Long value) { + addCriterion("submit_user_id >", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("submit_user_id >=", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdLessThan(Long value) { + addCriterion("submit_user_id <", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdLessThanOrEqualTo(Long value) { + addCriterion("submit_user_id <=", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdIn(List values) { + addCriterion("submit_user_id in", values, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdNotIn(List values) { + addCriterion("submit_user_id not in", values, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdBetween(Long value1, Long value2) { + addCriterion("submit_user_id between", value1, value2, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdNotBetween(Long value1, Long value2) { + addCriterion("submit_user_id not between", value1, value2, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeIsNull() { + addCriterion("submit_user_type is null"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeIsNotNull() { + addCriterion("submit_user_type is not null"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeEqualTo(Byte value) { + addCriterion("submit_user_type =", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeNotEqualTo(Byte value) { + addCriterion("submit_user_type <>", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeGreaterThan(Byte value) { + addCriterion("submit_user_type >", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("submit_user_type >=", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeLessThan(Byte value) { + addCriterion("submit_user_type <", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeLessThanOrEqualTo(Byte value) { + addCriterion("submit_user_type <=", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeIn(List values) { + addCriterion("submit_user_type in", values, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeNotIn(List values) { + addCriterion("submit_user_type not in", values, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeBetween(Byte value1, Byte value2) { + addCriterion("submit_user_type between", value1, value2, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeNotBetween(Byte value1, Byte value2) { + addCriterion("submit_user_type not between", value1, value2, "submitUserType"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLog.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLog.java index b479a9e..13d5c7d 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLog.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLog.java @@ -1,128 +1,128 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class FirstAidRecordLog implements Serializable { - private Long id; - - private Long firstAidId; - - private String questionCode; - - private String answer; - - private Long submitUserId; - - private Byte submitUserType; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getFirstAidId() { - return firstAidId; - } - - public void setFirstAidId(Long firstAidId) { - this.firstAidId = firstAidId; - } - - public String getQuestionCode() { - return questionCode; - } - - public void setQuestionCode(String questionCode) { - this.questionCode = questionCode == null ? null : questionCode.trim(); - } - - public String getAnswer() { - return answer; - } - - public void setAnswer(String answer) { - this.answer = answer == null ? null : answer.trim(); - } - - public Long getSubmitUserId() { - return submitUserId; - } - - public void setSubmitUserId(Long submitUserId) { - this.submitUserId = submitUserId; - } - - public Byte getSubmitUserType() { - return submitUserType; - } - - public void setSubmitUserType(Byte submitUserType) { - this.submitUserType = submitUserType; - } - - 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(", firstAidId=").append(firstAidId); - sb.append(", questionCode=").append(questionCode); - sb.append(", answer=").append(answer); - sb.append(", submitUserId=").append(submitUserId); - sb.append(", submitUserType=").append(submitUserType); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class FirstAidRecordLog implements Serializable { + private Long id; + + private Long firstAidId; + + private String questionCode; + + private String answer; + + private Long submitUserId; + + private Byte submitUserType; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getFirstAidId() { + return firstAidId; + } + + public void setFirstAidId(Long firstAidId) { + this.firstAidId = firstAidId; + } + + public String getQuestionCode() { + return questionCode; + } + + public void setQuestionCode(String questionCode) { + this.questionCode = questionCode == null ? null : questionCode.trim(); + } + + public String getAnswer() { + return answer; + } + + public void setAnswer(String answer) { + this.answer = answer == null ? null : answer.trim(); + } + + public Long getSubmitUserId() { + return submitUserId; + } + + public void setSubmitUserId(Long submitUserId) { + this.submitUserId = submitUserId; + } + + public Byte getSubmitUserType() { + return submitUserType; + } + + public void setSubmitUserType(Byte submitUserType) { + this.submitUserType = submitUserType; + } + + 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(", firstAidId=").append(firstAidId); + sb.append(", questionCode=").append(questionCode); + sb.append(", answer=").append(answer); + sb.append(", submitUserId=").append(submitUserId); + sb.append(", submitUserType=").append(submitUserType); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLogExample.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLogExample.java index e11d7ff..f1aaceb 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLogExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidRecordLogExample.java @@ -1,821 +1,821 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class FirstAidRecordLogExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public FirstAidRecordLogExample() { - 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 andFirstAidIdIsNull() { - addCriterion("first_aid_id is null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIsNotNull() { - addCriterion("first_aid_id is not null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdEqualTo(Long value) { - addCriterion("first_aid_id =", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotEqualTo(Long value) { - addCriterion("first_aid_id <>", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThan(Long value) { - addCriterion("first_aid_id >", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { - addCriterion("first_aid_id >=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThan(Long value) { - addCriterion("first_aid_id <", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { - addCriterion("first_aid_id <=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIn(List values) { - addCriterion("first_aid_id in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotIn(List values) { - addCriterion("first_aid_id not in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdBetween(Long value1, Long value2) { - addCriterion("first_aid_id between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { - addCriterion("first_aid_id not between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIsNull() { - addCriterion("question_code is null"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIsNotNull() { - addCriterion("question_code is not null"); - return (Criteria) this; - } - - public Criteria andQuestionCodeEqualTo(String value) { - addCriterion("question_code =", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotEqualTo(String value) { - addCriterion("question_code <>", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeGreaterThan(String value) { - addCriterion("question_code >", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { - addCriterion("question_code >=", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLessThan(String value) { - addCriterion("question_code <", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLessThanOrEqualTo(String value) { - addCriterion("question_code <=", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeLike(String value) { - addCriterion("question_code like", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotLike(String value) { - addCriterion("question_code not like", value, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeIn(List values) { - addCriterion("question_code in", values, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotIn(List values) { - addCriterion("question_code not in", values, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeBetween(String value1, String value2) { - addCriterion("question_code between", value1, value2, "questionCode"); - return (Criteria) this; - } - - public Criteria andQuestionCodeNotBetween(String value1, String value2) { - addCriterion("question_code not between", value1, value2, "questionCode"); - return (Criteria) this; - } - - public Criteria andAnswerIsNull() { - addCriterion("answer is null"); - return (Criteria) this; - } - - public Criteria andAnswerIsNotNull() { - addCriterion("answer is not null"); - return (Criteria) this; - } - - public Criteria andAnswerEqualTo(String value) { - addCriterion("answer =", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotEqualTo(String value) { - addCriterion("answer <>", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerGreaterThan(String value) { - addCriterion("answer >", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerGreaterThanOrEqualTo(String value) { - addCriterion("answer >=", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerLessThan(String value) { - addCriterion("answer <", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerLessThanOrEqualTo(String value) { - addCriterion("answer <=", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerLike(String value) { - addCriterion("answer like", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotLike(String value) { - addCriterion("answer not like", value, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerIn(List values) { - addCriterion("answer in", values, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotIn(List values) { - addCriterion("answer not in", values, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerBetween(String value1, String value2) { - addCriterion("answer between", value1, value2, "answer"); - return (Criteria) this; - } - - public Criteria andAnswerNotBetween(String value1, String value2) { - addCriterion("answer not between", value1, value2, "answer"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdIsNull() { - addCriterion("submit_user_id is null"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdIsNotNull() { - addCriterion("submit_user_id is not null"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdEqualTo(Long value) { - addCriterion("submit_user_id =", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdNotEqualTo(Long value) { - addCriterion("submit_user_id <>", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdGreaterThan(Long value) { - addCriterion("submit_user_id >", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdGreaterThanOrEqualTo(Long value) { - addCriterion("submit_user_id >=", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdLessThan(Long value) { - addCriterion("submit_user_id <", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdLessThanOrEqualTo(Long value) { - addCriterion("submit_user_id <=", value, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdIn(List values) { - addCriterion("submit_user_id in", values, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdNotIn(List values) { - addCriterion("submit_user_id not in", values, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdBetween(Long value1, Long value2) { - addCriterion("submit_user_id between", value1, value2, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserIdNotBetween(Long value1, Long value2) { - addCriterion("submit_user_id not between", value1, value2, "submitUserId"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeIsNull() { - addCriterion("submit_user_type is null"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeIsNotNull() { - addCriterion("submit_user_type is not null"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeEqualTo(Byte value) { - addCriterion("submit_user_type =", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeNotEqualTo(Byte value) { - addCriterion("submit_user_type <>", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeGreaterThan(Byte value) { - addCriterion("submit_user_type >", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeGreaterThanOrEqualTo(Byte value) { - addCriterion("submit_user_type >=", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeLessThan(Byte value) { - addCriterion("submit_user_type <", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeLessThanOrEqualTo(Byte value) { - addCriterion("submit_user_type <=", value, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeIn(List values) { - addCriterion("submit_user_type in", values, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeNotIn(List values) { - addCriterion("submit_user_type not in", values, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeBetween(Byte value1, Byte value2) { - addCriterion("submit_user_type between", value1, value2, "submitUserType"); - return (Criteria) this; - } - - public Criteria andSubmitUserTypeNotBetween(Byte value1, Byte value2) { - addCriterion("submit_user_type not between", value1, value2, "submitUserType"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class FirstAidRecordLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public FirstAidRecordLogExample() { + 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 andFirstAidIdIsNull() { + addCriterion("first_aid_id is null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIsNotNull() { + addCriterion("first_aid_id is not null"); + return (Criteria) this; + } + + public Criteria andFirstAidIdEqualTo(Long value) { + addCriterion("first_aid_id =", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotEqualTo(Long value) { + addCriterion("first_aid_id <>", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThan(Long value) { + addCriterion("first_aid_id >", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { + addCriterion("first_aid_id >=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThan(Long value) { + addCriterion("first_aid_id <", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { + addCriterion("first_aid_id <=", value, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdIn(List values) { + addCriterion("first_aid_id in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotIn(List values) { + addCriterion("first_aid_id not in", values, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdBetween(Long value1, Long value2) { + addCriterion("first_aid_id between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { + addCriterion("first_aid_id not between", value1, value2, "firstAidId"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIsNull() { + addCriterion("question_code is null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIsNotNull() { + addCriterion("question_code is not null"); + return (Criteria) this; + } + + public Criteria andQuestionCodeEqualTo(String value) { + addCriterion("question_code =", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotEqualTo(String value) { + addCriterion("question_code <>", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThan(String value) { + addCriterion("question_code >", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { + addCriterion("question_code >=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThan(String value) { + addCriterion("question_code <", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLessThanOrEqualTo(String value) { + addCriterion("question_code <=", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeLike(String value) { + addCriterion("question_code like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotLike(String value) { + addCriterion("question_code not like", value, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeIn(List values) { + addCriterion("question_code in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotIn(List values) { + addCriterion("question_code not in", values, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeBetween(String value1, String value2) { + addCriterion("question_code between", value1, value2, "questionCode"); + return (Criteria) this; + } + + public Criteria andQuestionCodeNotBetween(String value1, String value2) { + addCriterion("question_code not between", value1, value2, "questionCode"); + return (Criteria) this; + } + + public Criteria andAnswerIsNull() { + addCriterion("answer is null"); + return (Criteria) this; + } + + public Criteria andAnswerIsNotNull() { + addCriterion("answer is not null"); + return (Criteria) this; + } + + public Criteria andAnswerEqualTo(String value) { + addCriterion("answer =", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotEqualTo(String value) { + addCriterion("answer <>", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerGreaterThan(String value) { + addCriterion("answer >", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerGreaterThanOrEqualTo(String value) { + addCriterion("answer >=", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerLessThan(String value) { + addCriterion("answer <", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerLessThanOrEqualTo(String value) { + addCriterion("answer <=", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerLike(String value) { + addCriterion("answer like", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotLike(String value) { + addCriterion("answer not like", value, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerIn(List values) { + addCriterion("answer in", values, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotIn(List values) { + addCriterion("answer not in", values, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerBetween(String value1, String value2) { + addCriterion("answer between", value1, value2, "answer"); + return (Criteria) this; + } + + public Criteria andAnswerNotBetween(String value1, String value2) { + addCriterion("answer not between", value1, value2, "answer"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdIsNull() { + addCriterion("submit_user_id is null"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdIsNotNull() { + addCriterion("submit_user_id is not null"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdEqualTo(Long value) { + addCriterion("submit_user_id =", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdNotEqualTo(Long value) { + addCriterion("submit_user_id <>", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdGreaterThan(Long value) { + addCriterion("submit_user_id >", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdGreaterThanOrEqualTo(Long value) { + addCriterion("submit_user_id >=", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdLessThan(Long value) { + addCriterion("submit_user_id <", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdLessThanOrEqualTo(Long value) { + addCriterion("submit_user_id <=", value, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdIn(List values) { + addCriterion("submit_user_id in", values, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdNotIn(List values) { + addCriterion("submit_user_id not in", values, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdBetween(Long value1, Long value2) { + addCriterion("submit_user_id between", value1, value2, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserIdNotBetween(Long value1, Long value2) { + addCriterion("submit_user_id not between", value1, value2, "submitUserId"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeIsNull() { + addCriterion("submit_user_type is null"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeIsNotNull() { + addCriterion("submit_user_type is not null"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeEqualTo(Byte value) { + addCriterion("submit_user_type =", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeNotEqualTo(Byte value) { + addCriterion("submit_user_type <>", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeGreaterThan(Byte value) { + addCriterion("submit_user_type >", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("submit_user_type >=", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeLessThan(Byte value) { + addCriterion("submit_user_type <", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeLessThanOrEqualTo(Byte value) { + addCriterion("submit_user_type <=", value, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeIn(List values) { + addCriterion("submit_user_type in", values, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeNotIn(List values) { + addCriterion("submit_user_type not in", values, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeBetween(Byte value1, Byte value2) { + addCriterion("submit_user_type between", value1, value2, "submitUserType"); + return (Criteria) this; + } + + public Criteria andSubmitUserTypeNotBetween(Byte value1, Byte value2) { + addCriterion("submit_user_type not between", value1, value2, "submitUserType"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidStandard.java b/src/main/java/com/ccsens/carbasics/bean/po/FirstAidStandard.java deleted file mode 100644 index 04d7d09..0000000 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidStandard.java +++ /dev/null @@ -1,106 +0,0 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class FirstAidStandard implements Serializable { - private Long id; - - private Byte type; - - private Long hospitalId; - - private Long stepId; - - private Long duration; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Byte getType() { - return type; - } - - public void setType(Byte type) { - this.type = type; - } - - public Long getHospitalId() { - return hospitalId; - } - - public void setHospitalId(Long hospitalId) { - this.hospitalId = hospitalId; - } - - public Long getStepId() { - return stepId; - } - - public void setStepId(Long stepId) { - this.stepId = stepId; - } - - public Long getDuration() { - return duration; - } - - public void setDuration(Long duration) { - this.duration = duration; - } - - public Date getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public Byte getRecStatus() { - return recStatus; - } - - public void setRecStatus(Byte recStatus) { - this.recStatus = recStatus; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", type=").append(type); - sb.append(", hospitalId=").append(hospitalId); - sb.append(", stepId=").append(stepId); - sb.append(", duration=").append(duration); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/AttendanceRecord.java b/src/main/java/com/ccsens/carbasics/bean/po/Organization.java similarity index 55% rename from src/main/java/com/ccsens/carbasics/bean/po/AttendanceRecord.java rename to src/main/java/com/ccsens/carbasics/bean/po/Organization.java index d65a97a..70dceee 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/AttendanceRecord.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/Organization.java @@ -1,150 +1,150 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class AttendanceRecord implements Serializable { - private Long id; - - private Long firstAidId; - - private Long stepId; - - private String rfid; - - private String name; - - private Long userId; - - private Byte type; - - private Long time; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getFirstAidId() { - return firstAidId; - } - - public void setFirstAidId(Long firstAidId) { - this.firstAidId = firstAidId; - } - - public Long getStepId() { - return stepId; - } - - public void setStepId(Long stepId) { - this.stepId = stepId; - } - - public String getRfid() { - return rfid; - } - - public void setRfid(String rfid) { - this.rfid = rfid == null ? null : rfid.trim(); - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name == null ? null : name.trim(); - } - - public Long getUserId() { - return userId; - } - - public void setUserId(Long userId) { - this.userId = userId; - } - - public Byte getType() { - return type; - } - - public void setType(Byte type) { - this.type = type; - } - - public Long getTime() { - return time; - } - - public void setTime(Long time) { - this.time = time; - } - - 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(", firstAidId=").append(firstAidId); - sb.append(", stepId=").append(stepId); - sb.append(", rfid=").append(rfid); - sb.append(", name=").append(name); - sb.append(", userId=").append(userId); - sb.append(", type=").append(type); - sb.append(", time=").append(time); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Organization implements Serializable { + private Long id; + + private Byte organizationType; + + private String code; + + private String name; + + private String shortName; + + private String introduce; + + private Byte level; + + private Long parentId; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Byte getOrganizationType() { + return organizationType; + } + + public void setOrganizationType(Byte organizationType) { + this.organizationType = organizationType; + } + + 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 String getShortName() { + return shortName; + } + + public void setShortName(String shortName) { + this.shortName = shortName == null ? null : shortName.trim(); + } + + public String getIntroduce() { + return introduce; + } + + public void setIntroduce(String introduce) { + this.introduce = introduce == null ? null : introduce.trim(); + } + + public Byte getLevel() { + return level; + } + + public void setLevel(Byte level) { + this.level = level; + } + + public Long getParentId() { + return parentId; + } + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + 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(", organizationType=").append(organizationType); + sb.append(", code=").append(code); + sb.append(", name=").append(name); + sb.append(", shortName=").append(shortName); + sb.append(", introduce=").append(introduce); + sb.append(", level=").append(level); + sb.append(", parentId=").append(parentId); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/OrganizationDepartment.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationDepartment.java new file mode 100644 index 0000000..1918b18 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationDepartment.java @@ -0,0 +1,128 @@ +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class OrganizationDepartment implements Serializable { + private Long id; + + private String code; + + private String name; + + private String introduce; + + private Long parentId; + + private Long organizationId; + + 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 String getIntroduce() { + return introduce; + } + + public void setIntroduce(String introduce) { + this.introduce = introduce == null ? null : introduce.trim(); + } + + public Long getParentId() { + return parentId; + } + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + public Long getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Long organizationId) { + this.organizationId = organizationId; + } + + 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(", introduce=").append(introduce); + sb.append(", parentId=").append(parentId); + sb.append(", organizationId=").append(organizationId); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/CarRecordExample.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationDepartmentExample.java similarity index 66% rename from src/main/java/com/ccsens/carbasics/bean/po/CarRecordExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationDepartmentExample.java index 86f1e16..bb94874 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/CarRecordExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationDepartmentExample.java @@ -1,751 +1,831 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class CarRecordExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public CarRecordExample() { - 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 andCarIdIsNull() { - addCriterion("car_id is null"); - return (Criteria) this; - } - - public Criteria andCarIdIsNotNull() { - addCriterion("car_id is not null"); - return (Criteria) this; - } - - public Criteria andCarIdEqualTo(Long value) { - addCriterion("car_id =", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdNotEqualTo(Long value) { - addCriterion("car_id <>", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdGreaterThan(Long value) { - addCriterion("car_id >", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdGreaterThanOrEqualTo(Long value) { - addCriterion("car_id >=", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdLessThan(Long value) { - addCriterion("car_id <", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdLessThanOrEqualTo(Long value) { - addCriterion("car_id <=", value, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdIn(List values) { - addCriterion("car_id in", values, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdNotIn(List values) { - addCriterion("car_id not in", values, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdBetween(Long value1, Long value2) { - addCriterion("car_id between", value1, value2, "carId"); - return (Criteria) this; - } - - public Criteria andCarIdNotBetween(Long value1, Long value2) { - addCriterion("car_id not between", value1, value2, "carId"); - 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 andCarValueIsNull() { - addCriterion("car_value is null"); - return (Criteria) this; - } - - public Criteria andCarValueIsNotNull() { - addCriterion("car_value is not null"); - return (Criteria) this; - } - - public Criteria andCarValueEqualTo(String value) { - addCriterion("car_value =", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueNotEqualTo(String value) { - addCriterion("car_value <>", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueGreaterThan(String value) { - addCriterion("car_value >", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueGreaterThanOrEqualTo(String value) { - addCriterion("car_value >=", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueLessThan(String value) { - addCriterion("car_value <", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueLessThanOrEqualTo(String value) { - addCriterion("car_value <=", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueLike(String value) { - addCriterion("car_value like", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueNotLike(String value) { - addCriterion("car_value not like", value, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueIn(List values) { - addCriterion("car_value in", values, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueNotIn(List values) { - addCriterion("car_value not in", values, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueBetween(String value1, String value2) { - addCriterion("car_value between", value1, value2, "carValue"); - return (Criteria) this; - } - - public Criteria andCarValueNotBetween(String value1, String value2) { - addCriterion("car_value not between", value1, value2, "carValue"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Long value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Long value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Long value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Long value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Long value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Long value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Long value1, Long value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Long value1, Long value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OrganizationDepartmentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OrganizationDepartmentExample() { + 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 andIntroduceIsNull() { + addCriterion("introduce is null"); + return (Criteria) this; + } + + public Criteria andIntroduceIsNotNull() { + addCriterion("introduce is not null"); + return (Criteria) this; + } + + public Criteria andIntroduceEqualTo(String value) { + addCriterion("introduce =", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotEqualTo(String value) { + addCriterion("introduce <>", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceGreaterThan(String value) { + addCriterion("introduce >", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceGreaterThanOrEqualTo(String value) { + addCriterion("introduce >=", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLessThan(String value) { + addCriterion("introduce <", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLessThanOrEqualTo(String value) { + addCriterion("introduce <=", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLike(String value) { + addCriterion("introduce like", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotLike(String value) { + addCriterion("introduce not like", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceIn(List values) { + addCriterion("introduce in", values, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotIn(List values) { + addCriterion("introduce not in", values, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceBetween(String value1, String value2) { + addCriterion("introduce between", value1, value2, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotBetween(String value1, String value2) { + addCriterion("introduce not between", value1, value2, "introduce"); + return (Criteria) this; + } + + public Criteria andParentIdIsNull() { + addCriterion("parent_id is null"); + return (Criteria) this; + } + + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); + return (Criteria) this; + } + + public Criteria andParentIdEqualTo(Long value) { + addCriterion("parent_id =", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotEqualTo(Long value) { + addCriterion("parent_id <>", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThan(Long value) { + addCriterion("parent_id >", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { + addCriterion("parent_id >=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThan(Long value) { + addCriterion("parent_id <", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThanOrEqualTo(Long value) { + addCriterion("parent_id <=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdBetween(Long value1, Long value2) { + addCriterion("parent_id between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotBetween(Long value1, Long value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdIsNull() { + addCriterion("organization_id is null"); + return (Criteria) this; + } + + public Criteria andOrganizationIdIsNotNull() { + addCriterion("organization_id is not null"); + return (Criteria) this; + } + + public Criteria andOrganizationIdEqualTo(Long value) { + addCriterion("organization_id =", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotEqualTo(Long value) { + addCriterion("organization_id <>", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdGreaterThan(Long value) { + addCriterion("organization_id >", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdGreaterThanOrEqualTo(Long value) { + addCriterion("organization_id >=", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdLessThan(Long value) { + addCriterion("organization_id <", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdLessThanOrEqualTo(Long value) { + addCriterion("organization_id <=", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdIn(List values) { + addCriterion("organization_id in", values, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotIn(List values) { + addCriterion("organization_id not in", values, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdBetween(Long value1, Long value2) { + addCriterion("organization_id between", value1, value2, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotBetween(Long value1, Long value2) { + addCriterion("organization_id not between", value1, value2, "organizationId"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/AttendanceRecordExample.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationExample.java similarity index 67% rename from src/main/java/com/ccsens/carbasics/bean/po/AttendanceRecordExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationExample.java index 0976917..5e37d0c 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/AttendanceRecordExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationExample.java @@ -1,941 +1,961 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class AttendanceRecordExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public AttendanceRecordExample() { - 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 andFirstAidIdIsNull() { - addCriterion("first_aid_id is null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIsNotNull() { - addCriterion("first_aid_id is not null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdEqualTo(Long value) { - addCriterion("first_aid_id =", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotEqualTo(Long value) { - addCriterion("first_aid_id <>", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThan(Long value) { - addCriterion("first_aid_id >", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { - addCriterion("first_aid_id >=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThan(Long value) { - addCriterion("first_aid_id <", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { - addCriterion("first_aid_id <=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIn(List values) { - addCriterion("first_aid_id in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotIn(List values) { - addCriterion("first_aid_id not in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdBetween(Long value1, Long value2) { - addCriterion("first_aid_id between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { - addCriterion("first_aid_id not between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andStepIdIsNull() { - addCriterion("step_id is null"); - return (Criteria) this; - } - - public Criteria andStepIdIsNotNull() { - addCriterion("step_id is not null"); - return (Criteria) this; - } - - public Criteria andStepIdEqualTo(Long value) { - addCriterion("step_id =", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotEqualTo(Long value) { - addCriterion("step_id <>", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThan(Long value) { - addCriterion("step_id >", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThanOrEqualTo(Long value) { - addCriterion("step_id >=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThan(Long value) { - addCriterion("step_id <", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThanOrEqualTo(Long value) { - addCriterion("step_id <=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdIn(List values) { - addCriterion("step_id in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotIn(List values) { - addCriterion("step_id not in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdBetween(Long value1, Long value2) { - addCriterion("step_id between", value1, value2, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotBetween(Long value1, Long value2) { - addCriterion("step_id not between", value1, value2, "stepId"); - return (Criteria) this; - } - - public Criteria andRfidIsNull() { - addCriterion("rfid is null"); - return (Criteria) this; - } - - public Criteria andRfidIsNotNull() { - addCriterion("rfid is not null"); - return (Criteria) this; - } - - public Criteria andRfidEqualTo(String value) { - addCriterion("rfid =", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotEqualTo(String value) { - addCriterion("rfid <>", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidGreaterThan(String value) { - addCriterion("rfid >", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidGreaterThanOrEqualTo(String value) { - addCriterion("rfid >=", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidLessThan(String value) { - addCriterion("rfid <", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidLessThanOrEqualTo(String value) { - addCriterion("rfid <=", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidLike(String value) { - addCriterion("rfid like", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotLike(String value) { - addCriterion("rfid not like", value, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidIn(List values) { - addCriterion("rfid in", values, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotIn(List values) { - addCriterion("rfid not in", values, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidBetween(String value1, String value2) { - addCriterion("rfid between", value1, value2, "rfid"); - return (Criteria) this; - } - - public Criteria andRfidNotBetween(String value1, String value2) { - addCriterion("rfid not between", value1, value2, "rfid"); - 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 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 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 andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Long value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Long value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Long value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Long value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Long value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Long value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Long value1, Long value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Long value1, Long value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OrganizationExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OrganizationExample() { + 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 andOrganizationTypeIsNull() { + addCriterion("organization_type is null"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeIsNotNull() { + addCriterion("organization_type is not null"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeEqualTo(Byte value) { + addCriterion("organization_type =", value, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeNotEqualTo(Byte value) { + addCriterion("organization_type <>", value, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeGreaterThan(Byte value) { + addCriterion("organization_type >", value, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("organization_type >=", value, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeLessThan(Byte value) { + addCriterion("organization_type <", value, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeLessThanOrEqualTo(Byte value) { + addCriterion("organization_type <=", value, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeIn(List values) { + addCriterion("organization_type in", values, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeNotIn(List values) { + addCriterion("organization_type not in", values, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeBetween(Byte value1, Byte value2) { + addCriterion("organization_type between", value1, value2, "organizationType"); + return (Criteria) this; + } + + public Criteria andOrganizationTypeNotBetween(Byte value1, Byte value2) { + addCriterion("organization_type not between", value1, value2, "organizationType"); + 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 andShortNameIsNull() { + addCriterion("short_name is null"); + return (Criteria) this; + } + + public Criteria andShortNameIsNotNull() { + addCriterion("short_name is not null"); + return (Criteria) this; + } + + public Criteria andShortNameEqualTo(String value) { + addCriterion("short_name =", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameNotEqualTo(String value) { + addCriterion("short_name <>", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameGreaterThan(String value) { + addCriterion("short_name >", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameGreaterThanOrEqualTo(String value) { + addCriterion("short_name >=", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameLessThan(String value) { + addCriterion("short_name <", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameLessThanOrEqualTo(String value) { + addCriterion("short_name <=", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameLike(String value) { + addCriterion("short_name like", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameNotLike(String value) { + addCriterion("short_name not like", value, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameIn(List values) { + addCriterion("short_name in", values, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameNotIn(List values) { + addCriterion("short_name not in", values, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameBetween(String value1, String value2) { + addCriterion("short_name between", value1, value2, "shortName"); + return (Criteria) this; + } + + public Criteria andShortNameNotBetween(String value1, String value2) { + addCriterion("short_name not between", value1, value2, "shortName"); + return (Criteria) this; + } + + public Criteria andIntroduceIsNull() { + addCriterion("introduce is null"); + return (Criteria) this; + } + + public Criteria andIntroduceIsNotNull() { + addCriterion("introduce is not null"); + return (Criteria) this; + } + + public Criteria andIntroduceEqualTo(String value) { + addCriterion("introduce =", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotEqualTo(String value) { + addCriterion("introduce <>", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceGreaterThan(String value) { + addCriterion("introduce >", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceGreaterThanOrEqualTo(String value) { + addCriterion("introduce >=", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLessThan(String value) { + addCriterion("introduce <", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLessThanOrEqualTo(String value) { + addCriterion("introduce <=", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLike(String value) { + addCriterion("introduce like", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotLike(String value) { + addCriterion("introduce not like", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceIn(List values) { + addCriterion("introduce in", values, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotIn(List values) { + addCriterion("introduce not in", values, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceBetween(String value1, String value2) { + addCriterion("introduce between", value1, value2, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotBetween(String value1, String value2) { + addCriterion("introduce not between", value1, value2, "introduce"); + return (Criteria) this; + } + + public Criteria andLevelIsNull() { + addCriterion("level is null"); + return (Criteria) this; + } + + public Criteria andLevelIsNotNull() { + addCriterion("level is not null"); + return (Criteria) this; + } + + public Criteria andLevelEqualTo(Byte value) { + addCriterion("level =", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotEqualTo(Byte value) { + addCriterion("level <>", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelGreaterThan(Byte value) { + addCriterion("level >", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelGreaterThanOrEqualTo(Byte value) { + addCriterion("level >=", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelLessThan(Byte value) { + addCriterion("level <", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelLessThanOrEqualTo(Byte value) { + addCriterion("level <=", value, "level"); + return (Criteria) this; + } + + public Criteria andLevelIn(List values) { + addCriterion("level in", values, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotIn(List values) { + addCriterion("level not in", values, "level"); + return (Criteria) this; + } + + public Criteria andLevelBetween(Byte value1, Byte value2) { + addCriterion("level between", value1, value2, "level"); + return (Criteria) this; + } + + public Criteria andLevelNotBetween(Byte value1, Byte value2) { + addCriterion("level not between", value1, value2, "level"); + return (Criteria) this; + } + + public Criteria andParentIdIsNull() { + addCriterion("parent_id is null"); + return (Criteria) this; + } + + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); + return (Criteria) this; + } + + public Criteria andParentIdEqualTo(Long value) { + addCriterion("parent_id =", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotEqualTo(Long value) { + addCriterion("parent_id <>", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThan(Long value) { + addCriterion("parent_id >", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { + addCriterion("parent_id >=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThan(Long value) { + addCriterion("parent_id <", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThanOrEqualTo(Long value) { + addCriterion("parent_id <=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdBetween(Long value1, Long value2) { + addCriterion("parent_id between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotBetween(Long value1, Long value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/WisdomCar.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationMember.java similarity index 63% rename from src/main/java/com/ccsens/carbasics/bean/po/WisdomCar.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationMember.java index ee26192..8d6b2c2 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/WisdomCar.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationMember.java @@ -1,117 +1,128 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class WisdomCar implements Serializable { - private Long id; - - private String serial; - - private Long warehouseTime; - - private Long hospitalId; - - private Long userId; - - 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 getSerial() { - return serial; - } - - public void setSerial(String serial) { - this.serial = serial == null ? null : serial.trim(); - } - - public Long getWarehouseTime() { - return warehouseTime; - } - - public void setWarehouseTime(Long warehouseTime) { - this.warehouseTime = warehouseTime; - } - - public Long getHospitalId() { - return hospitalId; - } - - public void setHospitalId(Long hospitalId) { - this.hospitalId = hospitalId; - } - - public Long getUserId() { - return userId; - } - - public void setUserId(Long userId) { - this.userId = userId; - } - - 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(", serial=").append(serial); - sb.append(", warehouseTime=").append(warehouseTime); - sb.append(", hospitalId=").append(hospitalId); - sb.append(", userId=").append(userId); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class OrganizationMember implements Serializable { + private Long id; + + private Long userId; + + private String name; + + private String contact; + + private Long positionId; + + private Long departmentId; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getUserId() { + return userId; + } + + public void setUserId(Long userId) { + this.userId = userId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getContact() { + return contact; + } + + public void setContact(String contact) { + this.contact = contact == null ? null : contact.trim(); + } + + public Long getPositionId() { + return positionId; + } + + public void setPositionId(Long positionId) { + this.positionId = positionId; + } + + public Long getDepartmentId() { + return departmentId; + } + + public void setDepartmentId(Long departmentId) { + this.departmentId = departmentId; + } + + public Long getOperator() { + return operator; + } + + public void setOperator(Long operator) { + this.operator = operator; + } + + public Date getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(Date createdAt) { + this.createdAt = createdAt; + } + + public Date getUpdatedAt() { + return updatedAt; + } + + public void setUpdatedAt(Date updatedAt) { + this.updatedAt = updatedAt; + } + + public Byte getRecStatus() { + return recStatus; + } + + public void setRecStatus(Byte recStatus) { + this.recStatus = recStatus; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append(getClass().getSimpleName()); + sb.append(" ["); + sb.append("Hash = ").append(hashCode()); + sb.append(", id=").append(id); + sb.append(", userId=").append(userId); + sb.append(", name=").append(name); + sb.append(", contact=").append(contact); + sb.append(", positionId=").append(positionId); + sb.append(", departmentId=").append(departmentId); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/WisdomCarExample.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationMemberExample.java similarity index 72% rename from src/main/java/com/ccsens/carbasics/bean/po/WisdomCarExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationMemberExample.java index 4080579..c9b8cf6 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/WisdomCarExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationMemberExample.java @@ -1,751 +1,821 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class WisdomCarExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public WisdomCarExample() { - 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 andSerialIsNull() { - addCriterion("serial is null"); - return (Criteria) this; - } - - public Criteria andSerialIsNotNull() { - addCriterion("serial is not null"); - return (Criteria) this; - } - - public Criteria andSerialEqualTo(String value) { - addCriterion("serial =", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotEqualTo(String value) { - addCriterion("serial <>", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThan(String value) { - addCriterion("serial >", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThanOrEqualTo(String value) { - addCriterion("serial >=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThan(String value) { - addCriterion("serial <", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThanOrEqualTo(String value) { - addCriterion("serial <=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLike(String value) { - addCriterion("serial like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotLike(String value) { - addCriterion("serial not like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialIn(List values) { - addCriterion("serial in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotIn(List values) { - addCriterion("serial not in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialBetween(String value1, String value2) { - addCriterion("serial between", value1, value2, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotBetween(String value1, String value2) { - addCriterion("serial not between", value1, value2, "serial"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeIsNull() { - addCriterion("warehouse_time is null"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeIsNotNull() { - addCriterion("warehouse_time is not null"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeEqualTo(Long value) { - addCriterion("warehouse_time =", value, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeNotEqualTo(Long value) { - addCriterion("warehouse_time <>", value, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeGreaterThan(Long value) { - addCriterion("warehouse_time >", value, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeGreaterThanOrEqualTo(Long value) { - addCriterion("warehouse_time >=", value, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeLessThan(Long value) { - addCriterion("warehouse_time <", value, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeLessThanOrEqualTo(Long value) { - addCriterion("warehouse_time <=", value, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeIn(List values) { - addCriterion("warehouse_time in", values, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeNotIn(List values) { - addCriterion("warehouse_time not in", values, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeBetween(Long value1, Long value2) { - addCriterion("warehouse_time between", value1, value2, "warehouseTime"); - return (Criteria) this; - } - - public Criteria andWarehouseTimeNotBetween(Long value1, Long value2) { - addCriterion("warehouse_time not between", value1, value2, "warehouseTime"); - 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 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 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OrganizationMemberExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OrganizationMemberExample() { + 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 andContactIsNull() { + addCriterion("contact is null"); + return (Criteria) this; + } + + public Criteria andContactIsNotNull() { + addCriterion("contact is not null"); + return (Criteria) this; + } + + public Criteria andContactEqualTo(String value) { + addCriterion("contact =", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactNotEqualTo(String value) { + addCriterion("contact <>", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactGreaterThan(String value) { + addCriterion("contact >", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactGreaterThanOrEqualTo(String value) { + addCriterion("contact >=", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactLessThan(String value) { + addCriterion("contact <", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactLessThanOrEqualTo(String value) { + addCriterion("contact <=", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactLike(String value) { + addCriterion("contact like", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactNotLike(String value) { + addCriterion("contact not like", value, "contact"); + return (Criteria) this; + } + + public Criteria andContactIn(List values) { + addCriterion("contact in", values, "contact"); + return (Criteria) this; + } + + public Criteria andContactNotIn(List values) { + addCriterion("contact not in", values, "contact"); + return (Criteria) this; + } + + public Criteria andContactBetween(String value1, String value2) { + addCriterion("contact between", value1, value2, "contact"); + return (Criteria) this; + } + + public Criteria andContactNotBetween(String value1, String value2) { + addCriterion("contact not between", value1, value2, "contact"); + return (Criteria) this; + } + + public Criteria andPositionIdIsNull() { + addCriterion("position_id is null"); + return (Criteria) this; + } + + public Criteria andPositionIdIsNotNull() { + addCriterion("position_id is not null"); + return (Criteria) this; + } + + public Criteria andPositionIdEqualTo(Long value) { + addCriterion("position_id =", value, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdNotEqualTo(Long value) { + addCriterion("position_id <>", value, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdGreaterThan(Long value) { + addCriterion("position_id >", value, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdGreaterThanOrEqualTo(Long value) { + addCriterion("position_id >=", value, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdLessThan(Long value) { + addCriterion("position_id <", value, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdLessThanOrEqualTo(Long value) { + addCriterion("position_id <=", value, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdIn(List values) { + addCriterion("position_id in", values, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdNotIn(List values) { + addCriterion("position_id not in", values, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdBetween(Long value1, Long value2) { + addCriterion("position_id between", value1, value2, "positionId"); + return (Criteria) this; + } + + public Criteria andPositionIdNotBetween(Long value1, Long value2) { + addCriterion("position_id not between", value1, value2, "positionId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdIsNull() { + addCriterion("department_id is null"); + return (Criteria) this; + } + + public Criteria andDepartmentIdIsNotNull() { + addCriterion("department_id is not null"); + return (Criteria) this; + } + + public Criteria andDepartmentIdEqualTo(Long value) { + addCriterion("department_id =", value, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdNotEqualTo(Long value) { + addCriterion("department_id <>", value, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdGreaterThan(Long value) { + addCriterion("department_id >", value, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdGreaterThanOrEqualTo(Long value) { + addCriterion("department_id >=", value, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdLessThan(Long value) { + addCriterion("department_id <", value, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdLessThanOrEqualTo(Long value) { + addCriterion("department_id <=", value, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdIn(List values) { + addCriterion("department_id in", values, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdNotIn(List values) { + addCriterion("department_id not in", values, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdBetween(Long value1, Long value2) { + addCriterion("department_id between", value1, value2, "departmentId"); + return (Criteria) this; + } + + public Criteria andDepartmentIdNotBetween(Long value1, Long value2) { + addCriterion("department_id not between", value1, value2, "departmentId"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/Wroking.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationParent.java similarity index 60% rename from src/main/java/com/ccsens/carbasics/bean/po/Wroking.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationParent.java index ef0fde5..36bd42a 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/Wroking.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationParent.java @@ -1,117 +1,95 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Wroking implements Serializable { - private Long id; - - private Long doctorId; - - private Long startTime; - - private Long endTime; - - private Byte post; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getDoctorId() { - return doctorId; - } - - public void setDoctorId(Long doctorId) { - this.doctorId = doctorId; - } - - public 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 getPost() { - return post; - } - - public void setPost(Byte post) { - this.post = post; - } - - public Long getOperator() { - return operator; - } - - public void setOperator(Long operator) { - this.operator = operator; - } - - public Date getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public Byte getRecStatus() { - return recStatus; - } - - public void setRecStatus(Byte recStatus) { - this.recStatus = recStatus; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", doctorId=").append(doctorId); - sb.append(", startTime=").append(startTime); - sb.append(", endTime=").append(endTime); - sb.append(", post=").append(post); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class OrganizationParent implements Serializable { + private Long id; + + private Long organizationId; + + private Long parentId; + + private Long operator; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private static final long serialVersionUID = 1L; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Long getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Long organizationId) { + this.organizationId = organizationId; + } + + public Long getParentId() { + return parentId; + } + + public void setParentId(Long parentId) { + this.parentId = parentId; + } + + 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(", organizationId=").append(organizationId); + sb.append(", parentId=").append(parentId); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/OrganizationParentExample.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationParentExample.java new file mode 100644 index 0000000..ef584c2 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationParentExample.java @@ -0,0 +1,621 @@ +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OrganizationParentExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OrganizationParentExample() { + 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 andOrganizationIdIsNull() { + addCriterion("organization_id is null"); + return (Criteria) this; + } + + public Criteria andOrganizationIdIsNotNull() { + addCriterion("organization_id is not null"); + return (Criteria) this; + } + + public Criteria andOrganizationIdEqualTo(Long value) { + addCriterion("organization_id =", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotEqualTo(Long value) { + addCriterion("organization_id <>", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdGreaterThan(Long value) { + addCriterion("organization_id >", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdGreaterThanOrEqualTo(Long value) { + addCriterion("organization_id >=", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdLessThan(Long value) { + addCriterion("organization_id <", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdLessThanOrEqualTo(Long value) { + addCriterion("organization_id <=", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdIn(List values) { + addCriterion("organization_id in", values, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotIn(List values) { + addCriterion("organization_id not in", values, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdBetween(Long value1, Long value2) { + addCriterion("organization_id between", value1, value2, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotBetween(Long value1, Long value2) { + addCriterion("organization_id not between", value1, value2, "organizationId"); + return (Criteria) this; + } + + public Criteria andParentIdIsNull() { + addCriterion("parent_id is null"); + return (Criteria) this; + } + + public Criteria andParentIdIsNotNull() { + addCriterion("parent_id is not null"); + return (Criteria) this; + } + + public Criteria andParentIdEqualTo(Long value) { + addCriterion("parent_id =", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotEqualTo(Long value) { + addCriterion("parent_id <>", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThan(Long value) { + addCriterion("parent_id >", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { + addCriterion("parent_id >=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThan(Long value) { + addCriterion("parent_id <", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdLessThanOrEqualTo(Long value) { + addCriterion("parent_id <=", value, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdIn(List values) { + addCriterion("parent_id in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotIn(List values) { + addCriterion("parent_id not in", values, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdBetween(Long value1, Long value2) { + addCriterion("parent_id between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andParentIdNotBetween(Long value1, Long value2) { + addCriterion("parent_id not between", value1, value2, "parentId"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/Hospital.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationPosition.java similarity index 75% rename from src/main/java/com/ccsens/carbasics/bean/po/Hospital.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationPosition.java index eabeb5b..fd7eaef 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/Hospital.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationPosition.java @@ -1,117 +1,117 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Hospital implements Serializable { - private Long id; - - private String serial; - - private String name; - - private String shortName; - - private String introduce; - - 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 getSerial() { - return serial; - } - - public void setSerial(String serial) { - this.serial = serial == null ? null : serial.trim(); - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name == null ? null : name.trim(); - } - - public String getShortName() { - return shortName; - } - - public void setShortName(String shortName) { - this.shortName = shortName == null ? null : shortName.trim(); - } - - public String getIntroduce() { - return introduce; - } - - public void setIntroduce(String introduce) { - this.introduce = introduce == null ? null : introduce.trim(); - } - - public Long getOperator() { - return operator; - } - - public void setOperator(Long operator) { - this.operator = operator; - } - - public Date getCreatedAt() { - return createdAt; - } - - public void setCreatedAt(Date createdAt) { - this.createdAt = createdAt; - } - - public Date getUpdatedAt() { - return updatedAt; - } - - public void setUpdatedAt(Date updatedAt) { - this.updatedAt = updatedAt; - } - - public Byte getRecStatus() { - return recStatus; - } - - public void setRecStatus(Byte recStatus) { - this.recStatus = recStatus; - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", id=").append(id); - sb.append(", serial=").append(serial); - sb.append(", name=").append(name); - sb.append(", shortName=").append(shortName); - sb.append(", introduce=").append(introduce); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class OrganizationPosition implements Serializable { + private Long id; + + private String code; + + private String name; + + private String introduce; + + private Byte type; + + 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 String getIntroduce() { + return introduce; + } + + public void setIntroduce(String introduce) { + this.introduce = introduce == null ? null : introduce.trim(); + } + + 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 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(", introduce=").append(introduce); + sb.append(", type=").append(type); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/HospitalExample.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationPositionExample.java similarity index 82% rename from src/main/java/com/ccsens/carbasics/bean/po/HospitalExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationPositionExample.java index d7220ad..d51c76a 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/HospitalExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationPositionExample.java @@ -1,781 +1,771 @@ -package com.ccsens.carbasics.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 andSerialIsNull() { - addCriterion("serial is null"); - return (Criteria) this; - } - - public Criteria andSerialIsNotNull() { - addCriterion("serial is not null"); - return (Criteria) this; - } - - public Criteria andSerialEqualTo(String value) { - addCriterion("serial =", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotEqualTo(String value) { - addCriterion("serial <>", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThan(String value) { - addCriterion("serial >", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThanOrEqualTo(String value) { - addCriterion("serial >=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThan(String value) { - addCriterion("serial <", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThanOrEqualTo(String value) { - addCriterion("serial <=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLike(String value) { - addCriterion("serial like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotLike(String value) { - addCriterion("serial not like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialIn(List values) { - addCriterion("serial in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotIn(List values) { - addCriterion("serial not in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialBetween(String value1, String value2) { - addCriterion("serial between", value1, value2, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotBetween(String value1, String value2) { - addCriterion("serial not between", value1, value2, "serial"); - 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 andShortNameIsNull() { - addCriterion("short_name is null"); - return (Criteria) this; - } - - public Criteria andShortNameIsNotNull() { - addCriterion("short_name is not null"); - return (Criteria) this; - } - - public Criteria andShortNameEqualTo(String value) { - addCriterion("short_name =", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameNotEqualTo(String value) { - addCriterion("short_name <>", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameGreaterThan(String value) { - addCriterion("short_name >", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameGreaterThanOrEqualTo(String value) { - addCriterion("short_name >=", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameLessThan(String value) { - addCriterion("short_name <", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameLessThanOrEqualTo(String value) { - addCriterion("short_name <=", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameLike(String value) { - addCriterion("short_name like", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameNotLike(String value) { - addCriterion("short_name not like", value, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameIn(List values) { - addCriterion("short_name in", values, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameNotIn(List values) { - addCriterion("short_name not in", values, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameBetween(String value1, String value2) { - addCriterion("short_name between", value1, value2, "shortName"); - return (Criteria) this; - } - - public Criteria andShortNameNotBetween(String value1, String value2) { - addCriterion("short_name not between", value1, value2, "shortName"); - return (Criteria) this; - } - - public Criteria andIntroduceIsNull() { - addCriterion("introduce is null"); - return (Criteria) this; - } - - public Criteria andIntroduceIsNotNull() { - addCriterion("introduce is not null"); - return (Criteria) this; - } - - public Criteria andIntroduceEqualTo(String value) { - addCriterion("introduce =", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceNotEqualTo(String value) { - addCriterion("introduce <>", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceGreaterThan(String value) { - addCriterion("introduce >", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceGreaterThanOrEqualTo(String value) { - addCriterion("introduce >=", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceLessThan(String value) { - addCriterion("introduce <", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceLessThanOrEqualTo(String value) { - addCriterion("introduce <=", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceLike(String value) { - addCriterion("introduce like", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceNotLike(String value) { - addCriterion("introduce not like", value, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceIn(List values) { - addCriterion("introduce in", values, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceNotIn(List values) { - addCriterion("introduce not in", values, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceBetween(String value1, String value2) { - addCriterion("introduce between", value1, value2, "introduce"); - return (Criteria) this; - } - - public Criteria andIntroduceNotBetween(String value1, String value2) { - addCriterion("introduce not between", value1, value2, "introduce"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OrganizationPositionExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OrganizationPositionExample() { + 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 andIntroduceIsNull() { + addCriterion("introduce is null"); + return (Criteria) this; + } + + public Criteria andIntroduceIsNotNull() { + addCriterion("introduce is not null"); + return (Criteria) this; + } + + public Criteria andIntroduceEqualTo(String value) { + addCriterion("introduce =", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotEqualTo(String value) { + addCriterion("introduce <>", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceGreaterThan(String value) { + addCriterion("introduce >", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceGreaterThanOrEqualTo(String value) { + addCriterion("introduce >=", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLessThan(String value) { + addCriterion("introduce <", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLessThanOrEqualTo(String value) { + addCriterion("introduce <=", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceLike(String value) { + addCriterion("introduce like", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotLike(String value) { + addCriterion("introduce not like", value, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceIn(List values) { + addCriterion("introduce in", values, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotIn(List values) { + addCriterion("introduce not in", values, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceBetween(String value1, String value2) { + addCriterion("introduce between", value1, value2, "introduce"); + return (Criteria) this; + } + + public Criteria andIntroduceNotBetween(String value1, String value2) { + addCriterion("introduce not between", value1, value2, "introduce"); + 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 andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/OrganizationProject.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationProject.java new file mode 100644 index 0000000..0f566ca --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationProject.java @@ -0,0 +1,95 @@ +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class OrganizationProject implements Serializable { + private Long id; + + private Long organizationId; + + 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 Long getOrganizationId() { + return organizationId; + } + + public void setOrganizationId(Long organizationId) { + this.organizationId = organizationId; + } + + 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(", organizationId=").append(organizationId); + 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/src/main/java/com/ccsens/carbasics/bean/po/WrokingExample.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationProjectExample.java similarity index 68% rename from src/main/java/com/ccsens/carbasics/bean/po/WrokingExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationProjectExample.java index 3e2ed57..293896f 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/WrokingExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationProjectExample.java @@ -1,741 +1,621 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class WrokingExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public WrokingExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andDoctorIdIsNull() { - addCriterion("doctor_id is null"); - return (Criteria) this; - } - - public Criteria andDoctorIdIsNotNull() { - addCriterion("doctor_id is not null"); - return (Criteria) this; - } - - public Criteria andDoctorIdEqualTo(Long value) { - addCriterion("doctor_id =", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdNotEqualTo(Long value) { - addCriterion("doctor_id <>", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdGreaterThan(Long value) { - addCriterion("doctor_id >", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdGreaterThanOrEqualTo(Long value) { - addCriterion("doctor_id >=", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdLessThan(Long value) { - addCriterion("doctor_id <", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdLessThanOrEqualTo(Long value) { - addCriterion("doctor_id <=", value, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdIn(List values) { - addCriterion("doctor_id in", values, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdNotIn(List values) { - addCriterion("doctor_id not in", values, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdBetween(Long value1, Long value2) { - addCriterion("doctor_id between", value1, value2, "doctorId"); - return (Criteria) this; - } - - public Criteria andDoctorIdNotBetween(Long value1, Long value2) { - addCriterion("doctor_id not between", value1, value2, "doctorId"); - return (Criteria) this; - } - - public Criteria 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 andPostIsNull() { - addCriterion("post is null"); - return (Criteria) this; - } - - public Criteria andPostIsNotNull() { - addCriterion("post is not null"); - return (Criteria) this; - } - - public Criteria andPostEqualTo(Byte value) { - addCriterion("post =", value, "post"); - return (Criteria) this; - } - - public Criteria andPostNotEqualTo(Byte value) { - addCriterion("post <>", value, "post"); - return (Criteria) this; - } - - public Criteria andPostGreaterThan(Byte value) { - addCriterion("post >", value, "post"); - return (Criteria) this; - } - - public Criteria andPostGreaterThanOrEqualTo(Byte value) { - addCriterion("post >=", value, "post"); - return (Criteria) this; - } - - public Criteria andPostLessThan(Byte value) { - addCriterion("post <", value, "post"); - return (Criteria) this; - } - - public Criteria andPostLessThanOrEqualTo(Byte value) { - addCriterion("post <=", value, "post"); - return (Criteria) this; - } - - public Criteria andPostIn(List values) { - addCriterion("post in", values, "post"); - return (Criteria) this; - } - - public Criteria andPostNotIn(List values) { - addCriterion("post not in", values, "post"); - return (Criteria) this; - } - - public Criteria andPostBetween(Byte value1, Byte value2) { - addCriterion("post between", value1, value2, "post"); - return (Criteria) this; - } - - public Criteria andPostNotBetween(Byte value1, Byte value2) { - addCriterion("post not between", value1, value2, "post"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OrganizationProjectExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OrganizationProjectExample() { + 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 andOrganizationIdIsNull() { + addCriterion("organization_id is null"); + return (Criteria) this; + } + + public Criteria andOrganizationIdIsNotNull() { + addCriterion("organization_id is not null"); + return (Criteria) this; + } + + public Criteria andOrganizationIdEqualTo(Long value) { + addCriterion("organization_id =", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotEqualTo(Long value) { + addCriterion("organization_id <>", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdGreaterThan(Long value) { + addCriterion("organization_id >", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdGreaterThanOrEqualTo(Long value) { + addCriterion("organization_id >=", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdLessThan(Long value) { + addCriterion("organization_id <", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdLessThanOrEqualTo(Long value) { + addCriterion("organization_id <=", value, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdIn(List values) { + addCriterion("organization_id in", values, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotIn(List values) { + addCriterion("organization_id not in", values, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdBetween(Long value1, Long value2) { + addCriterion("organization_id between", value1, value2, "organizationId"); + return (Criteria) this; + } + + public Criteria andOrganizationIdNotBetween(Long value1, Long value2) { + addCriterion("organization_id not between", value1, value2, "organizationId"); + 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/src/main/java/com/ccsens/carbasics/bean/po/CarRecord.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationTemplate.java similarity index 61% rename from src/main/java/com/ccsens/carbasics/bean/po/CarRecord.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationTemplate.java index 32c96e0..a38dfe0 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/CarRecord.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationTemplate.java @@ -1,117 +1,106 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class CarRecord implements Serializable { - private Long id; - - private Long carId; - - private Byte type; - - private String carValue; - - private Long time; - - private Long operator; - - private Date createdAt; - - private Date updatedAt; - - private Byte recStatus; - - private static final long serialVersionUID = 1L; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Long getCarId() { - return carId; - } - - public void setCarId(Long carId) { - this.carId = carId; - } - - public Byte getType() { - return type; - } - - public void setType(Byte type) { - this.type = type; - } - - public String getCarValue() { - return carValue; - } - - public void setCarValue(String carValue) { - this.carValue = carValue == null ? null : carValue.trim(); - } - - public Long getTime() { - return time; - } - - public void setTime(Long time) { - this.time = time; - } - - 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(", carId=").append(carId); - sb.append(", type=").append(type); - sb.append(", carValue=").append(carValue); - sb.append(", time=").append(time); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class OrganizationTemplate implements Serializable { + private Long id; + + private String code; + + private Byte template; + + private Byte codeType; + + 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 Byte getTemplate() { + return template; + } + + public void setTemplate(Byte template) { + this.template = template; + } + + public Byte getCodeType() { + return codeType; + } + + public void setCodeType(Byte codeType) { + this.codeType = codeType; + } + + 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(", template=").append(template); + sb.append(", codeType=").append(codeType); + sb.append(", operator=").append(operator); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMessageExample.java b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationTemplateExample.java similarity index 75% rename from src/main/java/com/ccsens/carbasics/bean/po/FirstAidMessageExample.java rename to src/main/java/com/ccsens/carbasics/bean/po/OrganizationTemplateExample.java index d6fa5a9..c779672 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/FirstAidMessageExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/OrganizationTemplateExample.java @@ -1,691 +1,691 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class FirstAidMessageExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public FirstAidMessageExample() { - 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 andFirstAidIdIsNull() { - addCriterion("first_aid_id is null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIsNotNull() { - addCriterion("first_aid_id is not null"); - return (Criteria) this; - } - - public Criteria andFirstAidIdEqualTo(Long value) { - addCriterion("first_aid_id =", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotEqualTo(Long value) { - addCriterion("first_aid_id <>", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThan(Long value) { - addCriterion("first_aid_id >", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { - addCriterion("first_aid_id >=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThan(Long value) { - addCriterion("first_aid_id <", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { - addCriterion("first_aid_id <=", value, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdIn(List values) { - addCriterion("first_aid_id in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotIn(List values) { - addCriterion("first_aid_id not in", values, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdBetween(Long value1, Long value2) { - addCriterion("first_aid_id between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { - addCriterion("first_aid_id not between", value1, value2, "firstAidId"); - return (Criteria) this; - } - - public Criteria andContentIsNull() { - addCriterion("content is null"); - return (Criteria) this; - } - - public Criteria andContentIsNotNull() { - addCriterion("content is not null"); - return (Criteria) this; - } - - public Criteria andContentEqualTo(String value) { - addCriterion("content =", value, "content"); - return (Criteria) this; - } - - public Criteria andContentNotEqualTo(String value) { - addCriterion("content <>", value, "content"); - return (Criteria) this; - } - - public Criteria andContentGreaterThan(String value) { - addCriterion("content >", value, "content"); - return (Criteria) this; - } - - public Criteria andContentGreaterThanOrEqualTo(String value) { - addCriterion("content >=", value, "content"); - return (Criteria) this; - } - - public Criteria andContentLessThan(String value) { - addCriterion("content <", value, "content"); - return (Criteria) this; - } - - public Criteria andContentLessThanOrEqualTo(String value) { - addCriterion("content <=", value, "content"); - return (Criteria) this; - } - - public Criteria andContentLike(String value) { - addCriterion("content like", value, "content"); - return (Criteria) this; - } - - public Criteria andContentNotLike(String value) { - addCriterion("content not like", value, "content"); - return (Criteria) this; - } - - public Criteria andContentIn(List values) { - addCriterion("content in", values, "content"); - return (Criteria) this; - } - - public Criteria andContentNotIn(List values) { - addCriterion("content not in", values, "content"); - return (Criteria) this; - } - - public Criteria andContentBetween(String value1, String value2) { - addCriterion("content between", value1, value2, "content"); - return (Criteria) this; - } - - public Criteria andContentNotBetween(String value1, String value2) { - addCriterion("content not between", value1, value2, "content"); - return (Criteria) this; - } - - public Criteria andToUserIsNull() { - addCriterion("to_user is null"); - return (Criteria) this; - } - - public Criteria andToUserIsNotNull() { - addCriterion("to_user is not null"); - return (Criteria) this; - } - - public Criteria andToUserEqualTo(Long value) { - addCriterion("to_user =", value, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserNotEqualTo(Long value) { - addCriterion("to_user <>", value, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserGreaterThan(Long value) { - addCriterion("to_user >", value, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserGreaterThanOrEqualTo(Long value) { - addCriterion("to_user >=", value, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserLessThan(Long value) { - addCriterion("to_user <", value, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserLessThanOrEqualTo(Long value) { - addCriterion("to_user <=", value, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserIn(List values) { - addCriterion("to_user in", values, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserNotIn(List values) { - addCriterion("to_user not in", values, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserBetween(Long value1, Long value2) { - addCriterion("to_user between", value1, value2, "toUser"); - return (Criteria) this; - } - - public Criteria andToUserNotBetween(Long value1, Long value2) { - addCriterion("to_user not between", value1, value2, "toUser"); - 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OrganizationTemplateExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OrganizationTemplateExample() { + 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 andTemplateIsNull() { + addCriterion("template is null"); + return (Criteria) this; + } + + public Criteria andTemplateIsNotNull() { + addCriterion("template is not null"); + return (Criteria) this; + } + + public Criteria andTemplateEqualTo(Byte value) { + addCriterion("template =", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateNotEqualTo(Byte value) { + addCriterion("template <>", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateGreaterThan(Byte value) { + addCriterion("template >", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateGreaterThanOrEqualTo(Byte value) { + addCriterion("template >=", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateLessThan(Byte value) { + addCriterion("template <", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateLessThanOrEqualTo(Byte value) { + addCriterion("template <=", value, "template"); + return (Criteria) this; + } + + public Criteria andTemplateIn(List values) { + addCriterion("template in", values, "template"); + return (Criteria) this; + } + + public Criteria andTemplateNotIn(List values) { + addCriterion("template not in", values, "template"); + return (Criteria) this; + } + + public Criteria andTemplateBetween(Byte value1, Byte value2) { + addCriterion("template between", value1, value2, "template"); + return (Criteria) this; + } + + public Criteria andTemplateNotBetween(Byte value1, Byte value2) { + addCriterion("template not between", value1, value2, "template"); + return (Criteria) this; + } + + public Criteria andCodeTypeIsNull() { + addCriterion("code_type is null"); + return (Criteria) this; + } + + public Criteria andCodeTypeIsNotNull() { + addCriterion("code_type is not null"); + return (Criteria) this; + } + + public Criteria andCodeTypeEqualTo(Byte value) { + addCriterion("code_type =", value, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeNotEqualTo(Byte value) { + addCriterion("code_type <>", value, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeGreaterThan(Byte value) { + addCriterion("code_type >", value, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("code_type >=", value, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeLessThan(Byte value) { + addCriterion("code_type <", value, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeLessThanOrEqualTo(Byte value) { + addCriterion("code_type <=", value, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeIn(List values) { + addCriterion("code_type in", values, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeNotIn(List values) { + addCriterion("code_type not in", values, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeBetween(Byte value1, Byte value2) { + addCriterion("code_type between", value1, value2, "codeType"); + return (Criteria) this; + } + + public Criteria andCodeTypeNotBetween(Byte value1, Byte value2) { + addCriterion("code_type not between", value1, value2, "codeType"); + return (Criteria) this; + } + + public Criteria andOperatorIsNull() { + addCriterion("operator is null"); + return (Criteria) this; + } + + public Criteria andOperatorIsNotNull() { + addCriterion("operator is not null"); + return (Criteria) this; + } + + public Criteria andOperatorEqualTo(Long value) { + addCriterion("operator =", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotEqualTo(Long value) { + addCriterion("operator <>", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThan(Long value) { + addCriterion("operator >", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorGreaterThanOrEqualTo(Long value) { + addCriterion("operator >=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThan(Long value) { + addCriterion("operator <", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorLessThanOrEqualTo(Long value) { + addCriterion("operator <=", value, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorIn(List values) { + addCriterion("operator in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotIn(List values) { + addCriterion("operator not in", values, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorBetween(Long value1, Long value2) { + addCriterion("operator between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andOperatorNotBetween(Long value1, Long value2) { + addCriterion("operator not between", value1, value2, "operator"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNull() { + addCriterion("created_at is null"); + return (Criteria) this; + } + + public Criteria andCreatedAtIsNotNull() { + addCriterion("created_at is not null"); + return (Criteria) this; + } + + public Criteria andCreatedAtEqualTo(Date value) { + addCriterion("created_at =", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotEqualTo(Date value) { + addCriterion("created_at <>", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThan(Date value) { + addCriterion("created_at >", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("created_at >=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThan(Date value) { + addCriterion("created_at <", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtLessThanOrEqualTo(Date value) { + addCriterion("created_at <=", value, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtIn(List values) { + addCriterion("created_at in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotIn(List values) { + addCriterion("created_at not in", values, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtBetween(Date value1, Date value2) { + addCriterion("created_at between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andCreatedAtNotBetween(Date value1, Date value2) { + addCriterion("created_at not between", value1, value2, "createdAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNull() { + addCriterion("updated_at is null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIsNotNull() { + addCriterion("updated_at is not null"); + return (Criteria) this; + } + + public Criteria andUpdatedAtEqualTo(Date value) { + addCriterion("updated_at =", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotEqualTo(Date value) { + addCriterion("updated_at <>", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThan(Date value) { + addCriterion("updated_at >", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { + addCriterion("updated_at >=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThan(Date value) { + addCriterion("updated_at <", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { + addCriterion("updated_at <=", value, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtIn(List values) { + addCriterion("updated_at in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotIn(List values) { + addCriterion("updated_at not in", values, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtBetween(Date value1, Date value2) { + addCriterion("updated_at between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { + addCriterion("updated_at not between", value1, value2, "updatedAt"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNull() { + addCriterion("rec_status is null"); + return (Criteria) this; + } + + public Criteria andRecStatusIsNotNull() { + addCriterion("rec_status is not null"); + return (Criteria) this; + } + + public Criteria andRecStatusEqualTo(Byte value) { + addCriterion("rec_status =", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotEqualTo(Byte value) { + addCriterion("rec_status <>", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThan(Byte value) { + addCriterion("rec_status >", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("rec_status >=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThan(Byte value) { + addCriterion("rec_status <", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusLessThanOrEqualTo(Byte value) { + addCriterion("rec_status <=", value, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusIn(List values) { + addCriterion("rec_status in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotIn(List values) { + addCriterion("rec_status not in", values, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusBetween(Byte value1, Byte value2) { + addCriterion("rec_status between", value1, value2, "recStatus"); + return (Criteria) this; + } + + public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { + addCriterion("rec_status not between", value1, value2, "recStatus"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/Patient.java b/src/main/java/com/ccsens/carbasics/bean/po/Patient.java deleted file mode 100644 index 17ab5dc..0000000 --- a/src/main/java/com/ccsens/carbasics/bean/po/Patient.java +++ /dev/null @@ -1,161 +0,0 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Patient implements Serializable { - private Long id; - - private String name; - - private Byte gender; - - private Integer age; - - private String nation; - - private String idcard; - - private String phone; - - private Long hospitalId; - - private Long userId; - - 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 Byte getGender() { - return gender; - } - - public void setGender(Byte gender) { - this.gender = gender; - } - - public Integer getAge() { - return age; - } - - public void setAge(Integer age) { - this.age = age; - } - - public String getNation() { - return nation; - } - - public void setNation(String nation) { - this.nation = nation == null ? null : nation.trim(); - } - - 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 Long getHospitalId() { - return hospitalId; - } - - public void setHospitalId(Long hospitalId) { - this.hospitalId = hospitalId; - } - - public Long getUserId() { - return userId; - } - - public void setUserId(Long userId) { - this.userId = userId; - } - - 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(", gender=").append(gender); - sb.append(", age=").append(age); - sb.append(", nation=").append(nation); - sb.append(", idcard=").append(idcard); - sb.append(", phone=").append(phone); - sb.append(", hospitalId=").append(hospitalId); - sb.append(", userId=").append(userId); - sb.append(", operator=").append(operator); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/PatientExample.java b/src/main/java/com/ccsens/carbasics/bean/po/PatientExample.java deleted file mode 100644 index ad771dc..0000000 --- a/src/main/java/com/ccsens/carbasics/bean/po/PatientExample.java +++ /dev/null @@ -1,1021 +0,0 @@ -package com.ccsens.carbasics.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 andNameIsNull() { - addCriterion("name is null"); - return (Criteria) this; - } - - public Criteria andNameIsNotNull() { - addCriterion("name is not null"); - return (Criteria) this; - } - - public Criteria andNameEqualTo(String value) { - addCriterion("name =", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotEqualTo(String value) { - addCriterion("name <>", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThan(String value) { - addCriterion("name >", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("name >=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThan(String value) { - addCriterion("name <", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("name <=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLike(String value) { - addCriterion("name like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotLike(String value) { - addCriterion("name not like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameIn(List values) { - addCriterion("name in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List values) { - addCriterion("name not in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameBetween(String value1, String value2) { - addCriterion("name between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("name not between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andGenderIsNull() { - addCriterion("gender is null"); - return (Criteria) this; - } - - public Criteria andGenderIsNotNull() { - addCriterion("gender is not null"); - return (Criteria) this; - } - - public Criteria andGenderEqualTo(Byte value) { - addCriterion("gender =", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderNotEqualTo(Byte value) { - addCriterion("gender <>", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderGreaterThan(Byte value) { - addCriterion("gender >", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderGreaterThanOrEqualTo(Byte value) { - addCriterion("gender >=", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderLessThan(Byte value) { - addCriterion("gender <", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderLessThanOrEqualTo(Byte value) { - addCriterion("gender <=", value, "gender"); - return (Criteria) this; - } - - public Criteria andGenderIn(List values) { - addCriterion("gender in", values, "gender"); - return (Criteria) this; - } - - public Criteria andGenderNotIn(List values) { - addCriterion("gender not in", values, "gender"); - return (Criteria) this; - } - - public Criteria andGenderBetween(Byte value1, Byte value2) { - addCriterion("gender between", value1, value2, "gender"); - return (Criteria) this; - } - - public Criteria andGenderNotBetween(Byte value1, Byte value2) { - addCriterion("gender not between", value1, value2, "gender"); - return (Criteria) this; - } - - public Criteria 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 andNationIsNull() { - addCriterion("nation is null"); - return (Criteria) this; - } - - public Criteria andNationIsNotNull() { - addCriterion("nation is not null"); - return (Criteria) this; - } - - public Criteria andNationEqualTo(String value) { - addCriterion("nation =", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationNotEqualTo(String value) { - addCriterion("nation <>", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationGreaterThan(String value) { - addCriterion("nation >", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationGreaterThanOrEqualTo(String value) { - addCriterion("nation >=", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationLessThan(String value) { - addCriterion("nation <", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationLessThanOrEqualTo(String value) { - addCriterion("nation <=", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationLike(String value) { - addCriterion("nation like", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationNotLike(String value) { - addCriterion("nation not like", value, "nation"); - return (Criteria) this; - } - - public Criteria andNationIn(List values) { - addCriterion("nation in", values, "nation"); - return (Criteria) this; - } - - public Criteria andNationNotIn(List values) { - addCriterion("nation not in", values, "nation"); - return (Criteria) this; - } - - public Criteria andNationBetween(String value1, String value2) { - addCriterion("nation between", value1, value2, "nation"); - return (Criteria) this; - } - - public Criteria andNationNotBetween(String value1, String value2) { - addCriterion("nation not between", value1, value2, "nation"); - return (Criteria) this; - } - - public Criteria andIdcardIsNull() { - addCriterion("idcard is null"); - return (Criteria) this; - } - - public Criteria andIdcardIsNotNull() { - addCriterion("idcard is not null"); - return (Criteria) this; - } - - public Criteria andIdcardEqualTo(String value) { - addCriterion("idcard =", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardNotEqualTo(String value) { - addCriterion("idcard <>", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardGreaterThan(String value) { - addCriterion("idcard >", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardGreaterThanOrEqualTo(String value) { - addCriterion("idcard >=", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardLessThan(String value) { - addCriterion("idcard <", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardLessThanOrEqualTo(String value) { - addCriterion("idcard <=", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardLike(String value) { - addCriterion("idcard like", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardNotLike(String value) { - addCriterion("idcard not like", value, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardIn(List values) { - addCriterion("idcard in", values, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardNotIn(List values) { - addCriterion("idcard not in", values, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardBetween(String value1, String value2) { - addCriterion("idcard between", value1, value2, "idcard"); - return (Criteria) this; - } - - public Criteria andIdcardNotBetween(String value1, String value2) { - addCriterion("idcard not between", value1, value2, "idcard"); - return (Criteria) this; - } - - public Criteria 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 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 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 andOperatorIsNull() { - addCriterion("operator is null"); - return (Criteria) this; - } - - public Criteria andOperatorIsNotNull() { - addCriterion("operator is not null"); - return (Criteria) this; - } - - public Criteria andOperatorEqualTo(Long value) { - addCriterion("operator =", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotEqualTo(Long value) { - addCriterion("operator <>", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorGreaterThan(Long value) { - addCriterion("operator >", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorGreaterThanOrEqualTo(Long value) { - addCriterion("operator >=", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorLessThan(Long value) { - addCriterion("operator <", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorLessThanOrEqualTo(Long value) { - addCriterion("operator <=", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorIn(List values) { - addCriterion("operator in", values, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotIn(List values) { - addCriterion("operator not in", values, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorBetween(Long value1, Long value2) { - addCriterion("operator between", value1, value2, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotBetween(Long value1, Long value2) { - addCriterion("operator not between", value1, value2, "operator"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNull() { - addCriterion("created_at is null"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNotNull() { - addCriterion("created_at is not null"); - return (Criteria) this; - } - - public Criteria andCreatedAtEqualTo(Date value) { - addCriterion("created_at =", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotEqualTo(Date value) { - addCriterion("created_at <>", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThan(Date value) { - addCriterion("created_at >", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("created_at >=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThan(Date value) { - addCriterion("created_at <", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThanOrEqualTo(Date value) { - addCriterion("created_at <=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtIn(List values) { - addCriterion("created_at in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotIn(List values) { - addCriterion("created_at not in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtBetween(Date value1, Date value2) { - addCriterion("created_at between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotBetween(Date value1, Date value2) { - addCriterion("created_at not between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNull() { - addCriterion("updated_at is null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNotNull() { - addCriterion("updated_at is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtEqualTo(Date value) { - addCriterion("updated_at =", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotEqualTo(Date value) { - addCriterion("updated_at <>", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThan(Date value) { - addCriterion("updated_at >", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("updated_at >=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThan(Date value) { - addCriterion("updated_at <", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { - addCriterion("updated_at <=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIn(List values) { - addCriterion("updated_at in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotIn(List values) { - addCriterion("updated_at not in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtBetween(Date value1, Date value2) { - addCriterion("updated_at between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { - addCriterion("updated_at not between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNull() { - addCriterion("rec_status is null"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNotNull() { - addCriterion("rec_status is not null"); - return (Criteria) this; - } - - public Criteria andRecStatusEqualTo(Byte value) { - addCriterion("rec_status =", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotEqualTo(Byte value) { - addCriterion("rec_status <>", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThan(Byte value) { - addCriterion("rec_status >", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { - addCriterion("rec_status >=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThan(Byte value) { - addCriterion("rec_status <", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThanOrEqualTo(Byte value) { - addCriterion("rec_status <=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusIn(List values) { - addCriterion("rec_status in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotIn(List values) { - addCriterion("rec_status not in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusBetween(Byte value1, Byte value2) { - addCriterion("rec_status between", value1, value2, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { - addCriterion("rec_status not between", value1, value2, "recStatus"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/Rfid.java b/src/main/java/com/ccsens/carbasics/bean/po/Rfid.java deleted file mode 100644 index 52a0422..0000000 --- a/src/main/java/com/ccsens/carbasics/bean/po/Rfid.java +++ /dev/null @@ -1,150 +0,0 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Rfid implements Serializable { - private Long id; - - private String hospitalSerial; - - private Byte type1; - - private Byte type2; - - private Byte type3; - - private String serial; - - private String fullSerial; - - private Long stepId; - - 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 getHospitalSerial() { - return hospitalSerial; - } - - public void setHospitalSerial(String hospitalSerial) { - this.hospitalSerial = hospitalSerial == null ? null : hospitalSerial.trim(); - } - - public Byte getType1() { - return type1; - } - - public void setType1(Byte type1) { - this.type1 = type1; - } - - public Byte getType2() { - return type2; - } - - public void setType2(Byte type2) { - this.type2 = type2; - } - - public Byte getType3() { - return type3; - } - - public void setType3(Byte type3) { - this.type3 = type3; - } - - public String getSerial() { - return serial; - } - - public void setSerial(String serial) { - this.serial = serial == null ? null : serial.trim(); - } - - public String getFullSerial() { - return fullSerial; - } - - public void setFullSerial(String fullSerial) { - this.fullSerial = fullSerial == null ? null : fullSerial.trim(); - } - - public Long getStepId() { - return stepId; - } - - public void setStepId(Long stepId) { - this.stepId = stepId; - } - - 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(", hospitalSerial=").append(hospitalSerial); - sb.append(", type1=").append(type1); - sb.append(", type2=").append(type2); - sb.append(", type3=").append(type3); - sb.append(", serial=").append(serial); - sb.append(", fullSerial=").append(fullSerial); - sb.append(", stepId=").append(stepId); - sb.append(", operator=").append(operator); - sb.append(", createdAt=").append(createdAt); - sb.append(", updatedAt=").append(updatedAt); - sb.append(", recStatus=").append(recStatus); - sb.append("]"); - return sb.toString(); - } -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/RfidExample.java b/src/main/java/com/ccsens/carbasics/bean/po/RfidExample.java deleted file mode 100644 index 033f22c..0000000 --- a/src/main/java/com/ccsens/carbasics/bean/po/RfidExample.java +++ /dev/null @@ -1,951 +0,0 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class RfidExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public RfidExample() { - 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 andHospitalSerialIsNull() { - addCriterion("hospital_serial is null"); - return (Criteria) this; - } - - public Criteria andHospitalSerialIsNotNull() { - addCriterion("hospital_serial is not null"); - return (Criteria) this; - } - - public Criteria andHospitalSerialEqualTo(String value) { - addCriterion("hospital_serial =", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialNotEqualTo(String value) { - addCriterion("hospital_serial <>", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialGreaterThan(String value) { - addCriterion("hospital_serial >", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialGreaterThanOrEqualTo(String value) { - addCriterion("hospital_serial >=", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialLessThan(String value) { - addCriterion("hospital_serial <", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialLessThanOrEqualTo(String value) { - addCriterion("hospital_serial <=", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialLike(String value) { - addCriterion("hospital_serial like", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialNotLike(String value) { - addCriterion("hospital_serial not like", value, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialIn(List values) { - addCriterion("hospital_serial in", values, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialNotIn(List values) { - addCriterion("hospital_serial not in", values, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialBetween(String value1, String value2) { - addCriterion("hospital_serial between", value1, value2, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andHospitalSerialNotBetween(String value1, String value2) { - addCriterion("hospital_serial not between", value1, value2, "hospitalSerial"); - return (Criteria) this; - } - - public Criteria andType1IsNull() { - addCriterion("type1 is null"); - return (Criteria) this; - } - - public Criteria andType1IsNotNull() { - addCriterion("type1 is not null"); - return (Criteria) this; - } - - public Criteria andType1EqualTo(Byte value) { - addCriterion("type1 =", value, "type1"); - return (Criteria) this; - } - - public Criteria andType1NotEqualTo(Byte value) { - addCriterion("type1 <>", value, "type1"); - return (Criteria) this; - } - - public Criteria andType1GreaterThan(Byte value) { - addCriterion("type1 >", value, "type1"); - return (Criteria) this; - } - - public Criteria andType1GreaterThanOrEqualTo(Byte value) { - addCriterion("type1 >=", value, "type1"); - return (Criteria) this; - } - - public Criteria andType1LessThan(Byte value) { - addCriterion("type1 <", value, "type1"); - return (Criteria) this; - } - - public Criteria andType1LessThanOrEqualTo(Byte value) { - addCriterion("type1 <=", value, "type1"); - return (Criteria) this; - } - - public Criteria andType1In(List values) { - addCriterion("type1 in", values, "type1"); - return (Criteria) this; - } - - public Criteria andType1NotIn(List values) { - addCriterion("type1 not in", values, "type1"); - return (Criteria) this; - } - - public Criteria andType1Between(Byte value1, Byte value2) { - addCriterion("type1 between", value1, value2, "type1"); - return (Criteria) this; - } - - public Criteria andType1NotBetween(Byte value1, Byte value2) { - addCriterion("type1 not between", value1, value2, "type1"); - return (Criteria) this; - } - - public Criteria andType2IsNull() { - addCriterion("type2 is null"); - return (Criteria) this; - } - - public Criteria andType2IsNotNull() { - addCriterion("type2 is not null"); - return (Criteria) this; - } - - public Criteria andType2EqualTo(Byte value) { - addCriterion("type2 =", value, "type2"); - return (Criteria) this; - } - - public Criteria andType2NotEqualTo(Byte value) { - addCriterion("type2 <>", value, "type2"); - return (Criteria) this; - } - - public Criteria andType2GreaterThan(Byte value) { - addCriterion("type2 >", value, "type2"); - return (Criteria) this; - } - - public Criteria andType2GreaterThanOrEqualTo(Byte value) { - addCriterion("type2 >=", value, "type2"); - return (Criteria) this; - } - - public Criteria andType2LessThan(Byte value) { - addCriterion("type2 <", value, "type2"); - return (Criteria) this; - } - - public Criteria andType2LessThanOrEqualTo(Byte value) { - addCriterion("type2 <=", value, "type2"); - return (Criteria) this; - } - - public Criteria andType2In(List values) { - addCriterion("type2 in", values, "type2"); - return (Criteria) this; - } - - public Criteria andType2NotIn(List values) { - addCriterion("type2 not in", values, "type2"); - return (Criteria) this; - } - - public Criteria andType2Between(Byte value1, Byte value2) { - addCriterion("type2 between", value1, value2, "type2"); - return (Criteria) this; - } - - public Criteria andType2NotBetween(Byte value1, Byte value2) { - addCriterion("type2 not between", value1, value2, "type2"); - return (Criteria) this; - } - - public Criteria andType3IsNull() { - addCriterion("type3 is null"); - return (Criteria) this; - } - - public Criteria andType3IsNotNull() { - addCriterion("type3 is not null"); - return (Criteria) this; - } - - public Criteria andType3EqualTo(Byte value) { - addCriterion("type3 =", value, "type3"); - return (Criteria) this; - } - - public Criteria andType3NotEqualTo(Byte value) { - addCriterion("type3 <>", value, "type3"); - return (Criteria) this; - } - - public Criteria andType3GreaterThan(Byte value) { - addCriterion("type3 >", value, "type3"); - return (Criteria) this; - } - - public Criteria andType3GreaterThanOrEqualTo(Byte value) { - addCriterion("type3 >=", value, "type3"); - return (Criteria) this; - } - - public Criteria andType3LessThan(Byte value) { - addCriterion("type3 <", value, "type3"); - return (Criteria) this; - } - - public Criteria andType3LessThanOrEqualTo(Byte value) { - addCriterion("type3 <=", value, "type3"); - return (Criteria) this; - } - - public Criteria andType3In(List values) { - addCriterion("type3 in", values, "type3"); - return (Criteria) this; - } - - public Criteria andType3NotIn(List values) { - addCriterion("type3 not in", values, "type3"); - return (Criteria) this; - } - - public Criteria andType3Between(Byte value1, Byte value2) { - addCriterion("type3 between", value1, value2, "type3"); - return (Criteria) this; - } - - public Criteria andType3NotBetween(Byte value1, Byte value2) { - addCriterion("type3 not between", value1, value2, "type3"); - return (Criteria) this; - } - - public Criteria andSerialIsNull() { - addCriterion("serial is null"); - return (Criteria) this; - } - - public Criteria andSerialIsNotNull() { - addCriterion("serial is not null"); - return (Criteria) this; - } - - public Criteria andSerialEqualTo(String value) { - addCriterion("serial =", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotEqualTo(String value) { - addCriterion("serial <>", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThan(String value) { - addCriterion("serial >", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialGreaterThanOrEqualTo(String value) { - addCriterion("serial >=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThan(String value) { - addCriterion("serial <", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLessThanOrEqualTo(String value) { - addCriterion("serial <=", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialLike(String value) { - addCriterion("serial like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotLike(String value) { - addCriterion("serial not like", value, "serial"); - return (Criteria) this; - } - - public Criteria andSerialIn(List values) { - addCriterion("serial in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotIn(List values) { - addCriterion("serial not in", values, "serial"); - return (Criteria) this; - } - - public Criteria andSerialBetween(String value1, String value2) { - addCriterion("serial between", value1, value2, "serial"); - return (Criteria) this; - } - - public Criteria andSerialNotBetween(String value1, String value2) { - addCriterion("serial not between", value1, value2, "serial"); - return (Criteria) this; - } - - public Criteria andFullSerialIsNull() { - addCriterion("full_serial is null"); - return (Criteria) this; - } - - public Criteria andFullSerialIsNotNull() { - addCriterion("full_serial is not null"); - return (Criteria) this; - } - - public Criteria andFullSerialEqualTo(String value) { - addCriterion("full_serial =", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialNotEqualTo(String value) { - addCriterion("full_serial <>", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialGreaterThan(String value) { - addCriterion("full_serial >", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialGreaterThanOrEqualTo(String value) { - addCriterion("full_serial >=", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialLessThan(String value) { - addCriterion("full_serial <", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialLessThanOrEqualTo(String value) { - addCriterion("full_serial <=", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialLike(String value) { - addCriterion("full_serial like", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialNotLike(String value) { - addCriterion("full_serial not like", value, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialIn(List values) { - addCriterion("full_serial in", values, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialNotIn(List values) { - addCriterion("full_serial not in", values, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialBetween(String value1, String value2) { - addCriterion("full_serial between", value1, value2, "fullSerial"); - return (Criteria) this; - } - - public Criteria andFullSerialNotBetween(String value1, String value2) { - addCriterion("full_serial not between", value1, value2, "fullSerial"); - return (Criteria) this; - } - - public Criteria andStepIdIsNull() { - addCriterion("step_id is null"); - return (Criteria) this; - } - - public Criteria andStepIdIsNotNull() { - addCriterion("step_id is not null"); - return (Criteria) this; - } - - public Criteria andStepIdEqualTo(Long value) { - addCriterion("step_id =", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotEqualTo(Long value) { - addCriterion("step_id <>", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThan(Long value) { - addCriterion("step_id >", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdGreaterThanOrEqualTo(Long value) { - addCriterion("step_id >=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThan(Long value) { - addCriterion("step_id <", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdLessThanOrEqualTo(Long value) { - addCriterion("step_id <=", value, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdIn(List values) { - addCriterion("step_id in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotIn(List values) { - addCriterion("step_id not in", values, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdBetween(Long value1, Long value2) { - addCriterion("step_id between", value1, value2, "stepId"); - return (Criteria) this; - } - - public Criteria andStepIdNotBetween(Long value1, Long value2) { - addCriterion("step_id not between", value1, value2, "stepId"); - return (Criteria) this; - } - - public Criteria andOperatorIsNull() { - addCriterion("operator is null"); - return (Criteria) this; - } - - public Criteria andOperatorIsNotNull() { - addCriterion("operator is not null"); - return (Criteria) this; - } - - public Criteria andOperatorEqualTo(Long value) { - addCriterion("operator =", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotEqualTo(Long value) { - addCriterion("operator <>", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorGreaterThan(Long value) { - addCriterion("operator >", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorGreaterThanOrEqualTo(Long value) { - addCriterion("operator >=", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorLessThan(Long value) { - addCriterion("operator <", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorLessThanOrEqualTo(Long value) { - addCriterion("operator <=", value, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorIn(List values) { - addCriterion("operator in", values, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotIn(List values) { - addCriterion("operator not in", values, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorBetween(Long value1, Long value2) { - addCriterion("operator between", value1, value2, "operator"); - return (Criteria) this; - } - - public Criteria andOperatorNotBetween(Long value1, Long value2) { - addCriterion("operator not between", value1, value2, "operator"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNull() { - addCriterion("created_at is null"); - return (Criteria) this; - } - - public Criteria andCreatedAtIsNotNull() { - addCriterion("created_at is not null"); - return (Criteria) this; - } - - public Criteria andCreatedAtEqualTo(Date value) { - addCriterion("created_at =", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotEqualTo(Date value) { - addCriterion("created_at <>", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThan(Date value) { - addCriterion("created_at >", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("created_at >=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThan(Date value) { - addCriterion("created_at <", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtLessThanOrEqualTo(Date value) { - addCriterion("created_at <=", value, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtIn(List values) { - addCriterion("created_at in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotIn(List values) { - addCriterion("created_at not in", values, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtBetween(Date value1, Date value2) { - addCriterion("created_at between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andCreatedAtNotBetween(Date value1, Date value2) { - addCriterion("created_at not between", value1, value2, "createdAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNull() { - addCriterion("updated_at is null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIsNotNull() { - addCriterion("updated_at is not null"); - return (Criteria) this; - } - - public Criteria andUpdatedAtEqualTo(Date value) { - addCriterion("updated_at =", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotEqualTo(Date value) { - addCriterion("updated_at <>", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThan(Date value) { - addCriterion("updated_at >", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { - addCriterion("updated_at >=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThan(Date value) { - addCriterion("updated_at <", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { - addCriterion("updated_at <=", value, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtIn(List values) { - addCriterion("updated_at in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotIn(List values) { - addCriterion("updated_at not in", values, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtBetween(Date value1, Date value2) { - addCriterion("updated_at between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { - addCriterion("updated_at not between", value1, value2, "updatedAt"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNull() { - addCriterion("rec_status is null"); - return (Criteria) this; - } - - public Criteria andRecStatusIsNotNull() { - addCriterion("rec_status is not null"); - return (Criteria) this; - } - - public Criteria andRecStatusEqualTo(Byte value) { - addCriterion("rec_status =", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotEqualTo(Byte value) { - addCriterion("rec_status <>", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThan(Byte value) { - addCriterion("rec_status >", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { - addCriterion("rec_status >=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThan(Byte value) { - addCriterion("rec_status <", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusLessThanOrEqualTo(Byte value) { - addCriterion("rec_status <=", value, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusIn(List values) { - addCriterion("rec_status in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotIn(List values) { - addCriterion("rec_status not in", values, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusBetween(Byte value1, Byte value2) { - addCriterion("rec_status between", value1, value2, "recStatus"); - return (Criteria) this; - } - - public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { - addCriterion("rec_status not between", value1, value2, "recStatus"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/Step.java b/src/main/java/com/ccsens/carbasics/bean/po/Step.java index 7920b6e..fde0cce 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/Step.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/Step.java @@ -1,139 +1,117 @@ -package com.ccsens.carbasics.bean.po; - -import java.io.Serializable; -import java.util.Date; - -public class Step implements Serializable { - private Long id; - - private String code; - - private String name; - - private Byte type; - - private Long startEffectTime; - - private Long endEffectTime; - - private Long hospitalId; - - 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 Byte getType() { - return type; - } - - public void setType(Byte type) { - this.type = type; - } - - public Long getStartEffectTime() { - return startEffectTime; - } - - public void setStartEffectTime(Long startEffectTime) { - this.startEffectTime = startEffectTime; - } - - public Long getEndEffectTime() { - return endEffectTime; - } - - public void setEndEffectTime(Long endEffectTime) { - this.endEffectTime = endEffectTime; - } - - public Long getHospitalId() { - return hospitalId; - } - - public void setHospitalId(Long hospitalId) { - this.hospitalId = hospitalId; - } - - 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(", type=").append(type); - sb.append(", startEffectTime=").append(startEffectTime); - sb.append(", endEffectTime=").append(endEffectTime); - sb.append(", hospitalId=").append(hospitalId); - 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(); - } +package com.ccsens.carbasics.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Step implements Serializable { + private Long id; + + private String name; + + private String code; + + private Integer sequence; + + private Byte stepType; + + private Date createdAt; + + private Date updatedAt; + + private Byte recStatus; + + private String taskSubName; + + 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 getCode() { + return code; + } + + public void setCode(String code) { + this.code = code == null ? null : code.trim(); + } + + public Integer getSequence() { + return sequence; + } + + public void setSequence(Integer sequence) { + this.sequence = sequence; + } + + public Byte getStepType() { + return stepType; + } + + public void setStepType(Byte stepType) { + this.stepType = stepType; + } + + 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; + } + + public String getTaskSubName() { + return taskSubName; + } + + public void setTaskSubName(String taskSubName) { + this.taskSubName = taskSubName == null ? null : taskSubName.trim(); + } + + @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(", code=").append(code); + sb.append(", sequence=").append(sequence); + sb.append(", stepType=").append(stepType); + sb.append(", createdAt=").append(createdAt); + sb.append(", updatedAt=").append(updatedAt); + sb.append(", recStatus=").append(recStatus); + sb.append(", taskSubName=").append(taskSubName); + sb.append("]"); + return sb.toString(); + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/po/StepExample.java b/src/main/java/com/ccsens/carbasics/bean/po/StepExample.java index c90d15c..b69d52f 100644 --- a/src/main/java/com/ccsens/carbasics/bean/po/StepExample.java +++ b/src/main/java/com/ccsens/carbasics/bean/po/StepExample.java @@ -1,881 +1,771 @@ -package com.ccsens.carbasics.bean.po; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class StepExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public StepExample() { - 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 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 andStartEffectTimeIsNull() { - addCriterion("start_effect_time is null"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeIsNotNull() { - addCriterion("start_effect_time is not null"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeEqualTo(Long value) { - addCriterion("start_effect_time =", value, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeNotEqualTo(Long value) { - addCriterion("start_effect_time <>", value, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeGreaterThan(Long value) { - addCriterion("start_effect_time >", value, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeGreaterThanOrEqualTo(Long value) { - addCriterion("start_effect_time >=", value, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeLessThan(Long value) { - addCriterion("start_effect_time <", value, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeLessThanOrEqualTo(Long value) { - addCriterion("start_effect_time <=", value, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeIn(List values) { - addCriterion("start_effect_time in", values, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeNotIn(List values) { - addCriterion("start_effect_time not in", values, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeBetween(Long value1, Long value2) { - addCriterion("start_effect_time between", value1, value2, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andStartEffectTimeNotBetween(Long value1, Long value2) { - addCriterion("start_effect_time not between", value1, value2, "startEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeIsNull() { - addCriterion("end_effect_time is null"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeIsNotNull() { - addCriterion("end_effect_time is not null"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeEqualTo(Long value) { - addCriterion("end_effect_time =", value, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeNotEqualTo(Long value) { - addCriterion("end_effect_time <>", value, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeGreaterThan(Long value) { - addCriterion("end_effect_time >", value, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeGreaterThanOrEqualTo(Long value) { - addCriterion("end_effect_time >=", value, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeLessThan(Long value) { - addCriterion("end_effect_time <", value, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeLessThanOrEqualTo(Long value) { - addCriterion("end_effect_time <=", value, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeIn(List values) { - addCriterion("end_effect_time in", values, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeNotIn(List values) { - addCriterion("end_effect_time not in", values, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeBetween(Long value1, Long value2) { - addCriterion("end_effect_time between", value1, value2, "endEffectTime"); - return (Criteria) this; - } - - public Criteria andEndEffectTimeNotBetween(Long value1, Long value2) { - addCriterion("end_effect_time not between", value1, value2, "endEffectTime"); - 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 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); - } - } +package com.ccsens.carbasics.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class StepExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public StepExample() { + 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 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 andSequenceIsNull() { + addCriterion("sequence is null"); + return (Criteria) this; + } + + public Criteria andSequenceIsNotNull() { + addCriterion("sequence is not null"); + return (Criteria) this; + } + + public Criteria andSequenceEqualTo(Integer value) { + addCriterion("sequence =", value, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceNotEqualTo(Integer value) { + addCriterion("sequence <>", value, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceGreaterThan(Integer value) { + addCriterion("sequence >", value, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceGreaterThanOrEqualTo(Integer value) { + addCriterion("sequence >=", value, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceLessThan(Integer value) { + addCriterion("sequence <", value, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceLessThanOrEqualTo(Integer value) { + addCriterion("sequence <=", value, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceIn(List values) { + addCriterion("sequence in", values, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceNotIn(List values) { + addCriterion("sequence not in", values, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceBetween(Integer value1, Integer value2) { + addCriterion("sequence between", value1, value2, "sequence"); + return (Criteria) this; + } + + public Criteria andSequenceNotBetween(Integer value1, Integer value2) { + addCriterion("sequence not between", value1, value2, "sequence"); + return (Criteria) this; + } + + public Criteria andStepTypeIsNull() { + addCriterion("step_type is null"); + return (Criteria) this; + } + + public Criteria andStepTypeIsNotNull() { + addCriterion("step_type is not null"); + return (Criteria) this; + } + + public Criteria andStepTypeEqualTo(Byte value) { + addCriterion("step_type =", value, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeNotEqualTo(Byte value) { + addCriterion("step_type <>", value, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeGreaterThan(Byte value) { + addCriterion("step_type >", value, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("step_type >=", value, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeLessThan(Byte value) { + addCriterion("step_type <", value, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeLessThanOrEqualTo(Byte value) { + addCriterion("step_type <=", value, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeIn(List values) { + addCriterion("step_type in", values, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeNotIn(List values) { + addCriterion("step_type not in", values, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeBetween(Byte value1, Byte value2) { + addCriterion("step_type between", value1, value2, "stepType"); + return (Criteria) this; + } + + public Criteria andStepTypeNotBetween(Byte value1, Byte value2) { + addCriterion("step_type not between", value1, value2, "stepType"); + 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 Criteria andTaskSubNameIsNull() { + addCriterion("task_sub_name is null"); + return (Criteria) this; + } + + public Criteria andTaskSubNameIsNotNull() { + addCriterion("task_sub_name is not null"); + return (Criteria) this; + } + + public Criteria andTaskSubNameEqualTo(String value) { + addCriterion("task_sub_name =", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameNotEqualTo(String value) { + addCriterion("task_sub_name <>", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameGreaterThan(String value) { + addCriterion("task_sub_name >", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameGreaterThanOrEqualTo(String value) { + addCriterion("task_sub_name >=", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameLessThan(String value) { + addCriterion("task_sub_name <", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameLessThanOrEqualTo(String value) { + addCriterion("task_sub_name <=", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameLike(String value) { + addCriterion("task_sub_name like", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameNotLike(String value) { + addCriterion("task_sub_name not like", value, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameIn(List values) { + addCriterion("task_sub_name in", values, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameNotIn(List values) { + addCriterion("task_sub_name not in", values, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameBetween(String value1, String value2) { + addCriterion("task_sub_name between", value1, value2, "taskSubName"); + return (Criteria) this; + } + + public Criteria andTaskSubNameNotBetween(String value1, String value2) { + addCriterion("task_sub_name not between", value1, value2, "taskSubName"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/bean/vo/PatientVo.java b/src/main/java/com/ccsens/carbasics/bean/vo/PatientVo.java index 6aaca30..8cde32f 100644 --- a/src/main/java/com/ccsens/carbasics/bean/vo/PatientVo.java +++ b/src/main/java/com/ccsens/carbasics/bean/vo/PatientVo.java @@ -20,26 +20,30 @@ public class PatientVo { private Long id; @ApiModelProperty("急救id") private Long firstAidId; - @ApiModelProperty("病案号") - private String medicalRecordNum; @ApiModelProperty("名称") private String name; @ApiModelProperty("性别") private byte gender; @ApiModelProperty("年龄") private int age; - @ApiModelProperty("发病时间") - private Long morbidityTime; - @ApiModelProperty("启动绿道时间") - private Long greenwayTime; @ApiModelProperty("平车id") private Long carId; - @ApiModelProperty("转归去向") - private String transformation; @ApiModelProperty("是否是演示数据 0否 1是") private byte demonstrate; - @ApiModelProperty("所有到场医生信息") - private List doctorList; + @ApiModelProperty("病例状态 0:创建 1:急救审核通过 2:急救审核拒绝 3出院审核通过 4出院审核拒绝 5:申请修改 6:申请拒绝") + private byte dataStatus; + @ApiModelProperty("模板类型 0:神内 1:神外") + private byte type; + + @ApiModelProperty("发病时间") + private String morbidityTime; + @ApiModelProperty("启动绿道时间") + private String greenWayTime; + + @ApiModelProperty("转归去向") + private String transformation; + @ApiModelProperty("转归时间") + private String transformationTime; } @Data diff --git a/src/main/java/com/ccsens/carbasics/mq/RabbitController.java b/src/main/java/com/ccsens/carbasics/mq/RabbitController.java deleted file mode 100644 index 89604c8..0000000 --- a/src/main/java/com/ccsens/carbasics/mq/RabbitController.java +++ /dev/null @@ -1,205 +0,0 @@ -package com.ccsens.carbasics.mq; - -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.util.ObjectUtil; -import com.alibaba.fastjson.JSONObject; -import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; -import com.ccsens.carbasics.service.IRecordService; -import com.ccsens.carbasics.util.Constant; -import com.ccsens.util.RedisUtil; -import com.ccsens.util.bean.message.common.OutMessage; -import com.ccsens.util.bean.message.common.OutMessageSet; -import com.ccsens.util.config.RabbitMQConfig; -import lombok.extern.slf4j.Slf4j; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.amqp.rabbit.annotation.RabbitHandler; -import org.springframework.amqp.rabbit.annotation.RabbitListener; -import org.springframework.stereotype.Component; - -import javax.annotation.Resource; -import java.math.BigDecimal; -import java.util.*; - -@Slf4j -@Component -@RabbitListener(queues = RabbitMQConfig.WISDOM_CAR_2) -public class RabbitController { - @Resource - private IRecordService recordService; - @Resource - private RedisUtil redisUtil; - - private Logger logger = LoggerFactory.getLogger(RabbitController.class); - - @RabbitHandler - public void process(String messageJson) { - logger.info("平车上传消息数据: {}", messageJson); - try { - OutMessageSet outMessageSet = JSONObject.parseObject(messageJson, OutMessageSet.class); - if (ObjectUtil.isNull(outMessageSet)) { - return; - } - Set messageSet = outMessageSet.getMessageSet(); - if (CollectionUtil.isEmpty(messageSet)) { - return; - } - List carRecordMessageDtoList = new ArrayList<>(); - Map map = new HashMap<>(); - for(OutMessage outMessage : messageSet){ - - CarRecordMessageDto carRecordMessageDto = JSONObject.parseObject(outMessage.getData(), CarRecordMessageDto.class); - if (ObjectUtil.isNull(carRecordMessageDto)) { - continue; - } - log.info("type:{}", carRecordMessageDto.getType()); - switch (carRecordMessageDto.getType()) { - case Constant.Car.CAR_RECORD_WEIGHT: - getWeight(carRecordMessageDtoList, map, carRecordMessageDto, 16); - break; - case Constant.Car.WEIGHT_SENSOR_1: - // getWeight(carRecordMessageDtoList, map, carRecordMessageDto,25); - break; - case Constant.Car.WEIGHT_SENSOR_2: - // getWeight(carRecordMessageDtoList, map, carRecordMessageDto,27); - break; - case Constant.Car.WEIGHT_SENSOR_3: - // getWeight(carRecordMessageDtoList, map, carRecordMessageDto,29); - break; - case Constant.Car.WEIGHT_SENSOR_4: - // getWeight(carRecordMessageDtoList, map, carRecordMessageDto,31); - break; - case Constant.Car.SHAKE_SENSOR: - log.info("倾角传感器:{}", carRecordMessageDto); - long shakeValue = getShakeValue(carRecordMessageDto); - - map.put(carRecordMessageDto.getAddr(), shakeValue); - int x = 21; - int y = 22; - int z = 23; - if (map.get(x) != null && map.get(y) != null && map.get(z) != null) { - String value = map.get(x) + "," + map.get(y) + "," + map.get(z); - carRecordMessageDto.setValue(value); - carRecordMessageDtoList.add(carRecordMessageDto); - } - break; - case Constant.Car.THROMBOLYTIC: - case Constant.Car.BOLUS_DOSE: - case Constant.Car.MAINTENANCE_DOSE: - BigDecimal value1 = BigDecimal.valueOf(Double.parseDouble(carRecordMessageDto.getValue())).divide(BigDecimal.valueOf(100), 2, BigDecimal.ROUND_HALF_DOWN); - carRecordMessageDto.setValue(value1.toString()); - carRecordMessageDtoList.add(carRecordMessageDto); - break; - case Constant.Car.CAR_RECORD_RFID: - getRfid(carRecordMessageDtoList, map, carRecordMessageDto); - break; - default: - carRecordMessageDtoList.add(carRecordMessageDto); - break; - } - - } - - carRecordMessageDtoList.forEach(carRecordMessageDto -> { - try { - log.info("处理后的平车消息:{}", carRecordMessageDto); - recordService.disposeMessage(carRecordMessageDto); - - } catch (Exception e) { - e.printStackTrace(); - } - }); - } catch (Exception e) { - log.error("平车消息JSON转换异常", e); - } - } - - private void getRfid(List carRecordMessageDtoList, Map map, CarRecordMessageDto dto) { - map.put(dto.getAddr(), Long.parseLong(dto.getValue())); - int rfid1 = CarRecordMessageDto.Addr.RFID_1; - int rfid2 = CarRecordMessageDto.Addr.RFID_2; - int rfid3 = CarRecordMessageDto.Addr.RFID_3; - log.info("addr:{},rfid:{}", dto.getAddr(), dto.getValue()); - log.info("是否计算rfid:{}", map.get(rfid1) != null && map.get(rfid2) != null && map.get(rfid3) != null); - log.info("map:{}", map); - log.info("3个rfid:{},{},{}", map.get(rfid1) , map.get(rfid2) , map.get(rfid3) ); - if (map.get(rfid1) != null && map.get(rfid2) != null && map.get(rfid3) != null) { - log.info("计算rfid"); - Long one = map.get(rfid1); - Long two = map.get(rfid2); - Long three = map.get(rfid3); - long rfid = one << 32 | two << 16 | three; - log.info("rfid:{}", "000"+toHex(rfid)); - dto.setValue("000"+toHex(rfid)); - carRecordMessageDtoList.add(dto); - } - } - - private String toHex(long dec) { - String hexStr=""; - - long decAbs=Math.abs(dec); - - while(decAbs>0){ - long lastFour=decAbs&15; - - if (lastFour>9){ - hexStr=(char)('A'+lastFour-10)+hexStr; - } else { - hexStr=lastFour+hexStr; - } - decAbs>>=4; - } - hexStr= dec<0?"-"+hexStr:dec==0?"0":hexStr; - return hexStr; - } - - private long getShakeValue(CarRecordMessageDto carRecordMessageDto) { - String key = Constant.Car.FIRST_AID + carRecordMessageDto.getAuthId() + carRecordMessageDto.getAddr(); - - long value = 0L; - //redis查找该平车上一次的倾角数据 - Object o = redisUtil.get(key); - if (ObjectUtil.isNull(o)) { - //如果没有依次存入redis,value值都是0 - redisUtil.set(key, carRecordMessageDto.getValue(),Constant.Car.FIRST_AID_REDIS_TIME); - carRecordMessageDto.setValue(0 + ""); - } else { - //如果有,用当前的值减去上次的数据,得到的是新的value - value = Long.parseLong(carRecordMessageDto.getValue()) - Long.parseLong(o.toString()); - } - return value; - } - - private Long getWeight(List carRecordMessageDtoList, Map map, CarRecordMessageDto carRecordMessageDto, int highAddr) { - boolean flag = carRecordMessageDto.getAddr() == highAddr; - Long weight = getWeight(map, carRecordMessageDto, flag ? highAddr + 1 : highAddr, flag); - log.info("计算后的重量:{}", weight); - if (weight == null) { - return null; - } - carRecordMessageDto.setValue(weight.toString()); - carRecordMessageDtoList.add(carRecordMessageDto); - return weight; - } - - private Long getWeight(Map map, CarRecordMessageDto carRecordMessageDto, int value2, boolean firstHigh) { - log.info("value = {},,firstHigh={}", value2, firstHigh); - if (map.get(value2) == null) { - map.put(carRecordMessageDto.getAddr(), Long.parseLong(carRecordMessageDto.getValue())); - return null; - } else { - long weight1 = Long.parseLong(carRecordMessageDto.getValue()); - long weight2 = map.get(value2); - log.info("准备计算重量:{},,,{}", weight1, weight2); - if (firstHigh) { - log.info("weight1 << 16 + weight2:{}", weight1 << 16 | weight2); - return weight1 << 16 | weight2; - } else { - log.info("weight2 << 16 + weight1:{}", weight2 << 16 | weight1); - return weight2 << 16 | weight1; - } - } - } - -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/AttendanceRecordDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/AttendanceRecordDao.java deleted file mode 100644 index f862165..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/AttendanceRecordDao.java +++ /dev/null @@ -1,28 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import com.ccsens.carbasics.bean.po.AttendanceRecord; -import com.ccsens.carbasics.bean.vo.WorkerVo; -import com.ccsens.carbasics.persist.mapper.AttendanceRecordMapper; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - * @author AUSU - */ -@Repository -public interface AttendanceRecordDao extends AttendanceRecordMapper { - /** - * 添加所有的到场人员信息 - * @param attendanceRecords 到场人员信息 - */ - void insertAllRecord(@Param("attendanceRecords") List attendanceRecords); - - /** - * 根据急救id查询到场人员信息 - * @param firstAidId 急救id - * @return 到场人员信息列表 - */ - List queryArriveWorkerByAidId(@Param("firstAidId") Long firstAidId); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/CarRecordDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/CarRecordDao.java deleted file mode 100644 index 807050e..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/CarRecordDao.java +++ /dev/null @@ -1,24 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import com.ccsens.carbasics.bean.vo.RecordVo; -import com.ccsens.carbasics.persist.mapper.CarRecordMapper; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * @description: 平车记录 - * @author: whj - * @time: 2021/8/4 9:26 - */ -public interface CarRecordDao extends CarRecordMapper { - /** - * 根据类型查询平车记录 - * @param carId 平车ID - * @param startTime 开始时间 - * @param endTime 结束时间 - * @param type 数据类型 - * @return 记录 - */ - List queryRecords(@Param("carId") Long carId, @Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("type") byte type); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/CodeParentDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/CodeParentDao.java new file mode 100644 index 0000000..7c1e9a3 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/dao/CodeParentDao.java @@ -0,0 +1,20 @@ +package com.ccsens.carbasics.persist.dao; + +import com.ccsens.carbasics.persist.mapper.CodeParentMapper; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * @description: + * @author: whj + * @time: 2021/8/30 17:37 + */ +public interface CodeParentDao extends CodeParentMapper { + /** + * 查询所有子code + * @param parentCode 上级code + * @return 子code + */ + List queryChildren(@Param("parentCode") String parentCode); +} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/DoctorDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/DoctorDao.java deleted file mode 100644 index c2d64be..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/DoctorDao.java +++ /dev/null @@ -1,30 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import com.ccsens.carbasics.bean.po.Doctor; -import com.ccsens.carbasics.bean.vo.WorkerVo; -import com.ccsens.carbasics.persist.mapper.DoctorMapper; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - * @author AUSU - */ -@Repository -public interface DoctorDao extends DoctorMapper { - /** - * 根据userId查找医生信息 - * @param userId 用户id - * @return 医生信息 - */ - Doctor findByUserId(@Param("userId") Long userId); - - /** - * 根据医院id查询所有医生 - * @param hospitalId 医院id - * @param currentTime 当前时间 - * @return 所有医生的集合 - */ - List findAllDoctor(@Param("hospitalId") Long hospitalId, @Param("currentTime") long currentTime); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/FirstAidMessageDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/FirstAidMessageDao.java deleted file mode 100644 index b5b9a62..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/FirstAidMessageDao.java +++ /dev/null @@ -1,20 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import com.ccsens.carbasics.bean.vo.ProjectVo; -import com.ccsens.carbasics.persist.mapper.FirstAidMessageMapper; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -/** - * @author AUSU - */ -@Repository -public interface FirstAidMessageDao extends FirstAidMessageMapper { - - /** - * 根据急救id查询最新消息 - * @param firstAidId 急救id - * @return 最新消息 - */ - ProjectVo.NewMessage findInfoByProjectId(@Param("firstAidId") Long firstAidId); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/HospitalDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/HospitalDao.java deleted file mode 100644 index 1135929..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/HospitalDao.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -/** - * @author 逗 - */ -@Repository -public interface HospitalDao { - - /** - * 通过平车查找医院id - * @param userId - * @return - */ - Long getHospitalIdByCarId(@Param("userId") Long userId); - - /** - * 通过平车查找医院id - * @param userId - * @return - */ - Long getHospitalIdByDoctorId(@Param("userId") Long userId); - - /** - * 通过项目id获取医院id - * @param projectId - * @return - */ - Long getHospitalIdByProjectId(@Param("projectId") Long projectId); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/PatientDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/PatientDao.java index 833fbae..61c58b7 100644 --- a/src/main/java/com/ccsens/carbasics/persist/dao/PatientDao.java +++ b/src/main/java/com/ccsens/carbasics/persist/dao/PatientDao.java @@ -1,8 +1,7 @@ package com.ccsens.carbasics.persist.dao; -import com.ccsens.carbasics.bean.po.Patient; import com.ccsens.carbasics.bean.vo.PatientVo; -import com.ccsens.carbasics.persist.mapper.PatientMapper; +import com.ccsens.carbasics.persist.mapper.FirstAidRecordMapper; import org.apache.ibatis.annotations.Param; import java.util.List; @@ -11,40 +10,7 @@ import java.util.List; /** * @author AUSU */ -public interface PatientDao extends PatientMapper { - - /** - * 根据身份证和医院id查询患者是否来过 - * @param idCard 身份证号 - * @param hospitalId 医院id - * @return 患者信息 - */ - Patient findByIdCardAndHospitalId(@Param("idCard") String idCard, @Param("hospitalId") Long hospitalId); - - /** - * 根据医院id查询患者信息 - * @param hospitalId 医院id - * @param patientName 患者名 - * @param type 患者类型 0急救患者 1平车患者 2转归患者 - * @return 患者列表 - */ - List queryByHospital(@Param("hospitalId") Long hospitalId, @Param("patientName") String patientName, @Param("type") int type); - - /** - * 通过急救id和code查询信息 - * @param firstAidId 急救id - * @param code code - * @return 返回答题信息 - */ - PatientVo.AidRecord getRecordByAidIdAndCode(@Param("firstAidId") Long firstAidId, @Param("code") String code); - - /** - * 查询到场医生的信息 - * @param firstAidId 急救id - * @return 返回医生信息及职位 - */ - List getAttendanceDoctor(@Param("firstAidId") Long firstAidId); - +public interface PatientDao extends FirstAidRecordMapper { /** * 根据急救id查询记录信息 @@ -62,10 +28,4 @@ public interface PatientDao extends PatientMapper { */ PatientVo.QuerySubordinate querySubordinate(@Param("projectId") Long projectId, @Param("code") String code); - /** - * 查找平车患者 - * @param hospitalId 医院id - * @return 返回平车患者 - */ - List queryCarPatient(@Param("hospitalId") Long hospitalId); } diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/PatientWisdomCarDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/PatientWisdomCarDao.java deleted file mode 100644 index 4774970..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/PatientWisdomCarDao.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import com.ccsens.carbasics.bean.dto.CarDto; -import com.ccsens.carbasics.bean.po.PatientWisdomCar; -import com.ccsens.carbasics.bean.vo.CarVo; -import com.ccsens.carbasics.persist.mapper.PatientWisdomCarMapper; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * @description: step - * @author: whj - * @time: 2021/7/27 14:49 - */ -public interface PatientWisdomCarDao extends PatientWisdomCarMapper { - /** - * 查询平车当前的绑定信息 - * @param carId 平车ID - * @param time 查询时间 - * @return 平车绑定信息 - */ - PatientWisdomCar getBindCar(@Param("carId") Long carId, @Param("time") long time); - - /** - * 查询用户所在医院的全部平车信息 - * @param userId 操作者 - * @return 平车信息 - */ - List queryCar(@Param("userId") Long userId); - - /** - * 根据项目ID查询对应患者绑定的平车信息 - * @param param - * @return - */ - CarVo.QueryBind queryBind(CarDto.QueryBind param); - - /** - * 修改2H内未结束的平车绑定结束 - * @param carId 平车ID - * @param startTime 开始时间 - * @param userId 操作者ID - */ - void updateEndTime(@Param("carId") Long carId, @Param("startTime") Long startTime, @Param("userId") Long userId); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/RfidDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/RfidDao.java deleted file mode 100644 index dd5a7a2..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/RfidDao.java +++ /dev/null @@ -1,19 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import com.ccsens.carbasics.bean.vo.RfidVo; -import com.ccsens.carbasics.persist.mapper.RfidMapper; -import org.apache.ibatis.annotations.Param; - -/** - * @description: rfid - * @author: whj - * @time: 2021/7/27 14:42 - */ -public interface RfidDao extends RfidMapper { - /** - * 根据rfid查询rfid完整内容 - * @param rfid rfid(完整编码或简单编码) - * @return rfid - */ - RfidVo.Full getByRfid(@Param("rfid") String rfid); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/dao/WorkingDao.java b/src/main/java/com/ccsens/carbasics/persist/dao/WorkingDao.java deleted file mode 100644 index e590965..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/dao/WorkingDao.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.dao; - -import com.ccsens.carbasics.bean.po.Doctor; -import com.ccsens.carbasics.persist.mapper.WrokingMapper; -import org.apache.ibatis.annotations.Param; -import org.springframework.stereotype.Repository; - -import java.util.List; - -/** - * @author AUSU - */ -@Repository -public interface WorkingDao extends WrokingMapper { - /** - * 查询正在值班的医生 - * @param hospitalId 医院id - * @param currentTime 当前时间 - * @return 值班医生列表 - */ - List findWorkingDoctor(@Param("hospitalId") Long hospitalId, @Param("currentTime") long currentTime); - - /** - * 判断医生在当前时间是否是该职位 - * @param rfid 医生的rfid - * @param post 职位 - * @param time 时间 - * @return 值班数量 - */ - long countWorking(@Param("rfid") String rfid, @Param("post") byte post, @Param("time") long time); -} diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/AttendanceRecordMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/AttendanceRecordMapper.java deleted file mode 100644 index a6687c4..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/AttendanceRecordMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.AttendanceRecord; -import com.ccsens.carbasics.bean.po.AttendanceRecordExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface AttendanceRecordMapper { - long countByExample(AttendanceRecordExample example); - - int deleteByExample(AttendanceRecordExample example); - - int deleteByPrimaryKey(Long id); - - int insert(AttendanceRecord record); - - int insertSelective(AttendanceRecord record); - - List selectByExample(AttendanceRecordExample example); - - AttendanceRecord selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") AttendanceRecord record, @Param("example") AttendanceRecordExample example); - - int updateByExample(@Param("record") AttendanceRecord record, @Param("example") AttendanceRecordExample example); - - int updateByPrimaryKeySelective(AttendanceRecord record); - - int updateByPrimaryKey(AttendanceRecord record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/CarRecordMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/CarRecordMapper.java deleted file mode 100644 index e3cc885..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/CarRecordMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.CarRecord; -import com.ccsens.carbasics.bean.po.CarRecordExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface CarRecordMapper { - long countByExample(CarRecordExample example); - - int deleteByExample(CarRecordExample example); - - int deleteByPrimaryKey(Long id); - - int insert(CarRecord record); - - int insertSelective(CarRecord record); - - List selectByExample(CarRecordExample example); - - CarRecord selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") CarRecord record, @Param("example") CarRecordExample example); - - int updateByExample(@Param("record") CarRecord record, @Param("example") CarRecordExample example); - - int updateByPrimaryKeySelective(CarRecord record); - - int updateByPrimaryKey(CarRecord record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/CodeDictionariesMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/CodeDictionariesMapper.java index 5b186fb..76a1746 100644 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/CodeDictionariesMapper.java +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/CodeDictionariesMapper.java @@ -1,31 +1,30 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.CodeDictionaries; -import com.ccsens.carbasics.bean.po.CodeDictionariesExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface CodeDictionariesMapper { - long countByExample(CodeDictionariesExample example); - - int deleteByExample(CodeDictionariesExample example); - - int deleteByPrimaryKey(Long id); - - int insert(CodeDictionaries record); - - int insertSelective(CodeDictionaries record); - - List selectByExample(CodeDictionariesExample example); - - CodeDictionaries selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); - - int updateByExample(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); - - int updateByPrimaryKeySelective(CodeDictionaries record); - - int updateByPrimaryKey(CodeDictionaries record); +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.CodeDictionaries; +import com.ccsens.carbasics.bean.po.CodeDictionariesExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CodeDictionariesMapper { + long countByExample(CodeDictionariesExample example); + + int deleteByExample(CodeDictionariesExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CodeDictionaries record); + + int insertSelective(CodeDictionaries record); + + List selectByExample(CodeDictionariesExample example); + + CodeDictionaries selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); + + int updateByExample(@Param("record") CodeDictionaries record, @Param("example") CodeDictionariesExample example); + + int updateByPrimaryKeySelective(CodeDictionaries record); + + int updateByPrimaryKey(CodeDictionaries record); } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/CodeParentMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/CodeParentMapper.java new file mode 100644 index 0000000..25b0c79 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/CodeParentMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.CodeParent; +import com.ccsens.carbasics.bean.po.CodeParentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CodeParentMapper { + long countByExample(CodeParentExample example); + + int deleteByExample(CodeParentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CodeParent record); + + int insertSelective(CodeParent record); + + List selectByExample(CodeParentExample example); + + CodeParent selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") CodeParent record, @Param("example") CodeParentExample example); + + int updateByExample(@Param("record") CodeParent record, @Param("example") CodeParentExample example); + + int updateByPrimaryKeySelective(CodeParent record); + + int updateByPrimaryKey(CodeParent record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/DoctorMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/DoctorMapper.java deleted file mode 100644 index 3a51687..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/DoctorMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.Doctor; -import com.ccsens.carbasics.bean.po.DoctorExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -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/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidLogMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidLogMapper.java new file mode 100644 index 0000000..063e511 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidLogMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.FirstAidLog; +import com.ccsens.carbasics.bean.po.FirstAidLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface FirstAidLogMapper { + long countByExample(FirstAidLogExample example); + + int deleteByExample(FirstAidLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(FirstAidLog record); + + int insertSelective(FirstAidLog record); + + List selectByExample(FirstAidLogExample example); + + FirstAidLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") FirstAidLog record, @Param("example") FirstAidLogExample example); + + int updateByExample(@Param("record") FirstAidLog record, @Param("example") FirstAidLogExample example); + + int updateByPrimaryKeySelective(FirstAidLog record); + + int updateByPrimaryKey(FirstAidLog record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMapper.java index 4686c34..a75ecc1 100644 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMapper.java +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMapper.java @@ -1,31 +1,30 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.FirstAid; -import com.ccsens.carbasics.bean.po.FirstAidExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface FirstAidMapper { - long countByExample(FirstAidExample example); - - int deleteByExample(FirstAidExample example); - - int deleteByPrimaryKey(Long id); - - int insert(FirstAid record); - - int insertSelective(FirstAid record); - - List selectByExample(FirstAidExample example); - - FirstAid selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") FirstAid record, @Param("example") FirstAidExample example); - - int updateByExample(@Param("record") FirstAid record, @Param("example") FirstAidExample example); - - int updateByPrimaryKeySelective(FirstAid record); - - int updateByPrimaryKey(FirstAid record); +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.FirstAid; +import com.ccsens.carbasics.bean.po.FirstAidExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface FirstAidMapper { + long countByExample(FirstAidExample example); + + int deleteByExample(FirstAidExample example); + + int deleteByPrimaryKey(Long id); + + int insert(FirstAid record); + + int insertSelective(FirstAid record); + + List selectByExample(FirstAidExample example); + + FirstAid selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") FirstAid record, @Param("example") FirstAidExample example); + + int updateByExample(@Param("record") FirstAid record, @Param("example") FirstAidExample example); + + int updateByPrimaryKeySelective(FirstAid record); + + int updateByPrimaryKey(FirstAid record); } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMemberMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMemberMapper.java new file mode 100644 index 0000000..679ed00 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMemberMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.FirstAidMember; +import com.ccsens.carbasics.bean.po.FirstAidMemberExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface FirstAidMemberMapper { + long countByExample(FirstAidMemberExample example); + + int deleteByExample(FirstAidMemberExample example); + + int deleteByPrimaryKey(Long id); + + int insert(FirstAidMember record); + + int insertSelective(FirstAidMember record); + + List selectByExample(FirstAidMemberExample example); + + FirstAidMember selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") FirstAidMember record, @Param("example") FirstAidMemberExample example); + + int updateByExample(@Param("record") FirstAidMember record, @Param("example") FirstAidMemberExample example); + + int updateByPrimaryKeySelective(FirstAidMember record); + + int updateByPrimaryKey(FirstAidMember record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMessageMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMessageMapper.java deleted file mode 100644 index 85061d9..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidMessageMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.FirstAidMessage; -import com.ccsens.carbasics.bean.po.FirstAidMessageExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface FirstAidMessageMapper { - long countByExample(FirstAidMessageExample example); - - int deleteByExample(FirstAidMessageExample example); - - int deleteByPrimaryKey(Long id); - - int insert(FirstAidMessage record); - - int insertSelective(FirstAidMessage record); - - List selectByExample(FirstAidMessageExample example); - - FirstAidMessage selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") FirstAidMessage record, @Param("example") FirstAidMessageExample example); - - int updateByExample(@Param("record") FirstAidMessage record, @Param("example") FirstAidMessageExample example); - - int updateByPrimaryKeySelective(FirstAidMessage record); - - int updateByPrimaryKey(FirstAidMessage record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordLogMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordLogMapper.java index dbcb3bc..6e20dec 100644 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordLogMapper.java +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordLogMapper.java @@ -1,31 +1,30 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.FirstAidRecordLog; -import com.ccsens.carbasics.bean.po.FirstAidRecordLogExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface FirstAidRecordLogMapper { - long countByExample(FirstAidRecordLogExample example); - - int deleteByExample(FirstAidRecordLogExample example); - - int deleteByPrimaryKey(Long id); - - int insert(FirstAidRecordLog record); - - int insertSelective(FirstAidRecordLog record); - - List selectByExample(FirstAidRecordLogExample example); - - FirstAidRecordLog selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); - - int updateByExample(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); - - int updateByPrimaryKeySelective(FirstAidRecordLog record); - - int updateByPrimaryKey(FirstAidRecordLog record); +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.FirstAidRecordLog; +import com.ccsens.carbasics.bean.po.FirstAidRecordLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface FirstAidRecordLogMapper { + long countByExample(FirstAidRecordLogExample example); + + int deleteByExample(FirstAidRecordLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(FirstAidRecordLog record); + + int insertSelective(FirstAidRecordLog record); + + List selectByExample(FirstAidRecordLogExample example); + + FirstAidRecordLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); + + int updateByExample(@Param("record") FirstAidRecordLog record, @Param("example") FirstAidRecordLogExample example); + + int updateByPrimaryKeySelective(FirstAidRecordLog record); + + int updateByPrimaryKey(FirstAidRecordLog record); } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordMapper.java index 4a31756..2d80e58 100644 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordMapper.java +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidRecordMapper.java @@ -1,31 +1,30 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.FirstAidRecord; -import com.ccsens.carbasics.bean.po.FirstAidRecordExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface FirstAidRecordMapper { - long countByExample(FirstAidRecordExample example); - - int deleteByExample(FirstAidRecordExample example); - - int deleteByPrimaryKey(Long id); - - int insert(FirstAidRecord record); - - int insertSelective(FirstAidRecord record); - - List selectByExample(FirstAidRecordExample example); - - FirstAidRecord selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); - - int updateByExample(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); - - int updateByPrimaryKeySelective(FirstAidRecord record); - - int updateByPrimaryKey(FirstAidRecord record); +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.FirstAidRecord; +import com.ccsens.carbasics.bean.po.FirstAidRecordExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface FirstAidRecordMapper { + long countByExample(FirstAidRecordExample example); + + int deleteByExample(FirstAidRecordExample example); + + int deleteByPrimaryKey(Long id); + + int insert(FirstAidRecord record); + + int insertSelective(FirstAidRecord record); + + List selectByExample(FirstAidRecordExample example); + + FirstAidRecord selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); + + int updateByExample(@Param("record") FirstAidRecord record, @Param("example") FirstAidRecordExample example); + + int updateByPrimaryKeySelective(FirstAidRecord record); + + int updateByPrimaryKey(FirstAidRecord record); } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidStandardMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidStandardMapper.java deleted file mode 100644 index 4540565..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/FirstAidStandardMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.FirstAidStandard; -import com.ccsens.carbasics.bean.po.FirstAidStandardExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface FirstAidStandardMapper { - long countByExample(FirstAidStandardExample example); - - int deleteByExample(FirstAidStandardExample example); - - int deleteByPrimaryKey(Long id); - - int insert(FirstAidStandard record); - - int insertSelective(FirstAidStandard record); - - List selectByExample(FirstAidStandardExample example); - - FirstAidStandard selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") FirstAidStandard record, @Param("example") FirstAidStandardExample example); - - int updateByExample(@Param("record") FirstAidStandard record, @Param("example") FirstAidStandardExample example); - - int updateByPrimaryKeySelective(FirstAidStandard record); - - int updateByPrimaryKey(FirstAidStandard record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/HospitalMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/HospitalMapper.java deleted file mode 100644 index 86b721f..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/HospitalMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.Hospital; -import com.ccsens.carbasics.bean.po.HospitalExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -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/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationDepartmentMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationDepartmentMapper.java new file mode 100644 index 0000000..85cab5a --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationDepartmentMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.OrganizationDepartment; +import com.ccsens.carbasics.bean.po.OrganizationDepartmentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OrganizationDepartmentMapper { + long countByExample(OrganizationDepartmentExample example); + + int deleteByExample(OrganizationDepartmentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OrganizationDepartment record); + + int insertSelective(OrganizationDepartment record); + + List selectByExample(OrganizationDepartmentExample example); + + OrganizationDepartment selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") OrganizationDepartment record, @Param("example") OrganizationDepartmentExample example); + + int updateByExample(@Param("record") OrganizationDepartment record, @Param("example") OrganizationDepartmentExample example); + + int updateByPrimaryKeySelective(OrganizationDepartment record); + + int updateByPrimaryKey(OrganizationDepartment record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMapper.java new file mode 100644 index 0000000..2609c0a --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.Organization; +import com.ccsens.carbasics.bean.po.OrganizationExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OrganizationMapper { + long countByExample(OrganizationExample example); + + int deleteByExample(OrganizationExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Organization record); + + int insertSelective(Organization record); + + List selectByExample(OrganizationExample example); + + Organization selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example); + + int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example); + + int updateByPrimaryKeySelective(Organization record); + + int updateByPrimaryKey(Organization record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMemberMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMemberMapper.java new file mode 100644 index 0000000..a468a68 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationMemberMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.OrganizationMember; +import com.ccsens.carbasics.bean.po.OrganizationMemberExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OrganizationMemberMapper { + long countByExample(OrganizationMemberExample example); + + int deleteByExample(OrganizationMemberExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OrganizationMember record); + + int insertSelective(OrganizationMember record); + + List selectByExample(OrganizationMemberExample example); + + OrganizationMember selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") OrganizationMember record, @Param("example") OrganizationMemberExample example); + + int updateByExample(@Param("record") OrganizationMember record, @Param("example") OrganizationMemberExample example); + + int updateByPrimaryKeySelective(OrganizationMember record); + + int updateByPrimaryKey(OrganizationMember record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationParentMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationParentMapper.java new file mode 100644 index 0000000..d035ed2 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationParentMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.OrganizationParent; +import com.ccsens.carbasics.bean.po.OrganizationParentExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OrganizationParentMapper { + long countByExample(OrganizationParentExample example); + + int deleteByExample(OrganizationParentExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OrganizationParent record); + + int insertSelective(OrganizationParent record); + + List selectByExample(OrganizationParentExample example); + + OrganizationParent selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") OrganizationParent record, @Param("example") OrganizationParentExample example); + + int updateByExample(@Param("record") OrganizationParent record, @Param("example") OrganizationParentExample example); + + int updateByPrimaryKeySelective(OrganizationParent record); + + int updateByPrimaryKey(OrganizationParent record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationPositionMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationPositionMapper.java new file mode 100644 index 0000000..98f0a18 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationPositionMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.OrganizationPosition; +import com.ccsens.carbasics.bean.po.OrganizationPositionExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OrganizationPositionMapper { + long countByExample(OrganizationPositionExample example); + + int deleteByExample(OrganizationPositionExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OrganizationPosition record); + + int insertSelective(OrganizationPosition record); + + List selectByExample(OrganizationPositionExample example); + + OrganizationPosition selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") OrganizationPosition record, @Param("example") OrganizationPositionExample example); + + int updateByExample(@Param("record") OrganizationPosition record, @Param("example") OrganizationPositionExample example); + + int updateByPrimaryKeySelective(OrganizationPosition record); + + int updateByPrimaryKey(OrganizationPosition record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationProjectMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationProjectMapper.java new file mode 100644 index 0000000..6d84829 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationProjectMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.OrganizationProject; +import com.ccsens.carbasics.bean.po.OrganizationProjectExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OrganizationProjectMapper { + long countByExample(OrganizationProjectExample example); + + int deleteByExample(OrganizationProjectExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OrganizationProject record); + + int insertSelective(OrganizationProject record); + + List selectByExample(OrganizationProjectExample example); + + OrganizationProject selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") OrganizationProject record, @Param("example") OrganizationProjectExample example); + + int updateByExample(@Param("record") OrganizationProject record, @Param("example") OrganizationProjectExample example); + + int updateByPrimaryKeySelective(OrganizationProject record); + + int updateByPrimaryKey(OrganizationProject record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationTemplateMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationTemplateMapper.java new file mode 100644 index 0000000..39cbcc5 --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/OrganizationTemplateMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.OrganizationTemplate; +import com.ccsens.carbasics.bean.po.OrganizationTemplateExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OrganizationTemplateMapper { + long countByExample(OrganizationTemplateExample example); + + int deleteByExample(OrganizationTemplateExample example); + + int deleteByPrimaryKey(Long id); + + int insert(OrganizationTemplate record); + + int insertSelective(OrganizationTemplate record); + + List selectByExample(OrganizationTemplateExample example); + + OrganizationTemplate selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") OrganizationTemplate record, @Param("example") OrganizationTemplateExample example); + + int updateByExample(@Param("record") OrganizationTemplate record, @Param("example") OrganizationTemplateExample example); + + int updateByPrimaryKeySelective(OrganizationTemplate record); + + int updateByPrimaryKey(OrganizationTemplate record); +} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/PatientMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/PatientMapper.java deleted file mode 100644 index 2189f25..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/PatientMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.Patient; -import com.ccsens.carbasics.bean.po.PatientExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -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/src/main/java/com/ccsens/carbasics/persist/mapper/PatientWisdomCarMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/PatientWisdomCarMapper.java deleted file mode 100644 index 75595fc..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/PatientWisdomCarMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.PatientWisdomCar; -import com.ccsens.carbasics.bean.po.PatientWisdomCarExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface PatientWisdomCarMapper { - long countByExample(PatientWisdomCarExample example); - - int deleteByExample(PatientWisdomCarExample example); - - int deleteByPrimaryKey(Long id); - - int insert(PatientWisdomCar record); - - int insertSelective(PatientWisdomCar record); - - List selectByExample(PatientWisdomCarExample example); - - PatientWisdomCar selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") PatientWisdomCar record, @Param("example") PatientWisdomCarExample example); - - int updateByExample(@Param("record") PatientWisdomCar record, @Param("example") PatientWisdomCarExample example); - - int updateByPrimaryKeySelective(PatientWisdomCar record); - - int updateByPrimaryKey(PatientWisdomCar record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/RfidMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/RfidMapper.java deleted file mode 100644 index 1c71ebf..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/RfidMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.Rfid; -import com.ccsens.carbasics.bean.po.RfidExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface RfidMapper { - long countByExample(RfidExample example); - - int deleteByExample(RfidExample example); - - int deleteByPrimaryKey(Long id); - - int insert(Rfid record); - - int insertSelective(Rfid record); - - List selectByExample(RfidExample example); - - Rfid selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") Rfid record, @Param("example") RfidExample example); - - int updateByExample(@Param("record") Rfid record, @Param("example") RfidExample example); - - int updateByPrimaryKeySelective(Rfid record); - - int updateByPrimaryKey(Rfid record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/StepMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/StepMapper.java index c58cf06..35f6625 100644 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/StepMapper.java +++ b/src/main/java/com/ccsens/carbasics/persist/mapper/StepMapper.java @@ -1,31 +1,30 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.Step; -import com.ccsens.carbasics.bean.po.StepExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface StepMapper { - long countByExample(StepExample example); - - int deleteByExample(StepExample example); - - int deleteByPrimaryKey(Long id); - - int insert(Step record); - - int insertSelective(Step record); - - List selectByExample(StepExample example); - - Step selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") Step record, @Param("example") StepExample example); - - int updateByExample(@Param("record") Step record, @Param("example") StepExample example); - - int updateByPrimaryKeySelective(Step record); - - int updateByPrimaryKey(Step record); +package com.ccsens.carbasics.persist.mapper; + +import com.ccsens.carbasics.bean.po.Step; +import com.ccsens.carbasics.bean.po.StepExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface StepMapper { + long countByExample(StepExample example); + + int deleteByExample(StepExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Step record); + + int insertSelective(Step record); + + List selectByExample(StepExample example); + + Step selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Step record, @Param("example") StepExample example); + + int updateByExample(@Param("record") Step record, @Param("example") StepExample example); + + int updateByPrimaryKeySelective(Step record); + + int updateByPrimaryKey(Step record); } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/WisdomCarMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/WisdomCarMapper.java deleted file mode 100644 index ad0c86b..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/WisdomCarMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.WisdomCar; -import com.ccsens.carbasics.bean.po.WisdomCarExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface WisdomCarMapper { - long countByExample(WisdomCarExample example); - - int deleteByExample(WisdomCarExample example); - - int deleteByPrimaryKey(Long id); - - int insert(WisdomCar record); - - int insertSelective(WisdomCar record); - - List selectByExample(WisdomCarExample example); - - WisdomCar selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") WisdomCar record, @Param("example") WisdomCarExample example); - - int updateByExample(@Param("record") WisdomCar record, @Param("example") WisdomCarExample example); - - int updateByPrimaryKeySelective(WisdomCar record); - - int updateByPrimaryKey(WisdomCar record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/WorkingMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/WorkingMapper.java deleted file mode 100644 index a8ee371..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/WorkingMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.Working; -import com.ccsens.carbasics.bean.po.WorkingExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface WorkingMapper { - long countByExample(WorkingExample example); - - int deleteByExample(WorkingExample example); - - int deleteByPrimaryKey(Long id); - - int insert(Working record); - - int insertSelective(Working record); - - List selectByExample(WorkingExample example); - - Working selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") Working record, @Param("example") WorkingExample example); - - int updateByExample(@Param("record") Working record, @Param("example") WorkingExample example); - - int updateByPrimaryKeySelective(Working record); - - int updateByPrimaryKey(Working record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/persist/mapper/WrokingMapper.java b/src/main/java/com/ccsens/carbasics/persist/mapper/WrokingMapper.java deleted file mode 100644 index 25706e1..0000000 --- a/src/main/java/com/ccsens/carbasics/persist/mapper/WrokingMapper.java +++ /dev/null @@ -1,31 +0,0 @@ -package com.ccsens.carbasics.persist.mapper; - -import com.ccsens.carbasics.bean.po.Wroking; -import com.ccsens.carbasics.bean.po.WrokingExample; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -public interface WrokingMapper { - long countByExample(WrokingExample example); - - int deleteByExample(WrokingExample example); - - int deleteByPrimaryKey(Long id); - - int insert(Wroking record); - - int insertSelective(Wroking record); - - List selectByExample(WrokingExample example); - - Wroking selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") Wroking record, @Param("example") WrokingExample example); - - int updateByExample(@Param("record") Wroking record, @Param("example") WrokingExample example); - - int updateByPrimaryKeySelective(Wroking record); - - int updateByPrimaryKey(Wroking record); -} \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/service/DictionariesService.java b/src/main/java/com/ccsens/carbasics/service/DictionariesService.java index e1b4635..d003903 100644 --- a/src/main/java/com/ccsens/carbasics/service/DictionariesService.java +++ b/src/main/java/com/ccsens/carbasics/service/DictionariesService.java @@ -6,12 +6,13 @@ import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import com.ccsens.carbasics.bean.po.*; import com.ccsens.carbasics.persist.mapper.CodeDictionariesMapper; -import com.ccsens.carbasics.persist.mapper.HospitalMapper; +import com.ccsens.carbasics.persist.mapper.CodeParentMapper; import com.ccsens.carbasics.persist.mapper.StepMapper; import com.ccsens.carbasics.util.Constant; import com.ccsens.carbasics.util.DefaultCodeError; import com.ccsens.util.ExcelUtil; import com.ccsens.util.StringUtil; +import com.ccsens.util.WebConstant; import com.ccsens.util.exception.BaseException; import lombok.extern.slf4j.Slf4j; import org.apache.poi.hssf.usermodel.HSSFWorkbook; @@ -35,14 +36,18 @@ import java.util.List; @Service @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public class DictionariesService implements IDictionariesService{ - @Resource - private HospitalMapper hospitalMapper; @Resource private Snowflake snowflake; @Resource private CodeDictionariesMapper dictionariesMapper; @Resource private StepMapper stepMapper; + @Resource + private CodeParentMapper codeParentMapper; + + + /**上级code符*/ + private final static String PARENT_CODE_SPLIT = "[,,;;]"; @Override public void importCode(String fullPath, Long userId) throws Exception { @@ -72,23 +77,6 @@ public class DictionariesService implements IDictionariesService{ } //获取上级code String parentCode = StringUtil.replaceStrSpace(ExcelUtil.getCellValue(row.getCell(3))); - //获取医院编号 - String hospitalSerial = StringUtil.replaceStrSpace(ExcelUtil.getCellValue(row.getCell(4))); - //获取医院id - Long hospitalId; - if(StrUtil.isEmpty(hospitalSerial)){ - throw new BaseException(DefaultCodeError.NOT_HOSPITAL_SERIAL); - }else { - HospitalExample hospitalExample = new HospitalExample(); - hospitalExample.createCriteria().andSerialEqualTo(hospitalSerial); - List hospitals = hospitalMapper.selectByExample(hospitalExample); - if(CollectionUtil.isNotEmpty(hospitals)){ - hospitalId = hospitals.get(0).getId(); - }else { - throw new BaseException(DefaultCodeError.NOT_HOSPITAL_SERIAL); - } - } - log.info("医院id-{}",hospitalId); //获取急救任务名 String taskName = StringUtil.replaceStrSpace(ExcelUtil.getCellValue(row.getCell(5))); //获取环节code @@ -104,30 +92,47 @@ public class DictionariesService implements IDictionariesService{ log.info("环节id-{}",stepId); //添加数据库 CodeDictionariesExample dictionariesExample = new CodeDictionariesExample(); - dictionariesExample.createCriteria().andQuestionCodeEqualTo(questionCode).andHospitalIdEqualTo(hospitalId); + dictionariesExample.createCriteria().andQuestionCodeEqualTo(questionCode); List dictionariesList = dictionariesMapper.selectByExample(dictionariesExample); if(CollectionUtil.isNotEmpty(dictionariesList)){ CodeDictionaries dictionaries = dictionariesList.get(0); log.info("医院id和题目code相同,修改旧数据-{}",dictionaries); - dictionaries.setQuestion(questionName); - dictionaries.setParentCode(parentCode); - dictionaries.setTaskName(taskName); - dictionaries.setStepId(stepId); - dictionaries.setOperator(userId); - dictionariesMapper.updateByPrimaryKeySelective(dictionaries); + CodeDictionaries codeDictionaries = new CodeDictionaries(); + codeDictionaries.setId(dictionaries.getId()); + codeDictionaries.setQuestion(questionName); + codeDictionaries.setQuestionCode(questionCode); + codeDictionaries.setTaskName(taskName); + codeDictionaries.setOperator(userId); + dictionariesMapper.updateByPrimaryKeySelective(codeDictionaries); }else { CodeDictionaries codeDictionaries = new CodeDictionaries(); codeDictionaries.setId(snowflake.nextId()); codeDictionaries.setQuestion(questionName); codeDictionaries.setQuestionCode(questionCode); - codeDictionaries.setParentCode(parentCode); - codeDictionaries.setHospitalId(hospitalId); codeDictionaries.setTaskName(taskName); - codeDictionaries.setStepId(stepId); codeDictionaries.setOperator(userId); dictionariesMapper.insertSelective(codeDictionaries); log.info("添加一个code-{}",codeDictionaries); } + // 设置上级code + // 删除原有上级 + CodeParentExample delExample = new CodeParentExample(); + delExample.createCriteria().andQuestionCodeEqualTo(questionCode); + CodeParent delCode = new CodeParent(); + delCode.setRecStatus(WebConstant.REC_STATUS.Deleted.value); + codeParentMapper.updateByExampleSelective(delCode, delExample); + // 添加上级 + if(StrUtil.isNotBlank(parentCode)) { + String[] parents = parentCode.split(PARENT_CODE_SPLIT); + for (String parent: parents) { + CodeParent codeParent = new CodeParent(); + codeParent.setId(snowflake.nextId()); + codeParent.setQuestionCode(questionCode); + codeParent.setParentCode(parent); + codeParentMapper.insertSelective(codeParent); + } + } + } } diff --git a/src/main/java/com/ccsens/carbasics/service/FirstAidRecordService.java b/src/main/java/com/ccsens/carbasics/service/FirstAidRecordService.java new file mode 100644 index 0000000..076a8ae --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/FirstAidRecordService.java @@ -0,0 +1,194 @@ +package com.ccsens.carbasics.service; + +import cn.hutool.core.collection.CollectionUtil; +import cn.hutool.core.lang.Snowflake; +import cn.hutool.core.util.ObjectUtil; +import cn.hutool.core.util.StrUtil; +import com.ccsens.carbasics.bean.dto.PatientDto; +import com.ccsens.carbasics.bean.po.*; +import com.ccsens.carbasics.bean.vo.PatientVo; +import com.ccsens.carbasics.persist.dao.CodeParentDao; +import com.ccsens.carbasics.persist.dao.FirstAidDao; +import com.ccsens.carbasics.persist.dao.PatientDao; +import com.ccsens.carbasics.persist.mapper.CodeDictionariesMapper; +import com.ccsens.carbasics.persist.mapper.FirstAidRecordLogMapper; +import com.ccsens.carbasics.persist.mapper.FirstAidRecordMapper; +import com.ccsens.carbasics.util.Constant; +import com.ccsens.carbasics.util.DefaultCodeError; +import com.ccsens.util.exception.BaseException; +import com.github.pagehelper.PageInfo; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * @author 逗 + */ +@Slf4j +@Service +@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) +public class FirstAidRecordService implements IFirstAidRecordService { + @Resource + private PatientDao patientDao; + @Resource + private Snowflake snowflake; + @Resource + private FirstAidRecordLogMapper firstAidRecordLogMapper; + @Resource + private FirstAidRecordMapper firstAidRecordMapper; + @Resource + private CodeDictionariesMapper dictionariesMapper; + @Resource + private CodeParentDao codeParentDao; + @Resource + private FirstAidDao firstAidDao; + + + @Override + public PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId) { + return patientDao.querySubordinate(param.getProjectId(),param.getCode()); + } + + + + @Override + public PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId) { + PatientVo.QueryAidRecordN queryAidRecord = new PatientVo.QueryAidRecordN(); + Map> recordMap = new HashMap<>(); + //查询记录信息 + List aidRecords = patientDao.queryRecordByAidId(param.getProjectId(),param.getCodeList()); + if(CollectionUtil.isNotEmpty(aidRecords)){ + //封装进map内 + aidRecords.forEach(aidRecord -> { + if(ObjectUtil.isNull(recordMap.get(aidRecord.getQuestionCode()))){ + List stringList = new ArrayList<>(); + stringList.add(aidRecord.getAnswer()); + recordMap.put(aidRecord.getQuestionCode(),stringList); + }else { + recordMap.get(aidRecord.getQuestionCode()).add(aidRecord.getAnswer()); + } + }); + queryAidRecord.setId(aidRecords.get(0).getFirstAidId()); + } + queryAidRecord.setRecord(recordMap); + return queryAidRecord; + } + + @Override + public void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId) { + //验证急救信息 + FirstAidExample aidExample = new FirstAidExample(); + aidExample.createCriteria().andProjectIdEqualTo(param.getProjectId()); + aidExample.setOrderByClause("id desc limit 1"); + List firstAids = firstAidDao.selectByExample(aidExample); + log.info("急救信息:{}", firstAids); + if(CollectionUtil.isEmpty(firstAids)) { + throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); + } + + if(CollectionUtil.isEmpty(param.getCodeAndAnswerList())){ + return; + } + FirstAid firstAid = firstAids.get(0); + + + if (firstAid.getDataStatus() == Constant.DataStatus.Create.status || firstAid.getDataStatus() == Constant.DataStatus.FirstAidRefuse.status) { + // 不校验,允许修改 + log.info("允许修改:{}", firstAid.getDataStatus()); + } else if (firstAid.getDataStatus() == Constant.DataStatus.FirstAidPass.status) { + // 急救审核通过,急救不能修改 + List children = codeParentDao.queryChildren(Constant.QuestionCode.FIRST_AID); + param.getCodeAndAnswerList().forEach(codeAndAnswer -> { + if (children.contains(codeAndAnswer.getQuestionCode())) { + log.info("{}是急救的code,不能修改", codeAndAnswer.getQuestionCode() ); + throw new BaseException(DefaultCodeError.NO_DATA_MODIFY_PRIVILEGE); + } + }); + } else if (firstAid.getDataStatus() == Constant.DataStatus.DischargeRefuse.status) { + // 出院审核拒绝,只允许修改出院信息 + List children = codeParentDao.queryChildren(Constant.QuestionCode.DISCHARGE); + param.getCodeAndAnswerList().forEach(codeAndAnswer -> { + if (!children.contains(codeAndAnswer.getQuestionCode())) { + log.info("{}不是出院的code,不能修改", codeAndAnswer.getQuestionCode() ); + throw new BaseException(DefaultCodeError.NO_DATA_MODIFY_PRIVILEGE); + } + }); + + } else { + throw new BaseException(DefaultCodeError.NO_DATA_MODIFY_PRIVILEGE); + } + + + + //遍历传入的code + param.getCodeAndAnswerList().forEach(codeAndAnswer -> { + if(StrUtil.isNotEmpty(codeAndAnswer.getQuestionCode())) { + //添加记录表,需要查找之前的记录,删除后重新添加 + FirstAidRecordExample recordExample = new FirstAidRecordExample(); + recordExample.createCriteria().andFirstAidIdEqualTo(firstAid.getId()).andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); + List firstAidRecords = firstAidRecordMapper.selectByExample(recordExample); + if (CollectionUtil.isNotEmpty(firstAidRecords)) { + firstAidRecords.forEach(firstAidRecord -> { + firstAidRecord.setRecStatus((byte) 2); + firstAidRecordMapper.updateByPrimaryKeySelective(firstAidRecord); + }); + } + //判断答案是否为空 + if(CollectionUtil.isNotEmpty(codeAndAnswer.getAnswer())){ + //循环答案 + codeAndAnswer.getAnswer().forEach(answer -> { + saveRecord(param.getUserType(), userId, firstAid.getId(), codeAndAnswer.getQuestionCode(), answer,param.getProjectId()); + }); + }else { + saveRecord(param.getUserType(), userId, firstAid.getId(), codeAndAnswer.getQuestionCode(), "",param.getProjectId()); + } + } + }); + + } + + private void saveRecord(byte userType, Long userId, Long firstAidId, String code, String answer,Long projectId) { + //添加日志表,不管数据是否重复 + FirstAidRecordLog firstAidRecordLog = new FirstAidRecordLog(); + firstAidRecordLog.setId(snowflake.nextId()); + firstAidRecordLog.setFirstAidId(firstAidId); + firstAidRecordLog.setQuestionCode(code); + firstAidRecordLog.setAnswer(answer); + firstAidRecordLog.setSubmitUserId(userId); + firstAidRecordLog.setSubmitUserType(userType); + firstAidRecordLog.setOperator(userId); + firstAidRecordLogMapper.insertSelective(firstAidRecordLog); + //添加 + FirstAidRecord firstAidRecord = new FirstAidRecord(); + firstAidRecord.setId(snowflake.nextId()); + firstAidRecord.setFirstAidId(firstAidId); + firstAidRecord.setQuestionCode(code); + firstAidRecord.setAnswer(answer); + firstAidRecord.setSubmitUserType(userType); + firstAidRecord.setSubmitUserId(userId); + firstAidRecord.setOperator(userId); + firstAidRecordMapper.insertSelective(firstAidRecord); +// //根据code查找字典表 +// CodeDictionariesExample dictionariesExample = new CodeDictionariesExample(); +// dictionariesExample.createCriteria().andQuestionCodeEqualTo(code); +// List dictionariesList = dictionariesMapper.selectByExample(dictionariesExample); +// dictionariesList.forEach(codeDictionaries -> { +// if(StrUtil.isNotEmpty(codeDictionaries.getTaskName())){ +// //如果关联的任务名称不为空,查找任务id,然后修改任务真实开始时间 +// long now = System.currentTimeMillis(); +// Long subTaskId = sTaskDao.getNowTask(codeDictionaries.getTaskName(),projectId,now); +// if(ObjectUtil.isNotNull(subTaskId)){ +// //TODO 如果分解id不为空,调用修改任务真实时间的接口 +// taskService.updateTaskStartTime(subTaskId, (byte) 0); +// } +// } +// }); + } +} diff --git a/src/main/java/com/ccsens/carbasics/service/IFirstAidRecordService.java b/src/main/java/com/ccsens/carbasics/service/IFirstAidRecordService.java new file mode 100644 index 0000000..07339eb --- /dev/null +++ b/src/main/java/com/ccsens/carbasics/service/IFirstAidRecordService.java @@ -0,0 +1,35 @@ +package com.ccsens.carbasics.service; + +import com.ccsens.carbasics.bean.dto.PatientDto; +import com.ccsens.carbasics.bean.dto.StatisticalDto; +import com.ccsens.carbasics.bean.vo.PatientVo; +import com.github.pagehelper.PageInfo; + +/** + * @author 逗 + */ +public interface IFirstAidRecordService { + + /** + * 查询code的下级完成情况 + * @param param 急救id和code + * @param userId userId + * @return 返回总数和完成数 + */ + PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId); + + /** + * 批量添加(数组) + * @param param + * @param userId + */ + void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId); + + /** + * 批量查询(数组) + * @param param + * @param userId + * @return + */ + PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId); +} diff --git a/src/main/java/com/ccsens/carbasics/service/IFirstAidService.java b/src/main/java/com/ccsens/carbasics/service/IFirstAidService.java index 6839e63..4f9b3dc 100644 --- a/src/main/java/com/ccsens/carbasics/service/IFirstAidService.java +++ b/src/main/java/com/ccsens/carbasics/service/IFirstAidService.java @@ -1,6 +1,17 @@ package com.ccsens.carbasics.service; +import com.ccsens.carbasics.bean.dto.PatientDto; +import com.ccsens.carbasics.bean.vo.PatientVo; +import com.github.pagehelper.PageInfo; + public interface IFirstAidService { + /** + * 查询和自己相关的病例信息 + * @param param 搜索条件 + * @param userId 操作人用户ID + * @return + */ + PageInfo querySelf(PatientDto.QueryPatient param, Long userId); } diff --git a/src/main/java/com/ccsens/carbasics/service/IPatientService.java b/src/main/java/com/ccsens/carbasics/service/IPatientService.java deleted file mode 100644 index c0b6ad6..0000000 --- a/src/main/java/com/ccsens/carbasics/service/IPatientService.java +++ /dev/null @@ -1,65 +0,0 @@ -package com.ccsens.carbasics.service; - -import com.ccsens.carbasics.bean.dto.PatientDto; -import com.ccsens.carbasics.bean.dto.StatisticalDto; -import com.ccsens.carbasics.bean.vo.PatientVo; -import com.github.pagehelper.PageInfo; - -/** - * @author 逗 - */ -public interface IPatientService { - /** - * 查询医院下患者列表信息 - * @param param 医院id,类型,名称,分页信息 - * @param userId userId - * @return 返回患者列表 - */ - PageInfo queryPatientList(PatientDto.QueryPatient param, Long userId); - - /** - * 批量提交急救记录 - * @param param 急救记录信息 - * @param userId userId - */ - void saveAidRecord(PatientDto.SaveAidRecord param, Long userId); - - /** - * 批量查询急救记录 - * @param param 急救id - * @param userId userId - * @return 返回记录信息 - */ - PatientVo.QueryAidRecord queryAidRecord(PatientDto.QueryAidRecord param, Long userId); - - /** - * 查询code的下级完成情况 - * @param param 急救id和code - * @param userId userId - * @return 返回总数和完成数 - */ - PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId); - - /** - * 时间沙漏 - * @param param 项目id - * @param userId userId - * @return 返回发病、分诊、溶栓、ct的时间 - */ - PatientVo.TimeSandClock timeSandClock(StatisticalDto.QueryStep param, Long userId); - - /** - * 批量添加(数组) - * @param param - * @param userId - */ - void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId); - - /** - * 批量查询(数组) - * @param param - * @param userId - * @return - */ - PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId); -} diff --git a/src/main/java/com/ccsens/carbasics/service/IPatientWisdomCarService.java b/src/main/java/com/ccsens/carbasics/service/IPatientWisdomCarService.java deleted file mode 100644 index 5cf85e7..0000000 --- a/src/main/java/com/ccsens/carbasics/service/IPatientWisdomCarService.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.ccsens.carbasics.service; - -import com.ccsens.carbasics.bean.dto.CarDto; -import com.ccsens.carbasics.bean.vo.CarVo; -import com.ccsens.util.CodeError; - -import java.util.List; - -public interface IPatientWisdomCarService { - /** - * 查询用户所在医院的平车情况 - * @param userId 用户ID - * @return 平车 - */ - List query(Long userId); - - /** - * 查询患者绑定的平车 - * @param param - * @param userId - * @return - */ - CarVo.QueryBind queryBind(CarDto.QueryBind param, Long userId); - - /** - * 绑定平车 - * @param param 平车信息 - * @param userId 操作者用户ID - * @return 绑定结果 - */ - CodeError.Code bind(CarDto.Bind param, Long userId); -} diff --git a/src/main/java/com/ccsens/carbasics/service/IQcpProjectService.java b/src/main/java/com/ccsens/carbasics/service/IQcpProjectService.java index f08fb26..3a157fc 100644 --- a/src/main/java/com/ccsens/carbasics/service/IQcpProjectService.java +++ b/src/main/java/com/ccsens/carbasics/service/IQcpProjectService.java @@ -15,15 +15,8 @@ public interface IQcpProjectService { * @param userId 登录用户id * @return 项目id */ - ProjectVo.CreateCaseV createCase(ProjectDto.CreateCaseD param, Long userId); +// ProjectVo.CreateCaseV createCase(ProjectDto.CreateCaseD param, Long userId); - /** - * 查询项目得到最新消息 - * @param param 项目id - * @param userId 用户id - * @return 最新的消息 - */ - ProjectVo.NewMessage queryNewMessage(ProjectDto.QueryNewMessage param, Long userId); /** * 选择历史患者切换项目 diff --git a/src/main/java/com/ccsens/carbasics/service/IRecordService.java b/src/main/java/com/ccsens/carbasics/service/IRecordService.java deleted file mode 100644 index 8920bee..0000000 --- a/src/main/java/com/ccsens/carbasics/service/IRecordService.java +++ /dev/null @@ -1,33 +0,0 @@ -package com.ccsens.carbasics.service; - -import com.ccsens.carbasics.bean.dto.RecordDto; -import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; -import com.ccsens.carbasics.bean.vo.RecordVo; -import org.apache.poi.ss.usermodel.Workbook; - -import java.util.List; - -public interface IRecordService { - - /** - * 后台接受消息并处理 - * @param carRecordMessageDto 接收到的消息 - * @throws Exception - */ - void disposeMessage(CarRecordMessageDto carRecordMessageDto) throws Exception; - - /** - * 查询称重和Rfid记录 - * @param param 查询条件 - * @param userId 查询用户ID - * @return 记录 - */ - List queryWeightAndRfid(RecordDto.WeightAndRfid param, Long userId); - - /** - * 导出称重和Rfid记录 - * @param param 查询条件 - */ - Workbook exportWeightAndRfid(RecordDto.WeightAndRfidExport param) ; - -} diff --git a/src/main/java/com/ccsens/carbasics/service/IStatisticalService.java b/src/main/java/com/ccsens/carbasics/service/IStatisticalService.java index 2fb9bd4..69f7bf8 100644 --- a/src/main/java/com/ccsens/carbasics/service/IStatisticalService.java +++ b/src/main/java/com/ccsens/carbasics/service/IStatisticalService.java @@ -13,41 +13,4 @@ import java.util.List; */ public interface IStatisticalService { - /** - * 查询急救环节完成情况 - * @param param 急救 - * @param userId 操作人ID - * @return 环节状态 - */ - List queryStep(StatisticalDto.QueryStep param, Long userId); - - /** - * 查询质控报告 - * @param param 质控查询条件 - * @param userId 操作人ID - * @return 质控报告 - */ - List queryQuality(StatisticalDto.Quality param, Long userId); - - /** - * 查询每天质控 - * @param userId - * @return - */ - List queryEveryDayQuality(Long userId); - - /** - * 查询急救各个节点时间统计 - * @param userId - * @return 返回时间统计 - */ - StatisticsVo.PointTimeList getPointTime(StatisticalDto.PointTime param, Long userId); - - /** - * 急救数量统计图数据 - * @param param - * @param userId - * @return - */ - StatisticsVo.UseNumsVo selResult(StatisticalDto.SelResult param, Long userId); } diff --git a/src/main/java/com/ccsens/carbasics/service/IWorkerService.java b/src/main/java/com/ccsens/carbasics/service/IWorkerService.java deleted file mode 100644 index 037b571..0000000 --- a/src/main/java/com/ccsens/carbasics/service/IWorkerService.java +++ /dev/null @@ -1,34 +0,0 @@ -package com.ccsens.carbasics.service; - -import com.ccsens.carbasics.bean.dto.WorkerDto; -import com.ccsens.carbasics.bean.vo.WorkerVo; - -import java.util.List; -import java.util.Map; - -/** - * @author AUSU - */ -public interface IWorkerService { - /** - * 添加到场人员信息 - * @param param 到场人员信息 - * @param userId 用户id - */ - void addArriveWorker(WorkerDto.AddArriveWorker param, Long userId); - - /** - * 查询到场人员信息 - * @param param 项目id - * @param userId 用户id - * @return 到场人员信息列表 - */ - List queryArriveWorker(WorkerDto.QueryArriveWorker param, Long userId); - - /** - * 查询医院里所有医生 - * @param userId 用户id - * @return 医生列表 - */ - Map> queryAllDoctor(Long userId); -} diff --git a/src/main/java/com/ccsens/carbasics/service/PatientService.java b/src/main/java/com/ccsens/carbasics/service/PatientService.java deleted file mode 100644 index 33411cd..0000000 --- a/src/main/java/com/ccsens/carbasics/service/PatientService.java +++ /dev/null @@ -1,312 +0,0 @@ -package com.ccsens.carbasics.service; - -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.lang.Snowflake; -import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.StrUtil; -import com.ccsens.carbasics.bean.dto.PatientDto; -import com.ccsens.carbasics.bean.dto.StatisticalDto; -import com.ccsens.carbasics.bean.po.*; -import com.ccsens.carbasics.bean.vo.PatientVo; -import com.ccsens.carbasics.persist.dao.DoctorDao; -import com.ccsens.carbasics.persist.dao.FirstAidDao; -import com.ccsens.carbasics.persist.dao.PatientDao; -import com.ccsens.carbasics.persist.dao.STaskDao; -import com.ccsens.carbasics.persist.mapper.CodeDictionariesMapper; -import com.ccsens.carbasics.persist.mapper.FirstAidRecordLogMapper; -import com.ccsens.carbasics.persist.mapper.FirstAidRecordMapper; -import com.ccsens.carbasics.util.Constant; -import com.ccsens.carbasics.util.DefaultCodeError; -import com.ccsens.common.service.ITaskService; -import com.ccsens.util.exception.BaseException; -import com.github.pagehelper.PageHelper; -import com.github.pagehelper.PageInfo; -import lombok.extern.slf4j.Slf4j; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Propagation; -import org.springframework.transaction.annotation.Transactional; - -import javax.annotation.Resource; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -/** - * @author 逗 - */ -@Slf4j -@Service -@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) -public class PatientService implements IPatientService{ - @Resource - private PatientDao patientDao; - @Resource - private Snowflake snowflake; - @Resource - private FirstAidRecordLogMapper firstAidRecordLogMapper; - @Resource - private FirstAidRecordMapper firstAidRecordMapper; - @Resource - private CodeDictionariesMapper dictionariesMapper; - @Resource - private STaskDao sTaskDao; - @Resource - private FirstAidDao firstAidDao; - @Resource - private ITaskService taskService; - @Resource - private DoctorDao doctorDao; - - @Override - public PageInfo queryPatientList(PatientDto.QueryPatient param, Long userId) { - Doctor doctor = doctorDao.findByUserId(userId); - if(ObjectUtil.isNull(doctor)){ - throw new BaseException(DefaultCodeError.NO_POWER); - } - //查询患者 - List patientList; - PageHelper.startPage(param.getPage(),param.getPageSize()); - if(param.getType() == 1){ - //查询平车患者 - patientList = patientDao.queryCarPatient(doctor.getHospitalId()); - }else { - patientList = patientDao.queryByHospital(doctor.getHospitalId(), param.getPatientName(), param.getType()); - } - if(CollectionUtil.isNotEmpty(patientList)) { - patientList.forEach(patient -> { - //查询转归信息 - PatientVo.AidRecord aidRecordZg = patientDao.getRecordByAidIdAndCode(patient.getFirstAidId(), Constant.QuestionCode.ZG); - if (ObjectUtil.isNotNull(aidRecordZg)) { - patient.setTransformation(aidRecordZg.getAnswer()); - } - //查询开启绿道的时间(分诊时间) - PatientVo.AidRecord aidRecord = patientDao.getRecordByAidIdAndCode(patient.getFirstAidId(), Constant.QuestionCode.FZSJ); - if (ObjectUtil.isNotNull(aidRecord)) { - try { - patient.setGreenwayTime(Long.valueOf(aidRecord.getAnswer())); - } catch (Exception e) { - log.info("查询开启绿道时间异常"); - } - } - //查询到场的医生的信息 - List doctorList = patientDao.getAttendanceDoctor(patient.getFirstAidId()); - patient.setDoctorList(doctorList); - }); - } - - return new PageInfo<>(patientList); - } - - @Override - public void saveAidRecord(PatientDto.SaveAidRecord param, Long userId) { - //验证急救信息 - Long firstAidId = firstAidDao.getIdByProjectId(param.getProjectId()); - if(ObjectUtil.isNull(firstAidId)){ - throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); - } - if(CollectionUtil.isNotEmpty(param.getCodeAndAnswerList())){ - param.getCodeAndAnswerList().forEach(codeAndAnswer -> { - if(StrUtil.isNotEmpty(codeAndAnswer.getQuestionCode())) { - //添加日志表,不管数据是否重复 - FirstAidRecordLog firstAidRecordLog = new FirstAidRecordLog(); - firstAidRecordLog.setId(snowflake.nextId()); - firstAidRecordLog.setFirstAidId(firstAidId); - firstAidRecordLog.setQuestionCode(codeAndAnswer.getQuestionCode()); - firstAidRecordLog.setAnswer(codeAndAnswer.getAnswer()); - firstAidRecordLog.setSubmitUserId(userId); - firstAidRecordLog.setSubmitUserType(param.getUserType()); - firstAidRecordLog.setOperator(userId); - firstAidRecordLogMapper.insertSelective(firstAidRecordLog); - //添加记录表,需要查找之前的记录,删除后重新添加 - FirstAidRecordExample recordExample = new FirstAidRecordExample(); - recordExample.createCriteria().andFirstAidIdEqualTo(firstAidId).andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); - List firstAidRecords = firstAidRecordMapper.selectByExample(recordExample); - if (CollectionUtil.isNotEmpty(firstAidRecords)) { - firstAidRecords.forEach(firstAidRecord -> { - firstAidRecord.setRecStatus((byte) 2); - firstAidRecordMapper.updateByPrimaryKeySelective(firstAidRecord); - }); - } - //添加 - FirstAidRecord firstAidRecord = new FirstAidRecord(); - firstAidRecord.setId(snowflake.nextId()); - firstAidRecord.setFirstAidId(firstAidId); - firstAidRecord.setQuestionCode(codeAndAnswer.getQuestionCode()); - firstAidRecord.setAnswer(codeAndAnswer.getAnswer()); - firstAidRecord.setSubmitUserType(param.getUserType()); - firstAidRecord.setSubmitUserId(userId); - firstAidRecord.setOperator(userId); - firstAidRecordMapper.insertSelective(firstAidRecord); - //根据code查找字典表 - CodeDictionariesExample dictionariesExample = new CodeDictionariesExample(); - dictionariesExample.createCriteria().andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); - List dictionariesList = dictionariesMapper.selectByExample(dictionariesExample); - dictionariesList.forEach(codeDictionaries -> { - if(StrUtil.isNotEmpty(codeDictionaries.getTaskName())){ - //如果关联的任务名称不为空,查找任务id,然后修改任务真实开始时间 - long now = System.currentTimeMillis(); - Long subTaskId = sTaskDao.getNowTask(codeDictionaries.getTaskName(),param.getProjectId(),now); - if(ObjectUtil.isNotNull(subTaskId)){ - //TODO 如果分解id不为空,调用修改任务真实时间的接口 - taskService.updateTaskStartTime(subTaskId, (byte) 0); - } - } - }); - } - }); - } - } - - - @Override - public PatientVo.QueryAidRecord queryAidRecord(PatientDto.QueryAidRecord param, Long userId) { - PatientVo.QueryAidRecord queryAidRecord = new PatientVo.QueryAidRecord(); - Map recordMap = new HashMap<>(); - //查询记录信息 - List aidRecords = patientDao.queryRecordByAidId(param.getProjectId(),param.getCodeList()); - if(CollectionUtil.isNotEmpty(aidRecords)){ - //封装进map内 - aidRecords.forEach(aidRecord -> { - recordMap.put(aidRecord.getQuestionCode(),aidRecord.getAnswer()); - }); - queryAidRecord.setId(aidRecords.get(0).getFirstAidId()); - } - queryAidRecord.setRecord(recordMap); - return queryAidRecord; - } - - @Override - public PatientVo.QuerySubordinate querySubordinate(PatientDto.QuerySubordinate param, Long userId) { - return patientDao.querySubordinate(param.getProjectId(),param.getCode()); - } - - @Override - public PatientVo.TimeSandClock timeSandClock(StatisticalDto.QueryStep param, Long userId) { - PatientVo.TimeSandClock timeSandClock = new PatientVo.TimeSandClock(); - //查询急救id - FirstAidExample firstAidExample = new FirstAidExample(); - firstAidExample.createCriteria().andProjectIdEqualTo(param.getProjectId()); - List firstAids = firstAidDao.selectByExample(firstAidExample); - if(CollectionUtil.isEmpty(firstAids)){ - throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); - } - FirstAid firstAid = firstAids.get(0); - //查询发病时间 - timeSandClock.setDiseaseTime(firstAid.getTime()); - //查询分诊时间 - PatientVo.AidRecord aidRecordTriage = patientDao.getRecordByAidIdAndCode(firstAid.getId(), Constant.QuestionCode.FZSJ); - if(ObjectUtil.isNotNull(aidRecordTriage) && StrUtil.isNotEmpty(aidRecordTriage.getAnswer())){ - timeSandClock.setTriageTime(Long.valueOf(aidRecordTriage.getAnswer())); - } - //查询静脉溶栓时间 - PatientVo.AidRecord aidRecordThrombosis = patientDao.getRecordByAidIdAndCode(firstAid.getId(), Constant.QuestionCode.JMRSSJ); - if(ObjectUtil.isNotNull(aidRecordThrombosis) && StrUtil.isNotEmpty(aidRecordThrombosis.getAnswer())){ - timeSandClock.setThrombosisTime(Long.valueOf(aidRecordThrombosis.getAnswer())); - } - //查询ct时间 - PatientVo.AidRecord aidRecordCt = patientDao.getRecordByAidIdAndCode(firstAid.getId(), Constant.QuestionCode.CT_START); - if(ObjectUtil.isNotNull(aidRecordCt) && StrUtil.isNotEmpty(aidRecordCt.getAnswer())) { - timeSandClock.setCtTime(Long.valueOf(aidRecordCt.getAnswer())); - } - return timeSandClock; - } - - - @Override - public PatientVo.QueryAidRecordN queryAidRecordN(PatientDto.QueryAidRecord param, Long userId) { - PatientVo.QueryAidRecordN queryAidRecord = new PatientVo.QueryAidRecordN(); - Map> recordMap = new HashMap<>(); - //查询记录信息 - List aidRecords = patientDao.queryRecordByAidId(param.getProjectId(),param.getCodeList()); - if(CollectionUtil.isNotEmpty(aidRecords)){ - //封装进map内 - aidRecords.forEach(aidRecord -> { - if(ObjectUtil.isNull(recordMap.get(aidRecord.getQuestionCode()))){ - List stringList = new ArrayList<>(); - stringList.add(aidRecord.getAnswer()); - recordMap.put(aidRecord.getQuestionCode(),stringList); - }else { - recordMap.get(aidRecord.getQuestionCode()).add(aidRecord.getAnswer()); - } - }); - queryAidRecord.setId(aidRecords.get(0).getFirstAidId()); - } - queryAidRecord.setRecord(recordMap); - return queryAidRecord; - } - - @Override - public void saveAidRecordN(PatientDto.SaveAidRecordN param, Long userId) { - //验证急救信息 - Long firstAidId = firstAidDao.getIdByProjectId(param.getProjectId()); - if(ObjectUtil.isNull(firstAidId)){ - throw new BaseException(DefaultCodeError.NOT_FIRST_AID_ID); - } - - if(CollectionUtil.isNotEmpty(param.getCodeAndAnswerList())){ - //遍历传入的code - param.getCodeAndAnswerList().forEach(codeAndAnswer -> { - if(StrUtil.isNotEmpty(codeAndAnswer.getQuestionCode())) { - //添加记录表,需要查找之前的记录,删除后重新添加 - FirstAidRecordExample recordExample = new FirstAidRecordExample(); - recordExample.createCriteria().andFirstAidIdEqualTo(firstAidId).andQuestionCodeEqualTo(codeAndAnswer.getQuestionCode()); - List firstAidRecords = firstAidRecordMapper.selectByExample(recordExample); - if (CollectionUtil.isNotEmpty(firstAidRecords)) { - firstAidRecords.forEach(firstAidRecord -> { - firstAidRecord.setRecStatus((byte) 2); - firstAidRecordMapper.updateByPrimaryKeySelective(firstAidRecord); - }); - } - //判断答案是否为空 - if(CollectionUtil.isNotEmpty(codeAndAnswer.getAnswer())){ - //循环答案 - codeAndAnswer.getAnswer().forEach(answer -> { - saveRecord(param.getUserType(), userId, firstAidId, codeAndAnswer.getQuestionCode(), answer,param.getProjectId()); - }); - }else { - saveRecord(param.getUserType(), userId, firstAidId, codeAndAnswer.getQuestionCode(), "",param.getProjectId()); - } - } - }); - } - } - - private void saveRecord(byte userType, Long userId, Long firstAidId, String code, String answer,Long projectId) { - //添加日志表,不管数据是否重复 - FirstAidRecordLog firstAidRecordLog = new FirstAidRecordLog(); - firstAidRecordLog.setId(snowflake.nextId()); - firstAidRecordLog.setFirstAidId(firstAidId); - firstAidRecordLog.setQuestionCode(code); - firstAidRecordLog.setAnswer(answer); - firstAidRecordLog.setSubmitUserId(userId); - firstAidRecordLog.setSubmitUserType(userType); - firstAidRecordLog.setOperator(userId); - firstAidRecordLogMapper.insertSelective(firstAidRecordLog); - //添加 - FirstAidRecord firstAidRecord = new FirstAidRecord(); - firstAidRecord.setId(snowflake.nextId()); - firstAidRecord.setFirstAidId(firstAidId); - firstAidRecord.setQuestionCode(code); - firstAidRecord.setAnswer(answer); - firstAidRecord.setSubmitUserType(userType); - firstAidRecord.setSubmitUserId(userId); - firstAidRecord.setOperator(userId); - firstAidRecordMapper.insertSelective(firstAidRecord); - //根据code查找字典表 - CodeDictionariesExample dictionariesExample = new CodeDictionariesExample(); - dictionariesExample.createCriteria().andQuestionCodeEqualTo(code); - List dictionariesList = dictionariesMapper.selectByExample(dictionariesExample); - dictionariesList.forEach(codeDictionaries -> { - if(StrUtil.isNotEmpty(codeDictionaries.getTaskName())){ - //如果关联的任务名称不为空,查找任务id,然后修改任务真实开始时间 - long now = System.currentTimeMillis(); - Long subTaskId = sTaskDao.getNowTask(codeDictionaries.getTaskName(),projectId,now); - if(ObjectUtil.isNotNull(subTaskId)){ - //TODO 如果分解id不为空,调用修改任务真实时间的接口 - taskService.updateTaskStartTime(subTaskId, (byte) 0); - } - } - }); - } -} diff --git a/src/main/java/com/ccsens/carbasics/service/PatientWisdomCarService.java b/src/main/java/com/ccsens/carbasics/service/PatientWisdomCarService.java deleted file mode 100644 index b2d90fd..0000000 --- a/src/main/java/com/ccsens/carbasics/service/PatientWisdomCarService.java +++ /dev/null @@ -1,178 +0,0 @@ -package com.ccsens.carbasics.service; - -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.lang.Snowflake; -import com.ccsens.carbasics.bean.dto.CarDto; -import com.ccsens.carbasics.bean.po.*; -import com.ccsens.carbasics.bean.vo.CarVo; -import com.ccsens.carbasics.persist.dao.AttendanceRecordDao; -import com.ccsens.carbasics.persist.dao.FirstAidDao; -import com.ccsens.carbasics.persist.dao.PatientWisdomCarDao; -import com.ccsens.carbasics.persist.mapper.FirstAidRecordLogMapper; -import com.ccsens.carbasics.persist.mapper.FirstAidRecordMapper; -import com.ccsens.carbasics.persist.mapper.WisdomCarMapper; -import com.ccsens.carbasics.util.Constant; -import com.ccsens.carbasics.util.DefaultCodeError; -import com.ccsens.util.CodeError; -import com.ccsens.util.RedisUtil; -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.Date; -import java.util.List; - -/** - * @author whj - * 患者平车 - */ - -@Slf4j -@Service -@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) -public class PatientWisdomCarService implements IPatientWisdomCarService { - - @Resource - private Snowflake snowflake; - @Resource - private RedisUtil redisUtil; - @Resource - private PatientWisdomCarDao patientWisdomCarDao; - @Resource - private FirstAidDao firstAidDao; - @Resource - private WisdomCarMapper wisdomCarMapper; - @Resource - private FirstAidRecordMapper firstAidRecordMapper; - @Resource - private FirstAidRecordLogMapper firstAidRecordLogMapper; - @Resource - private AttendanceRecordDao attendanceRecordDao; - - @Override - public List query(Long userId) { - return patientWisdomCarDao.queryCar(userId); - } - - @Override - public CarVo.QueryBind queryBind(CarDto.QueryBind param, Long userId) { - return patientWisdomCarDao.queryBind(param); - } - - @Override - public CodeError.Code bind(CarDto.Bind param, Long userId) { - // 将未结束或结束时间过长的,修改成任务的开始时间 - param.setStartTime(param.getStartTime() == null || param.getStartTime() == 0 ? System.currentTimeMillis() : param.getStartTime()); - - // TODO 将开始的,尚未结束的绑定结束(大于绑定时间的,未考虑) - patientWisdomCarDao.updateEndTime(param.getCarId(), param.getStartTime(), userId); - // 查询急救ID - FirstAidExample aidExample = new FirstAidExample(); - aidExample.createCriteria().andProjectIdEqualTo(param.getProjectId()); - aidExample.setOrderByClause("id desc limit 1"); - List firstAids = firstAidDao.selectByExample(aidExample); - if (CollectionUtil.isEmpty(firstAids)) { - return DefaultCodeError.PARAM_ERROR; - } - FirstAid aid = firstAids.get(0); - // 平车ID - WisdomCar wisdomCar = wisdomCarMapper.selectByPrimaryKey(param.getCarId()); - if (wisdomCar == null) { - return DefaultCodeError.PARAM_ERROR; - } - // 绑定平车 - PatientWisdomCar patientWisdomCar = new PatientWisdomCar(); - patientWisdomCar.setId(snowflake.nextId()); - patientWisdomCar.setCarId(param.getCarId()); - patientWisdomCar.setFirstAidId(aid.getId()); - patientWisdomCar.setStartTime(param.getStartTime()); - patientWisdomCar.setEndTime(param.getEndTime()); - patientWisdomCar.setOperator(userId); - patientWisdomCarDao.insertSelective(patientWisdomCar); - // 删除倾角redis - String keyX = Constant.Car.FIRST_AID + wisdomCar.getSerial() + 21; - String keyY = Constant.Car.FIRST_AID + wisdomCar.getSerial() + 22; - String keyZ = Constant.Car.FIRST_AID + wisdomCar.getSerial() + 23; - redisUtil.del(keyX,keyY,keyZ); - // TODO 将所有时间段内的平车产生的记录和到场信息修改成当前急救 - Long aidId = aid.getId(); - Long carUserId = wisdomCar.getUserId(); - Date startTime = new Date(); - startTime.setTime(param.getStartTime()); - Date endTime = null; - if (param.getEndTime() != null && param.getEndTime() > 0) { - endTime = new Date(); - endTime.setTime(param.getEndTime()); - } - updateRecord(aidId, carUserId, startTime, endTime); - updateRecordLog(aidId, carUserId, startTime, endTime); - updateAttendance(aidId, carUserId, startTime, endTime); - - return DefaultCodeError.SUCCESS; - } - - /** - * 更新平车在这段时间内产生的到场信息的急救ID - * @param aidId 急救ID - * @param carUserId 平车userId - * @param startTime 开始时间 - * @param endTime 结束时间 - */ - private void updateAttendance(Long aidId, Long carUserId, Date startTime, Date endTime) { - AttendanceRecordExample example = new AttendanceRecordExample(); - AttendanceRecordExample.Criteria criteria = example.createCriteria() - .andUserIdEqualTo(carUserId) - .andTypeEqualTo(Constant.Car.OPERATION_CAR) - .andCreatedAtGreaterThanOrEqualTo(startTime); - if (endTime != null) { - criteria.andCreatedAtLessThan(endTime); - } - AttendanceRecord record = new AttendanceRecord(); - record.setFirstAidId(aidId); - attendanceRecordDao.updateByExampleSelective(record, example); - } - - /** - * 更新平车在这段时间内产生的recordLog数据的急救ID - * @param aidId 急救ID - * @param carUserId 平车userId - * @param startTime 开始时间 - * @param endTime 结束时间 - */ - private void updateRecordLog(Long aidId, Long carUserId, Date startTime, Date endTime) { - FirstAidRecordLogExample recordLogExample = new FirstAidRecordLogExample(); - FirstAidRecordLogExample.Criteria criteria = recordLogExample.createCriteria() - .andSubmitUserIdEqualTo(carUserId) - .andSubmitUserTypeEqualTo(Constant.Car.OPERATION_CAR) - .andCreatedAtGreaterThanOrEqualTo(startTime); - if (endTime != null) { - criteria.andCreatedAtLessThan(endTime); - } - FirstAidRecordLog recordLog = new FirstAidRecordLog(); - recordLog.setFirstAidId(aidId); - firstAidRecordLogMapper.updateByExampleSelective(recordLog, recordLogExample); - } - - /** - * 更新平车在这段时间内产生的record数据的急救ID - * @param aidId 急救ID - * @param carUserId 平车userId - * @param startTime 开始时间 - * @param endTime 结束时间 - */ - private void updateRecord(Long aidId, Long carUserId, Date startTime, Date endTime) { - FirstAidRecordExample recordExample = new FirstAidRecordExample(); - FirstAidRecordExample.Criteria criteria = recordExample.createCriteria() - .andSubmitUserIdEqualTo(carUserId) - .andSubmitUserTypeEqualTo(Constant.Car.OPERATION_CAR) - .andCreatedAtGreaterThanOrEqualTo(startTime); - if (endTime != null) { - criteria.andCreatedAtLessThan(endTime); - } - FirstAidRecord record = new FirstAidRecord(); - record.setFirstAidId(aidId); - firstAidRecordMapper.updateByExampleSelective(record, recordExample); - } -} diff --git a/src/main/java/com/ccsens/carbasics/service/QcpProjectService.java b/src/main/java/com/ccsens/carbasics/service/QcpProjectService.java index 0e9192a..b4205f4 100644 --- a/src/main/java/com/ccsens/carbasics/service/QcpProjectService.java +++ b/src/main/java/com/ccsens/carbasics/service/QcpProjectService.java @@ -6,10 +6,7 @@ import cn.hutool.core.lang.Snowflake; import cn.hutool.core.util.ObjectUtil; import cn.hutool.core.util.StrUtil; import com.ccsens.carbasics.bean.dto.ProjectDto; -import com.ccsens.carbasics.bean.po.Doctor; import com.ccsens.carbasics.bean.po.FirstAid; -import com.ccsens.carbasics.bean.po.FirstAidMessage; -import com.ccsens.carbasics.bean.po.Patient; import com.ccsens.carbasics.bean.vo.ProjectVo; import com.ccsens.carbasics.persist.dao.*; import com.ccsens.carbasics.util.Constant; @@ -43,172 +40,157 @@ public class QcpProjectService implements IQcpProjectService { @Resource private IProjectService projectService; @Resource - private DoctorDao doctorDao; - @Resource private PatientDao patientDao; @Resource private FirstAidDao firstAidDao; - @Resource - private WorkingDao workingDao; - @Resource - private FirstAidMessageDao firstAidMessageDao; + @Resource private RedisUtil redisUtil; - @Override - public ProjectVo.CreateCaseV createCase(ProjectDto.CreateCaseD param, Long userId) { - CProjectDto.MemberForProject memberForProject = new CProjectDto.MemberForProject(); - List memberInfoList = new ArrayList<>(); - //1.查询患者是否第一次来此医院 - Doctor doctor = doctorDao.findByUserId(userId); - Long hospitalId = doctor.getHospitalId(); - Patient patientIsRepeat = patientDao.findByIdCardAndHospitalId(param.getIdcard(),hospitalId); - - FirstAid firstAid = new FirstAid(); - if (ObjectUtil.isNull(patientIsRepeat)){ - //患者信息 - Patient patient = new Patient(); - BeanUtil.copyProperties(param,patient); - patient.setId(snowflake.nextId()); - patient.setName(param.getName()); - patient.setAge(param.getAge()); - patient.setHospitalId(hospitalId); - patient.setOperator(userId); - patientDao.insertSelective(patient); - //患者急救信息 TODO 绑定项目 - BeanUtil.copyProperties(param,firstAid); - firstAid.setId(snowflake.nextId()); - firstAid.setPatientId(patient.getId()); - }else{ - //患者急救信息 TODO 绑定项目 - BeanUtil.copyProperties(param,firstAid); - firstAid.setId(snowflake.nextId()); - firstAid.setPatientId(patientIsRepeat.getId()); - } - firstAid.setOperator(userId); - firstAidDao.insertSelective(firstAid); - //添加患者家属的角色 - if (StrUtil.isNotBlank(firstAid.getKinsfolkPhone())){ - CProjectDto.MemberInfo patientFamily = new CProjectDto.MemberInfo(); - patientFamily.setPhone(firstAid.getKinsfolkPhone()); - patientFamily.setMemberName(param.getName()+"家属"); - patientFamily.setRoleName(Constant.WORK_DOCTOR.PATIENT_FAMILY.phase); - memberInfoList.add(patientFamily); - } - - //2.查询医生值班信息 - long currentTime = System.currentTimeMillis(); - List workingDoctorList = workingDao.findWorkingDoctor(hospitalId,currentTime); - if (CollectionUtil.isNotEmpty(workingDoctorList)){ - for (Doctor workDoctor : workingDoctorList) { - //急诊护士 - if (Constant.WORK_DOCTOR.NURSE.value.equals(workDoctor.getPost())){ - CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); - memberInfo.setMemberName(workDoctor.getName()); - memberInfo.setPhone(workDoctor.getPhone()); - memberInfo.setUserId(workDoctor.getUserId()); - memberInfo.setRoleName(Constant.WORK_DOCTOR.NURSE.phase); - memberInfoList.add(memberInfo); - } - //急诊医生 - if (Constant.WORK_DOCTOR.DOCTOR.value.equals(workDoctor.getPost())){ - CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); - memberInfo.setMemberName(workDoctor.getName()); - memberInfo.setPhone(workDoctor.getPhone()); - memberInfo.setUserId(workDoctor.getUserId()); - memberInfo.setRoleName(Constant.WORK_DOCTOR.DOCTOR.phase); - memberInfoList.add(memberInfo); - } - //卒中医生 - if (Constant.WORK_DOCTOR.STROKE.value.equals(workDoctor.getPost())){ - CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); - memberInfo.setMemberName(workDoctor.getName()); - memberInfo.setPhone(workDoctor.getPhone()); - memberInfo.setUserId(workDoctor.getUserId()); - memberInfo.setRoleName(Constant.WORK_DOCTOR.STROKE.phase); - memberInfoList.add(memberInfo); - } - //神内医生 - if (Constant.WORK_DOCTOR.NEUROLOGY.value.equals(workDoctor.getPost())){ - CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); - memberInfo.setMemberName(workDoctor.getName()); - memberInfo.setPhone(workDoctor.getPhone()); - memberInfo.setUserId(workDoctor.getUserId()); - memberInfo.setRoleName(Constant.WORK_DOCTOR.NEUROLOGY.phase); - memberInfoList.add(memberInfo); - } - //神外医生 - if (Constant.WORK_DOCTOR.NEUROSURGERY.value.equals(workDoctor.getPost())){ - CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); - memberInfo.setMemberName(workDoctor.getName()); - memberInfo.setPhone(workDoctor.getPhone()); - memberInfo.setUserId(workDoctor.getUserId()); - memberInfo.setRoleName(Constant.WORK_DOCTOR.NEUROSURGERY.phase); - memberInfoList.add(memberInfo); - } - //卒中中心主任(为项目经理) - if (Constant.WORK_DOCTOR.HEAD.value.equals(workDoctor.getPost())){ - CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); - memberInfo.setMemberName(workDoctor.getName()); - memberInfo.setPhone(workDoctor.getPhone()); - memberInfo.setUserId(workDoctor.getUserId()); - memberInfo.setRoleName(Constant.WORK_DOCTOR.HEAD.phase); - memberInfoList.add(memberInfo); - } - } - //TODO 创建人暂定为项目经理 - CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); - memberInfo.setUserId(userId); - memberInfo.setMemberName("创建者"); - memberInfo.setRoleName(Constant.WORK_DOCTOR.HEAD.phase); - memberInfoList.add(memberInfo); - memberForProject.setMemberInfoList(memberInfoList); - } - //3.创建项目 - CProjectDto.CopyProject copyProject = new CProjectDto.CopyProject(); - //TODO 模板项目id 需改为常量或存redis - copyProject.setProjectId((Long) redisUtil.get(Constant.TEMPLATE_PROJECT_KEY)); - //新项目名字 - String newProjectName = ""; - long incr = redisUtil.incr("hospital_" + hospitalId.toString(), 1L); - newProjectName = incr+"-"+"质控平台"; - if (StrUtil.isNotBlank(param.getName())){ - newProjectName +="-"+param.getName(); - } - copyProject.setProjectName(newProjectName); - CProjectVo.CopyProjectInfo copyProjectInfo = projectService.copyProject(copyProject, userId); - //急救信息表绑定项目id - firstAid.setProjectId(copyProjectInfo.getId()); - firstAidDao.updateByPrimaryKeySelective(firstAid); - //4.向项目中添加成员(值班医生,患者) - memberForProject.setProjectId(copyProjectInfo.getId()); - projectService.addMemberForCopy(memberForProject,userId); - ProjectVo.CreateCaseV createCaseV = new ProjectVo.CreateCaseV(); - createCaseV.setProjectId(copyProjectInfo.getId()); - //5.急救消息通知表添加数据 - String name = "无名氏"; - if (StrUtil.isNotBlank(param.getName())){ - name = param.getName(); - } - String content = "请"+name+"1号窗口交费"; - FirstAidMessage firstAidMessage = new FirstAidMessage(); - firstAidMessage.setId(snowflake.nextId()); - firstAidMessage.setContent(content); - firstAidMessage.setOperator(userId); - firstAidMessageDao.insertSelective(firstAidMessage); - - return createCaseV; - } - - @Override - public ProjectVo.NewMessage queryNewMessage(ProjectDto.QueryNewMessage param, Long userId) { - Long firstAidId = firstAidDao.getIdByProjectId(param.getProjectId()); - if (ObjectUtil.isNull(firstAidId)){ - throw new BaseException(DefaultCodeError.PROJECT_ERROR); - } - ProjectVo.NewMessage newMessage = firstAidMessageDao.findInfoByProjectId(firstAidId); - return newMessage; - } +// @Override +// public ProjectVo.CreateCaseV createCase(ProjectDto.CreateCaseD param, Long userId) { +// CProjectDto.MemberForProject memberForProject = new CProjectDto.MemberForProject(); +// List memberInfoList = new ArrayList<>(); +// //1.查询患者是否第一次来此医院 +// Doctor doctor = doctorDao.findByUserId(userId); +// Long hospitalId = doctor.getHospitalId(); +// Patient patientIsRepeat = patientDao.findByIdCardAndHospitalId(param.getIdcard(),hospitalId); +// +// FirstAid firstAid = new FirstAid(); +// if (ObjectUtil.isNull(patientIsRepeat)){ +// //患者信息 +// Patient patient = new Patient(); +// BeanUtil.copyProperties(param,patient); +// patient.setId(snowflake.nextId()); +// patient.setName(param.getName()); +// patient.setAge(param.getAge()); +// patient.setHospitalId(hospitalId); +// patient.setOperator(userId); +// patientDao.insertSelective(patient); +// //患者急救信息 TODO 绑定项目 +// BeanUtil.copyProperties(param,firstAid); +// firstAid.setId(snowflake.nextId()); +// firstAid.setPatientId(patient.getId()); +// }else{ +// //患者急救信息 TODO 绑定项目 +// BeanUtil.copyProperties(param,firstAid); +// firstAid.setId(snowflake.nextId()); +// firstAid.setPatientId(patientIsRepeat.getId()); +// } +// firstAid.setOperator(userId); +// firstAidDao.insertSelective(firstAid); +// //添加患者家属的角色 +// if (StrUtil.isNotBlank(firstAid.getKinsfolkPhone())){ +// CProjectDto.MemberInfo patientFamily = new CProjectDto.MemberInfo(); +// patientFamily.setPhone(firstAid.getKinsfolkPhone()); +// patientFamily.setMemberName(param.getName()+"家属"); +// patientFamily.setRoleName(Constant.WORK_DOCTOR.PATIENT_FAMILY.phase); +// memberInfoList.add(patientFamily); +// } +// +// //2.查询医生值班信息 +// long currentTime = System.currentTimeMillis(); +// List workingDoctorList = workingDao.findWorkingDoctor(hospitalId,currentTime); +// if (CollectionUtil.isNotEmpty(workingDoctorList)){ +// for (Doctor workDoctor : workingDoctorList) { +// //急诊护士 +// if (Constant.WORK_DOCTOR.NURSE.value.equals(workDoctor.getPost())){ +// CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); +// memberInfo.setMemberName(workDoctor.getName()); +// memberInfo.setPhone(workDoctor.getPhone()); +// memberInfo.setUserId(workDoctor.getUserId()); +// memberInfo.setRoleName(Constant.WORK_DOCTOR.NURSE.phase); +// memberInfoList.add(memberInfo); +// } +// //急诊医生 +// if (Constant.WORK_DOCTOR.DOCTOR.value.equals(workDoctor.getPost())){ +// CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); +// memberInfo.setMemberName(workDoctor.getName()); +// memberInfo.setPhone(workDoctor.getPhone()); +// memberInfo.setUserId(workDoctor.getUserId()); +// memberInfo.setRoleName(Constant.WORK_DOCTOR.DOCTOR.phase); +// memberInfoList.add(memberInfo); +// } +// //卒中医生 +// if (Constant.WORK_DOCTOR.STROKE.value.equals(workDoctor.getPost())){ +// CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); +// memberInfo.setMemberName(workDoctor.getName()); +// memberInfo.setPhone(workDoctor.getPhone()); +// memberInfo.setUserId(workDoctor.getUserId()); +// memberInfo.setRoleName(Constant.WORK_DOCTOR.STROKE.phase); +// memberInfoList.add(memberInfo); +// } +// //神内医生 +// if (Constant.WORK_DOCTOR.NEUROLOGY.value.equals(workDoctor.getPost())){ +// CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); +// memberInfo.setMemberName(workDoctor.getName()); +// memberInfo.setPhone(workDoctor.getPhone()); +// memberInfo.setUserId(workDoctor.getUserId()); +// memberInfo.setRoleName(Constant.WORK_DOCTOR.NEUROLOGY.phase); +// memberInfoList.add(memberInfo); +// } +// //神外医生 +// if (Constant.WORK_DOCTOR.NEUROSURGERY.value.equals(workDoctor.getPost())){ +// CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); +// memberInfo.setMemberName(workDoctor.getName()); +// memberInfo.setPhone(workDoctor.getPhone()); +// memberInfo.setUserId(workDoctor.getUserId()); +// memberInfo.setRoleName(Constant.WORK_DOCTOR.NEUROSURGERY.phase); +// memberInfoList.add(memberInfo); +// } +// //卒中中心主任(为项目经理) +// if (Constant.WORK_DOCTOR.HEAD.value.equals(workDoctor.getPost())){ +// CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); +// memberInfo.setMemberName(workDoctor.getName()); +// memberInfo.setPhone(workDoctor.getPhone()); +// memberInfo.setUserId(workDoctor.getUserId()); +// memberInfo.setRoleName(Constant.WORK_DOCTOR.HEAD.phase); +// memberInfoList.add(memberInfo); +// } +// } +// //TODO 创建人暂定为项目经理 +// CProjectDto.MemberInfo memberInfo = new CProjectDto.MemberInfo(); +// memberInfo.setUserId(userId); +// memberInfo.setMemberName("创建者"); +// memberInfo.setRoleName(Constant.WORK_DOCTOR.HEAD.phase); +// memberInfoList.add(memberInfo); +// memberForProject.setMemberInfoList(memberInfoList); +// } +// //3.创建项目 +// CProjectDto.CopyProject copyProject = new CProjectDto.CopyProject(); +// //TODO 模板项目id 需改为常量或存redis +// copyProject.setProjectId((Long) redisUtil.get(Constant.TEMPLATE_PROJECT_KEY)); +// //新项目名字 +// String newProjectName = ""; +// long incr = redisUtil.incr("hospital_" + hospitalId.toString(), 1L); +// newProjectName = incr+"-"+"质控平台"; +// if (StrUtil.isNotBlank(param.getName())){ +// newProjectName +="-"+param.getName(); +// } +// copyProject.setProjectName(newProjectName); +// CProjectVo.CopyProjectInfo copyProjectInfo = projectService.copyProject(copyProject, userId); +// //急救信息表绑定项目id +// firstAid.setProjectId(copyProjectInfo.getId()); +// firstAidDao.updateByPrimaryKeySelective(firstAid); +// //4.向项目中添加成员(值班医生,患者) +// memberForProject.setProjectId(copyProjectInfo.getId()); +// projectService.addMemberForCopy(memberForProject,userId); +// ProjectVo.CreateCaseV createCaseV = new ProjectVo.CreateCaseV(); +// createCaseV.setProjectId(copyProjectInfo.getId()); +// //5.急救消息通知表添加数据 +// String name = "无名氏"; +// if (StrUtil.isNotBlank(param.getName())){ +// name = param.getName(); +// } +// String content = "请"+name+"1号窗口交费"; +// FirstAidMessage firstAidMessage = new FirstAidMessage(); +// firstAidMessage.setId(snowflake.nextId()); +// firstAidMessage.setContent(content); +// firstAidMessage.setOperator(userId); +// firstAidMessageDao.insertSelective(firstAidMessage); +// +// return createCaseV; +// } @Override public void switchProject(ProjectDto.SwitchProject param, Long userId) throws Exception { diff --git a/src/main/java/com/ccsens/carbasics/service/RecordService.java b/src/main/java/com/ccsens/carbasics/service/RecordService.java deleted file mode 100644 index 0044e8e..0000000 --- a/src/main/java/com/ccsens/carbasics/service/RecordService.java +++ /dev/null @@ -1,571 +0,0 @@ -package com.ccsens.carbasics.service; - -import cn.hutool.core.bean.BeanUtil; -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.lang.Snowflake; -import cn.hutool.core.util.ObjectUtil; -import cn.hutool.core.util.StrUtil; -import com.ccsens.carbasics.bean.dto.RecordDto; -import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; -import com.ccsens.carbasics.bean.po.*; -import com.ccsens.carbasics.bean.vo.RecordVo; -import com.ccsens.carbasics.bean.vo.RfidVo; -import com.ccsens.carbasics.bean.vo.message.CarRecordMessageVo; -import com.ccsens.carbasics.bean.vo.message.RemindMessageVo; -import com.ccsens.carbasics.persist.dao.*; -import com.ccsens.carbasics.persist.mapper.*; -import com.ccsens.carbasics.util.Constant; -import com.ccsens.common.service.IMessageService; -import com.ccsens.common.service.ITaskService; -import com.ccsens.util.JacksonUtil; -import com.ccsens.util.PoiUtil; -import com.ccsens.util.RedisUtil; -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 lombok.extern.slf4j.Slf4j; -import org.apache.poi.ss.usermodel.Workbook; -import org.apache.poi.xssf.usermodel.XSSFWorkbook; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Service; -import org.springframework.transaction.annotation.Propagation; -import org.springframework.transaction.annotation.Transactional; - -import javax.annotation.Resource; -import java.math.BigDecimal; -import java.text.SimpleDateFormat; -import java.util.*; - -/** - * @author 逗 - */ -@Slf4j -@Service -@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) -public class RecordService implements IRecordService{ - - @Resource - private Snowflake snowflake; - @Resource - private IMessageService messageService; - @Resource - private RedisUtil redisUtil; - @Resource - private WisdomCarMapper wisdomCarMapper; - @Resource - private CarRecordDao carRecordDao; - @Resource - private RfidDao rfidDao; - @Resource - private AttendanceRecordMapper attendanceRecordMapper; - @Resource - private PatientWisdomCarDao patientWisdomCarDao; - @Resource - private FirstAidRecordMapper firstAidRecordMapper; - @Resource - private FirstAidRecordLogMapper firstAidRecordLogMapper; - @Resource - private WorkingDao workingDao; - @Resource - private CodeDictionariesMapper codeDictionariesMapper; - @Resource - private StepDao stepDao; - @Resource - private FirstAidDao firstAidDao; - @Resource - private FirstAidMessageMapper firstAidMessageMapper; - @Resource - private STaskDao staskDao; - @Resource - private ITaskService taskService; - - @Value("#{T(java.lang.Long).parseLong('${wisdom.weight:10000}')}") - private Long weightMinus; - @Value("#{T(java.lang.Long).parseLong('${wisdom.time:300000}')}") - private Long timeMinus; - - @Override - public void disposeMessage(CarRecordMessageDto carRecordMessageDto) throws Exception { - // 1将消息储存至消息表 - if(ObjectUtil.isNull(carRecordMessageDto)){ - return; - } - log.info("接受信息:{}",carRecordMessageDto); - //查找平车信息 - WisdomCarExample wisdomCarExample = new WisdomCarExample(); - wisdomCarExample.createCriteria().andSerialEqualTo(carRecordMessageDto.getAuthId()); - List wisdomCars = wisdomCarMapper.selectByExample(wisdomCarExample); - if(CollectionUtil.isEmpty(wisdomCars)){ - log.info("找不到平车id"); - return; - } - WisdomCar wisdomCar = wisdomCars.get(0); - - //通知平车相关账号 - Set carUserIdSet = new HashSet<>(); - carUserIdSet.add(String.valueOf(wisdomCar.getUserId())); - RfidVo.Full full = null; - switch (carRecordMessageDto.getType()) { - case Constant.Car.CAR_RECORD_WEIGHT: - // 通知称重 - sendWeight(carRecordMessageDto, wisdomCar, carUserIdSet); - break; - case Constant.Car.CAR_RECORD_RFID: - // 通知rfid - full = rfidDao.getByRfid(carRecordMessageDto.getValue()); - sendRecordMessage(carRecordMessageDto, carUserIdSet, full == null ? null : full.getStepCode(), full == null ? null : full.getStepType()); - // 处理相关数据 - if (full != null) { - dealRfid(carRecordMessageDto.getValue(), carRecordMessageDto.getTime(), full.getName(), full.getType1(), full.getStepId(), full.getStepType(), wisdomCar.getId(), wisdomCar.getUserId()); - } - break; - default: - // 通知其他 - sendRecordMessage(carRecordMessageDto, carUserIdSet, null, null); - } - - // 存储平车记录 - saveCarRecord(carRecordMessageDto, wisdomCar.getId()); - } - - /** - * 处理rfid消息 - * @param rfid rfid - * @param time 接收时间 - * @param name rfid名字 - * @param rfidType rfid类型 - * @param stepId 环节ID - * @param stepType 环节类型 - * @param carId 平车ID - * @param carUserId 平车userID - */ - private void dealRfid(String rfid, Long time, String name, Byte rfidType, Long stepId, Byte stepType, Long carId, Long carUserId) throws Exception { - log.info("处理平车rfid消息,rfid:{}, carId:{}, stepId:{}, stepType:{}", rfid, carId, stepId, stepType); - // 查询当前是否绑定平车 - PatientWisdomCar bindCar = patientWisdomCarDao.getBindCar(carId, System.currentTimeMillis()); - log.info("绑定平车信息:{}", bindCar); - Long firstAidId = bindCar == null ? 0 : bindCar.getFirstAidId(); - byte operationCar = Constant.Car.OPERATION_CAR; - if (rfidType != null && rfidType == Constant.Car.RFID_TYPE_USER) { - // 工作人员,记录到场信息 - stepId = saveAttendanceRecord(rfid, time, name, carUserId, firstAidId, operationCar); - stepType = Constant.Car.STEP_TYPE_REAL; - } - if (stepId != null && stepType != null && stepType == Constant.Car.STEP_TYPE_REAL) { - // 真实环节, 记录题目信息 - saveFirstAidRecord(time, stepId, carUserId, firstAidId, operationCar); - } - - - } - - /** - * 保存急救记录和日志 - * @param time 时间 - * @param stepId 环节ID - * @param carUserId 平车用户ID - * @param firstAidId 急救ID - * @param operation 操作对象 - */ - private void saveFirstAidRecord(Long time, Long stepId, Long carUserId, Long firstAidId, byte operation) { - boolean unBind = firstAidId == null || firstAidId == 0; - CodeDictionariesExample codeExample = new CodeDictionariesExample(); - codeExample.createCriteria().andStepIdEqualTo(stepId); - List dictionaries = codeDictionariesMapper.selectByExample(codeExample); - log.info("{}的题目:{}", stepId, dictionaries); - if (CollectionUtil.isEmpty(dictionaries)) { - return; - } - CodeDictionaries codeDictionary = dictionaries.get(0); - String code = codeDictionary.getQuestionCode(); - // 存记录 - FirstAidRecordLogExample firstAidRecordLogExample = new FirstAidRecordLogExample(); - FirstAidRecordLogExample.Criteria criteria = firstAidRecordLogExample.createCriteria().andFirstAidIdEqualTo(firstAidId).andQuestionCodeEqualTo(code) - .andSubmitUserTypeEqualTo(operation).andSubmitUserIdEqualTo(carUserId); - Date effectDate = new Date(); - effectDate.setTime(effectDate.getTime() - Constant.Car.COMPLETE_TIME); - if (unBind) { - criteria.andCreatedAtGreaterThanOrEqualTo(effectDate); - } - long count = firstAidRecordLogMapper.countByExample(firstAidRecordLogExample); - log.info("平车记录急救{}该题目信息{}数量:{}", firstAidId, code, count); - if (count > 0) { - return; - } - FirstAidRecordLog recordLog = new FirstAidRecordLog(); - recordLog.setId(snowflake.nextId()); - recordLog.setQuestionCode(code); - recordLog.setAnswer(String.valueOf(time)); - recordLog.setSubmitUserId(carUserId); - recordLog.setSubmitUserType(operation); - firstAidRecordLogMapper.insertSelective(recordLog); - // 判断记录表中是否有数据,有则不添加 - FirstAidRecordExample recordExample = new FirstAidRecordExample(); - FirstAidRecordExample.Criteria recordCriteria = recordExample.createCriteria().andFirstAidIdEqualTo(firstAidId).andQuestionCodeEqualTo(code); - if (unBind) { - recordCriteria.andCreatedAtGreaterThanOrEqualTo(effectDate); - } - long recordCount = firstAidRecordMapper.countByExample(recordExample); - log.info("{}时间是否已经存在:{}", code, recordCount); - if (recordCount > 0) { - // 已有数据,无论是平车还是人录入的,都不再录入 - return; - } - FirstAidRecord record = new FirstAidRecord(); - BeanUtil.copyProperties(recordLog, record); - record.setId(snowflake.nextId()); - firstAidRecordMapper.insertSelective(record); - - if (!unBind && StrUtil.isNotBlank(codeDictionary.getTaskName())){ - // 推送任务的真实开始 - FirstAid firstAid = firstAidDao.selectByPrimaryKey(firstAidId); - log.info("急救:{}", firstAid); - if (firstAid == null) { - return; - } - //如果关联的任务名称不为空,查找任务id,然后修改任务真实开始时间 - long now = System.currentTimeMillis(); - Long subTaskId = staskDao.getNowTask(codeDictionary.getTaskName(),firstAid.getProjectId(),now); - if(ObjectUtil.isNotNull(subTaskId)){ - taskService.updateTaskStartTime(subTaskId, (byte) 0); - } - } - } - - /** - * 存储到场信息;若为一线人员到场,通知拿药+CT - * @param rfid rfid - * @param time 时间 - * @param carUserId 平车用户 - * @param aidId 急诊 - * @param operationType 操作类型 - * @return 一线环节ID - */ - private Long saveAttendanceRecord(String rfid, Long time, String name, Long carUserId, Long aidId, byte operationType) throws Exception { - log.info("记录到场信息{},{}", rfid, name); - // 查询医生对应的环节 - long workingCount = workingDao.countWorking(rfid, Constant.Car.POST_EMERGENCY_TREATMENT, System.currentTimeMillis()); - // 急诊医生 --> 一线 其他,对应二线 - Long workingStepId; - if (workingCount > 0) { - // 一线 - workingStepId = stepDao.getIdByCode(Constant.Car.STEP_FRONT_LINE, System.currentTimeMillis()); - - } else { - workingStepId = stepDao.getIdByCode(Constant.Car.STEP_SECOND_LINE, System.currentTimeMillis()); - } - //该医生的到场记录 - AttendanceRecordExample recordExample = new AttendanceRecordExample(); - AttendanceRecordExample.Criteria criteria = recordExample.createCriteria().andFirstAidIdEqualTo(aidId).andRfidEqualTo(rfid) - .andUserIdEqualTo(carUserId).andTypeEqualTo(operationType); - if (aidId == 0) { - criteria.andTimeGreaterThanOrEqualTo(System.currentTimeMillis() - Constant.Car.COMPLETE_TIME); - } - long count = attendanceRecordMapper.countByExample(recordExample); - log.info("{}到场情况:{}", rfid, count); - if (count > 0) { - return workingStepId; - } - - // 查询医生的值班情况 - AttendanceRecord attendanceRecord = new AttendanceRecord(); - attendanceRecord.setId(snowflake.nextId()); - attendanceRecord.setFirstAidId(aidId); - - attendanceRecord.setStepId(workingStepId); - attendanceRecord.setRfid(rfid); - attendanceRecord.setName(name); - attendanceRecord.setUserId(carUserId); - attendanceRecord.setType(operationType); - attendanceRecord.setTime(time); - attendanceRecordMapper.insertSelective(attendanceRecord); - if (workingCount > 0 && aidId > 0) { - String patientName = firstAidDao.getPatientName(aidId); - String content = "请"+patientName - +"1号窗口拿药    请" - +patientName+"1号CT室"; - FirstAidMessage message = new FirstAidMessage(); - message.setId(snowflake.nextId()); - message.setContent(content); - message.setFirstAidId(aidId); - firstAidMessageMapper.insertSelective(message); - // 通知所有成员 - List userIds = firstAidDao.getUserIdById(aidId); - sendRemindMessage(content, userIds); - } - return workingStepId; - } - - /** - * 推送称重信息 - * @param carRecordMessageDto 平车信息 - * @param wisdomCar 平车 - * @param carUserIdSet 接收消息的用户 - * @throws Exception 异常 - */ - private void sendWeight(CarRecordMessageDto carRecordMessageDto, WisdomCar wisdomCar, Set carUserIdSet) throws Exception { - CarRecordExample example = new CarRecordExample(); - example.createCriteria().andCarIdEqualTo(wisdomCar.getId()).andTypeEqualTo(carRecordMessageDto.getType()) - .andTimeGreaterThan(System.currentTimeMillis() - Constant.Car.FIRST_AID_REDIS_TIME * 1000); -// .andTimeGreaterThan(System.currentTimeMillis() - 10 * 1000); - example.setOrderByClause("time DESC limit 1"); - List carRecords = carRecordDao.selectByExample(example); - log.info("准备发送四个体重--carRecordMessageDto:{}:",carRecordMessageDto); - log.info("准备发送四个体重--carRecords:{}:",carRecords); - if(CollectionUtil.isEmpty(carRecords) || !carRecordMessageDto.getValue().equals(carRecords.get(0).getCarValue())){ - log.info("发送体重信息:{}", carRecordMessageDto.getValue()); - //处理体重数据 - CarRecordMessageDto dto = new CarRecordMessageDto(); - int weightInt = Integer.parseInt(carRecordMessageDto.getValue()); - BigDecimal weight = BigDecimal.valueOf(weightInt).divide(BigDecimal.valueOf(1000),2,BigDecimal.ROUND_HALF_UP); - dto.setValue(weight+""); - log.info("通知四个体重秤的质量"); - doseAndSensorMessage(dto, carUserIdSet); - } - } - - /** - * 存储平车记录 - * @param carRecordMessageDto 平车上传信息 - * @param carId 平车ID - */ - private void saveCarRecord(CarRecordMessageDto carRecordMessageDto, Long carId) { - CarRecord wisdomCarRecord = new CarRecord(); - wisdomCarRecord.setId(snowflake.nextId()); - wisdomCarRecord.setCarId(carId); - wisdomCarRecord.setType(carRecordMessageDto.getType()); - wisdomCarRecord.setCarValue(carRecordMessageDto.getValue()); - wisdomCarRecord.setTime(carRecordMessageDto.getTime()); - carRecordDao.insertSelective(wisdomCarRecord); - } - - - private void doseAndSensorMessage(CarRecordMessageDto carRecordMessageDto, Set userIdSet) throws Exception { - //体重 单位g - BigDecimal weightInt = BigDecimal.valueOf(Double.parseDouble(carRecordMessageDto.getValue())); - CarRecordMessageDto sensorMessage = new CarRecordMessageDto(); - BeanUtil.copyProperties(carRecordMessageDto,sensorMessage); - sensorMessage.setType(Constant.Car.CAR_RECORD_WEIGHT); - sensorMessage.setValue(weightInt + ""); - log.info("体重数据:{}",sensorMessage); - //发送消息 - sendRecordMessage(sensorMessage,userIdSet,null,null); - - BigDecimal sensor1 = BigDecimal.valueOf(0,3); - BigDecimal sensor2 = BigDecimal.valueOf(0,3); - BigDecimal sensor3 = BigDecimal.valueOf(0,3); - BigDecimal sensor4 = BigDecimal.valueOf(0,3); - /*称重传感器数据*/ - if(weightInt.compareTo(BigDecimal.ZERO) > 0){ - //获取一个5000以内的平均数 - Random random = new Random(); - BigDecimal randomWeight1 = BigDecimal.valueOf(random.nextInt(5000)).divide(BigDecimal.valueOf(1000),2,BigDecimal.ROUND_DOWN); - BigDecimal randomWeight2 = BigDecimal.valueOf(random.nextInt(5000)).divide(BigDecimal.valueOf(1000),2,BigDecimal.ROUND_DOWN); - //体重除以4 - BigDecimal aveWeight = weightInt.divide(BigDecimal.valueOf(4),3,BigDecimal.ROUND_DOWN); - if(aveWeight.compareTo(BigDecimal.valueOf(5000)) < 1){ - BigDecimal divide = aveWeight.multiply(BigDecimal.valueOf(1000)).divide(BigDecimal.valueOf(3), 2, BigDecimal.ROUND_DOWN); - if(divide.compareTo(BigDecimal.ZERO) == 0){ - randomWeight1 = BigDecimal.valueOf(0); - randomWeight2 = BigDecimal.valueOf(0); - }else { - randomWeight1 = BigDecimal.valueOf(random.nextInt(divide.intValue())).divide(BigDecimal.valueOf(1000), 2, BigDecimal.ROUND_DOWN); - randomWeight2 = BigDecimal.valueOf(random.nextInt(divide.intValue())).divide(BigDecimal.valueOf(1000), 2, BigDecimal.ROUND_DOWN); - } - } - - sensor1 = aveWeight.subtract(randomWeight1); - sensor2 = aveWeight.add(randomWeight1); - sensor3 = aveWeight.subtract(randomWeight2); - sensor4 = weightInt.subtract(sensor1).subtract(sensor2).subtract(sensor3); - if(sensor4.compareTo(BigDecimal.valueOf(0)) < 1){ - sensor4 = BigDecimal.valueOf(0); - } - } - //第一个传感器 - - CarRecordMessageDto sensorMessage1 = new CarRecordMessageDto(); - BeanUtil.copyProperties(carRecordMessageDto,sensorMessage1); - sensorMessage1.setType(Constant.Car.WEIGHT_SENSOR_1); - sensorMessage1.setValue(sensor1 + ""); - log.info("传感器一数据:{}",sensorMessage1); - //发送消息 - sendRecordMessage(sensorMessage1,userIdSet,null,null); - //第二个传感器 - CarRecordMessageDto sensorMessage2 = new CarRecordMessageDto(); - BeanUtil.copyProperties(carRecordMessageDto,sensorMessage2); - sensorMessage2.setType(Constant.Car.WEIGHT_SENSOR_2); - sensorMessage2.setValue(sensor2 + ""); - log.info("传感器二数据:{}",sensorMessage2); - //发送消息 - sendRecordMessage(sensorMessage2,userIdSet,null,null); - //第三个传感器 - CarRecordMessageDto sensorMessage3 = new CarRecordMessageDto(); - BeanUtil.copyProperties(carRecordMessageDto,sensorMessage3); - sensorMessage3.setType(Constant.Car.WEIGHT_SENSOR_3); - sensorMessage3.setValue(sensor3 + ""); - log.info("传感器三数据:{}",sensorMessage3); - //发送消息 - sendRecordMessage(sensorMessage3,userIdSet,null,null); - //第四个传感器 - CarRecordMessageDto sensorMessage4 = new CarRecordMessageDto(); - BeanUtil.copyProperties(carRecordMessageDto,sensorMessage4); - sensorMessage4.setType(Constant.Car.WEIGHT_SENSOR_4); - sensorMessage4.setValue(sensor4 + ""); - log.info("传感器四数据:{}",sensorMessage4); - //发送消息 - sendRecordMessage(sensorMessage4,userIdSet,null,null); - } - - /** - * 发送提醒消息 - * @param content 发送内容 - * @param userIds 接收者 - * @throws Exception 异常 - */ - private void sendRemindMessage(String content,List userIds) throws Exception { - RemindMessageVo messageVo = new RemindMessageVo(content); - String s = JacksonUtil.beanToJson(messageVo); - Set userIdSet = new HashSet<>(); - userIds.forEach(id->userIdSet.add(String.valueOf(id))); - sendMessage(userIdSet, s); - } - /** - * 发送消息 - */ - private void sendRecordMessage(CarRecordMessageDto carRecordMessageDto,Set userIdSet,String stepCode,Byte stepType) throws Exception { - CarRecordMessageVo carRecordMessageVo = new CarRecordMessageVo(carRecordMessageDto.getAuthId(),carRecordMessageDto.getType(), - carRecordMessageDto.getValue(),carRecordMessageDto.getTime(),stepCode,stepType); - String s = JacksonUtil.beanToJson(carRecordMessageVo); - sendMessage(userIdSet, s); - } - - private void sendMessage(Set userIdSet, String s) throws Exception { - MessageRule messageRule = MessageRule.defaultRule(MessageConstant.DomainType.User); - messageRule.setAckRule(MessageRule.AckRule.NONE); - messageRule.setOfflineDiscard((byte) 1); - InMessage inMessage = InMessage.newToUserMessage(null, userIdSet, null, messageRule, s); - log.info("发送消息:{}", inMessage); - //发送消息 - messageService.sendTo(inMessage); - } - - @Override - public List queryWeightAndRfid(RecordDto.WeightAndRfid param, Long userId) { - List list = queryRecord(param.getCarId(), param.getStartTime(), param.getEndTime(), param.getTypes()); - return list; - } - private List queryRecord(Long carId, Long startTime, Long endTime, byte[] types) { - List records = new ArrayList<>(); - if (types == null || types.length == 0) { - log.info("没有输入查询记录类型,直接返回"); - return records; - } - - for (byte type : types) { - List list = carRecordDao.queryRecords(carId, startTime, endTime, type); - RecordVo.WeightAndRfid prev = null; - for (int i = 0; i < list.size(); i++) { - RecordVo.WeightAndRfid cur = list.get(i); - if (i == 0) { - records.add(cur); - prev = cur; - continue; - } - // i > 0 && cur.type == prev.type - //称重 - if (cur.getType() == Constant.Car.CAR_RECORD_WEIGHT) { - // 重量差大于10KG或时间间隔大于10分钟,保留 - if (Math.abs(Long.parseLong(cur.getValue()))- Long.parseLong(prev.getValue()) > weightMinus - || Math.abs(cur.getTime() - prev.getTime()) > timeMinus) { - records.add(cur); - prev = cur; - } - continue; - } - // 非称重 值不重复 或 非称重 值重复 最后一条数据 - if(!cur.getValue().equals(prev.getValue()) || i == list.size() -1){ - records.add(cur); - - } else if (!cur.getValue().equals(list.get(i+1).getValue()) ) { - // 非称重 值重复 非最后一条数据 - // 判断与下一个是否一致,一致,则不保留第一个和最后一个 - records.add(cur); - } - prev = cur; - } - } - if (types.length > 1 && CollectionUtil.isNotEmpty(records)) { - log.info("重新排序"); - Collections.sort(records, (o1, o2) ->{ - log.info("o1:{},o2:{}",o1,o2); - if (o1 == null || o1.getTime() == null) { - if (o2 == null || o2.getTime() == null) { - return 0; - } - return -1; - } - if (o2 == null || o2.getTime() == null) { - return -1; - } - return o1.getTime() - o2.getTime() > 0 ? 1 : -1; - } ); - } - return records; - } - @Override - public Workbook exportWeightAndRfid(RecordDto.WeightAndRfidExport param) { - log.info("数据导出:{}", param); - List list = queryRecord(param.getCarId(), param.getStartTime(), param.getEndTime(), param.getTypes()); - SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); - // 参数封装 - List> rows = new ArrayList<>(); - // 标题 - List headRow = new ArrayList<>(); - PoiUtil.PoiUtilCell headCell = new PoiUtil.PoiUtilCell(); - headCell.setColspan(4); - headCell.setValue("智慧平车记录"); - headRow.add(headCell); - rows.add(headRow); - log.info("标题:{}", headCell); - // 表头 - List titleRow = new ArrayList<>(); - titleRow.add(new PoiUtil.PoiUtilCell("序号")); - titleRow.add(new PoiUtil.PoiUtilCell("时间")); - titleRow.add(new PoiUtil.PoiUtilCell("类型")); - titleRow.add(new PoiUtil.PoiUtilCell("数据")); - rows.add(titleRow); - log.info("表头:{}", titleRow); - - for (int i = 0; i < list.size(); i++) { - RecordVo.WeightAndRfid record = list.get(i); - List row = new ArrayList<>(); - row.add(new PoiUtil.PoiUtilCell("" + (i + 1))); - Date time = new Date(); - time.setTime(record.getTime()); - row.add(new PoiUtil.PoiUtilCell(sdf.format(time))); - String type = "称重"; - switch (record.getType()) { - case Constant.Car.CAR_RECORD_WEIGHT: type = "称重";break; - case Constant.Car.CAR_RECORD_RFID: type = "RFID";break; - case Constant.Car.WEIGHT_SENSOR_1: type = "称重1";break; - case Constant.Car.WEIGHT_SENSOR_2: type = "称重2";break; - case Constant.Car.WEIGHT_SENSOR_3: type = "称重3";break; - case Constant.Car.WEIGHT_SENSOR_4: type = "称重4";break; - case Constant.Car.SHAKE_SENSOR: type = "震动";break; - case Constant.Car.THROMBOLYTIC: type = "剂量";break; - } - row.add(new PoiUtil.PoiUtilCell(type)); - row.add(new PoiUtil.PoiUtilCell(record.getType() == Constant.Car.CAR_RECORD_WEIGHT ? new BigDecimal(record.getValue()).divide(new BigDecimal(1000), 3).toString() + "Kg" : record.getType() == Constant.Car.CAR_RECORD_RFID ? record.getName() : record.getValue())); - rows.add(row); - } - log.info("数据:{}", list.size()); - //生成一个excel文件 - - Workbook workbook = new XSSFWorkbook(); - PoiUtil.exportWB("智慧平车记录",rows, workbook); - return workbook; - } - - -} diff --git a/src/main/java/com/ccsens/carbasics/service/StatisticalService.java b/src/main/java/com/ccsens/carbasics/service/StatisticalService.java index bed2854..c56bb58 100644 --- a/src/main/java/com/ccsens/carbasics/service/StatisticalService.java +++ b/src/main/java/com/ccsens/carbasics/service/StatisticalService.java @@ -1,25 +1,11 @@ package com.ccsens.carbasics.service; -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.util.ObjectUtil; -import com.ccsens.carbasics.bean.dto.StatisticalDto; -import com.ccsens.carbasics.bean.vo.StatisticalVo; -import com.ccsens.carbasics.bean.vo.StatisticsVo; -import com.ccsens.carbasics.persist.dao.DoctorDao; -import com.ccsens.carbasics.persist.dao.FirstAidDao; -import com.ccsens.carbasics.persist.dao.HospitalDao; -import com.ccsens.carbasics.persist.dao.StepDao; -import com.ccsens.carbasics.util.DefaultCodeError; -import com.ccsens.util.exception.BaseException; + 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.ArrayList; -import java.util.List; - /** * @description: 统计查询 * @author: whj @@ -30,115 +16,5 @@ import java.util.List; @Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) public class StatisticalService implements IStatisticalService { - @Resource - private StepDao stepDao; - @Resource - private FirstAidDao firstAidDao; - @Resource - private HospitalDao hospitalDao; - @Resource - private DoctorDao doctorDao; - - - - @Override - public List queryStep(StatisticalDto.QueryStep param, Long userId) { - return stepDao.queryCompleteStatus(param.getProjectId()); - } - - @Override - public List queryQuality(StatisticalDto.Quality param, Long userId) { - Long hospitalId = hospitalDao.getHospitalIdByDoctorId(userId); - - List qualities = firstAidDao.queryQuality(param, hospitalId); - if (CollectionUtil.isEmpty(qualities)) { - return qualities; - } - qualities.forEach(quality -> { - quality.setMedian(firstAidDao.getMedian(quality.getDate(), param.getType())); - }); - return qualities; - } - - @Override - public List queryEveryDayQuality(Long userId) { - Long hospitalId = hospitalDao.getHospitalIdByDoctorId(userId); - List days = firstAidDao.queryThrombolyticDay(hospitalId); - List dayQualities = new ArrayList<>(); - if (CollectionUtil.isEmpty(days)) { - return dayQualities; - } - byte type = 2; - days.forEach(day -> { - StatisticalVo.DayQuality dayQuality = new StatisticalVo.DayQuality(); - dayQuality.setDate(day); - dayQuality.setMedian(firstAidDao.getMedian(day, type)); - dayQualities.add(dayQuality); - }); - return dayQualities; - } - - @Override - public StatisticsVo.PointTimeList getPointTime(StatisticalDto.PointTime param, Long userId) { - //根据userId查找医院id - Long hospitalId = hospitalDao.getHospitalIdByProjectId(param.getProjectId()); - if(ObjectUtil.isNull(hospitalId)){ - throw new BaseException(DefaultCodeError.NO_HOSPITAL); - } - - //当前数据 - List pointTimeCurrent = new ArrayList<>(); - List steps = stepDao.queryCompleteStatus(param.getProjectId()); - if(CollectionUtil.isNotEmpty(steps)){ - long startTime = steps.get(0).getStartTime() == null ? 0L : steps.get(0).getStartTime(); - for (StatisticalVo.Step step : steps){ - long stepTime = step.getStartTime() == null ? 0 : step.getStartTime(); - - long time = stepTime - startTime; - pointTimeCurrent.add(Math.max(time,0)); - startTime = stepTime == 0 ? startTime : stepTime; - } - } - - //医院数据 - List pointTimeHospital = stepDao.getPointTimeHospital(hospitalId); - //国际数据 - List pointTimeInternation = stepDao.getPointTimeInternation(hospitalId); - - StatisticsVo.PointTimeList pointTimeList = new StatisticsVo.PointTimeList(); - pointTimeList.setPointTimeCurrentList(pointTimeCurrent); - pointTimeList.setPointTimeHospital(pointTimeHospital); - pointTimeList.setPointTimeInternation(pointTimeInternation); - return pointTimeList; - } - - - @Override - public StatisticsVo.UseNumsVo selResult(StatisticalDto.SelResult param, Long userId) { - //根据userId查找医院id - Long hospitalId = hospitalDao.getHospitalIdByProjectId(param.getProjectId()); - - StatisticsVo.UseNumsVo useNumsVo=new StatisticsVo.UseNumsVo(); - List useNumVoNow = firstAidDao.selResult(hospitalId,param.getYear()); - List sumNow=new ArrayList(); - sumNow.add(useNumVoNow.get(0)); - for (int i = 1; i < useNumVoNow.size(); i++) { - sumNow.add(useNumVoNow.get(i)+sumNow.get(i-1)); - } - useNumsVo.setSigleNow(useNumVoNow); - useNumsVo.setSumNow(sumNow); - //往年 - Integer yaer=Integer.valueOf(param.getYear()); - yaer=yaer-1; - List useNumVosLast = firstAidDao.selResult(hospitalId,yaer.toString()); - List sumLast = new ArrayList(); - sumLast.add(useNumVosLast.get(0)); - for (int i = 1; i < useNumVosLast.size(); i++) { - sumLast.add(useNumVosLast.get(i)+sumLast.get(i-1)); - } - useNumsVo.setSigleLast(useNumVosLast); - useNumsVo.setSumLast(sumLast); - return useNumsVo; - } } \ No newline at end of file diff --git a/src/main/java/com/ccsens/carbasics/service/WorkerService.java b/src/main/java/com/ccsens/carbasics/service/WorkerService.java deleted file mode 100644 index def272e..0000000 --- a/src/main/java/com/ccsens/carbasics/service/WorkerService.java +++ /dev/null @@ -1,98 +0,0 @@ -package com.ccsens.carbasics.service; - -import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.lang.Snowflake; -import cn.hutool.core.util.ObjectUtil; -import com.ccsens.carbasics.bean.dto.WorkerDto; -import com.ccsens.carbasics.bean.po.AttendanceRecord; -import com.ccsens.carbasics.bean.po.Doctor; -import com.ccsens.carbasics.bean.vo.WorkerVo; -import com.ccsens.carbasics.persist.dao.AttendanceRecordDao; -import com.ccsens.carbasics.persist.dao.DoctorDao; -import com.ccsens.carbasics.persist.dao.FirstAidDao; -import com.ccsens.carbasics.util.DefaultCodeError; -import com.ccsens.util.exception.BaseException; -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.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.stream.Collectors; - -@Slf4j -@Service -@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) -public class WorkerService implements IWorkerService { - - @Resource - private Snowflake snowflake; - @Resource - private FirstAidDao firstAidDao; - @Resource - private AttendanceRecordDao attendanceRecordDao; - @Resource - private DoctorDao doctorDao; - - @Override - public void addArriveWorker(WorkerDto.AddArriveWorker param, Long userId) { - Long firstAidId = firstAidDao.getIdByProjectId(param.getProjectId()); - if (ObjectUtil.isNull(firstAidId)){ - throw new BaseException(DefaultCodeError.PROJECT_ERROR); - } - if (CollectionUtil.isNotEmpty(param.getWorkerInfoList())){ - List attendanceRecords = new ArrayList<>(); - for (WorkerDto.WorkerInfo workerInfo : param.getWorkerInfoList()) { - AttendanceRecord attendanceRecord = new AttendanceRecord(); - attendanceRecord.setId(snowflake.nextId()); - attendanceRecord.setFirstAidId(firstAidId); - attendanceRecord.setStepId(workerInfo.getStepId()); - attendanceRecord.setName(workerInfo.getName()); - attendanceRecord.setUserId(userId); - attendanceRecord.setType((byte)1); - attendanceRecord.setTime(workerInfo.getTime()); - attendanceRecord.setOperator(userId); - attendanceRecords.add(attendanceRecord); - } - attendanceRecordDao.insertAllRecord(attendanceRecords); - }else{ - throw new BaseException(DefaultCodeError.ARRIVE_WORKER_ERROR); - } - } - - @Override - public List queryArriveWorker(WorkerDto.QueryArriveWorker param, Long userId) { - Long firstAidId = firstAidDao.getIdByProjectId(param.getProjectId()); - if (ObjectUtil.isNull(firstAidId)){ - throw new BaseException(DefaultCodeError.PROJECT_ERROR); - } - return attendanceRecordDao.queryArriveWorkerByAidId(firstAidId); - } - - @Override - public Map> queryAllDoctor(Long userId) { - Doctor doctor = doctorDao.findByUserId(userId); - if (ObjectUtil.isNull(doctor)){ - throw new BaseException(DefaultCodeError.NO_POWER); - } - Long hospitalId = doctor.getHospitalId(); - long currentTime = System.currentTimeMillis(); - - List allDoctorList = doctorDao.findAllDoctor(hospitalId,currentTime); - if (CollectionUtil.isNotEmpty(allDoctorList)){ - for (WorkerVo.AllDoctor allDoctor : allDoctorList) { - if (ObjectUtil.isNull(allDoctor.getWorkingId())){ - allDoctor.setOnDutyStatus((byte)0); - }else{ - allDoctor.setOnDutyStatus((byte)1); - } - } - } - Map> doctorList = allDoctorList.stream().collect(Collectors.groupingBy(WorkerVo.AllDoctor::getDepartment)); - return doctorList; - } - -} diff --git a/src/main/java/com/ccsens/carbasics/util/Constant.java b/src/main/java/com/ccsens/carbasics/util/Constant.java index b31a178..f2b791a 100644 --- a/src/main/java/com/ccsens/carbasics/util/Constant.java +++ b/src/main/java/com/ccsens/carbasics/util/Constant.java @@ -14,6 +14,27 @@ public class Constant { public static final String STRING_REGEX = ",|,|;|;|、|/"; /**xls*/ public static final String XLS = "xls"; + + + public enum DataStatus { + Create((byte) 0,"创建"), + FirstAidPass((byte) 1,"急救审核通过"), + FirstAidRefuse((byte) 2,"急救审核拒绝"), + DischargePass((byte) 3,"出院审核通过"), + DischargeRefuse((byte) 4,"出院审核拒绝"), + ApplyFor((byte) 5,"申请修改"), + ApplyForRefuse((byte) 6,"申请拒绝"), + ; + public byte status; + public String message; + + DataStatus(byte status, String message) { + this.status = status; + this.message = message; + } + + } + /**wbs相关*/ public static final class WbsExcel { /**wbsSheet*/ @@ -54,67 +75,11 @@ public class Constant { public static final String TYPE_REMIND = "Remind"; } - public final static class Car { - /** - * 平车默认急救完成时间 - */ - public static final Long COMPLETE_TIME = 2*60*60*1000L; - - /** - * 急救信息 - */ - public static final String FIRST_AID = "first_aid_"; - /** - * redis存储时间:五小时 (秒) - */ - public static final Long FIRST_AID_REDIS_TIME = 5 * 60 * 60L; - /**开始*/ - public static final byte CAR_RECORD_START = 0; - /**体重*/ - public static final byte CAR_RECORD_WEIGHT = 1; - /**rfid*/ - public static final byte CAR_RECORD_RFID = 2; - /**称重传感器一*/ - public static final byte WEIGHT_SENSOR_1 = 3; - /**称重传感器二*/ - public static final byte WEIGHT_SENSOR_2 = 4; - /**称重传感器三*/ - public static final byte WEIGHT_SENSOR_3 = 5; - /**称重传感器四*/ - public static final byte WEIGHT_SENSOR_4 = 6; - /**振动传感器(倾角传感器)*/ - public static final byte SHAKE_SENSOR = 7; - /**溶栓剂量*/ - public static final byte THROMBOLYTIC = 8; - /**团注剂量*/ - public static final byte BOLUS_DOSE = 9; - /**维持剂量*/ - public static final byte MAINTENANCE_DOSE = 10; - - /**rfid类型:人员*/ - public static final byte RFID_TYPE_USER = 03; - - /**急诊*/ - public static final byte POST_EMERGENCY_TREATMENT = 1; - /**环节*/ - public static final String STEP_FRONT_LINE= "2"; - public static final String STEP_SECOND_LINE= "6"; - - /**推送成功*/ - public static final byte PUSH_STATUS_SUCCESS = 2; - /**推送失败*/ - public static final byte PUSH_STATUS_FAIL = 1; - /**未推送*/ - public static final byte PUSH_STATUS_NO = 0; - /**数据来源:用户*/ - public static final byte OPERATION_USER = 1; - /**数据来源:平车*/ - public static final byte OPERATION_CAR = 0; - /**环节:真实*/ - public static final byte STEP_TYPE_REAL = 0; - } - public final static class QuestionCode { + /**急救的大code*/ + public static final String FIRST_AID = "FIRST_AID"; + /**出院*/ + public static final String DISCHARGE = "DISCHARGE"; /**分诊时间(启动绿道时间)*/ public static final String FZSJ = "FZSJ"; /**转归*/ diff --git a/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java b/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java index b7aaa15..e3b9580 100644 --- a/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java +++ b/src/main/java/com/ccsens/carbasics/util/DefaultCodeError.java @@ -28,6 +28,7 @@ public class DefaultCodeError extends CodeError { public static final Code ARRIVE_WORKER_ERROR = new Code(16,"到场人员信息错误", true); public static final Code NO_POWER = new Code(17,"权限不足", true); public static final Code NO_HOSPITAL = new Code(18,"未查到对应的医院信息", true); + public static final Code NO_DATA_MODIFY_PRIVILEGE = new Code(19,"没有数据修改权限", true); diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index c1c99d5..b8d6aad 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -1,7 +1,7 @@ server: - port: 7230 + port: 7240 servlet: - context-path: /v1.0 + context-path: /v4.0 spring: application: name: carbasics diff --git a/src/main/resources/application-prod.yml b/src/main/resources/application-prod.yml index 47da414..cc38766 100644 --- a/src/main/resources/application-prod.yml +++ b/src/main/resources/application-prod.yml @@ -1,7 +1,7 @@ server: - port: 7230 + port: 7240 servlet: - context-path: /v1.0 + context-path: /v4.0 spring: application: name: carbasics diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 4571618..d0b603c 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -1,7 +1,7 @@ server: - port: 7230 + port: 7240 servlet: - context-path: /v1.0 + context-path: /v4.0 spring: application: name: carbasics diff --git a/src/main/resources/mapper_dao/AttendanceRecordDao.xml b/src/main/resources/mapper_dao/AttendanceRecordDao.xml deleted file mode 100644 index 69f14c1..0000000 --- a/src/main/resources/mapper_dao/AttendanceRecordDao.xml +++ /dev/null @@ -1,35 +0,0 @@ - - - - - - INSERT INTO t_qcp_attendance_record ( - id, - first_aid_id, - step_id, - `name`, - user_id, - `type`, - `time`, - operator - ) - VALUES - - (#{item.id},#{item.firstAidId},#{item.stepId},#{item.name},#{item.userId},#{item.type},#{item.time},#{item.operator}) - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/CarRecordDao.xml b/src/main/resources/mapper_dao/CarRecordDao.xml deleted file mode 100644 index bb9a5a3..0000000 --- a/src/main/resources/mapper_dao/CarRecordDao.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/CodeParentDao.xml b/src/main/resources/mapper_dao/CodeParentDao.xml new file mode 100644 index 0000000..aa68ead --- /dev/null +++ b/src/main/resources/mapper_dao/CodeParentDao.xml @@ -0,0 +1,15 @@ + + + + + + diff --git a/src/main/resources/mapper_dao/DoctorDao.xml b/src/main/resources/mapper_dao/DoctorDao.xml deleted file mode 100644 index 5ad1089..0000000 --- a/src/main/resources/mapper_dao/DoctorDao.xml +++ /dev/null @@ -1,45 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/FirstAidMessageDao.xml b/src/main/resources/mapper_dao/FirstAidMessageDao.xml deleted file mode 100644 index 876dd81..0000000 --- a/src/main/resources/mapper_dao/FirstAidMessageDao.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/HospitalDao.xml b/src/main/resources/mapper_dao/HospitalDao.xml deleted file mode 100644 index ae0ce1e..0000000 --- a/src/main/resources/mapper_dao/HospitalDao.xml +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/PatientDao.xml b/src/main/resources/mapper_dao/PatientDao.xml index b9081c7..a072971 100644 --- a/src/main/resources/mapper_dao/PatientDao.xml +++ b/src/main/resources/mapper_dao/PatientDao.xml @@ -2,87 +2,6 @@ - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/PatientWisdomCarDao.xml b/src/main/resources/mapper_dao/PatientWisdomCarDao.xml deleted file mode 100644 index ab93fc8..0000000 --- a/src/main/resources/mapper_dao/PatientWisdomCarDao.xml +++ /dev/null @@ -1,49 +0,0 @@ - - - - - UPDATE t_qcp_patient_wisdom_car - SET end_time = #{startTime}, - operator = #{userId} - WHERE - car_id = #{carId} - AND start_time > unix_timestamp( - CURRENT_TIMESTAMP ()) * 1000 - 2 * 60 * 60 * 1000 - AND start_time < #{startTime} - AND end_time = 0 - AND rec_status = 0 - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/RfidDao.xml b/src/main/resources/mapper_dao/RfidDao.xml deleted file mode 100644 index 1f1e484..0000000 --- a/src/main/resources/mapper_dao/RfidDao.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_dao/WorkingDao.xml b/src/main/resources/mapper_dao/WorkingDao.xml deleted file mode 100644 index 9d87571..0000000 --- a/src/main/resources/mapper_dao/WorkingDao.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/src/main/resources/mapper_raw/CodeDictionariesMapper.xml b/src/main/resources/mapper_raw/CodeDictionariesMapper.xml index 85bcc60..196c2b3 100644 --- a/src/main/resources/mapper_raw/CodeDictionariesMapper.xml +++ b/src/main/resources/mapper_raw/CodeDictionariesMapper.xml @@ -1,306 +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, question, question_code, parent_code, hospital_id, task_name, step_id, operator, - created_at, updated_at, rec_status - - - - - delete from t_qcp_code_dictionaries - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_code_dictionaries - - - - - - insert into t_qcp_code_dictionaries (id, question, question_code, - parent_code, hospital_id, task_name, - step_id, operator, created_at, - updated_at, rec_status) - values (#{id,jdbcType=BIGINT}, #{question,jdbcType=VARCHAR}, #{questionCode,jdbcType=VARCHAR}, - #{parentCode,jdbcType=VARCHAR}, #{hospitalId,jdbcType=BIGINT}, #{taskName,jdbcType=VARCHAR}, - #{stepId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_code_dictionaries - - - id, - - - question, - - - question_code, - - - parent_code, - - - hospital_id, - - - task_name, - - - step_id, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{question,jdbcType=VARCHAR}, - - - #{questionCode,jdbcType=VARCHAR}, - - - #{parentCode,jdbcType=VARCHAR}, - - - #{hospitalId,jdbcType=BIGINT}, - - - #{taskName,jdbcType=VARCHAR}, - - - #{stepId,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_code_dictionaries - - - id = #{record.id,jdbcType=BIGINT}, - - - question = #{record.question,jdbcType=VARCHAR}, - - - question_code = #{record.questionCode,jdbcType=VARCHAR}, - - - parent_code = #{record.parentCode,jdbcType=VARCHAR}, - - - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - - - task_name = #{record.taskName,jdbcType=VARCHAR}, - - - step_id = #{record.stepId,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_qcp_code_dictionaries - set id = #{record.id,jdbcType=BIGINT}, - question = #{record.question,jdbcType=VARCHAR}, - question_code = #{record.questionCode,jdbcType=VARCHAR}, - parent_code = #{record.parentCode,jdbcType=VARCHAR}, - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - task_name = #{record.taskName,jdbcType=VARCHAR}, - step_id = #{record.stepId,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_qcp_code_dictionaries - - - question = #{question,jdbcType=VARCHAR}, - - - question_code = #{questionCode,jdbcType=VARCHAR}, - - - parent_code = #{parentCode,jdbcType=VARCHAR}, - - - hospital_id = #{hospitalId,jdbcType=BIGINT}, - - - task_name = #{taskName,jdbcType=VARCHAR}, - - - step_id = #{stepId,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_qcp_code_dictionaries - set question = #{question,jdbcType=VARCHAR}, - question_code = #{questionCode,jdbcType=VARCHAR}, - parent_code = #{parentCode,jdbcType=VARCHAR}, - hospital_id = #{hospitalId,jdbcType=BIGINT}, - task_name = #{taskName,jdbcType=VARCHAR}, - step_id = #{stepId,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} - + + + + + + + + + + + + + + + + + + + + + + + + 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, question, question_code, hospital_id, task_name, step_id, operator, created_at, + updated_at, rec_status + + + + + delete from t_qcp_code_dictionaries + where id = #{id,jdbcType=BIGINT} + + + delete from t_qcp_code_dictionaries + + + + + + insert into t_qcp_code_dictionaries (id, question, question_code, + hospital_id, task_name, step_id, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{question,jdbcType=VARCHAR}, #{questionCode,jdbcType=VARCHAR}, + #{hospitalId,jdbcType=BIGINT}, #{taskName,jdbcType=VARCHAR}, #{stepId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_qcp_code_dictionaries + + + id, + + + question, + + + question_code, + + + hospital_id, + + + task_name, + + + step_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{question,jdbcType=VARCHAR}, + + + #{questionCode,jdbcType=VARCHAR}, + + + #{hospitalId,jdbcType=BIGINT}, + + + #{taskName,jdbcType=VARCHAR}, + + + #{stepId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_qcp_code_dictionaries + + + id = #{record.id,jdbcType=BIGINT}, + + + question = #{record.question,jdbcType=VARCHAR}, + + + question_code = #{record.questionCode,jdbcType=VARCHAR}, + + + hospital_id = #{record.hospitalId,jdbcType=BIGINT}, + + + task_name = #{record.taskName,jdbcType=VARCHAR}, + + + step_id = #{record.stepId,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_qcp_code_dictionaries + set id = #{record.id,jdbcType=BIGINT}, + question = #{record.question,jdbcType=VARCHAR}, + question_code = #{record.questionCode,jdbcType=VARCHAR}, + hospital_id = #{record.hospitalId,jdbcType=BIGINT}, + task_name = #{record.taskName,jdbcType=VARCHAR}, + step_id = #{record.stepId,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_qcp_code_dictionaries + + + question = #{question,jdbcType=VARCHAR}, + + + question_code = #{questionCode,jdbcType=VARCHAR}, + + + hospital_id = #{hospitalId,jdbcType=BIGINT}, + + + task_name = #{taskName,jdbcType=VARCHAR}, + + + step_id = #{stepId,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_qcp_code_dictionaries + set question = #{question,jdbcType=VARCHAR}, + question_code = #{questionCode,jdbcType=VARCHAR}, + hospital_id = #{hospitalId,jdbcType=BIGINT}, + task_name = #{taskName,jdbcType=VARCHAR}, + step_id = #{stepId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/WorkingMapper.xml b/src/main/resources/mapper_raw/CodeParentMapper.xml similarity index 67% rename from src/main/resources/mapper_raw/WorkingMapper.xml rename to src/main/resources/mapper_raw/CodeParentMapper.xml index 6645cda..017f177 100644 --- a/src/main/resources/mapper_raw/WorkingMapper.xml +++ b/src/main/resources/mapper_raw/CodeParentMapper.xml @@ -1,275 +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, doctor_id, start_time, end_time, post, operator, created_at, updated_at, rec_status - - - - - delete from t_qcp_working - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_working - - - - - - insert into t_qcp_working (id, doctor_id, start_time, - end_time, post, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT}, - #{endTime,jdbcType=BIGINT}, #{post,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_working - - - id, - - - doctor_id, - - - start_time, - - - end_time, - - - post, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{doctorId,jdbcType=BIGINT}, - - - #{startTime,jdbcType=BIGINT}, - - - #{endTime,jdbcType=BIGINT}, - - - #{post,jdbcType=TINYINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_working - - - id = #{record.id,jdbcType=BIGINT}, - - - doctor_id = #{record.doctorId,jdbcType=BIGINT}, - - - start_time = #{record.startTime,jdbcType=BIGINT}, - - - end_time = #{record.endTime,jdbcType=BIGINT}, - - - post = #{record.post,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_qcp_working - set id = #{record.id,jdbcType=BIGINT}, - doctor_id = #{record.doctorId,jdbcType=BIGINT}, - start_time = #{record.startTime,jdbcType=BIGINT}, - end_time = #{record.endTime,jdbcType=BIGINT}, - post = #{record.post,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_qcp_working - - - doctor_id = #{doctorId,jdbcType=BIGINT}, - - - start_time = #{startTime,jdbcType=BIGINT}, - - - end_time = #{endTime,jdbcType=BIGINT}, - - - post = #{post,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_qcp_working - set doctor_id = #{doctorId,jdbcType=BIGINT}, - start_time = #{startTime,jdbcType=BIGINT}, - end_time = #{endTime,jdbcType=BIGINT}, - post = #{post,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} - + + + + + + + + + + + + + + + + + + + + + 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, question_code, parent_code, operator, created_at, updated_at, rec_status + + + + + delete from t_qcp_code_parent + where id = #{id,jdbcType=BIGINT} + + + delete from t_qcp_code_parent + + + + + + insert into t_qcp_code_parent (id, question_code, parent_code, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{questionCode,jdbcType=VARCHAR}, #{parentCode,jdbcType=VARCHAR}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_qcp_code_parent + + + id, + + + question_code, + + + parent_code, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{questionCode,jdbcType=VARCHAR}, + + + #{parentCode,jdbcType=VARCHAR}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_qcp_code_parent + + + id = #{record.id,jdbcType=BIGINT}, + + + question_code = #{record.questionCode,jdbcType=VARCHAR}, + + + parent_code = #{record.parentCode,jdbcType=VARCHAR}, + + + operator = #{record.operator,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_qcp_code_parent + set id = #{record.id,jdbcType=BIGINT}, + question_code = #{record.questionCode,jdbcType=VARCHAR}, + parent_code = #{record.parentCode,jdbcType=VARCHAR}, + operator = #{record.operator,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_qcp_code_parent + + + question_code = #{questionCode,jdbcType=VARCHAR}, + + + parent_code = #{parentCode,jdbcType=VARCHAR}, + + + operator = #{operator,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_qcp_code_parent + set question_code = #{questionCode,jdbcType=VARCHAR}, + parent_code = #{parentCode,jdbcType=VARCHAR}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/DoctorMapper.xml b/src/main/resources/mapper_raw/DoctorMapper.xml deleted file mode 100644 index 33e1939..0000000 --- a/src/main/resources/mapper_raw/DoctorMapper.xml +++ /dev/null @@ -1,353 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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, post, department, hospital_id, name, serial, phone, gender, rfid, user_id, operator, - created_at, updated_at, rec_status - - - - - delete from t_qcp_doctor - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_doctor - - - - - - insert into t_qcp_doctor (id, post, department, - hospital_id, name, serial, - phone, gender, rfid, - user_id, operator, created_at, - updated_at, rec_status) - values (#{id,jdbcType=BIGINT}, #{post,jdbcType=TINYINT}, #{department,jdbcType=TINYINT}, - #{hospitalId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{serial,jdbcType=VARCHAR}, - #{phone,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, #{rfid,jdbcType=VARCHAR}, - #{userId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_doctor - - - id, - - - post, - - - department, - - - hospital_id, - - - name, - - - serial, - - - phone, - - - gender, - - - rfid, - - - user_id, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{post,jdbcType=TINYINT}, - - - #{department,jdbcType=TINYINT}, - - - #{hospitalId,jdbcType=BIGINT}, - - - #{name,jdbcType=VARCHAR}, - - - #{serial,jdbcType=VARCHAR}, - - - #{phone,jdbcType=VARCHAR}, - - - #{gender,jdbcType=TINYINT}, - - - #{rfid,jdbcType=VARCHAR}, - - - #{userId,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_doctor - - - id = #{record.id,jdbcType=BIGINT}, - - - post = #{record.post,jdbcType=TINYINT}, - - - department = #{record.department,jdbcType=TINYINT}, - - - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - serial = #{record.serial,jdbcType=VARCHAR}, - - - phone = #{record.phone,jdbcType=VARCHAR}, - - - gender = #{record.gender,jdbcType=TINYINT}, - - - rfid = #{record.rfid,jdbcType=VARCHAR}, - - - user_id = #{record.userId,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_qcp_doctor - set id = #{record.id,jdbcType=BIGINT}, - post = #{record.post,jdbcType=TINYINT}, - department = #{record.department,jdbcType=TINYINT}, - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - name = #{record.name,jdbcType=VARCHAR}, - serial = #{record.serial,jdbcType=VARCHAR}, - phone = #{record.phone,jdbcType=VARCHAR}, - gender = #{record.gender,jdbcType=TINYINT}, - rfid = #{record.rfid,jdbcType=VARCHAR}, - user_id = #{record.userId,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_qcp_doctor - - - post = #{post,jdbcType=TINYINT}, - - - department = #{department,jdbcType=TINYINT}, - - - hospital_id = #{hospitalId,jdbcType=BIGINT}, - - - name = #{name,jdbcType=VARCHAR}, - - - serial = #{serial,jdbcType=VARCHAR}, - - - phone = #{phone,jdbcType=VARCHAR}, - - - gender = #{gender,jdbcType=TINYINT}, - - - rfid = #{rfid,jdbcType=VARCHAR}, - - - user_id = #{userId,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_qcp_doctor - set post = #{post,jdbcType=TINYINT}, - department = #{department,jdbcType=TINYINT}, - hospital_id = #{hospitalId,jdbcType=BIGINT}, - name = #{name,jdbcType=VARCHAR}, - serial = #{serial,jdbcType=VARCHAR}, - phone = #{phone,jdbcType=VARCHAR}, - gender = #{gender,jdbcType=TINYINT}, - rfid = #{rfid,jdbcType=VARCHAR}, - user_id = #{userId,jdbcType=BIGINT}, - operator = #{operator,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - - \ No newline at end of file diff --git a/src/main/resources/mapper_raw/PatientWisdomCarMapper.xml b/src/main/resources/mapper_raw/FirstAidLogMapper.xml similarity index 68% rename from src/main/resources/mapper_raw/PatientWisdomCarMapper.xml rename to src/main/resources/mapper_raw/FirstAidLogMapper.xml index dfc520e..da2fb09 100644 --- a/src/main/resources/mapper_raw/PatientWisdomCarMapper.xml +++ b/src/main/resources/mapper_raw/FirstAidLogMapper.xml @@ -1,276 +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, first_aid_id, car_id, start_time, end_time, operator, created_at, updated_at, - rec_status - - - - - delete from t_qcp_patient_wisdom_car - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_patient_wisdom_car - - - - - - insert into t_qcp_patient_wisdom_car (id, first_aid_id, car_id, - start_time, end_time, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{carId,jdbcType=BIGINT}, - #{startTime,jdbcType=BIGINT}, #{endTime,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_patient_wisdom_car - - - id, - - - first_aid_id, - - - car_id, - - - start_time, - - - end_time, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{firstAidId,jdbcType=BIGINT}, - - - #{carId,jdbcType=BIGINT}, - - - #{startTime,jdbcType=BIGINT}, - - - #{endTime,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_patient_wisdom_car - - - id = #{record.id,jdbcType=BIGINT}, - - - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - - - car_id = #{record.carId,jdbcType=BIGINT}, - - - start_time = #{record.startTime,jdbcType=BIGINT}, - - - end_time = #{record.endTime,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_qcp_patient_wisdom_car - set id = #{record.id,jdbcType=BIGINT}, - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - car_id = #{record.carId,jdbcType=BIGINT}, - start_time = #{record.startTime,jdbcType=BIGINT}, - end_time = #{record.endTime,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_qcp_patient_wisdom_car - - - first_aid_id = #{firstAidId,jdbcType=BIGINT}, - - - car_id = #{carId,jdbcType=BIGINT}, - - - start_time = #{startTime,jdbcType=BIGINT}, - - - end_time = #{endTime,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_qcp_patient_wisdom_car - set first_aid_id = #{firstAidId,jdbcType=BIGINT}, - car_id = #{carId,jdbcType=BIGINT}, - start_time = #{startTime,jdbcType=BIGINT}, - end_time = #{endTime,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} - + + + + + + + + + + + + + + + + + + + + + + + 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, first_aid_id, operation_time, operation_user_id, operation_type, operation_role, + created_at, updated_at, rec_status + + + + + delete from t_qcp_first_aid_log + where id = #{id,jdbcType=BIGINT} + + + delete from t_qcp_first_aid_log + + + + + + insert into t_qcp_first_aid_log (id, first_aid_id, operation_time, + operation_user_id, operation_type, operation_role, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{operationTime,jdbcType=BIGINT}, + #{operationUserId,jdbcType=BIGINT}, #{operationType,jdbcType=TINYINT}, #{operationRole,jdbcType=TINYINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_qcp_first_aid_log + + + id, + + + first_aid_id, + + + operation_time, + + + operation_user_id, + + + operation_type, + + + operation_role, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{firstAidId,jdbcType=BIGINT}, + + + #{operationTime,jdbcType=BIGINT}, + + + #{operationUserId,jdbcType=BIGINT}, + + + #{operationType,jdbcType=TINYINT}, + + + #{operationRole,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_qcp_first_aid_log + + + id = #{record.id,jdbcType=BIGINT}, + + + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + + + operation_time = #{record.operationTime,jdbcType=BIGINT}, + + + operation_user_id = #{record.operationUserId,jdbcType=BIGINT}, + + + operation_type = #{record.operationType,jdbcType=TINYINT}, + + + operation_role = #{record.operationRole,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_qcp_first_aid_log + set id = #{record.id,jdbcType=BIGINT}, + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + operation_time = #{record.operationTime,jdbcType=BIGINT}, + operation_user_id = #{record.operationUserId,jdbcType=BIGINT}, + operation_type = #{record.operationType,jdbcType=TINYINT}, + operation_role = #{record.operationRole,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_qcp_first_aid_log + + + first_aid_id = #{firstAidId,jdbcType=BIGINT}, + + + operation_time = #{operationTime,jdbcType=BIGINT}, + + + operation_user_id = #{operationUserId,jdbcType=BIGINT}, + + + operation_type = #{operationType,jdbcType=TINYINT}, + + + operation_role = #{operationRole,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_qcp_first_aid_log + set first_aid_id = #{firstAidId,jdbcType=BIGINT}, + operation_time = #{operationTime,jdbcType=BIGINT}, + operation_user_id = #{operationUserId,jdbcType=BIGINT}, + operation_type = #{operationType,jdbcType=TINYINT}, + operation_role = #{operationRole,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/FirstAidMapper.xml b/src/main/resources/mapper_raw/FirstAidMapper.xml index b145d8d..8379ff0 100644 --- a/src/main/resources/mapper_raw/FirstAidMapper.xml +++ b/src/main/resources/mapper_raw/FirstAidMapper.xml @@ -1,465 +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, patient_id, project_id, type, value_type, save_type, kinsfolk_phone, medical_record_num, - parient_sn, time, hospital_stroke, arrive_hospital_time, hospitalized_time, last_normal_time, - pathway, in_hospital_type, operator, created_at, updated_at, rec_status, time_type - - - - - delete from t_qcp_first_aid - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_first_aid - - - - - - insert into t_qcp_first_aid (id, patient_id, project_id, - type, value_type, save_type, - kinsfolk_phone, medical_record_num, parient_sn, - time, hospital_stroke, arrive_hospital_time, - hospitalized_time, last_normal_time, pathway, - in_hospital_type, operator, created_at, - updated_at, rec_status, time_type - ) - values (#{id,jdbcType=BIGINT}, #{patientId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, - #{type,jdbcType=TINYINT}, #{valueType,jdbcType=TINYINT}, #{saveType,jdbcType=TINYINT}, - #{kinsfolkPhone,jdbcType=VARCHAR}, #{medicalRecordNum,jdbcType=VARCHAR}, #{parientSn,jdbcType=VARCHAR}, - #{time,jdbcType=BIGINT}, #{hospitalStroke,jdbcType=TINYINT}, #{arriveHospitalTime,jdbcType=BIGINT}, - #{hospitalizedTime,jdbcType=BIGINT}, #{lastNormalTime,jdbcType=BIGINT}, #{pathway,jdbcType=VARCHAR}, - #{inHospitalType,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{timeType,jdbcType=TINYINT} - ) - - - insert into t_qcp_first_aid - - - id, - - - patient_id, - - - project_id, - - - type, - - - value_type, - - - save_type, - - - kinsfolk_phone, - - - medical_record_num, - - - parient_sn, - - - time, - - - hospital_stroke, - - - arrive_hospital_time, - - - hospitalized_time, - - - last_normal_time, - - - pathway, - - - in_hospital_type, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - time_type, - - - - - #{id,jdbcType=BIGINT}, - - - #{patientId,jdbcType=BIGINT}, - - - #{projectId,jdbcType=BIGINT}, - - - #{type,jdbcType=TINYINT}, - - - #{valueType,jdbcType=TINYINT}, - - - #{saveType,jdbcType=TINYINT}, - - - #{kinsfolkPhone,jdbcType=VARCHAR}, - - - #{medicalRecordNum,jdbcType=VARCHAR}, - - - #{parientSn,jdbcType=VARCHAR}, - - - #{time,jdbcType=BIGINT}, - - - #{hospitalStroke,jdbcType=TINYINT}, - - - #{arriveHospitalTime,jdbcType=BIGINT}, - - - #{hospitalizedTime,jdbcType=BIGINT}, - - - #{lastNormalTime,jdbcType=BIGINT}, - - - #{pathway,jdbcType=VARCHAR}, - - - #{inHospitalType,jdbcType=TINYINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - #{timeType,jdbcType=TINYINT}, - - - - - - update t_qcp_first_aid - - - id = #{record.id,jdbcType=BIGINT}, - - - patient_id = #{record.patientId,jdbcType=BIGINT}, - - - project_id = #{record.projectId,jdbcType=BIGINT}, - - - type = #{record.type,jdbcType=TINYINT}, - - - value_type = #{record.valueType,jdbcType=TINYINT}, - - - save_type = #{record.saveType,jdbcType=TINYINT}, - - - kinsfolk_phone = #{record.kinsfolkPhone,jdbcType=VARCHAR}, - - - medical_record_num = #{record.medicalRecordNum,jdbcType=VARCHAR}, - - - parient_sn = #{record.parientSn,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=BIGINT}, - - - hospital_stroke = #{record.hospitalStroke,jdbcType=TINYINT}, - - - arrive_hospital_time = #{record.arriveHospitalTime,jdbcType=BIGINT}, - - - hospitalized_time = #{record.hospitalizedTime,jdbcType=BIGINT}, - - - last_normal_time = #{record.lastNormalTime,jdbcType=BIGINT}, - - - pathway = #{record.pathway,jdbcType=VARCHAR}, - - - in_hospital_type = #{record.inHospitalType,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}, - - - time_type = #{record.timeType,jdbcType=TINYINT}, - - - - - - - - update t_qcp_first_aid - set id = #{record.id,jdbcType=BIGINT}, - patient_id = #{record.patientId,jdbcType=BIGINT}, - project_id = #{record.projectId,jdbcType=BIGINT}, - type = #{record.type,jdbcType=TINYINT}, - value_type = #{record.valueType,jdbcType=TINYINT}, - save_type = #{record.saveType,jdbcType=TINYINT}, - kinsfolk_phone = #{record.kinsfolkPhone,jdbcType=VARCHAR}, - medical_record_num = #{record.medicalRecordNum,jdbcType=VARCHAR}, - parient_sn = #{record.parientSn,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=BIGINT}, - hospital_stroke = #{record.hospitalStroke,jdbcType=TINYINT}, - arrive_hospital_time = #{record.arriveHospitalTime,jdbcType=BIGINT}, - hospitalized_time = #{record.hospitalizedTime,jdbcType=BIGINT}, - last_normal_time = #{record.lastNormalTime,jdbcType=BIGINT}, - pathway = #{record.pathway,jdbcType=VARCHAR}, - in_hospital_type = #{record.inHospitalType,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}, - time_type = #{record.timeType,jdbcType=TINYINT} - - - - - - update t_qcp_first_aid - - - patient_id = #{patientId,jdbcType=BIGINT}, - - - project_id = #{projectId,jdbcType=BIGINT}, - - - type = #{type,jdbcType=TINYINT}, - - - value_type = #{valueType,jdbcType=TINYINT}, - - - save_type = #{saveType,jdbcType=TINYINT}, - - - kinsfolk_phone = #{kinsfolkPhone,jdbcType=VARCHAR}, - - - medical_record_num = #{medicalRecordNum,jdbcType=VARCHAR}, - - - parient_sn = #{parientSn,jdbcType=VARCHAR}, - - - time = #{time,jdbcType=BIGINT}, - - - hospital_stroke = #{hospitalStroke,jdbcType=TINYINT}, - - - arrive_hospital_time = #{arriveHospitalTime,jdbcType=BIGINT}, - - - hospitalized_time = #{hospitalizedTime,jdbcType=BIGINT}, - - - last_normal_time = #{lastNormalTime,jdbcType=BIGINT}, - - - pathway = #{pathway,jdbcType=VARCHAR}, - - - in_hospital_type = #{inHospitalType,jdbcType=TINYINT}, - - - operator = #{operator,jdbcType=BIGINT}, - - - created_at = #{createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{recStatus,jdbcType=TINYINT}, - - - time_type = #{timeType,jdbcType=TINYINT}, - - - where id = #{id,jdbcType=BIGINT} - - - update t_qcp_first_aid - set patient_id = #{patientId,jdbcType=BIGINT}, - project_id = #{projectId,jdbcType=BIGINT}, - type = #{type,jdbcType=TINYINT}, - value_type = #{valueType,jdbcType=TINYINT}, - save_type = #{saveType,jdbcType=TINYINT}, - kinsfolk_phone = #{kinsfolkPhone,jdbcType=VARCHAR}, - medical_record_num = #{medicalRecordNum,jdbcType=VARCHAR}, - parient_sn = #{parientSn,jdbcType=VARCHAR}, - time = #{time,jdbcType=BIGINT}, - hospital_stroke = #{hospitalStroke,jdbcType=TINYINT}, - arrive_hospital_time = #{arriveHospitalTime,jdbcType=BIGINT}, - hospitalized_time = #{hospitalizedTime,jdbcType=BIGINT}, - last_normal_time = #{lastNormalTime,jdbcType=BIGINT}, - pathway = #{pathway,jdbcType=VARCHAR}, - in_hospital_type = #{inHospitalType,jdbcType=TINYINT}, - operator = #{operator,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT}, - time_type = #{timeType,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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, gender, age, nation, idcard, phone, type, value_type, save_type, data_status, + project_id, hospital_id, operator, created_at, updated_at, rec_status + + + + + delete from t_qcp_first_aid + where id = #{id,jdbcType=BIGINT} + + + delete from t_qcp_first_aid + + + + + + insert into t_qcp_first_aid (id, name, gender, + age, nation, idcard, + phone, type, value_type, + save_type, data_status, project_id, + hospital_id, operator, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, + #{age,jdbcType=INTEGER}, #{nation,jdbcType=VARCHAR}, #{idcard,jdbcType=VARCHAR}, + #{phone,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{valueType,jdbcType=TINYINT}, + #{saveType,jdbcType=TINYINT}, #{dataStatus,jdbcType=TINYINT}, #{projectId,jdbcType=BIGINT}, + #{hospitalId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_qcp_first_aid + + + id, + + + name, + + + gender, + + + age, + + + nation, + + + idcard, + + + phone, + + + type, + + + value_type, + + + save_type, + + + data_status, + + + project_id, + + + hospital_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{gender,jdbcType=TINYINT}, + + + #{age,jdbcType=INTEGER}, + + + #{nation,jdbcType=VARCHAR}, + + + #{idcard,jdbcType=VARCHAR}, + + + #{phone,jdbcType=VARCHAR}, + + + #{type,jdbcType=TINYINT}, + + + #{valueType,jdbcType=TINYINT}, + + + #{saveType,jdbcType=TINYINT}, + + + #{dataStatus,jdbcType=TINYINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{hospitalId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_qcp_first_aid + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + gender = #{record.gender,jdbcType=TINYINT}, + + + age = #{record.age,jdbcType=INTEGER}, + + + nation = #{record.nation,jdbcType=VARCHAR}, + + + idcard = #{record.idcard,jdbcType=VARCHAR}, + + + phone = #{record.phone,jdbcType=VARCHAR}, + + + type = #{record.type,jdbcType=TINYINT}, + + + value_type = #{record.valueType,jdbcType=TINYINT}, + + + save_type = #{record.saveType,jdbcType=TINYINT}, + + + data_status = #{record.dataStatus,jdbcType=TINYINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + hospital_id = #{record.hospitalId,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_qcp_first_aid + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + gender = #{record.gender,jdbcType=TINYINT}, + age = #{record.age,jdbcType=INTEGER}, + nation = #{record.nation,jdbcType=VARCHAR}, + idcard = #{record.idcard,jdbcType=VARCHAR}, + phone = #{record.phone,jdbcType=VARCHAR}, + type = #{record.type,jdbcType=TINYINT}, + value_type = #{record.valueType,jdbcType=TINYINT}, + save_type = #{record.saveType,jdbcType=TINYINT}, + data_status = #{record.dataStatus,jdbcType=TINYINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + hospital_id = #{record.hospitalId,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_qcp_first_aid + + + name = #{name,jdbcType=VARCHAR}, + + + gender = #{gender,jdbcType=TINYINT}, + + + age = #{age,jdbcType=INTEGER}, + + + nation = #{nation,jdbcType=VARCHAR}, + + + idcard = #{idcard,jdbcType=VARCHAR}, + + + phone = #{phone,jdbcType=VARCHAR}, + + + type = #{type,jdbcType=TINYINT}, + + + value_type = #{valueType,jdbcType=TINYINT}, + + + save_type = #{saveType,jdbcType=TINYINT}, + + + data_status = #{dataStatus,jdbcType=TINYINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + hospital_id = #{hospitalId,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_qcp_first_aid + set name = #{name,jdbcType=VARCHAR}, + gender = #{gender,jdbcType=TINYINT}, + age = #{age,jdbcType=INTEGER}, + nation = #{nation,jdbcType=VARCHAR}, + idcard = #{idcard,jdbcType=VARCHAR}, + phone = #{phone,jdbcType=VARCHAR}, + type = #{type,jdbcType=TINYINT}, + value_type = #{valueType,jdbcType=TINYINT}, + save_type = #{saveType,jdbcType=TINYINT}, + data_status = #{dataStatus,jdbcType=TINYINT}, + project_id = #{projectId,jdbcType=BIGINT}, + hospital_id = #{hospitalId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/FirstAidMessageMapper.xml b/src/main/resources/mapper_raw/FirstAidMemberMapper.xml similarity index 72% rename from src/main/resources/mapper_raw/FirstAidMessageMapper.xml rename to src/main/resources/mapper_raw/FirstAidMemberMapper.xml index 8d04ceb..1ceda9d 100644 --- a/src/main/resources/mapper_raw/FirstAidMessageMapper.xml +++ b/src/main/resources/mapper_raw/FirstAidMemberMapper.xml @@ -1,258 +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, first_aid_id, content, to_user, operator, created_at, updated_at, rec_status - - - - - delete from t_qcp_first_aid_message - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_first_aid_message - - - - - - insert into t_qcp_first_aid_message (id, first_aid_id, content, - to_user, operator, created_at, - updated_at, rec_status) - values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{content,jdbcType=VARCHAR}, - #{toUser,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_first_aid_message - - - id, - - - first_aid_id, - - - content, - - - to_user, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{firstAidId,jdbcType=BIGINT}, - - - #{content,jdbcType=VARCHAR}, - - - #{toUser,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_first_aid_message - - - id = #{record.id,jdbcType=BIGINT}, - - - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - - - content = #{record.content,jdbcType=VARCHAR}, - - - to_user = #{record.toUser,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_qcp_first_aid_message - set id = #{record.id,jdbcType=BIGINT}, - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - content = #{record.content,jdbcType=VARCHAR}, - to_user = #{record.toUser,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_qcp_first_aid_message - - - first_aid_id = #{firstAidId,jdbcType=BIGINT}, - - - content = #{content,jdbcType=VARCHAR}, - - - to_user = #{toUser,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_qcp_first_aid_message - set first_aid_id = #{firstAidId,jdbcType=BIGINT}, - content = #{content,jdbcType=VARCHAR}, - to_user = #{toUser,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} - + + + + + + + + + + + + + + + + + + + + + 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, first_aid_id, create_user_id, record_user_id, created_at, updated_at, rec_status + + + + + delete from t_qcp_first_aid_member + where id = #{id,jdbcType=BIGINT} + + + delete from t_qcp_first_aid_member + + + + + + insert into t_qcp_first_aid_member (id, first_aid_id, create_user_id, + record_user_id, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{createUserId,jdbcType=BIGINT}, + #{recordUserId,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_qcp_first_aid_member + + + id, + + + first_aid_id, + + + create_user_id, + + + record_user_id, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{firstAidId,jdbcType=BIGINT}, + + + #{createUserId,jdbcType=BIGINT}, + + + #{recordUserId,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_qcp_first_aid_member + + + id = #{record.id,jdbcType=BIGINT}, + + + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + + + create_user_id = #{record.createUserId,jdbcType=BIGINT}, + + + record_user_id = #{record.recordUserId,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_qcp_first_aid_member + set id = #{record.id,jdbcType=BIGINT}, + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + create_user_id = #{record.createUserId,jdbcType=BIGINT}, + record_user_id = #{record.recordUserId,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_qcp_first_aid_member + + + first_aid_id = #{firstAidId,jdbcType=BIGINT}, + + + create_user_id = #{createUserId,jdbcType=BIGINT}, + + + record_user_id = #{recordUserId,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_qcp_first_aid_member + set first_aid_id = #{firstAidId,jdbcType=BIGINT}, + create_user_id = #{createUserId,jdbcType=BIGINT}, + record_user_id = #{recordUserId,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/FirstAidRecordLogMapper.xml b/src/main/resources/mapper_raw/FirstAidRecordLogMapper.xml index 57769b1..6e034fe 100644 --- a/src/main/resources/mapper_raw/FirstAidRecordLogMapper.xml +++ b/src/main/resources/mapper_raw/FirstAidRecordLogMapper.xml @@ -1,291 +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, first_aid_id, question_code, answer, submit_user_id, submit_user_type, operator, - created_at, updated_at, rec_status - - - - - delete from t_qcp_first_aid_record_log - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_first_aid_record_log - - - - - - insert into t_qcp_first_aid_record_log (id, first_aid_id, question_code, - answer, submit_user_id, submit_user_type, - operator, created_at, updated_at, - rec_status) - values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{questionCode,jdbcType=VARCHAR}, - #{answer,jdbcType=VARCHAR}, #{submitUserId,jdbcType=BIGINT}, #{submitUserType,jdbcType=TINYINT}, - #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, - #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_first_aid_record_log - - - id, - - - first_aid_id, - - - question_code, - - - answer, - - - submit_user_id, - - - submit_user_type, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{firstAidId,jdbcType=BIGINT}, - - - #{questionCode,jdbcType=VARCHAR}, - - - #{answer,jdbcType=VARCHAR}, - - - #{submitUserId,jdbcType=BIGINT}, - - - #{submitUserType,jdbcType=TINYINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_first_aid_record_log - - - id = #{record.id,jdbcType=BIGINT}, - - - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - - - question_code = #{record.questionCode,jdbcType=VARCHAR}, - - - answer = #{record.answer,jdbcType=VARCHAR}, - - - submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, - - - submit_user_type = #{record.submitUserType,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_qcp_first_aid_record_log - set id = #{record.id,jdbcType=BIGINT}, - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - question_code = #{record.questionCode,jdbcType=VARCHAR}, - answer = #{record.answer,jdbcType=VARCHAR}, - submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, - submit_user_type = #{record.submitUserType,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_qcp_first_aid_record_log - - - first_aid_id = #{firstAidId,jdbcType=BIGINT}, - - - question_code = #{questionCode,jdbcType=VARCHAR}, - - - answer = #{answer,jdbcType=VARCHAR}, - - - submit_user_id = #{submitUserId,jdbcType=BIGINT}, - - - submit_user_type = #{submitUserType,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_qcp_first_aid_record_log - set first_aid_id = #{firstAidId,jdbcType=BIGINT}, - question_code = #{questionCode,jdbcType=VARCHAR}, - answer = #{answer,jdbcType=VARCHAR}, - submit_user_id = #{submitUserId,jdbcType=BIGINT}, - submit_user_type = #{submitUserType,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} - + + + + + + + + + + + + + + + + + + + + + + + + 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, first_aid_id, question_code, answer, submit_user_id, submit_user_type, operator, + created_at, updated_at, rec_status + + + + + delete from t_qcp_first_aid_record_log + where id = #{id,jdbcType=BIGINT} + + + delete from t_qcp_first_aid_record_log + + + + + + insert into t_qcp_first_aid_record_log (id, first_aid_id, question_code, + answer, submit_user_id, submit_user_type, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{questionCode,jdbcType=VARCHAR}, + #{answer,jdbcType=VARCHAR}, #{submitUserId,jdbcType=BIGINT}, #{submitUserType,jdbcType=TINYINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_qcp_first_aid_record_log + + + id, + + + first_aid_id, + + + question_code, + + + answer, + + + submit_user_id, + + + submit_user_type, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{firstAidId,jdbcType=BIGINT}, + + + #{questionCode,jdbcType=VARCHAR}, + + + #{answer,jdbcType=VARCHAR}, + + + #{submitUserId,jdbcType=BIGINT}, + + + #{submitUserType,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_qcp_first_aid_record_log + + + id = #{record.id,jdbcType=BIGINT}, + + + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + + + question_code = #{record.questionCode,jdbcType=VARCHAR}, + + + answer = #{record.answer,jdbcType=VARCHAR}, + + + submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, + + + submit_user_type = #{record.submitUserType,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_qcp_first_aid_record_log + set id = #{record.id,jdbcType=BIGINT}, + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + question_code = #{record.questionCode,jdbcType=VARCHAR}, + answer = #{record.answer,jdbcType=VARCHAR}, + submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, + submit_user_type = #{record.submitUserType,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_qcp_first_aid_record_log + + + first_aid_id = #{firstAidId,jdbcType=BIGINT}, + + + question_code = #{questionCode,jdbcType=VARCHAR}, + + + answer = #{answer,jdbcType=VARCHAR}, + + + submit_user_id = #{submitUserId,jdbcType=BIGINT}, + + + submit_user_type = #{submitUserType,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_qcp_first_aid_record_log + set first_aid_id = #{firstAidId,jdbcType=BIGINT}, + question_code = #{questionCode,jdbcType=VARCHAR}, + answer = #{answer,jdbcType=VARCHAR}, + submit_user_id = #{submitUserId,jdbcType=BIGINT}, + submit_user_type = #{submitUserType,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/FirstAidRecordMapper.xml b/src/main/resources/mapper_raw/FirstAidRecordMapper.xml index fdc99d3..c281abe 100644 --- a/src/main/resources/mapper_raw/FirstAidRecordMapper.xml +++ b/src/main/resources/mapper_raw/FirstAidRecordMapper.xml @@ -1,291 +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, first_aid_id, question_code, answer, submit_user_id, submit_user_type, operator, - created_at, updated_at, rec_status - - - - - delete from t_qcp_first_aid_record - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_first_aid_record - - - - - - insert into t_qcp_first_aid_record (id, first_aid_id, question_code, - answer, submit_user_id, submit_user_type, - operator, created_at, updated_at, - rec_status) - values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{questionCode,jdbcType=VARCHAR}, - #{answer,jdbcType=VARCHAR}, #{submitUserId,jdbcType=BIGINT}, #{submitUserType,jdbcType=TINYINT}, - #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, - #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_first_aid_record - - - id, - - - first_aid_id, - - - question_code, - - - answer, - - - submit_user_id, - - - submit_user_type, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{firstAidId,jdbcType=BIGINT}, - - - #{questionCode,jdbcType=VARCHAR}, - - - #{answer,jdbcType=VARCHAR}, - - - #{submitUserId,jdbcType=BIGINT}, - - - #{submitUserType,jdbcType=TINYINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_first_aid_record - - - id = #{record.id,jdbcType=BIGINT}, - - - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - - - question_code = #{record.questionCode,jdbcType=VARCHAR}, - - - answer = #{record.answer,jdbcType=VARCHAR}, - - - submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, - - - submit_user_type = #{record.submitUserType,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_qcp_first_aid_record - set id = #{record.id,jdbcType=BIGINT}, - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - question_code = #{record.questionCode,jdbcType=VARCHAR}, - answer = #{record.answer,jdbcType=VARCHAR}, - submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, - submit_user_type = #{record.submitUserType,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_qcp_first_aid_record - - - first_aid_id = #{firstAidId,jdbcType=BIGINT}, - - - question_code = #{questionCode,jdbcType=VARCHAR}, - - - answer = #{answer,jdbcType=VARCHAR}, - - - submit_user_id = #{submitUserId,jdbcType=BIGINT}, - - - submit_user_type = #{submitUserType,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_qcp_first_aid_record - set first_aid_id = #{firstAidId,jdbcType=BIGINT}, - question_code = #{questionCode,jdbcType=VARCHAR}, - answer = #{answer,jdbcType=VARCHAR}, - submit_user_id = #{submitUserId,jdbcType=BIGINT}, - submit_user_type = #{submitUserType,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} - + + + + + + + + + + + + + + + + + + + + + + + + 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, first_aid_id, question_code, answer, submit_user_id, submit_user_type, operator, + created_at, updated_at, rec_status + + + + + delete from t_qcp_first_aid_record + where id = #{id,jdbcType=BIGINT} + + + delete from t_qcp_first_aid_record + + + + + + insert into t_qcp_first_aid_record (id, first_aid_id, question_code, + answer, submit_user_id, submit_user_type, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{questionCode,jdbcType=VARCHAR}, + #{answer,jdbcType=VARCHAR}, #{submitUserId,jdbcType=BIGINT}, #{submitUserType,jdbcType=TINYINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_qcp_first_aid_record + + + id, + + + first_aid_id, + + + question_code, + + + answer, + + + submit_user_id, + + + submit_user_type, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{firstAidId,jdbcType=BIGINT}, + + + #{questionCode,jdbcType=VARCHAR}, + + + #{answer,jdbcType=VARCHAR}, + + + #{submitUserId,jdbcType=BIGINT}, + + + #{submitUserType,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_qcp_first_aid_record + + + id = #{record.id,jdbcType=BIGINT}, + + + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + + + question_code = #{record.questionCode,jdbcType=VARCHAR}, + + + answer = #{record.answer,jdbcType=VARCHAR}, + + + submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, + + + submit_user_type = #{record.submitUserType,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_qcp_first_aid_record + set id = #{record.id,jdbcType=BIGINT}, + first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, + question_code = #{record.questionCode,jdbcType=VARCHAR}, + answer = #{record.answer,jdbcType=VARCHAR}, + submit_user_id = #{record.submitUserId,jdbcType=BIGINT}, + submit_user_type = #{record.submitUserType,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_qcp_first_aid_record + + + first_aid_id = #{firstAidId,jdbcType=BIGINT}, + + + question_code = #{questionCode,jdbcType=VARCHAR}, + + + answer = #{answer,jdbcType=VARCHAR}, + + + submit_user_id = #{submitUserId,jdbcType=BIGINT}, + + + submit_user_type = #{submitUserType,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_qcp_first_aid_record + set first_aid_id = #{firstAidId,jdbcType=BIGINT}, + question_code = #{questionCode,jdbcType=VARCHAR}, + answer = #{answer,jdbcType=VARCHAR}, + submit_user_id = #{submitUserId,jdbcType=BIGINT}, + submit_user_type = #{submitUserType,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/FirstAidStandardMapper.xml b/src/main/resources/mapper_raw/FirstAidStandardMapper.xml deleted file mode 100644 index 2f10094..0000000 --- a/src/main/resources/mapper_raw/FirstAidStandardMapper.xml +++ /dev/null @@ -1,258 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, type, hospital_id, step_id, duration, created_at, updated_at, rec_status - - - - - delete from t_qcp_first_aid_standard - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_first_aid_standard - - - - - - insert into t_qcp_first_aid_standard (id, type, hospital_id, - step_id, duration, created_at, - updated_at, rec_status) - values (#{id,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, #{hospitalId,jdbcType=BIGINT}, - #{stepId,jdbcType=BIGINT}, #{duration,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_first_aid_standard - - - id, - - - type, - - - hospital_id, - - - step_id, - - - duration, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{type,jdbcType=TINYINT}, - - - #{hospitalId,jdbcType=BIGINT}, - - - #{stepId,jdbcType=BIGINT}, - - - #{duration,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_first_aid_standard - - - id = #{record.id,jdbcType=BIGINT}, - - - type = #{record.type,jdbcType=TINYINT}, - - - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - - - step_id = #{record.stepId,jdbcType=BIGINT}, - - - duration = #{record.duration,jdbcType=BIGINT}, - - - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{record.recStatus,jdbcType=TINYINT}, - - - - - - - - update t_qcp_first_aid_standard - set id = #{record.id,jdbcType=BIGINT}, - type = #{record.type,jdbcType=TINYINT}, - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - step_id = #{record.stepId,jdbcType=BIGINT}, - duration = #{record.duration,jdbcType=BIGINT}, - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{record.recStatus,jdbcType=TINYINT} - - - - - - update t_qcp_first_aid_standard - - - type = #{type,jdbcType=TINYINT}, - - - hospital_id = #{hospitalId,jdbcType=BIGINT}, - - - step_id = #{stepId,jdbcType=BIGINT}, - - - duration = #{duration,jdbcType=BIGINT}, - - - created_at = #{createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{recStatus,jdbcType=TINYINT}, - - - where id = #{id,jdbcType=BIGINT} - - - update t_qcp_first_aid_standard - set type = #{type,jdbcType=TINYINT}, - hospital_id = #{hospitalId,jdbcType=BIGINT}, - step_id = #{stepId,jdbcType=BIGINT}, - duration = #{duration,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - - \ No newline at end of file diff --git a/src/main/resources/mapper_raw/OrganizationDepartmentMapper.xml b/src/main/resources/mapper_raw/OrganizationDepartmentMapper.xml new file mode 100644 index 0000000..1b5ddfb --- /dev/null +++ b/src/main/resources/mapper_raw/OrganizationDepartmentMapper.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, code, name, introduce, parent_id, organization_id, operator, created_at, updated_at, + rec_status + + + + + delete from t_organization_department + where id = #{id,jdbcType=BIGINT} + + + delete from t_organization_department + + + + + + insert into t_organization_department (id, code, name, + introduce, parent_id, organization_id, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{introduce,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT}, #{organizationId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_organization_department + + + id, + + + code, + + + name, + + + introduce, + + + parent_id, + + + organization_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{introduce,jdbcType=VARCHAR}, + + + #{parentId,jdbcType=BIGINT}, + + + #{organizationId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_organization_department + + + id = #{record.id,jdbcType=BIGINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + introduce = #{record.introduce,jdbcType=VARCHAR}, + + + parent_id = #{record.parentId,jdbcType=BIGINT}, + + + organization_id = #{record.organizationId,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_organization_department + set id = #{record.id,jdbcType=BIGINT}, + code = #{record.code,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + introduce = #{record.introduce,jdbcType=VARCHAR}, + parent_id = #{record.parentId,jdbcType=BIGINT}, + organization_id = #{record.organizationId,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_organization_department + + + code = #{code,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + introduce = #{introduce,jdbcType=VARCHAR}, + + + parent_id = #{parentId,jdbcType=BIGINT}, + + + organization_id = #{organizationId,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_organization_department + set code = #{code,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + introduce = #{introduce,jdbcType=VARCHAR}, + parent_id = #{parentId,jdbcType=BIGINT}, + organization_id = #{organizationId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/AttendanceRecordMapper.xml b/src/main/resources/mapper_raw/OrganizationMapper.xml similarity index 64% rename from src/main/resources/mapper_raw/AttendanceRecordMapper.xml rename to src/main/resources/mapper_raw/OrganizationMapper.xml index 4f60dab..ff09f5c 100644 --- a/src/main/resources/mapper_raw/AttendanceRecordMapper.xml +++ b/src/main/resources/mapper_raw/OrganizationMapper.xml @@ -1,323 +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, first_aid_id, step_id, rfid, name, user_id, type, time, operator, created_at, - updated_at, rec_status - - - - - delete from t_qcp_attendance_record - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_attendance_record - - - - - - insert into t_qcp_attendance_record (id, first_aid_id, step_id, - rfid, name, user_id, - type, time, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{firstAidId,jdbcType=BIGINT}, #{stepId,jdbcType=BIGINT}, - #{rfid,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, - #{type,jdbcType=TINYINT}, #{time,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_attendance_record - - - id, - - - first_aid_id, - - - step_id, - - - rfid, - - - name, - - - user_id, - - - type, - - - time, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{firstAidId,jdbcType=BIGINT}, - - - #{stepId,jdbcType=BIGINT}, - - - #{rfid,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{userId,jdbcType=BIGINT}, - - - #{type,jdbcType=TINYINT}, - - - #{time,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_attendance_record - - - id = #{record.id,jdbcType=BIGINT}, - - - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - - - step_id = #{record.stepId,jdbcType=BIGINT}, - - - rfid = #{record.rfid,jdbcType=VARCHAR}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - user_id = #{record.userId,jdbcType=BIGINT}, - - - type = #{record.type,jdbcType=TINYINT}, - - - time = #{record.time,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_qcp_attendance_record - set id = #{record.id,jdbcType=BIGINT}, - first_aid_id = #{record.firstAidId,jdbcType=BIGINT}, - step_id = #{record.stepId,jdbcType=BIGINT}, - rfid = #{record.rfid,jdbcType=VARCHAR}, - name = #{record.name,jdbcType=VARCHAR}, - user_id = #{record.userId,jdbcType=BIGINT}, - type = #{record.type,jdbcType=TINYINT}, - time = #{record.time,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_qcp_attendance_record - - - first_aid_id = #{firstAidId,jdbcType=BIGINT}, - - - step_id = #{stepId,jdbcType=BIGINT}, - - - rfid = #{rfid,jdbcType=VARCHAR}, - - - name = #{name,jdbcType=VARCHAR}, - - - user_id = #{userId,jdbcType=BIGINT}, - - - type = #{type,jdbcType=TINYINT}, - - - time = #{time,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_qcp_attendance_record - set first_aid_id = #{firstAidId,jdbcType=BIGINT}, - step_id = #{stepId,jdbcType=BIGINT}, - rfid = #{rfid,jdbcType=VARCHAR}, - name = #{name,jdbcType=VARCHAR}, - user_id = #{userId,jdbcType=BIGINT}, - type = #{type,jdbcType=TINYINT}, - time = #{time,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} - + + + + + + + + + + + + + + + + + + + + + + + + + + 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, organization_type, code, name, short_name, introduce, level, parent_id, operator, + created_at, updated_at, rec_status + + + + + delete from t_organization + where id = #{id,jdbcType=BIGINT} + + + delete from t_organization + + + + + + insert into t_organization (id, organization_type, code, + name, short_name, introduce, + level, parent_id, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{organizationType,jdbcType=TINYINT}, #{code,jdbcType=VARCHAR}, + #{name,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, + #{level,jdbcType=TINYINT}, #{parentId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_organization + + + id, + + + organization_type, + + + code, + + + name, + + + short_name, + + + introduce, + + + level, + + + parent_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{organizationType,jdbcType=TINYINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{shortName,jdbcType=VARCHAR}, + + + #{introduce,jdbcType=VARCHAR}, + + + #{level,jdbcType=TINYINT}, + + + #{parentId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_organization + + + id = #{record.id,jdbcType=BIGINT}, + + + organization_type = #{record.organizationType,jdbcType=TINYINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + short_name = #{record.shortName,jdbcType=VARCHAR}, + + + introduce = #{record.introduce,jdbcType=VARCHAR}, + + + level = #{record.level,jdbcType=TINYINT}, + + + parent_id = #{record.parentId,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_organization + set id = #{record.id,jdbcType=BIGINT}, + organization_type = #{record.organizationType,jdbcType=TINYINT}, + code = #{record.code,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + short_name = #{record.shortName,jdbcType=VARCHAR}, + introduce = #{record.introduce,jdbcType=VARCHAR}, + level = #{record.level,jdbcType=TINYINT}, + parent_id = #{record.parentId,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_organization + + + organization_type = #{organizationType,jdbcType=TINYINT}, + + + code = #{code,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + short_name = #{shortName,jdbcType=VARCHAR}, + + + introduce = #{introduce,jdbcType=VARCHAR}, + + + level = #{level,jdbcType=TINYINT}, + + + parent_id = #{parentId,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_organization + set organization_type = #{organizationType,jdbcType=TINYINT}, + code = #{code,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + short_name = #{shortName,jdbcType=VARCHAR}, + introduce = #{introduce,jdbcType=VARCHAR}, + level = #{level,jdbcType=TINYINT}, + parent_id = #{parentId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/WisdomCarMapper.xml b/src/main/resources/mapper_raw/OrganizationMemberMapper.xml similarity index 69% rename from src/main/resources/mapper_raw/WisdomCarMapper.xml rename to src/main/resources/mapper_raw/OrganizationMemberMapper.xml index 72c3467..70476f7 100644 --- a/src/main/resources/mapper_raw/WisdomCarMapper.xml +++ b/src/main/resources/mapper_raw/OrganizationMemberMapper.xml @@ -1,276 +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, serial, warehouse_time, hospital_id, user_id, operator, created_at, updated_at, - rec_status - - - - - delete from t_qcp_wisdom_car - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_wisdom_car - - - - - - insert into t_qcp_wisdom_car (id, serial, warehouse_time, - hospital_id, user_id, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{serial,jdbcType=VARCHAR}, #{warehouseTime,jdbcType=BIGINT}, - #{hospitalId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_wisdom_car - - - id, - - - serial, - - - warehouse_time, - - - hospital_id, - - - user_id, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{serial,jdbcType=VARCHAR}, - - - #{warehouseTime,jdbcType=BIGINT}, - - - #{hospitalId,jdbcType=BIGINT}, - - - #{userId,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_wisdom_car - - - id = #{record.id,jdbcType=BIGINT}, - - - serial = #{record.serial,jdbcType=VARCHAR}, - - - warehouse_time = #{record.warehouseTime,jdbcType=BIGINT}, - - - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - - - user_id = #{record.userId,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_qcp_wisdom_car - set id = #{record.id,jdbcType=BIGINT}, - serial = #{record.serial,jdbcType=VARCHAR}, - warehouse_time = #{record.warehouseTime,jdbcType=BIGINT}, - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - user_id = #{record.userId,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_qcp_wisdom_car - - - serial = #{serial,jdbcType=VARCHAR}, - - - warehouse_time = #{warehouseTime,jdbcType=BIGINT}, - - - hospital_id = #{hospitalId,jdbcType=BIGINT}, - - - user_id = #{userId,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_qcp_wisdom_car - set serial = #{serial,jdbcType=VARCHAR}, - warehouse_time = #{warehouseTime,jdbcType=BIGINT}, - hospital_id = #{hospitalId,jdbcType=BIGINT}, - user_id = #{userId,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} - + + + + + + + + + + + + + + + + + + + + + + + + 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, contact, position_id, department_id, operator, created_at, updated_at, + rec_status + + + + + delete from t_organization_member + where id = #{id,jdbcType=BIGINT} + + + delete from t_organization_member + + + + + + insert into t_organization_member (id, user_id, name, + contact, position_id, department_id, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, + #{contact,jdbcType=VARCHAR}, #{positionId,jdbcType=BIGINT}, #{departmentId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_organization_member + + + id, + + + user_id, + + + name, + + + contact, + + + position_id, + + + department_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{userId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{contact,jdbcType=VARCHAR}, + + + #{positionId,jdbcType=BIGINT}, + + + #{departmentId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_organization_member + + + id = #{record.id,jdbcType=BIGINT}, + + + user_id = #{record.userId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + contact = #{record.contact,jdbcType=VARCHAR}, + + + position_id = #{record.positionId,jdbcType=BIGINT}, + + + department_id = #{record.departmentId,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_organization_member + set id = #{record.id,jdbcType=BIGINT}, + user_id = #{record.userId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + contact = #{record.contact,jdbcType=VARCHAR}, + position_id = #{record.positionId,jdbcType=BIGINT}, + department_id = #{record.departmentId,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_organization_member + + + user_id = #{userId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + contact = #{contact,jdbcType=VARCHAR}, + + + position_id = #{positionId,jdbcType=BIGINT}, + + + department_id = #{departmentId,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_organization_member + set user_id = #{userId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + contact = #{contact,jdbcType=VARCHAR}, + position_id = #{positionId,jdbcType=BIGINT}, + department_id = #{departmentId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/WrokingMapper.xml b/src/main/resources/mapper_raw/OrganizationParentMapper.xml similarity index 67% rename from src/main/resources/mapper_raw/WrokingMapper.xml rename to src/main/resources/mapper_raw/OrganizationParentMapper.xml index 582d623..3bf60a8 100644 --- a/src/main/resources/mapper_raw/WrokingMapper.xml +++ b/src/main/resources/mapper_raw/OrganizationParentMapper.xml @@ -1,275 +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, doctor_id, start_time, end_time, post, operator, created_at, updated_at, rec_status - - - - - delete from t_qcp_wroking - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_wroking - - - - - - insert into t_qcp_wroking (id, doctor_id, start_time, - end_time, post, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{doctorId,jdbcType=BIGINT}, #{startTime,jdbcType=BIGINT}, - #{endTime,jdbcType=BIGINT}, #{post,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_wroking - - - id, - - - doctor_id, - - - start_time, - - - end_time, - - - post, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{doctorId,jdbcType=BIGINT}, - - - #{startTime,jdbcType=BIGINT}, - - - #{endTime,jdbcType=BIGINT}, - - - #{post,jdbcType=TINYINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_wroking - - - id = #{record.id,jdbcType=BIGINT}, - - - doctor_id = #{record.doctorId,jdbcType=BIGINT}, - - - start_time = #{record.startTime,jdbcType=BIGINT}, - - - end_time = #{record.endTime,jdbcType=BIGINT}, - - - post = #{record.post,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_qcp_wroking - set id = #{record.id,jdbcType=BIGINT}, - doctor_id = #{record.doctorId,jdbcType=BIGINT}, - start_time = #{record.startTime,jdbcType=BIGINT}, - end_time = #{record.endTime,jdbcType=BIGINT}, - post = #{record.post,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_qcp_wroking - - - doctor_id = #{doctorId,jdbcType=BIGINT}, - - - start_time = #{startTime,jdbcType=BIGINT}, - - - end_time = #{endTime,jdbcType=BIGINT}, - - - post = #{post,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_qcp_wroking - set doctor_id = #{doctorId,jdbcType=BIGINT}, - start_time = #{startTime,jdbcType=BIGINT}, - end_time = #{endTime,jdbcType=BIGINT}, - post = #{post,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} - + + + + + + + + + + + + + + + + + + + + + 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, organization_id, parent_id, operator, created_at, updated_at, rec_status + + + + + delete from t_organization_parent + where id = #{id,jdbcType=BIGINT} + + + delete from t_organization_parent + + + + + + insert into t_organization_parent (id, organization_id, parent_id, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_organization_parent + + + id, + + + organization_id, + + + parent_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{organizationId,jdbcType=BIGINT}, + + + #{parentId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_organization_parent + + + id = #{record.id,jdbcType=BIGINT}, + + + organization_id = #{record.organizationId,jdbcType=BIGINT}, + + + parent_id = #{record.parentId,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_organization_parent + set id = #{record.id,jdbcType=BIGINT}, + organization_id = #{record.organizationId,jdbcType=BIGINT}, + parent_id = #{record.parentId,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_organization_parent + + + organization_id = #{organizationId,jdbcType=BIGINT}, + + + parent_id = #{parentId,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_organization_parent + set organization_id = #{organizationId,jdbcType=BIGINT}, + parent_id = #{parentId,jdbcType=BIGINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/HospitalMapper.xml b/src/main/resources/mapper_raw/OrganizationPositionMapper.xml similarity index 78% rename from src/main/resources/mapper_raw/HospitalMapper.xml rename to src/main/resources/mapper_raw/OrganizationPositionMapper.xml index fb6f36a..e8552e2 100644 --- a/src/main/resources/mapper_raw/HospitalMapper.xml +++ b/src/main/resources/mapper_raw/OrganizationPositionMapper.xml @@ -1,275 +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, serial, name, short_name, introduce, operator, created_at, updated_at, rec_status - - - - - delete from t_qcp_hospital - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_hospital - - - - - - insert into t_qcp_hospital (id, serial, name, - short_name, introduce, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{serial,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{shortName,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_hospital - - - id, - - - serial, - - - name, - - - short_name, - - - introduce, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{serial,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{shortName,jdbcType=VARCHAR}, - - - #{introduce,jdbcType=VARCHAR}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_hospital - - - id = #{record.id,jdbcType=BIGINT}, - - - serial = #{record.serial,jdbcType=VARCHAR}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - short_name = #{record.shortName,jdbcType=VARCHAR}, - - - introduce = #{record.introduce,jdbcType=VARCHAR}, - - - operator = #{record.operator,jdbcType=BIGINT}, - - - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{record.recStatus,jdbcType=TINYINT}, - - - - - - - - update t_qcp_hospital - set id = #{record.id,jdbcType=BIGINT}, - serial = #{record.serial,jdbcType=VARCHAR}, - name = #{record.name,jdbcType=VARCHAR}, - short_name = #{record.shortName,jdbcType=VARCHAR}, - introduce = #{record.introduce,jdbcType=VARCHAR}, - operator = #{record.operator,jdbcType=BIGINT}, - created_at = #{record.createdAt,jdbcType=TIMESTAMP}, - updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{record.recStatus,jdbcType=TINYINT} - - - - - - update t_qcp_hospital - - - serial = #{serial,jdbcType=VARCHAR}, - - - name = #{name,jdbcType=VARCHAR}, - - - short_name = #{shortName,jdbcType=VARCHAR}, - - - introduce = #{introduce,jdbcType=VARCHAR}, - - - operator = #{operator,jdbcType=BIGINT}, - - - created_at = #{createdAt,jdbcType=TIMESTAMP}, - - - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - - - rec_status = #{recStatus,jdbcType=TINYINT}, - - - where id = #{id,jdbcType=BIGINT} - - - update t_qcp_hospital - set serial = #{serial,jdbcType=VARCHAR}, - name = #{name,jdbcType=VARCHAR}, - short_name = #{shortName,jdbcType=VARCHAR}, - introduce = #{introduce,jdbcType=VARCHAR}, - operator = #{operator,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - + + + + + + + + + + + + + + + + + + + + + + + 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, introduce, type, operator, created_at, updated_at, rec_status + + + + + delete from t_organization_position + where id = #{id,jdbcType=BIGINT} + + + delete from t_organization_position + + + + + + insert into t_organization_position (id, code, name, + introduce, type, operator, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{introduce,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_organization_position + + + id, + + + code, + + + name, + + + introduce, + + + type, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{introduce,jdbcType=VARCHAR}, + + + #{type,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_organization_position + + + id = #{record.id,jdbcType=BIGINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + introduce = #{record.introduce,jdbcType=VARCHAR}, + + + type = #{record.type,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_organization_position + set id = #{record.id,jdbcType=BIGINT}, + code = #{record.code,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + introduce = #{record.introduce,jdbcType=VARCHAR}, + type = #{record.type,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_organization_position + + + code = #{code,jdbcType=VARCHAR}, + + + name = #{name,jdbcType=VARCHAR}, + + + introduce = #{introduce,jdbcType=VARCHAR}, + + + type = #{type,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_organization_position + set code = #{code,jdbcType=VARCHAR}, + name = #{name,jdbcType=VARCHAR}, + introduce = #{introduce,jdbcType=VARCHAR}, + type = #{type,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/OrganizationProjectMapper.xml b/src/main/resources/mapper_raw/OrganizationProjectMapper.xml new file mode 100644 index 0000000..f1ad26e --- /dev/null +++ b/src/main/resources/mapper_raw/OrganizationProjectMapper.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, organization_id, project_id, operator, created_at, updated_at, rec_status + + + + + delete from t_organization_project + where id = #{id,jdbcType=BIGINT} + + + delete from t_organization_project + + + + + + insert into t_organization_project (id, organization_id, project_id, + operator, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{organizationId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_organization_project + + + id, + + + organization_id, + + + project_id, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{organizationId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_organization_project + + + id = #{record.id,jdbcType=BIGINT}, + + + organization_id = #{record.organizationId,jdbcType=BIGINT}, + + + 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_organization_project + set id = #{record.id,jdbcType=BIGINT}, + organization_id = #{record.organizationId,jdbcType=BIGINT}, + 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_organization_project + + + organization_id = #{organizationId,jdbcType=BIGINT}, + + + 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_organization_project + set organization_id = #{organizationId,jdbcType=BIGINT}, + 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/src/main/resources/mapper_raw/CarRecordMapper.xml b/src/main/resources/mapper_raw/OrganizationTemplateMapper.xml similarity index 68% rename from src/main/resources/mapper_raw/CarRecordMapper.xml rename to src/main/resources/mapper_raw/OrganizationTemplateMapper.xml index 58b1182..054c6f4 100644 --- a/src/main/resources/mapper_raw/CarRecordMapper.xml +++ b/src/main/resources/mapper_raw/OrganizationTemplateMapper.xml @@ -1,275 +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, car_id, type, car_value, time, operator, created_at, updated_at, rec_status - - - - - delete from t_qcp_car_record - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_car_record - - - - - - insert into t_qcp_car_record (id, car_id, type, - car_value, time, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{carId,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, - #{carValue,jdbcType=VARCHAR}, #{time,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_car_record - - - id, - - - car_id, - - - type, - - - car_value, - - - time, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{carId,jdbcType=BIGINT}, - - - #{type,jdbcType=TINYINT}, - - - #{carValue,jdbcType=VARCHAR}, - - - #{time,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_car_record - - - id = #{record.id,jdbcType=BIGINT}, - - - car_id = #{record.carId,jdbcType=BIGINT}, - - - type = #{record.type,jdbcType=TINYINT}, - - - car_value = #{record.carValue,jdbcType=VARCHAR}, - - - time = #{record.time,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_qcp_car_record - set id = #{record.id,jdbcType=BIGINT}, - car_id = #{record.carId,jdbcType=BIGINT}, - type = #{record.type,jdbcType=TINYINT}, - car_value = #{record.carValue,jdbcType=VARCHAR}, - time = #{record.time,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_qcp_car_record - - - car_id = #{carId,jdbcType=BIGINT}, - - - type = #{type,jdbcType=TINYINT}, - - - car_value = #{carValue,jdbcType=VARCHAR}, - - - time = #{time,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_qcp_car_record - set car_id = #{carId,jdbcType=BIGINT}, - type = #{type,jdbcType=TINYINT}, - car_value = #{carValue,jdbcType=VARCHAR}, - time = #{time,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} - + + + + + + + + + + + + + + + + + + + + + + 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, template, code_type, operator, created_at, updated_at, rec_status + + + + + delete from t_organization_template + where id = #{id,jdbcType=BIGINT} + + + delete from t_organization_template + + + + + + insert into t_organization_template (id, code, template, + code_type, operator, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{template,jdbcType=TINYINT}, + #{codeType,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_organization_template + + + id, + + + code, + + + template, + + + code_type, + + + operator, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{code,jdbcType=VARCHAR}, + + + #{template,jdbcType=TINYINT}, + + + #{codeType,jdbcType=TINYINT}, + + + #{operator,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_organization_template + + + id = #{record.id,jdbcType=BIGINT}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + template = #{record.template,jdbcType=TINYINT}, + + + code_type = #{record.codeType,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_organization_template + set id = #{record.id,jdbcType=BIGINT}, + code = #{record.code,jdbcType=VARCHAR}, + template = #{record.template,jdbcType=TINYINT}, + code_type = #{record.codeType,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_organization_template + + + code = #{code,jdbcType=VARCHAR}, + + + template = #{template,jdbcType=TINYINT}, + + + code_type = #{codeType,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_organization_template + set code = #{code,jdbcType=VARCHAR}, + template = #{template,jdbcType=TINYINT}, + code_type = #{codeType,jdbcType=TINYINT}, + operator = #{operator,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mapper_raw/PatientMapper.xml b/src/main/resources/mapper_raw/PatientMapper.xml deleted file mode 100644 index 29474e3..0000000 --- a/src/main/resources/mapper_raw/PatientMapper.xml +++ /dev/null @@ -1,338 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - 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, gender, age, nation, idcard, phone, hospital_id, user_id, operator, created_at, - updated_at, rec_status - - - - - delete from t_qcp_patient - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_patient - - - - - - insert into t_qcp_patient (id, name, gender, - age, nation, idcard, - phone, hospital_id, user_id, - operator, created_at, updated_at, - rec_status) - values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{gender,jdbcType=TINYINT}, - #{age,jdbcType=INTEGER}, #{nation,jdbcType=VARCHAR}, #{idcard,jdbcType=VARCHAR}, - #{phone,jdbcType=VARCHAR}, #{hospitalId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, - #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, - #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_patient - - - id, - - - name, - - - gender, - - - age, - - - nation, - - - idcard, - - - phone, - - - hospital_id, - - - user_id, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{name,jdbcType=VARCHAR}, - - - #{gender,jdbcType=TINYINT}, - - - #{age,jdbcType=INTEGER}, - - - #{nation,jdbcType=VARCHAR}, - - - #{idcard,jdbcType=VARCHAR}, - - - #{phone,jdbcType=VARCHAR}, - - - #{hospitalId,jdbcType=BIGINT}, - - - #{userId,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_patient - - - id = #{record.id,jdbcType=BIGINT}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - gender = #{record.gender,jdbcType=TINYINT}, - - - age = #{record.age,jdbcType=INTEGER}, - - - nation = #{record.nation,jdbcType=VARCHAR}, - - - idcard = #{record.idcard,jdbcType=VARCHAR}, - - - phone = #{record.phone,jdbcType=VARCHAR}, - - - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - - - user_id = #{record.userId,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_qcp_patient - set id = #{record.id,jdbcType=BIGINT}, - name = #{record.name,jdbcType=VARCHAR}, - gender = #{record.gender,jdbcType=TINYINT}, - age = #{record.age,jdbcType=INTEGER}, - nation = #{record.nation,jdbcType=VARCHAR}, - idcard = #{record.idcard,jdbcType=VARCHAR}, - phone = #{record.phone,jdbcType=VARCHAR}, - hospital_id = #{record.hospitalId,jdbcType=BIGINT}, - user_id = #{record.userId,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_qcp_patient - - - name = #{name,jdbcType=VARCHAR}, - - - gender = #{gender,jdbcType=TINYINT}, - - - age = #{age,jdbcType=INTEGER}, - - - nation = #{nation,jdbcType=VARCHAR}, - - - idcard = #{idcard,jdbcType=VARCHAR}, - - - phone = #{phone,jdbcType=VARCHAR}, - - - hospital_id = #{hospitalId,jdbcType=BIGINT}, - - - user_id = #{userId,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_qcp_patient - set name = #{name,jdbcType=VARCHAR}, - gender = #{gender,jdbcType=TINYINT}, - age = #{age,jdbcType=INTEGER}, - nation = #{nation,jdbcType=VARCHAR}, - idcard = #{idcard,jdbcType=VARCHAR}, - phone = #{phone,jdbcType=VARCHAR}, - hospital_id = #{hospitalId,jdbcType=BIGINT}, - user_id = #{userId,jdbcType=BIGINT}, - operator = #{operator,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - - \ No newline at end of file diff --git a/src/main/resources/mapper_raw/RfidMapper.xml b/src/main/resources/mapper_raw/RfidMapper.xml deleted file mode 100644 index 2334bc2..0000000 --- a/src/main/resources/mapper_raw/RfidMapper.xml +++ /dev/null @@ -1,323 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - 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, hospital_serial, type1, type2, type3, serial, full_serial, step_id, operator, - created_at, updated_at, rec_status - - - - - delete from t_qcp_rfid - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_rfid - - - - - - insert into t_qcp_rfid (id, hospital_serial, type1, - type2, type3, serial, - full_serial, step_id, operator, - created_at, updated_at, rec_status - ) - values (#{id,jdbcType=BIGINT}, #{hospitalSerial,jdbcType=VARCHAR}, #{type1,jdbcType=TINYINT}, - #{type2,jdbcType=TINYINT}, #{type3,jdbcType=TINYINT}, #{serial,jdbcType=VARCHAR}, - #{fullSerial,jdbcType=VARCHAR}, #{stepId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, - #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} - ) - - - insert into t_qcp_rfid - - - id, - - - hospital_serial, - - - type1, - - - type2, - - - type3, - - - serial, - - - full_serial, - - - step_id, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{hospitalSerial,jdbcType=VARCHAR}, - - - #{type1,jdbcType=TINYINT}, - - - #{type2,jdbcType=TINYINT}, - - - #{type3,jdbcType=TINYINT}, - - - #{serial,jdbcType=VARCHAR}, - - - #{fullSerial,jdbcType=VARCHAR}, - - - #{stepId,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_rfid - - - id = #{record.id,jdbcType=BIGINT}, - - - hospital_serial = #{record.hospitalSerial,jdbcType=VARCHAR}, - - - type1 = #{record.type1,jdbcType=TINYINT}, - - - type2 = #{record.type2,jdbcType=TINYINT}, - - - type3 = #{record.type3,jdbcType=TINYINT}, - - - serial = #{record.serial,jdbcType=VARCHAR}, - - - full_serial = #{record.fullSerial,jdbcType=VARCHAR}, - - - step_id = #{record.stepId,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_qcp_rfid - set id = #{record.id,jdbcType=BIGINT}, - hospital_serial = #{record.hospitalSerial,jdbcType=VARCHAR}, - type1 = #{record.type1,jdbcType=TINYINT}, - type2 = #{record.type2,jdbcType=TINYINT}, - type3 = #{record.type3,jdbcType=TINYINT}, - serial = #{record.serial,jdbcType=VARCHAR}, - full_serial = #{record.fullSerial,jdbcType=VARCHAR}, - step_id = #{record.stepId,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_qcp_rfid - - - hospital_serial = #{hospitalSerial,jdbcType=VARCHAR}, - - - type1 = #{type1,jdbcType=TINYINT}, - - - type2 = #{type2,jdbcType=TINYINT}, - - - type3 = #{type3,jdbcType=TINYINT}, - - - serial = #{serial,jdbcType=VARCHAR}, - - - full_serial = #{fullSerial,jdbcType=VARCHAR}, - - - step_id = #{stepId,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_qcp_rfid - set hospital_serial = #{hospitalSerial,jdbcType=VARCHAR}, - type1 = #{type1,jdbcType=TINYINT}, - type2 = #{type2,jdbcType=TINYINT}, - type3 = #{type3,jdbcType=TINYINT}, - serial = #{serial,jdbcType=VARCHAR}, - full_serial = #{fullSerial,jdbcType=VARCHAR}, - step_id = #{stepId,jdbcType=BIGINT}, - operator = #{operator,jdbcType=BIGINT}, - created_at = #{createdAt,jdbcType=TIMESTAMP}, - updated_at = #{updatedAt,jdbcType=TIMESTAMP}, - rec_status = #{recStatus,jdbcType=TINYINT} - where id = #{id,jdbcType=BIGINT} - - \ No newline at end of file diff --git a/src/main/resources/mapper_raw/StepMapper.xml b/src/main/resources/mapper_raw/StepMapper.xml index d00be7e..2dc8b52 100644 --- a/src/main/resources/mapper_raw/StepMapper.xml +++ b/src/main/resources/mapper_raw/StepMapper.xml @@ -1,306 +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, code, name, type, start_effect_time, end_effect_time, hospital_id, operator, - created_at, updated_at, rec_status - - - - - delete from t_qcp_step - where id = #{id,jdbcType=BIGINT} - - - delete from t_qcp_step - - - - - - insert into t_qcp_step (id, code, name, - type, start_effect_time, end_effect_time, - hospital_id, operator, created_at, - updated_at, rec_status) - values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{type,jdbcType=TINYINT}, #{startEffectTime,jdbcType=BIGINT}, #{endEffectTime,jdbcType=BIGINT}, - #{hospitalId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, - #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) - - - insert into t_qcp_step - - - id, - - - code, - - - name, - - - type, - - - start_effect_time, - - - end_effect_time, - - - hospital_id, - - - operator, - - - created_at, - - - updated_at, - - - rec_status, - - - - - #{id,jdbcType=BIGINT}, - - - #{code,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{type,jdbcType=TINYINT}, - - - #{startEffectTime,jdbcType=BIGINT}, - - - #{endEffectTime,jdbcType=BIGINT}, - - - #{hospitalId,jdbcType=BIGINT}, - - - #{operator,jdbcType=BIGINT}, - - - #{createdAt,jdbcType=TIMESTAMP}, - - - #{updatedAt,jdbcType=TIMESTAMP}, - - - #{recStatus,jdbcType=TINYINT}, - - - - - - update t_qcp_step - - - id = #{record.id,jdbcType=BIGINT}, - - - code = #{record.code,jdbcType=VARCHAR}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - type = #{record.type,jdbcType=TINYINT}, - - - start_effect_time = #{record.startEffectTime,jdbcType=BIGINT}, - - - end_effect_time = #{record.endEffectTime,jdbcType=BIGINT}, - - - hospital_id = #{record.hospitalId,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_qcp_step - set id = #{record.id,jdbcType=BIGINT}, - code = #{record.code,jdbcType=VARCHAR}, - name = #{record.name,jdbcType=VARCHAR}, - type = #{record.type,jdbcType=TINYINT}, - start_effect_time = #{record.startEffectTime,jdbcType=BIGINT}, - end_effect_time = #{record.endEffectTime,jdbcType=BIGINT}, - hospital_id = #{record.hospitalId,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_qcp_step - - - code = #{code,jdbcType=VARCHAR}, - - - name = #{name,jdbcType=VARCHAR}, - - - type = #{type,jdbcType=TINYINT}, - - - start_effect_time = #{startEffectTime,jdbcType=BIGINT}, - - - end_effect_time = #{endEffectTime,jdbcType=BIGINT}, - - - hospital_id = #{hospitalId,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_qcp_step - set code = #{code,jdbcType=VARCHAR}, - name = #{name,jdbcType=VARCHAR}, - type = #{type,jdbcType=TINYINT}, - start_effect_time = #{startEffectTime,jdbcType=BIGINT}, - end_effect_time = #{endEffectTime,jdbcType=BIGINT}, - hospital_id = #{hospitalId,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} - + + + + + + + + + + + + + + + + + + + + + + + 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, code, sequence, step_type, created_at, updated_at, rec_status, task_sub_name + + + + + delete from t_step + where id = #{id,jdbcType=BIGINT} + + + delete from t_step + + + + + + insert into t_step (id, name, code, + sequence, step_type, created_at, + updated_at, rec_status, task_sub_name + ) + values (#{id,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, + #{sequence,jdbcType=INTEGER}, #{stepType,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}, #{taskSubName,jdbcType=VARCHAR} + ) + + + insert into t_step + + + id, + + + name, + + + code, + + + sequence, + + + step_type, + + + created_at, + + + updated_at, + + + rec_status, + + + task_sub_name, + + + + + #{id,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{code,jdbcType=VARCHAR}, + + + #{sequence,jdbcType=INTEGER}, + + + #{stepType,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + #{taskSubName,jdbcType=VARCHAR}, + + + + + + update t_step + + + id = #{record.id,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + code = #{record.code,jdbcType=VARCHAR}, + + + sequence = #{record.sequence,jdbcType=INTEGER}, + + + step_type = #{record.stepType,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + task_sub_name = #{record.taskSubName,jdbcType=VARCHAR}, + + + + + + + + update t_step + set id = #{record.id,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + code = #{record.code,jdbcType=VARCHAR}, + sequence = #{record.sequence,jdbcType=INTEGER}, + step_type = #{record.stepType,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT}, + task_sub_name = #{record.taskSubName,jdbcType=VARCHAR} + + + + + + update t_step + + + name = #{name,jdbcType=VARCHAR}, + + + code = #{code,jdbcType=VARCHAR}, + + + sequence = #{sequence,jdbcType=INTEGER}, + + + step_type = #{stepType,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + task_sub_name = #{taskSubName,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_step + set name = #{name,jdbcType=VARCHAR}, + code = #{code,jdbcType=VARCHAR}, + sequence = #{sequence,jdbcType=INTEGER}, + step_type = #{stepType,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT}, + task_sub_name = #{taskSubName,jdbcType=VARCHAR} + where id = #{id,jdbcType=BIGINT} + \ No newline at end of file diff --git a/src/main/resources/mbg.xml b/src/main/resources/mbg.xml index 0eee7fd..b0a2f0a 100644 --- a/src/main/resources/mbg.xml +++ b/src/main/resources/mbg.xml @@ -56,23 +56,24 @@ - - - - - - - - - - - - - +
+
+
+
+
+
+
+
+
- - - +
+
+
+
+
+
+
+