Browse Source

提交

master
zzc 1 week ago
parent
commit
25735b077f
  1. 15
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/system/SysDictTypeController.java
  2. 3
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/system/SysUserController.java
  3. 6
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminDataSourceController.java
  4. 100
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminDmsUserController.java
  5. 7
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminFmsFollowupController.java
  6. 4
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminPmsPatientController.java
  7. 12
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminPmsTreatmentController.java
  8. 7
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminStatisticsController.java
  9. 6
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminTenantsController.java
  10. 90
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/DmsLoginController.java
  11. 86
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ExternalController.java
  12. 5
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/FmsFollowupController.java
  13. 7
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/PmsPatientController.java
  14. 19
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ScreeningController.java
  15. 211
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/TaskController.java
  16. 2
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/WxQrCodeController.java
  17. 87
      acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java
  18. 329
      acupuncture-admin/src/main/java/com/acupuncture/web/task/TaskController.java
  19. 11
      acupuncture-admin/src/main/resources/TreamtmentPgTemplate.docx
  20. 1
      acupuncture-admin/src/main/resources/application-prod.yml
  21. 5
      acupuncture-admin/src/main/resources/application.yml
  22. 26
      acupuncture-common/src/main/java/com/acupuncture/common/config/RuoYiConfig.java
  23. 4
      acupuncture-common/src/main/java/com/acupuncture/common/core/domain/entity/SysUser.java
  24. 43
      acupuncture-framework/src/main/java/com/acupuncture/framework/aspectj/AdminGlobalDataSourceAspect.java
  25. 3
      acupuncture-framework/src/main/java/com/acupuncture/framework/aspectj/DataSourceAspect.java
  26. 4
      acupuncture-framework/src/main/java/com/acupuncture/framework/config/SecurityConfig.java
  27. 3
      acupuncture-framework/src/main/java/com/acupuncture/framework/web/service/SysLoginService.java
  28. 1
      acupuncture-framework/src/main/java/com/acupuncture/framework/web/service/UserDetailsServiceImpl.java
  29. 2
      acupuncture-framework/src/main/java/com/acupuncture/framework/web/service/WebDmsLoginService.java
  30. 33
      acupuncture-generator/src/main/resources/mbg.xml
  31. 32
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/AdminTenantUserDto.java
  32. 8
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ExternalDto.java
  33. 2
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/FmsFollowupDto.java
  34. 5
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/PmsPatientDto.java
  35. 1
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/PmsTreatmentDto.java
  36. 7
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ScreeningDto.java
  37. 172
      acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java
  38. 17
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/DmsUser.java
  39. 80
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/DmsUserExample.java
  40. 61
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/HmsWeightHeight.java
  41. 470
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/HmsWeightHeightExample.java
  42. 45
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsPatient.java
  43. 266
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsPatientExample.java
  44. 11
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsTreatment.java
  45. 60
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsTreatmentExample.java
  46. 129
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswer.java
  47. 852
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswerExample.java
  48. 106
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScale.java
  49. 117
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConsti.java
  50. 801
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiExample.java
  51. 117
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRel.java
  52. 791
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRelExample.java
  53. 129
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScore.java
  54. 842
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScoreExample.java
  55. 106
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfa.java
  56. 661
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfaExample.java
  57. 731
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleExample.java
  58. 139
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestion.java
  59. 931
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionExample.java
  60. 140
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOption.java
  61. 932
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOptionExample.java
  62. 293
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReport.java
  63. 1881
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportExample.java
  64. 140
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResult.java
  65. 912
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResultExample.java
  66. 117
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjy.java
  67. 721
      acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjyExample.java
  68. 8
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/AdminStatisticsVo.java
  69. 2
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/AdminTenantUserVo.java
  70. 5
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/DmsLoginUserVo.java
  71. 18
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ExternalVo.java
  72. 7
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/FmsFollowupVo.java
  73. 5
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/PmsPatientVo.java
  74. 1
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/PmsTreatmentVo.java
  75. 423
      acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java
  76. 1
      acupuncture-system/src/main/java/com/acupuncture/system/mapper/SysRoleMapper.java
  77. 1
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/AdminDataSourceDao.java
  78. 21
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/AdminTongjiDao.java
  79. 8
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/DmsUserDao.java
  80. 2
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ExternalDao.java
  81. 16
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/FmsFollowupDao.java
  82. 1
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/PmsPatientDao.java
  83. 5
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/PmsTreatmentDao.java
  84. 1
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ScreeningDetailDao.java
  85. 3
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/UmsDataSourceDao.java
  86. 2
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/WxQrCodeDao.java
  87. 133
      acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ZytzDao.java
  88. 4
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/DmsUserMapper.java
  89. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/HmsWeightHeightMapper.java
  90. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzEmsEvaAnswerMapper.java
  91. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiMapper.java
  92. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiQuesRelMapper.java
  93. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiRefScoreMapper.java
  94. 34
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiYsfaMapper.java
  95. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleMapper.java
  96. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleQuestionMapper.java
  97. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleQuestionOptionMapper.java
  98. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportMapper.java
  99. 28
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportResultMapper.java
  100. 34
      acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportYsjyMapper.java

15
acupuncture-admin/src/main/java/com/acupuncture/web/controller/system/SysDictTypeController.java

@ -2,6 +2,8 @@ package com.acupuncture.web.controller.system;
import java.util.List; import java.util.List;
import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletResponse;
import com.acupuncture.common.core.domain.entity.SysUser;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
@ -21,6 +23,7 @@ import com.acupuncture.common.core.page.TableDataInfo;
import com.acupuncture.common.enums.BusinessType; import com.acupuncture.common.enums.BusinessType;
import com.acupuncture.common.utils.poi.ExcelUtil; import com.acupuncture.common.utils.poi.ExcelUtil;
import com.acupuncture.system.service.ISysDictTypeService; import com.acupuncture.system.service.ISysDictTypeService;
import org.springframework.web.multipart.MultipartFile;
/** /**
* 数据字典信息 * 数据字典信息
@ -63,6 +66,18 @@ public class SysDictTypeController extends BaseController
return success(dictTypeService.selectDictTypeById(dictId)); return success(dictTypeService.selectDictTypeById(dictId));
} }
@Log(title = "字典类型", businessType = BusinessType.IMPORT)
@PreAuthorize("@ss.hasPermi('system:dict:export')")
@PostMapping("/importData")
public AjaxResult importData(MultipartFile file, boolean updateSupport) throws Exception
{
ExcelUtil<SysDictType> util = new ExcelUtil<SysDictType>(SysDictType.class);
List<SysDictType> sysDictTypes = util.importExcel(file.getInputStream());
String operName = getUsername();
String message = dictTypeService.importDictType(sysDictTypes, updateSupport, operName);
return success(message);
}
/** /**
* 新增字典类型 * 新增字典类型
*/ */

3
acupuncture-admin/src/main/java/com/acupuncture/web/controller/system/SysUserController.java

@ -185,6 +185,7 @@ public class SysUserController extends BaseController
return toAjax(userService.updateUser(user)); return toAjax(userService.updateUser(user));
} }
<<<<<<< HEAD
private void changeDataSource(Long tenantId) { private void changeDataSource(Long tenantId) {
DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(tenantId); DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(tenantId);
if (dmsTenant != null) { if (dmsTenant != null) {
@ -199,6 +200,8 @@ public class SysUserController extends BaseController
} }
} }
=======
>>>>>>> new
/** /**
* 删除用户 * 删除用户
*/ */

6
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminDataSourceController.java

@ -1,7 +1,9 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.common.utils.SecurityUtils; import com.acupuncture.common.utils.SecurityUtils;
import com.acupuncture.system.domain.dto.AdminDataSourceDto; import com.acupuncture.system.domain.dto.AdminDataSourceDto;
import com.acupuncture.system.domain.vo.AdminDataSourceVo; import com.acupuncture.system.domain.vo.AdminDataSourceVo;
@ -34,6 +36,7 @@ public class AdminDataSourceController {
@ApiOperation("添加数据源") @ApiOperation("添加数据源")
@PostMapping("/add") @PostMapping("/add")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> insert(@RequestBody @Validated AdminDataSourceDto.AddDto dto) { public JsonResponse<Integer> insert(@RequestBody @Validated AdminDataSourceDto.AddDto dto) {
if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) {
return JsonResponse.ok().fail("无权限"); return JsonResponse.ok().fail("无权限");
@ -43,6 +46,7 @@ public class AdminDataSourceController {
@ApiOperation("修改数据源") @ApiOperation("修改数据源")
@PostMapping("/upd") @PostMapping("/upd")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> update(@RequestBody @Validated AdminDataSourceDto.UpdDto dto) { public JsonResponse<Integer> update(@RequestBody @Validated AdminDataSourceDto.UpdDto dto) {
if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) {
return JsonResponse.ok().fail("无权限"); return JsonResponse.ok().fail("无权限");
@ -52,6 +56,7 @@ public class AdminDataSourceController {
@ApiOperation("删除数据源") @ApiOperation("删除数据源")
@PostMapping("/del") @PostMapping("/del")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> delete(@RequestBody @Validated AdminDataSourceDto.DeleteDto dto) { public JsonResponse<Integer> delete(@RequestBody @Validated AdminDataSourceDto.DeleteDto dto) {
if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) {
return JsonResponse.ok().fail("无权限"); return JsonResponse.ok().fail("无权限");
@ -61,6 +66,7 @@ public class AdminDataSourceController {
@ApiOperation("查询数据源") @ApiOperation("查询数据源")
@PostMapping("/list") @PostMapping("/list")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<AdminDataSourceVo.Result>> query(@RequestBody @Validated BaseDto<AdminDataSourceDto.Query> dto) { public JsonResponse<PageInfo<AdminDataSourceVo.Result>> query(@RequestBody @Validated BaseDto<AdminDataSourceDto.Query> dto) {
return JsonResponse.ok(new PageInfo<>(adminDataSourceService.query(dto.getParam()))); return JsonResponse.ok(new PageInfo<>(adminDataSourceService.query(dto.getParam())));
} }

100
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminDmsUserController.java

@ -2,10 +2,15 @@ package com.acupuncture.web.controller.web;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.annotation.Log;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.core.domain.entity.SysUser; import com.acupuncture.common.core.domain.entity.SysUser;
import com.acupuncture.common.enums.BusinessType;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.common.utils.SecurityUtils; import com.acupuncture.common.utils.SecurityUtils;
import com.acupuncture.common.utils.StringUtils; import com.acupuncture.common.utils.StringUtils;
import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder; import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder;
@ -30,11 +35,9 @@ import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
@ -68,6 +71,7 @@ public class AdminDmsUserController {
@ApiOperation("添加租户用户") @ApiOperation("添加租户用户")
@PostMapping("/add") @PostMapping("/add")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> insert(@RequestBody @Validated AdminTenantUserDto.AddDto dto) { public JsonResponse<Integer> insert(@RequestBody @Validated AdminTenantUserDto.AddDto dto) {
//判定租户及数据源是否存在 //判定租户及数据源是否存在
DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(dto.getTenantId()); DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(dto.getTenantId());
@ -85,13 +89,19 @@ public class AdminDmsUserController {
} else if (StringUtils.isNotEmpty(dto.getPhonenumber()) && !dmsLoginService.checkPhoneUnique(dto)) { } else if (StringUtils.isNotEmpty(dto.getPhonenumber()) && !dmsLoginService.checkPhoneUnique(dto)) {
return JsonResponse.ok().fail("新增用户'" + dto.getUserName() + "'失败,手机号码已存在"); return JsonResponse.ok().fail("新增用户'" + dto.getUserName() + "'失败,手机号码已存在");
} }
dto.setId(IdUtil.getSnowflakeNextId());
dto.setPassword(SecurityUtils.encryptPassword(dto.getPassword())); dto.setPassword(SecurityUtils.encryptPassword(dto.getPassword()));
adminTenantUserService.insert(dto); adminTenantUserService.insert(dto);
//切换至从库 //切换至从库
<<<<<<< HEAD
changeDataSource(umsDataSource.getDataSourceKey()); changeDataSource(umsDataSource.getDataSourceKey());
DynamicDataSourceContextHolder.setDataSourceType(umsDataSource.getDataSourceKey()); DynamicDataSourceContextHolder.setDataSourceType(umsDataSource.getDataSourceKey());
=======
DynamicDataSourceContextHolder.setDataSourceType(umsDataSource.getDataSourceKey());
>>>>>>> new
//新增从库数据 //新增从库数据
SysUser user = BeanUtil.copyProperties(dto, SysUser.class); SysUser user = BeanUtil.copyProperties(dto, SysUser.class);
if (!userService.checkUserNameUnique(user)) { if (!userService.checkUserNameUnique(user)) {
@ -101,6 +111,7 @@ public class AdminDmsUserController {
} else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) { } else if (StringUtils.isNotEmpty(user.getEmail()) && !userService.checkEmailUnique(user)) {
return JsonResponse.ok().fail("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在"); return JsonResponse.ok().fail("新增用户'" + user.getUserName() + "'失败,邮箱账号已存在");
} }
user.setUserId(dto.getId());
user.setTenantId(dto.getTenantId()); user.setTenantId(dto.getTenantId());
user.setCreateBy(SecurityUtils.getUsername()); user.setCreateBy(SecurityUtils.getUsername());
user.setPhonenumber(dto.getContactPhone()); user.setPhonenumber(dto.getContactPhone());
@ -110,7 +121,10 @@ public class AdminDmsUserController {
int insert = userService.insertUser(user); int insert = userService.insertUser(user);
//销毁切换数据源 //销毁切换数据源
<<<<<<< HEAD
removeDataSource(); removeDataSource();
=======
>>>>>>> new
DynamicDataSourceContextHolder.clearDataSourceType(); DynamicDataSourceContextHolder.clearDataSourceType();
return JsonResponse.ok(insert); return JsonResponse.ok(insert);
@ -118,44 +132,40 @@ public class AdminDmsUserController {
@ApiOperation("修改租户用户") @ApiOperation("修改租户用户")
@PostMapping("/upd") @PostMapping("/upd")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> update(@RequestBody @Validated AdminTenantUserDto.UpdDto dto) { public JsonResponse<Integer> update(@RequestBody @Validated AdminTenantUserDto.UpdDto dto) {
updSysUser(dto); //判定租户及数据源是否存在
return JsonResponse.ok(adminTenantUserService.update(dto)); DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(dto.getTenantId());
} if (dmsTenant == null) {
return JsonResponse.ok().fail("租户不存在");
private void updSysUser(AdminTenantUserDto.UpdDto dto) {
//查询租户数据源,删除分库数据
DmsUserExample dmsUserExample = new DmsUserExample();
dmsUserExample.createCriteria().andDelFlagEqualTo((byte) 0).andIdEqualTo(dto.getId());
List<DmsUser> dmsUsers = dmsUserMapper.selectByExample(dmsUserExample);
if (CollectionUtil.isNotEmpty(dmsUsers)) {
DmsUser dmsUser = dmsUsers.get(0);
AdminTenantsDto.Query query = new AdminTenantsDto.Query();
query.setId(dmsUser.getTenantId());
List<AdminTenantsVo.Result> tenantList = adminTenantsService.query(query);
if (CollectionUtil.isNotEmpty(tenantList)) {
for (AdminTenantsVo.Result result : tenantList) {
//切换数据源 删除分库数据
DynamicDataSourceContextHolder.setDataSourceType(result.getDataSourceKey());
//修改分库用户
SysUser sysUser = BeanUtil.copyProperties(dto, SysUser.class);
sysUser.setPhonenumber(dto.getContactPhone());
userService.updateUser(sysUser);
//销毁切换数据源
DynamicDataSourceContextHolder.clearDataSourceType();
}
}
} }
UmsDataSource umsDataSource = umsDataSourceMapper.selectByPrimaryKey(dmsTenant.getDataSourceId());
if (umsDataSource == null || StrUtil.isEmpty(umsDataSource.getDataSourceKey())) {
return JsonResponse.ok().fail("数据源不存在");
}
//修改主库租户用户
int rows = adminTenantUserService.update(dto);
//切换至从库
DynamicDataSourceContextHolder.setDataSourceType(umsDataSource.getDataSourceKey());
//修改从库用户信息
SysUser sysUser = BeanUtil.copyProperties(dto, SysUser.class);
sysUser.setUserId(dto.getId());
sysUser.setPhonenumber(dto.getContactPhone());
userService.updateUser(sysUser);
//销毁切换数据源
DynamicDataSourceContextHolder.clearDataSourceType();
return JsonResponse.ok(rows);
} }
@ApiOperation("删除租户用户") @ApiOperation("删除租户用户")
@PostMapping("/del") @PostMapping("/del")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> delete(@RequestBody @Validated AdminTenantUserDto.DeleteDto dto) { public JsonResponse<Integer> delete(@RequestBody @Validated AdminTenantUserDto.DeleteDto dto) {
delSysUser(dto);
return JsonResponse.ok(adminTenantUserService.delete(dto));
}
private void delSysUser(AdminTenantUserDto.DeleteDto dto) {
//查询租户数据源,删除分库数据 //查询租户数据源,删除分库数据
DmsUserExample dmsUserExample = new DmsUserExample(); DmsUserExample dmsUserExample = new DmsUserExample();
dmsUserExample.createCriteria().andDelFlagEqualTo((byte) 0).andIdIn(dto.getIdList()); dmsUserExample.createCriteria().andDelFlagEqualTo((byte) 0).andIdIn(dto.getIdList());
@ -171,14 +181,18 @@ public class AdminDmsUserController {
DynamicDataSourceContextHolder.setDataSourceType(result.getDataSourceKey()); DynamicDataSourceContextHolder.setDataSourceType(result.getDataSourceKey());
//删除分库用户 //删除分库用户
userService.deleteUserByUsername(dmsUser.getUserName()); userService.deleteUserByUsername(dmsUser.getUserName());
//销毁切换数据源
DynamicDataSourceContextHolder.clearDataSourceType();
} }
} }
} }
} }
return JsonResponse.ok(adminTenantUserService.delete(dto));
} }
@ApiOperation("查询租户用户") @ApiOperation("查询租户用户")
@PostMapping("/list") @PostMapping("/list")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<AdminTenantUserVo.Result>> query(@RequestBody @Validated BaseDto<AdminTenantUserDto.Query> dto) { public JsonResponse<PageInfo<AdminTenantUserVo.Result>> query(@RequestBody @Validated BaseDto<AdminTenantUserDto.Query> dto) {
if (dto.getPageNum() > 0) { if (dto.getPageNum() > 0) {
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
@ -186,11 +200,21 @@ public class AdminDmsUserController {
return JsonResponse.ok(new PageInfo<>(adminTenantUserService.query(dto.getParam()))); return JsonResponse.ok(new PageInfo<>(adminTenantUserService.query(dto.getParam())));
} }
<<<<<<< HEAD
private static void changeDataSource(String key) { private static void changeDataSource(String key) {
DynamicDataSourceContextHolder.setDataSourceType(key); DynamicDataSourceContextHolder.setDataSourceType(key);
} }
=======
private static void removeDataSource() { >>>>>>> new
DynamicDataSourceContextHolder.clearDataSourceType();
/**
* 重置密码
*/
@Log(title = "用户管理", businessType = BusinessType.UPDATE)
@PostMapping("/resetPwd")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> resetPwd(@RequestBody @Validated AdminTenantUserDto.ResetPwd dto) {
//只修改主库密码,修改从库密码没有任何意义。
return JsonResponse.ok(adminTenantUserService.resetPwd(dto));
} }
} }

7
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminFmsFollowupController.java

@ -1,8 +1,10 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import com.acupuncture.common.annotation.Anonymous; import com.acupuncture.common.annotation.Anonymous;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.system.domain.dto.FmsFollowupDto; import com.acupuncture.system.domain.dto.FmsFollowupDto;
import com.acupuncture.system.domain.vo.FmsFollowupVo; import com.acupuncture.system.domain.vo.FmsFollowupVo;
import com.acupuncture.system.service.AdminFmsFollowupQueueService; import com.acupuncture.system.service.AdminFmsFollowupQueueService;
@ -36,6 +38,7 @@ public class AdminFmsFollowupController {
@ApiOperation("查询队列") @ApiOperation("查询队列")
@PostMapping("/query") @PostMapping("/query")
@Anonymous @Anonymous
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<FmsFollowupVo.FollowupQueueVO>> queryCommonQueue(@RequestBody @Validated BaseDto<FmsFollowupDto.QueueQuery> dto) { public JsonResponse<PageInfo<FmsFollowupVo.FollowupQueueVO>> queryCommonQueue(@RequestBody @Validated BaseDto<FmsFollowupDto.QueueQuery> dto) {
if (dto.getPageNum() > 0) { if (dto.getPageNum() > 0) {
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
@ -45,6 +48,7 @@ public class AdminFmsFollowupController {
@ApiOperation("添加随访队列") @ApiOperation("添加随访队列")
@PostMapping("/add") @PostMapping("/add")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> addQueue(@RequestBody @Validated FmsFollowupDto.Add dto){ public JsonResponse<Integer> addQueue(@RequestBody @Validated FmsFollowupDto.Add dto){
return JsonResponse.ok(fmsFollowupQueueService.addQueue(dto)); return JsonResponse.ok(fmsFollowupQueueService.addQueue(dto));
} }
@ -57,12 +61,14 @@ public class AdminFmsFollowupController {
@ApiOperation("删除随访队列") @ApiOperation("删除随访队列")
@PostMapping("/del") @PostMapping("/del")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> delQueue(@RequestBody @Validated FmsFollowupDto.Del dto){ public JsonResponse<Integer> delQueue(@RequestBody @Validated FmsFollowupDto.Del dto){
return JsonResponse.ok(fmsFollowupQueueService.delQueue(dto)); return JsonResponse.ok(fmsFollowupQueueService.delQueue(dto));
} }
@ApiOperation("查询随访患者") @ApiOperation("查询随访患者")
@PostMapping("/queryPatient") @PostMapping("/queryPatient")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<FmsFollowupVo.FollowupPatient>> queryPatient(@RequestBody @Validated BaseDto<FmsFollowupDto.FollowupPatientQueryDTO> dto) { public JsonResponse<PageInfo<FmsFollowupVo.FollowupPatient>> queryPatient(@RequestBody @Validated BaseDto<FmsFollowupDto.FollowupPatientQueryDTO> dto) {
if (dto.getPageNum() > 0) { if (dto.getPageNum() > 0) {
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
@ -72,6 +78,7 @@ public class AdminFmsFollowupController {
@ApiOperation("查询随访任务") @ApiOperation("查询随访任务")
@PostMapping("/queryTask") @PostMapping("/queryTask")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<FmsFollowupVo.FollowupTaskVO>> queryTask(@RequestBody @Validated BaseDto<FmsFollowupDto.FollowupTaskQueryDTO> dto) { public JsonResponse<PageInfo<FmsFollowupVo.FollowupTaskVO>> queryTask(@RequestBody @Validated BaseDto<FmsFollowupDto.FollowupTaskQueryDTO> dto) {
if (dto.getPageNum() > 0) { if (dto.getPageNum() > 0) {
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); PageHelper.startPage(dto.getPageNum(), dto.getPageSize());

4
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminPmsPatientController.java

@ -1,7 +1,9 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.system.domain.dto.FmsFollowupDto; import com.acupuncture.system.domain.dto.FmsFollowupDto;
import com.acupuncture.system.domain.dto.PmsPatientDto; import com.acupuncture.system.domain.dto.PmsPatientDto;
import com.acupuncture.system.domain.vo.FmsFollowupVo; import com.acupuncture.system.domain.vo.FmsFollowupVo;
@ -47,6 +49,7 @@ public class AdminPmsPatientController {
*/ */
@ApiOperation("查询上报类型") @ApiOperation("查询上报类型")
@PostMapping("/list") @PostMapping("/list")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<PmsPatientVo.PatientResult>> adminQuery( @RequestBody @Validated BaseDto<PmsPatientDto.PatientQuery> dto) { public JsonResponse<PageInfo<PmsPatientVo.PatientResult>> adminQuery( @RequestBody @Validated BaseDto<PmsPatientDto.PatientQuery> dto) {
if (dto.getPageNum() > 0) { if (dto.getPageNum() > 0) {
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
@ -56,6 +59,7 @@ public class AdminPmsPatientController {
@ApiOperation("导出") @ApiOperation("导出")
@PostMapping("/export") @PostMapping("/export")
@DataSource(DataSourceType.MASTER)
public void adminExportPatient(HttpServletResponse response, @RequestBody @Validated PmsPatientDto.PatientQuery dto) { public void adminExportPatient(HttpServletResponse response, @RequestBody @Validated PmsPatientDto.PatientQuery dto) {
pmsPatientService.adminExportPatient(response, dto); pmsPatientService.adminExportPatient(response, dto);
} }

12
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminPmsTreatmentController.java

@ -1,7 +1,9 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder; import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder;
import com.acupuncture.system.domain.dto.PmsTreatmentDto; import com.acupuncture.system.domain.dto.PmsTreatmentDto;
import com.acupuncture.system.domain.po.DmsTenant; import com.acupuncture.system.domain.po.DmsTenant;
@ -41,13 +43,10 @@ public class AdminPmsTreatmentController {
@Resource @Resource
private PmsTreatmentService treatmentService; private PmsTreatmentService treatmentService;
@Resource
private DmsTenantMapper dmsTenantMapper;
@Resource
private UmsDataSourceMapper umsDataSourceMapper;
@ApiOperation("查询诊疗档案") @ApiOperation("查询诊疗档案")
@PostMapping("/list") @PostMapping("/list")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<PmsTreatmentVo.TreatmentVO>> listTreatment(@RequestBody @Validated BaseDto<PmsTreatmentDto.TreatmentQueryDTO> queryDTO) { public JsonResponse<PageInfo<PmsTreatmentVo.TreatmentVO>> listTreatment(@RequestBody @Validated BaseDto<PmsTreatmentDto.TreatmentQueryDTO> queryDTO) {
if (queryDTO.getPageNum() > 0) { if (queryDTO.getPageNum() > 0) {
PageHelper.startPage(queryDTO.getPageNum(), queryDTO.getPageSize()); PageHelper.startPage(queryDTO.getPageNum(), queryDTO.getPageSize());
@ -57,12 +56,14 @@ public class AdminPmsTreatmentController {
@ApiOperation("查询诊疗档案数据") @ApiOperation("查询诊疗档案数据")
@PostMapping("/queryRecord") @PostMapping("/queryRecord")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PmsTreatmentVo.TreatmentRecordVO> queryRecord(@RequestBody @Validated PmsTreatmentDto.QueryRecord dto) { public JsonResponse<PmsTreatmentVo.TreatmentRecordVO> queryRecord(@RequestBody @Validated PmsTreatmentDto.QueryRecord dto) {
return JsonResponse.ok(treatmentService.adminQueryRecord(dto.getTreatmentId(), dto.getCodeList())); return JsonResponse.ok(treatmentService.adminQueryRecord(dto.getTreatmentId(), dto.getCodeList()));
} }
@ApiOperation("导出诊疗档案数据") @ApiOperation("导出诊疗档案数据")
@PostMapping("/exportTreatment") @PostMapping("/exportTreatment")
@DataSource(DataSourceType.MASTER)
public void exportTreatment(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.TreatmentQueryDTO dto) { public void exportTreatment(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.TreatmentQueryDTO dto) {
treatmentService.adminExportTreatment(response, dto); treatmentService.adminExportTreatment(response, dto);
} }
@ -75,6 +76,7 @@ public class AdminPmsTreatmentController {
// } // }
// //
<<<<<<< HEAD
private static void changeDataSource(String dataSourceKey) { private static void changeDataSource(String dataSourceKey) {
try { try {
DynamicDataSourceContextHolder.setDataSourceType(dataSourceKey); DynamicDataSourceContextHolder.setDataSourceType(dataSourceKey);
@ -83,6 +85,8 @@ public class AdminPmsTreatmentController {
} }
} }
=======
>>>>>>> new
// @ApiOperation("导出诊疗档案评估报告") // @ApiOperation("导出诊疗档案评估报告")
// @PostMapping("/exportTreatmentPg") // @PostMapping("/exportTreatmentPg")
// public JsonResponse<String> exportTreatmentPg(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.ExportVO dto){ // public JsonResponse<String> exportTreatmentPg(HttpServletResponse response, @RequestBody @Validated PmsTreatmentDto.ExportVO dto){

7
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminStatisticsController.java

@ -1,6 +1,8 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.system.domain.dto.StatisticsDto; import com.acupuncture.system.domain.dto.StatisticsDto;
import com.acupuncture.system.domain.vo.AdminStatisticsVo; import com.acupuncture.system.domain.vo.AdminStatisticsVo;
import com.acupuncture.system.service.AdminStatisticsService; import com.acupuncture.system.service.AdminStatisticsService;
@ -33,30 +35,35 @@ public class AdminStatisticsController {
@ApiOperation("患者统计") @ApiOperation("患者统计")
@PostMapping("/patientTotal") @PostMapping("/patientTotal")
@DataSource(DataSourceType.MASTER)
public JsonResponse<AdminStatisticsVo.PatientVo> queryPatientStatistics(@RequestBody @Validated StatisticsDto.Query dto) { public JsonResponse<AdminStatisticsVo.PatientVo> queryPatientStatistics(@RequestBody @Validated StatisticsDto.Query dto) {
return JsonResponse.ok(statisticsService.queryPatientStatistics(dto)); return JsonResponse.ok(statisticsService.queryPatientStatistics(dto));
} }
@ApiOperation("诊疗统计") @ApiOperation("诊疗统计")
@PostMapping("/zlInfo") @PostMapping("/zlInfo")
@DataSource(DataSourceType.MASTER)
public JsonResponse<AdminStatisticsVo.TreamentVo> queryZlStatistics(@RequestBody @Validated StatisticsDto.Query dto) { public JsonResponse<AdminStatisticsVo.TreamentVo> queryZlStatistics(@RequestBody @Validated StatisticsDto.Query dto) {
return JsonResponse.ok(statisticsService.queryZlStatistics(dto)); return JsonResponse.ok(statisticsService.queryZlStatistics(dto));
} }
@ApiOperation("治疗类型统计") @ApiOperation("治疗类型统计")
@PostMapping("/zlType") @PostMapping("/zlType")
@DataSource(DataSourceType.MASTER)
public JsonResponse<AdminStatisticsVo.ZlTypeVo> queryZlTypeStatistics(@RequestBody @Validated StatisticsDto.Query dto) { public JsonResponse<AdminStatisticsVo.ZlTypeVo> queryZlTypeStatistics(@RequestBody @Validated StatisticsDto.Query dto) {
return JsonResponse.ok(statisticsService.queryZlTypeStatistics(dto)); return JsonResponse.ok(statisticsService.queryZlTypeStatistics(dto));
} }
@ApiOperation("随访分布统计") @ApiOperation("随访分布统计")
@PostMapping("/sffb") @PostMapping("/sffb")
@DataSource(DataSourceType.MASTER)
public JsonResponse<List<AdminStatisticsVo.SffbVo.DlVo>> querySfStatistics(@RequestBody @Validated StatisticsDto.Query dto) { public JsonResponse<List<AdminStatisticsVo.SffbVo.DlVo>> querySfStatistics(@RequestBody @Validated StatisticsDto.Query dto) {
return JsonResponse.ok(statisticsService.querySfStatistics(dto)); return JsonResponse.ok(statisticsService.querySfStatistics(dto));
} }
@ApiOperation("失访统计") @ApiOperation("失访统计")
@PostMapping("/sftj") @PostMapping("/sftj")
@DataSource(DataSourceType.MASTER)
public JsonResponse<List<AdminStatisticsVo.SftjVo>> querySfTjStatistics(@RequestBody @Validated StatisticsDto.Query dto) { public JsonResponse<List<AdminStatisticsVo.SftjVo>> querySfTjStatistics(@RequestBody @Validated StatisticsDto.Query dto) {
return JsonResponse.ok(statisticsService.querySfTjStatistics(dto)); return JsonResponse.ok(statisticsService.querySfTjStatistics(dto));
} }

6
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/AdminTenantsController.java

@ -1,7 +1,9 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.common.utils.SecurityUtils; import com.acupuncture.common.utils.SecurityUtils;
import com.acupuncture.system.domain.dto.AdminTenantsDto; import com.acupuncture.system.domain.dto.AdminTenantsDto;
import com.acupuncture.system.domain.vo.AdminTenantsVo; import com.acupuncture.system.domain.vo.AdminTenantsVo;
@ -37,6 +39,7 @@ public class AdminTenantsController {
@ApiOperation("添加租户") @ApiOperation("添加租户")
@PostMapping("/add") @PostMapping("/add")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> insert(@RequestBody @Validated AdminTenantsDto.AddDto dto) { public JsonResponse<Integer> insert(@RequestBody @Validated AdminTenantsDto.AddDto dto) {
if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) {
return JsonResponse.ok().fail("无权限"); return JsonResponse.ok().fail("无权限");
@ -46,6 +49,7 @@ public class AdminTenantsController {
@ApiOperation("修改租户") @ApiOperation("修改租户")
@PostMapping("/upd") @PostMapping("/upd")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> update(@RequestBody @Validated AdminTenantsDto.UpdDto dto) { public JsonResponse<Integer> update(@RequestBody @Validated AdminTenantsDto.UpdDto dto) {
if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) {
return JsonResponse.ok().fail("无权限"); return JsonResponse.ok().fail("无权限");
@ -55,6 +59,7 @@ public class AdminTenantsController {
@ApiOperation("删除租户") @ApiOperation("删除租户")
@PostMapping("/del") @PostMapping("/del")
@DataSource(DataSourceType.MASTER)
public JsonResponse<Integer> delete(@RequestBody @Validated AdminTenantsDto.DeleteDto dto) { public JsonResponse<Integer> delete(@RequestBody @Validated AdminTenantsDto.DeleteDto dto) {
if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) {
return JsonResponse.ok().fail("无权限"); return JsonResponse.ok().fail("无权限");
@ -64,6 +69,7 @@ public class AdminTenantsController {
@ApiOperation("查询租户") @ApiOperation("查询租户")
@PostMapping("/list") @PostMapping("/list")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<AdminTenantsVo.Result>> query(@RequestBody @Validated BaseDto<AdminTenantsDto.Query> dto) { public JsonResponse<PageInfo<AdminTenantsVo.Result>> query(@RequestBody @Validated BaseDto<AdminTenantsDto.Query> dto) {
if (dto.getPageNum() > 0) { if (dto.getPageNum() > 0) {
PageHelper.startPage(dto.getPageNum(), dto.getPageSize()); PageHelper.startPage(dto.getPageNum(), dto.getPageSize());

90
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/DmsLoginController.java

@ -4,6 +4,7 @@ import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.annotation.Log; import com.acupuncture.common.annotation.Log;
import com.acupuncture.common.constant.Constants; import com.acupuncture.common.constant.Constants;
import com.acupuncture.common.core.domain.AjaxResult; import com.acupuncture.common.core.domain.AjaxResult;
import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.core.domain.entity.SysUser; import com.acupuncture.common.core.domain.entity.SysUser;
import com.acupuncture.common.core.domain.model.LoginBody; import com.acupuncture.common.core.domain.model.LoginBody;
@ -14,17 +15,26 @@ import com.acupuncture.common.utils.SecurityUtils;
import com.acupuncture.framework.web.service.SysPermissionService; import com.acupuncture.framework.web.service.SysPermissionService;
import com.acupuncture.framework.web.service.TokenService; import com.acupuncture.framework.web.service.TokenService;
import com.acupuncture.framework.web.service.WebDmsLoginService; import com.acupuncture.framework.web.service.WebDmsLoginService;
import com.acupuncture.system.domain.dto.FmsFollowupDto;
import com.acupuncture.system.domain.po.DmsTenant; import com.acupuncture.system.domain.po.DmsTenant;
import com.acupuncture.system.domain.vo.DmsLoginUserVo; import com.acupuncture.system.domain.vo.DmsLoginUserVo;
import com.acupuncture.system.domain.vo.FmsFollowupVo;
import com.acupuncture.system.service.DmsLoginService; import com.acupuncture.system.service.DmsLoginService;
import com.acupuncture.system.service.FmsFollowupQueueService;
import com.acupuncture.system.service.FmsFollowupService;
import com.acupuncture.system.service.ISysUserService; import com.acupuncture.system.service.ISysUserService;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.Map;
import java.util.Set; import java.util.Set;
/** /**
@ -47,6 +57,8 @@ public class DmsLoginController {
private DmsLoginService dmsLoginService; private DmsLoginService dmsLoginService;
@Resource @Resource
private ISysUserService sysUserService; private ISysUserService sysUserService;
@Resource
private FmsFollowupQueueService fmsFollowupQueueService;
/** /**
* 登录方法 * 登录方法
@ -56,6 +68,7 @@ public class DmsLoginController {
*/ */
@DataSource(DataSourceType.MASTER) @DataSource(DataSourceType.MASTER)
@PostMapping("/login") @PostMapping("/login")
@DataSource(DataSourceType.MASTER)
public AjaxResult login(@RequestBody LoginBody loginBody) { public AjaxResult login(@RequestBody LoginBody loginBody) {
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();
// 生成令牌 // 生成令牌
@ -66,6 +79,7 @@ public class DmsLoginController {
} }
/** /**
<<<<<<< HEAD
* 登录方法 * 登录方法
* *
* @param loginBody 登录信息 * @param loginBody 登录信息
@ -86,31 +100,83 @@ public class DmsLoginController {
/** /**
* 获取用户信息 * 获取用户信息
* *
=======
* 重置密码
*/
@Log(title = "个人信息", businessType = BusinessType.UPDATE)
@PutMapping("/updatePwd")
@DataSource(DataSourceType.MASTER)
public AjaxResult updatePwd(@RequestBody Map<String, String> params)
{
String oldPassword = params.get("oldPassword");
String newPassword = params.get("newPassword");
LoginUser loginUser = SecurityUtils.getLoginUser();
Long userId = loginUser.getUserId();
String userName = loginUser.getUsername();
String password = loginUser.getPassword();
if (!SecurityUtils.matchesPassword(oldPassword, password))
{
return AjaxResult.error("修改密码失败,旧密码错误");
}
if (SecurityUtils.matchesPassword(newPassword, password))
{
return AjaxResult.error("新密码不能与旧密码相同");
}
newPassword = SecurityUtils.encryptPassword(newPassword);
if (dmsLoginService.resetPwd(userId, userName, newPassword) > 0)
{
// 更新缓存用户密码
loginUser.getUser().setPassword(newPassword);
tokenService.setLoginUser(loginUser);
return AjaxResult.success("操作成功");
}
return AjaxResult.error("修改密码异常,请联系管理员");
}
@ApiOperation("查询公共队列")
@PostMapping("/commonQueue")
@DataSource(DataSourceType.MASTER)
public JsonResponse<PageInfo<FmsFollowupVo.FollowupQueueVO>> queryCommonQueue(@RequestBody @Validated BaseDto<FmsFollowupDto.QueueQuery> dto) {
if (dto.getPageNum() > 0) {
PageHelper.startPage(dto.getPageNum(), dto.getPageSize());
}
return JsonResponse.ok(new PageInfo<>(fmsFollowupQueueService.queryCommonQueue(dto.getParam().getName())));
}
/**
* 获取用户信息暂时先从主库获取
>>>>>>> new
* @return 用户信息 * @return 用户信息
*/ */
@GetMapping("getInfo") @ApiOperation("用户信息")
@GetMapping("/getInfo")
@DataSource(DataSourceType.MASTER)
public AjaxResult getInfo() { public AjaxResult getInfo() {
LoginUser loginUser = SecurityUtils.getLoginUser(); LoginUser loginUser = SecurityUtils.getLoginUser();
//获取用户从库信息 //获取用户从库信息
SysUser user = sysUserService.selectUserByTenantId(loginUser.getTenantId(), loginUser.getUsername()); DmsLoginUserVo.DmsUserVo tenantUser = dmsLoginService.selectTenantUserById(loginUser.getUserId());
SysUser user = new SysUser();
user.setUserId(tenantUser.getId());
user.setUserName(tenantUser.getUserName());
user.setNickName(tenantUser.getNickName());
user.setTenantId(tenantUser.getTenantId());
user.setTenantName(tenantUser.getTenantName());
user.setTenantPhone(tenantUser.getTenantPhone());
user.setSlaverAdmin(tenantUser.getSlaverAdmin());
//刷新token //刷新token
tokenService.refreshToken(loginUser); tokenService.refreshToken(loginUser);
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();
ajax.put("user", user); ajax.put("user", user);
ajax.put("tenantId", loginUser.getTenantId());
ajax.put("scoreId", loginUser.getScoreId());
return ajax; return ajax;
} }
@PutMapping("/resetPwd") /**
public JsonResponse<Integer> resetPwd(@RequestBody DmsLoginUserVo.DmsUserVo user) { * 筛查接口此接口已添加白名单所以不需要@annomous
// webDmsLoginService.checkUserAllowed(user); * @param dto
// webDmsLoginService.checkUserDataScope(user.getUserId()); * @return
user.setPassword(SecurityUtils.encryptPassword(user.getPassword())); */
return JsonResponse.ok(dmsLoginService.resetPwd(user));
}
@PostMapping("/queryTenantById") @PostMapping("/queryTenantById")
@DataSource(DataSourceType.MASTER)
public JsonResponse<DmsTenant> queryTenantById(@RequestBody DmsLoginUserVo.Query dto){ public JsonResponse<DmsTenant> queryTenantById(@RequestBody DmsLoginUserVo.Query dto){
return JsonResponse.ok(dmsLoginService.queryById(dto.getId())); return JsonResponse.ok(dmsLoginService.queryById(dto.getId()));
} }

86
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ExternalController.java

@ -6,18 +6,21 @@ import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.json.JSONArray; import cn.hutool.json.JSONArray;
import com.acupuncture.common.annotation.Anonymous; import com.acupuncture.common.annotation.Anonymous;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.config.RuoYiConfig; import com.acupuncture.common.config.RuoYiConfig;
import com.acupuncture.common.core.domain.AjaxResult; import com.acupuncture.common.core.domain.AjaxResult;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.core.redis.RedisCache; import com.acupuncture.common.core.redis.RedisCache;
import com.acupuncture.common.core.text.Convert; import com.acupuncture.common.core.text.Convert;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.common.exception.base.BaseException; import com.acupuncture.common.exception.base.BaseException;
import com.acupuncture.common.utils.file.FileUploadUtils; import com.acupuncture.common.utils.file.FileUploadUtils;
import com.acupuncture.common.utils.file.FileUtils; import com.acupuncture.common.utils.file.FileUtils;
import com.acupuncture.framework.config.ServerConfig; import com.acupuncture.framework.config.ServerConfig;
import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder; import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder;
import com.acupuncture.system.domain.dto.ExternalDto; import com.acupuncture.system.domain.dto.ExternalDto;
import com.acupuncture.system.domain.po.HmsWeightHeight;
import com.acupuncture.system.domain.po.UplReportImage; import com.acupuncture.system.domain.po.UplReportImage;
import com.acupuncture.system.domain.po.UplRtcfInfo; import com.acupuncture.system.domain.po.UplRtcfInfo;
import com.acupuncture.system.domain.vo.ExternalVo; import com.acupuncture.system.domain.vo.ExternalVo;
@ -29,11 +32,17 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpRequest;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile; import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.BufferedReader;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -61,8 +70,9 @@ public class ExternalController {
@Anonymous @Anonymous
@ApiOperation("获取人员信息") @ApiOperation("获取人员信息")
@GetMapping("/http/getUserInfo") @GetMapping("/http/getUserInfo")
@DataSource(DataSourceType.MASTER)
public Object test(@RequestParam("from") String from, @RequestParam("memberid") String memberid) { public Object test(@RequestParam("from") String from, @RequestParam("memberid") String memberid) {
log.info("获取人员信息:{},{}",from, memberid); log.info("获取人员信息:{},{}", from, memberid);
checkoutData(from); checkoutData(from);
ExternalVo.Result query = externalService.query(from, memberid); ExternalVo.Result query = externalService.query(from, memberid);
if (query == null) { if (query == null) {
@ -81,12 +91,13 @@ public class ExternalController {
} }
//切换数据源查询 //切换数据源查询
DynamicDataSourceContextHolder.setDataSourceType(dataSourceList.get(0).getDataSourceKey()); DynamicDataSourceContextHolder.setDataSourceType(dataSourceList.get(0).getDataSourceKey());
}catch (Exception e) { } catch (Exception e) {
throw new BaseException("UUID错误:{}", from); throw new BaseException("UUID错误:{}", from);
} }
} }
<<<<<<< HEAD
private static void changeDataSource(String key) { private static void changeDataSource(String key) {
try { try {
DynamicDataSourceContextHolder.setDataSourceType(key); DynamicDataSourceContextHolder.setDataSourceType(key);
@ -95,6 +106,8 @@ public class ExternalController {
} }
} }
=======
>>>>>>> new
// @Anonymous // @Anonymous
// @ApiOperation("上传数据") // @ApiOperation("上传数据")
// @PostMapping("/http/uploadMemberInfo") // @PostMapping("/http/uploadMemberInfo")
@ -115,14 +128,14 @@ public class ExternalController {
@Anonymous @Anonymous
@ApiOperation("上传数据") @ApiOperation("上传数据")
@PostMapping("/http/uploadMemberInfo") @PostMapping("/http/uploadMemberInfo")
public Object add(@RequestBody String str){ public Object add(@RequestBody String str) {
log.info("str:{}", str);
JSONArray objects = new JSONArray(str); JSONArray objects = new JSONArray(str);
List<ExternalDto.RtcfInfoDto> list = new ArrayList<>(); List<ExternalDto.RtcfInfoDto> list = new ArrayList<>();
for (Object object : objects) { for (Object object : objects) {
list.add(BeanUtil.copyProperties(object, ExternalDto.RtcfInfoDto.class)); list.add(BeanUtil.copyProperties(object, ExternalDto.RtcfInfoDto.class));
} }
log.info("上传数据dto123:{}",list); log.info("上传数据dto123:{}", list);
// List<ExternalDto.RtcfInfoDto> list = dto.getList(); // List<ExternalDto.RtcfInfoDto> list = dto.getList();
int add = 0; int add = 0;
for (ExternalDto.RtcfInfoDto rtcfInfoDto : list) { for (ExternalDto.RtcfInfoDto rtcfInfoDto : list) {
@ -138,7 +151,7 @@ public class ExternalController {
@Anonymous @Anonymous
@ApiOperation("上传数据") @ApiOperation("上传数据")
@PostMapping("/http/addReportImage") @PostMapping("/http/addReportImage")
public Object addReportImage(MultipartFile image){ public Object addReportImage(MultipartFile image) {
try { try {
//切换数据源 //切换数据源
String str = removeExtension(image.getOriginalFilename()); String str = removeExtension(image.getOriginalFilename());
@ -164,9 +177,7 @@ public class ExternalController {
reportImageDto.setMemberId(str); reportImageDto.setMemberId(str);
externalService.addReportImage(reportImageDto); externalService.addReportImage(reportImageDto);
return ajax; return ajax;
} } catch (Exception e) {
catch (Exception e)
{
return AjaxResult.error(e.getMessage()); return AjaxResult.error(e.getMessage());
} }
} }
@ -181,19 +192,64 @@ public class ExternalController {
@ApiOperation("上传数据查询") @ApiOperation("上传数据查询")
@PostMapping("/http/list") @PostMapping("/http/list")
public List<UplRtcfInfo> list(){ public List<UplRtcfInfo> list() {
return externalService.list(); return externalService.list();
} }
@ApiOperation("根据住院号/门诊号查询人体成分信息") @ApiOperation("根据诊疗档案ID查询人体成分信息")
@PostMapping("/api/http/selectByMemberId") @PostMapping("/api/http/selectByMemberId")
public JsonResponse<UplRtcfInfoVo.Result> selectByMemberId(@RequestBody @Validated ExternalDto.MemberDto dto){ public JsonResponse<UplRtcfInfoVo.Result> selectByMemberId(@RequestBody @Validated ExternalDto.MemberDto dto) {
return JsonResponse.ok(externalService.selectByMemberId(dto.getMemberId())); return JsonResponse.ok(externalService.selectByMemberId(dto.getId(), dto.getMemberId()));
} }
@ApiOperation("根据住院号/门诊号查询人体成分报告") @ApiOperation("根据住院号/门诊号查询人体成分报告")
@PostMapping("/api/http/selectReportByMemberId") @PostMapping("/api/http/selectReportByMemberId")
public JsonResponse<UplReportImage> selectReportByMemberId(@RequestBody @Validated ExternalDto.MemberDto dto){ public JsonResponse<UplReportImage> selectReportByMemberId(@RequestBody @Validated ExternalDto.MemberDto dto) {
return JsonResponse.ok(externalService.selectReportByMemberId(dto.getMemberId())); return JsonResponse.ok(externalService.selectReportByMemberId(dto.getId()));
} }
// @Anonymous
// @ApiOperation("身高体重仪和针灸系统的对接")
// @RequestMapping(value = "/api/http/dmh", method = {RequestMethod.GET, RequestMethod.POST})
// public JsonResponse<Integer> dmh(String str){
// //W:066.5 H:173.5\r\n
// log.info("身高体重仪和针灸系统的对接:{}", str);
// externalService.dmh(str);
// return JsonResponse.ok();
// }
@Anonymous
@ApiOperation("身高体重仪和针灸系统的对接")
@RequestMapping(value = "/api/http/dmh", method = {RequestMethod.GET, RequestMethod.POST})
public JsonResponse<Integer> dmh(HttpServletRequest request) {
StringBuffer sb = new StringBuffer();
InputStream is = null;
String error = "error";
try {
is = request.getInputStream();
InputStreamReader isr = new InputStreamReader(is, "GBK");
BufferedReader br = new BufferedReader(isr);
String s = "";
while ((s = br.readLine()) != null) {
sb.append(s);
}
} catch (Exception e) {
e.printStackTrace();
}
String str =sb.toString();
log.info(str);
//W:066.5 H:173.5\r\n
log.info("身高体重仪和针灸系统的对接:{}", str);
externalService.dmh(str);
return JsonResponse.ok();
}
@DataSource(DataSourceType.MASTER)
@ApiOperation("查询身高体重")
@PostMapping("/api/http/getWeightHeight")
public JsonResponse<HmsWeightHeight> getWeightHeight(@RequestBody @Validated ExternalDto.Weight dto) {
return JsonResponse.ok(externalService.getWeightHeight(dto.getWeightMachineId()));
}
} }

5
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/FmsFollowupController.java

@ -49,11 +49,10 @@ import java.util.List;
@RestController @RestController
@RequestMapping("/followup") @RequestMapping("/followup")
public class FmsFollowupController { public class FmsFollowupController {
@Resource
private FmsFollowupQueueService fmsFollowupQueueService;
@Resource @Resource
private FmsFollowupService fmsFollowupService; private FmsFollowupService fmsFollowupService;
<<<<<<< HEAD
@ApiOperation("查询公共队列") @ApiOperation("查询公共队列")
@PostMapping("/commonQueue") @PostMapping("/commonQueue")
@ -66,6 +65,8 @@ public class FmsFollowupController {
return JsonResponse.ok(new PageInfo<>(fmsFollowupQueueService.queryCommonQueue(dto.getParam().getName()))); return JsonResponse.ok(new PageInfo<>(fmsFollowupQueueService.queryCommonQueue(dto.getParam().getName())));
} }
=======
>>>>>>> new
@ApiOperation("查询随访队列") @ApiOperation("查询随访队列")
@PostMapping("/query") @PostMapping("/query")
public JsonResponse<PageInfo<FmsFollowupVo.FollowupQueueVO>> queryQueue(@RequestBody @Validated BaseDto<FmsFollowupDto.FollowupQueueQueryDTO> dto) { public JsonResponse<PageInfo<FmsFollowupVo.FollowupQueueVO>> queryQueue(@RequestBody @Validated BaseDto<FmsFollowupDto.FollowupQueueQueryDTO> dto) {

7
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/PmsPatientController.java

@ -78,4 +78,11 @@ public class PmsPatientController {
return JsonResponse.ok(); return JsonResponse.ok();
} }
@ApiOperation("导入患者信息")
@PostMapping("/import1")
public JsonResponse<Integer> importPatient1(MultipartFile file) throws IOException{
pmsPatientService.importPatient1(file);
return JsonResponse.ok();
}
} }

19
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ScreeningController.java

@ -41,11 +41,6 @@ import java.util.List;
public class ScreeningController { public class ScreeningController {
@Resource @Resource
private IScreeningService screeningService; private IScreeningService screeningService;
@Resource
private DmsTenantMapper dmsTenantMapper;
@Resource
private UmsDataSourceMapper umsDataSourceMapper;
@ApiOperation(value = "查询筛查列表", notes = "原:查询医院是否填写了调查筛查") @ApiOperation(value = "查询筛查列表", notes = "原:查询医院是否填写了调查筛查")
@RequestMapping(value = "/queryDetail", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) @RequestMapping(value = "/queryDetail", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
@ -57,6 +52,17 @@ public class ScreeningController {
return JsonResponse.ok(screeningService.queryDetailByPage(param.getParam(), param.getPageNum(), param.getPageSize())); return JsonResponse.ok(screeningService.queryDetailByPage(param.getParam(), param.getPageNum(), param.getPageSize()));
} }
@ApiOperation(value = "查询筛查列表", notes = "原:查询医院是否填写了调查筛查")
@RequestMapping(value = "/queryDetailNoToken", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<PageInfo<ScrScreenVo.Result>> queryDetailNoToken(@ApiParam @Validated @RequestBody BaseDto<ScreeningDto.Query> param) {
log.info("查询筛查列表");
if (param.getPageNum() > 0) {
PageHelper.startPage(param.getPageNum(), param.getPageSize());
}
return JsonResponse.ok(screeningService.queryDetailByPageNoToken(param.getParam(), param.getPageNum(), param.getPageSize()));
}
@ApiOperation(value = "后台查询筛查列表", notes = "原:查询医院是否填写了调查筛查") @ApiOperation(value = "后台查询筛查列表", notes = "原:查询医院是否填写了调查筛查")
@RequestMapping(value = "/admin/queryDetail", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) @RequestMapping(value = "/admin/queryDetail", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse<PageInfo<ScrScreenVo.Result>> adminQueryDetail(@ApiParam @Validated @RequestBody BaseDto<ScreeningDto.Query> param) { public JsonResponse<PageInfo<ScrScreenVo.Result>> adminQueryDetail(@ApiParam @Validated @RequestBody BaseDto<ScreeningDto.Query> param) {
@ -87,6 +93,7 @@ public class ScreeningController {
return JsonResponse.ok(detailInfo); return JsonResponse.ok(detailInfo);
} }
<<<<<<< HEAD
private void changeDataSource(Long tenantId) { private void changeDataSource(Long tenantId) {
DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(tenantId); DmsTenant dmsTenant = dmsTenantMapper.selectByPrimaryKey(tenantId);
if (dmsTenant != null) { if (dmsTenant != null) {
@ -101,6 +108,8 @@ public class ScreeningController {
} }
} }
=======
>>>>>>> new
@ApiOperation(value = "提交筛查", notes = "") @ApiOperation(value = "提交筛查", notes = "")
@RequestMapping(value = "/submit", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) @RequestMapping(value = "/submit", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
public JsonResponse submitQuestionnaire(@ApiParam @Validated @RequestBody BaseDto<ScreeningDto.SubmitScreeningQuestionnaire> params) throws Exception { public JsonResponse submitQuestionnaire(@ApiParam @Validated @RequestBody BaseDto<ScreeningDto.SubmitScreeningQuestionnaire> params) throws Exception {

211
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/TaskController.java

@ -1,211 +0,0 @@
package com.acupuncture.web.controller.web;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil;
import com.acupuncture.common.annotation.Anonymous;
import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder;
import com.acupuncture.system.domain.po.FmsFollowupTask;
import com.acupuncture.system.domain.po.FmsPatientQueueRelation;
import com.acupuncture.system.domain.vo.FmsFollowupVo;
import com.acupuncture.system.domain.vo.UmsDataSourceVo;
import com.acupuncture.system.persist.dao.FmsFollowupDao;
import com.acupuncture.system.persist.dao.UmsDataSourceDao;
import com.acupuncture.system.persist.mapper.FmsFollowupTaskMapper;
import com.acupuncture.system.persist.mapper.FmsPatientQueueRelationMapper;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.quartz.TriggerUtils;
import org.quartz.impl.triggers.CronTriggerImpl;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;
/**
* @Author zzc
* @Package com.acupuncture.web.controller.web
* @Date 2025/2/13 8:50
* @description:
*/
@Slf4j
@Api(tags = "定时任务相关")
@RestController
@RequestMapping("/task")
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class TaskController {
@Resource
private FmsFollowupDao fmsFollowupDao;
@Resource
private FmsFollowupTaskMapper fmsFollowupTaskMapper;
@Resource
private UmsDataSourceDao umsDataSourceDao;
@Resource
private FmsPatientQueueRelationMapper fmsPatientQueueRelationMapper;
@ApiOperation("定时任务添加随访工单")
@PostMapping("/task")
// @Scheduled(fixedRate = 10000)
@Anonymous
public void task() {
// TODO 生成工单第一次生成之后2周的,往后只生成之后一周。第一次随访时间: ( 患者的出院时间 - 7 + 轮次时间) 到 (患者的出院时间 + 7 + 轮次时间 )
//查询租户,根据租户循环切换数据源,定时处理所有医院的随访工单
// UmsDataSourceVo.Result result1 = new UmsDataSourceVo.Result();
// result1.setDataSourceKey("MASTER");
// changeDataSource(result1);
List<UmsDataSourceVo.Result> query = umsDataSourceDao.query(null);
if (CollectionUtil.isEmpty(query)) {
return;
}
//查询公共队列
List<FmsFollowupVo.FollowupQueueVO> queueResults = fmsFollowupDao.queryCommonQueue(null);
//切换数据源
for (UmsDataSourceVo.Result result : query) {
if ("MASTER".equals(result.getDataSourceKey())) {
continue;
}
changeDataSource(result);
{
//获取随访患者列表,根据患者出院日时间和队列添加工单
//1. 查询队列
List<FmsFollowupVo.FollowupQueueVO> queueList = fmsFollowupDao.selectQueueList(null, null, null, result.getTenantId());
if (CollectionUtil.isEmpty(queueList)) {
queueList = queueResults;
} else {
queueList.addAll(queueResults);
}
for (FmsFollowupVo.FollowupQueueVO followupQueueVO : queueList) {
//2. 查询队列随访患者列表
List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupDao.queryPatient(followupQueueVO.getId(), (byte) 0, null, followupQueueVO.getTenantId());
if (CollectionUtil.isEmpty(patientList)) {
continue;
}
//随访总月数
Integer followupMonth = followupQueueVO.getFollowupMonth();
for (FmsFollowupVo.FollowupPatient followupPatient : patientList) {
//获取随访到期时间 出院时间+随访总月数 = 到期时间
Calendar calendar = Calendar.getInstance();
calendar.setTime(followupPatient.getDischargeTime());
calendar.set(Calendar.MONTH, followupMonth);
Date time = calendar.getTime();
//获取队列信息
String frequency = followupQueueVO.getFrequency();
List<Date> dateList = new ArrayList<>();
try {
CronTriggerImpl cronTrigger = new CronTriggerImpl();
cronTrigger.setCronExpression(frequency);
//TriggerUtils.computeFireTimesBetween(要计算触发时间的触发器对象, 用于计算触发时间的日历对象, 计算触发时间的起始时间点, 计算触发时间的结束时间点);
dateList = TriggerUtils.computeFireTimesBetween(cronTrigger, null, followupPatient.getDischargeTime(), time);
if (CollectionUtil.isEmpty(dateList)) {
continue;
}
} catch (Exception e) {
e.printStackTrace();
}
//3. 判断随访类型
if (followupQueueVO.getFollowupType() == 0) {
//单次
FmsFollowupTask fmsFollowupTask = new FmsFollowupTask();
BeanUtil.copyProperties(followupQueueVO, fmsFollowupTask);
fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
fmsFollowupTask.setName(followupPatient.getName());
fmsFollowupTask.setPinyinFull(followupPatient.getPinyinFull());
fmsFollowupTask.setPinyinSimple(followupPatient.getPinyinSimple());
fmsFollowupTask.setGender(followupPatient.getGender());
if (followupPatient.getBirthDate() != null) {
fmsFollowupTask.setAge(DateUtil.age(followupPatient.getBirthDate(), new Date()));
}
fmsFollowupTask.setEthnicity(followupPatient.getEthnicity());
fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
fmsFollowupTask.setPhone(followupPatient.getPhone());
fmsFollowupTask.setTenantId(followupPatient.getTenantId());
fmsFollowupTask.setIdCardType(followupPatient.getIdCardType());
fmsFollowupTask.setIdCard(followupPatient.getIdCard());
fmsFollowupTask.setTimes(1);
fmsFollowupTask.setQueueId(followupQueueVO.getId());
fmsFollowupTask.setPatientId(followupPatient.getId());
fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
fmsFollowupTask.setDelFlag((byte) 0);
fmsFollowupTask.setCreateTime(new Date());
fmsFollowupTask.setStatus((byte) 0);
fmsFollowupTask.setStartTime(dateList.get(0));
fmsFollowupTask.setEndTime(dateList.get(0));
fmsFollowupTask.setFollowuper(followupQueueVO.getPersonInCharge());
fmsFollowupTask.setFollowupTime(dateList.get(0));
changeDataSource(result);
fmsFollowupTaskMapper.insertSelective(fmsFollowupTask);
} else {
//周期
//4. 根据频次和总月数添加
int i = 0;
for (Date date : dateList) {
i+=1;
//单次
FmsFollowupTask fmsFollowupTask = new FmsFollowupTask();
BeanUtil.copyProperties(followupQueueVO, fmsFollowupTask);
fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
fmsFollowupTask.setName(followupPatient.getName());
fmsFollowupTask.setPinyinFull(followupPatient.getPinyinFull());
fmsFollowupTask.setPinyinSimple(followupPatient.getPinyinSimple());
fmsFollowupTask.setGender(followupPatient.getGender());
if (followupPatient.getBirthDate() != null) {
fmsFollowupTask.setAge(DateUtil.age(followupPatient.getBirthDate(), new Date()));
}
fmsFollowupTask.setEthnicity(followupPatient.getEthnicity());
fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
fmsFollowupTask.setTimes(i);
fmsFollowupTask.setPhone(followupPatient.getPhone());
fmsFollowupTask.setTenantId(followupPatient.getTenantId());
fmsFollowupTask.setIdCardType(followupPatient.getIdCardType());
fmsFollowupTask.setIdCard(followupPatient.getIdCard());
fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
fmsFollowupTask.setQueueId(followupQueueVO.getId());
fmsFollowupTask.setDelFlag((byte) 0);
fmsFollowupTask.setCreateTime(new Date());
fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
fmsFollowupTask.setStatus((byte) 0);
fmsFollowupTask.setStartTime(date);
fmsFollowupTask.setEndTime(date);
fmsFollowupTask.setFollowuper(followupQueueVO.getPersonInCharge());
fmsFollowupTask.setFollowupTime(date);
changeDataSource(result);
fmsFollowupTask.setPatientId(followupPatient.getId());
fmsFollowupTaskMapper.insertSelective(fmsFollowupTask);
}
}
changeDataSource(result);
//将患者设置为已生成工单
FmsPatientQueueRelation fmsPatientQueueRelation = BeanUtil.copyProperties(followupPatient, FmsPatientQueueRelation.class);
fmsPatientQueueRelation.setTaskFlag((byte) 1);
fmsPatientQueueRelation.setPatientId(followupPatient.getId());
fmsPatientQueueRelationMapper.updateByPrimaryKeySelective(fmsPatientQueueRelation);
}
}
}
}
}
private static void changeDataSource(UmsDataSourceVo.Result result) {
try {
DynamicDataSourceContextHolder.setDataSourceType(result.getDataSourceKey());
}finally {
DynamicDataSourceContextHolder.clearDataSourceType();
}
}
}

2
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/WxQrCodeController.java

@ -1,7 +1,5 @@
package com.acupuncture.web.controller.web; package com.acupuncture.web.controller.web;
import cn.hutool.core.bean.BeanUtil;
import com.acupuncture.common.annotation.Anonymous;
import com.acupuncture.common.core.domain.BaseDto; import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse; import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.system.domain.dto.AmsWxQrCodeDto; import com.acupuncture.system.domain.dto.AmsWxQrCodeDto;

87
acupuncture-admin/src/main/java/com/acupuncture/web/controller/web/ZytzController.java

@ -0,0 +1,87 @@
package com.acupuncture.web.controller.web;
import com.acupuncture.common.annotation.Anonymous;
import com.acupuncture.common.core.domain.BaseDto;
import com.acupuncture.common.core.domain.JsonResponse;
import com.acupuncture.common.exception.base.BaseException;
import com.acupuncture.common.utils.SecurityUtils;
import com.acupuncture.system.domain.dto.PmsTreatmentDto;
import com.acupuncture.system.domain.dto.ZytzDto;
import com.acupuncture.system.domain.vo.ZytzVo;
import com.acupuncture.system.service.ZytzService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
/**
* @author zhangsan
* @description
* @date 2025/4/6 18:37
*/
@Slf4j
@Api(tags = "中医体质测评相关")
@RestController
@RequestMapping("/zytz")
public class ZytzController {
@Resource
private ZytzService zytzService;
@ApiOperation("生成中医体质辨识二维码")
@PostMapping("/qrcode")
public JsonResponse<String> getZytzQrcode(@RequestBody @Validated BaseDto<ZytzDto.ZytzQrcode> dto){
Long tenantId = SecurityUtils.getTenantId();
if(tenantId == null){
throw new BaseException("未找到tenantId");
}
return JsonResponse.ok(zytzService.getZytzQrcode(dto.getParam(), tenantId));
}
/**
* 查询测评题目及选项
*/
@Anonymous
@PostMapping("/questions/list")
public JsonResponse<ZytzVo.EvaQuestionList> evaQuestionList(@Validated @RequestBody BaseDto<ZytzDto.EvaQuestionList> dto) {
return JsonResponse.ok(zytzService.evaQuestionList(dto.getParam()));
}
/**
* 提交测评
*/
@Anonymous
@PostMapping("/questions/submit")
public JsonResponse<Integer> evaQuestionSubmit(@Validated @RequestBody BaseDto<ZytzDto.EvaQuestionSubmit> dto) {
return JsonResponse.ok(zytzService.evaQuestionSubmit(dto.getParam()));
}
/**
* 完成测评生成报告单
* @param dto
* @return
*/
@Anonymous
@PostMapping("/eva/complete")
public JsonResponse<Integer> evaComplete(@Validated @RequestBody BaseDto<ZytzDto.EvaComplete> dto) {
return JsonResponse.ok(zytzService.evaComplete(dto.getParam()));
}
/**
* 查看报告单
* @param dto
* @return
*/
@Anonymous
@PostMapping("/report/view")
public JsonResponse<ZytzVo.ReportView> reportView(@Validated @RequestBody BaseDto<ZytzDto.ReportView> dto) {
return JsonResponse.ok(zytzService.reportView(dto.getParam()));
}
}

329
acupuncture-admin/src/main/java/com/acupuncture/web/task/TaskController.java

@ -1,3 +1,4 @@
<<<<<<< HEAD
//package com.acupuncture.web.controller.web; //package com.acupuncture.web.controller.web;
// //
//import cn.hutool.core.bean.BeanUtil; //import cn.hutool.core.bean.BeanUtil;
@ -341,6 +342,8 @@
// private Integer index; // private Integer index;
// } // }
//} //}
=======
>>>>>>> new
package com.acupuncture.web.task; package com.acupuncture.web.task;
import cn.hutool.core.bean.BeanUtil; import cn.hutool.core.bean.BeanUtil;
@ -349,7 +352,9 @@ import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdUtil; import cn.hutool.core.util.IdUtil;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import com.acupuncture.common.annotation.Anonymous; import com.acupuncture.common.annotation.Anonymous;
import com.acupuncture.common.annotation.DataSource;
import com.acupuncture.common.core.redis.RedisCache; import com.acupuncture.common.core.redis.RedisCache;
import com.acupuncture.common.enums.DataSourceType;
import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder; import com.acupuncture.framework.datasource.DynamicDataSourceContextHolder;
import com.acupuncture.system.domain.dto.FmsFollowupDto; import com.acupuncture.system.domain.dto.FmsFollowupDto;
import com.acupuncture.system.domain.po.FmsFollowupTask; import com.acupuncture.system.domain.po.FmsFollowupTask;
@ -391,7 +396,7 @@ import java.util.stream.Collectors;
@Api(tags = "定时任务相关") @Api(tags = "定时任务相关")
@RestController @RestController
@RequestMapping("/task") @RequestMapping("/task")
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class) //@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class TaskController { public class TaskController {
@Resource @Resource
@ -419,199 +424,165 @@ public class TaskController {
//查询从库队列 //查询从库队列
//1. 查询队列 //1. 查询队列
List<FmsFollowupVo.FollowupQueueVO> slavelQueueList = fmsFollowupDao.selectQueueList(null, null, null, null); List<FmsFollowupVo.FollowupQueueVO> slavelQueueList = fmsFollowupDao.selectQueueList(null, null, null, null);
log.info("sa:{}", slavelQueueList);
//合并公共队列和从库的队列 // //合并公共队列和从库的队列
slavelQueueList.addAll(commonQueue); slavelQueueList.addAll(commonQueue);
//查询每个队列的对象 //查询每个队列的对象
for (FmsFollowupVo.FollowupQueueVO queue : slavelQueueList) { for (FmsFollowupVo.FollowupQueueVO followupQueueVO : slavelQueueList) {
FmsFollowupDto.FollowupPatientQueryDTO followupPatientQueryDTO = new FmsFollowupDto.FollowupPatientQueryDTO(); FmsFollowupDto.FollowupPatientQueryDTO followupPatientQueryDTO = new FmsFollowupDto.FollowupPatientQueryDTO();
followupPatientQueryDTO.setQueueId(queue.getId()); followupPatientQueryDTO.setQueueId(followupQueueVO.getId());
followupPatientQueryDTO.setTenantId(queue.getTenantId()); followupPatientQueryDTO.setTenantId(followupQueueVO.getTenantId());
List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupService.queryPatient(followupPatientQueryDTO); List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupService.queryPatient(followupPatientQueryDTO);
log.info("查询每个队列的对象:{}", patientList); log.info("查询每个队列的对象:{}", patientList);
} if (CollectionUtil.isEmpty(patientList)) {
continue;
}
Integer followWindowAdys = followupQueueVO.getFollowWindowAdys();
//随访总月数
Integer followupMonth = followupQueueVO.getFollowupMonth();
for (FmsFollowupVo.FollowupPatient followupPatient : patientList) {
//获取随访到期时间 出院时间+随访总月数 = 到期时间
Calendar calendar = Calendar.getInstance();
calendar.setTime(followupPatient.getDischargeTime());
calendar.set(Calendar.MONTH, followupMonth);
Date time = calendar.getTime();
//定时任务 //获取队列信息
String frequency = followupQueueVO.getFrequency();
List<Date> dateList = new ArrayList<>();
try {
CronTriggerImpl cronTrigger = new CronTriggerImpl();
cronTrigger.setCronExpression(frequency);
//TriggerUtils.computeFireTimesBetween(要计算触发时间的触发器对象, 用于计算触发时间的日历对象, 计算触发时间的起始时间点, 计算触发时间的结束时间点);
dateList = TriggerUtils.computeFireTimesBetween(cronTrigger, null, followupPatient.getDischargeTime(), time);
if (CollectionUtil.isEmpty(dateList)) {
continue;
}
} catch (Exception e) {
e.printStackTrace();
}finally {
if (CollectionUtil.isEmpty(dateList)) {
continue;
}
}
//3. 判断随访类型
if (followupQueueVO.getFollowupType() == 0) {
//单次
// //循环租户 //判断是否已有该次随访
// for (UmsDataSourceVo.Result tenant : tenantList) { FmsFollowupTaskExample fmsFollowupTaskExample = new FmsFollowupTaskExample();
// if ("MASTER".equals(tenant.getDataSourceKey())) { fmsFollowupTaskExample.createCriteria().andTimesEqualTo(1).andPatientIdEqualTo(followupPatient.getPatientId()).andQueueIdEqualTo(followupQueueVO.getId());
// continue; List<FmsFollowupTask> fmsFollowupTasks = fmsFollowupTaskMapper.selectByExample(fmsFollowupTaskExample);
// } if (CollectionUtil.isNotEmpty(fmsFollowupTasks)) {
// changeDataSource(tenant); continue;
// { }
// //获取随访患者列表,根据患者出院日时间和队列添加工单 FmsFollowupTask fmsFollowupTask = new FmsFollowupTask();
// //1. 查询队列 BeanUtil.copyProperties(followupQueueVO, fmsFollowupTask);
// List<FmsFollowupVo.FollowupQueueVO> queueList = fmsFollowupDao.selectQueueList(null, null, null, null); fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
// fmsFollowupTask.setName(followupPatient.getName());
// if (CollectionUtil.isEmpty(queueList)) { fmsFollowupTask.setPinyinFull(followupPatient.getPinyinFull());
// queueList = followupQueueVOS; fmsFollowupTask.setPinyinSimple(followupPatient.getPinyinSimple());
// } else { fmsFollowupTask.setGender(followupPatient.getGender());
// if (CollectionUtil.isEmpty(followupQueueVOS)) { if (followupPatient.getBirthDate() != null) {
// queueList.addAll(followupQueueVOS); fmsFollowupTask.setAge(DateUtil.age(followupPatient.getBirthDate(), new Date()));
// } }
// } fmsFollowupTask.setEthnicity(followupPatient.getEthnicity());
// for (FmsFollowupVo.FollowupQueueVO followupQueueVO : queueList) { fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
// Integer followWindowAdys = followupQueueVO.getFollowWindowAdys(); fmsFollowupTask.setPhone(followupPatient.getPhone());
// fmsFollowupTask.setTenantId(followupPatient.getTenantId());
// //2. 查询队列随访患者列表 fmsFollowupTask.setIdCardType(followupPatient.getIdCardType());
//// changeDataSource(result); fmsFollowupTask.setIdCard(followupPatient.getIdCard());
// FmsFollowupDto.FollowupPatientQueryDTO followupPatientQueryDTO = new FmsFollowupDto.FollowupPatientQueryDTO(); fmsFollowupTask.setTimes(1);
// followupPatientQueryDTO.setQueueId(followupQueueVO.getId()); fmsFollowupTask.setQueueId(followupQueueVO.getId());
// followupPatientQueryDTO.setTenantId(followupQueueVO.getTenantId()); fmsFollowupTask.setPatientId(followupPatient.getId());
// changeDataSource(result); fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
// fmsFollowupTask.setDelFlag((byte) 0);
// List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupService.queryPatient(followupPatientQueryDTO); fmsFollowupTask.setCreateTime(new Date());
//// List<FmsFollowupVo.FollowupPatient> patientList = fmsFollowupDao.queryPatient(followupQueueVO.getId(), null, null); fmsFollowupTask.setStatus((byte) 0);
// if (CollectionUtil.isEmpty(patientList)) {
// continue; //计算第一次随访的时间
// } DateComparator dateComparator = getDate(dateList);
// //随访总月数 if (dateComparator.getDate() != null) {
// Integer followupMonth = followupQueueVO.getFollowupMonth(); fmsFollowupTask.setStartTime(dateComparator.getDate());
// for (FmsFollowupVo.FollowupPatient followupPatient : patientList) { } else {
// //获取随访到期时间 出院时间+随访总月数 = 到期时间 Calendar instance = Calendar.getInstance();
// Calendar calendar = Calendar.getInstance(); instance.setTime(dateList.get(0));
// calendar.setTime(followupPatient.getDischargeTime()); instance.add(Calendar.DATE, -followWindowAdys / 2);
// calendar.set(Calendar.MONTH, followupMonth); fmsFollowupTask.setStartTime(instance.getTime());
// Date time = calendar.getTime(); }
// Calendar instance1 = Calendar.getInstance();
// //获取队列信息 instance1.setTime(dateList.get(0));
// String frequency = followupQueueVO.getFrequency(); instance1.add(Calendar.DATE, followWindowAdys / 2);
// List<Date> dateList = new ArrayList<>(); fmsFollowupTask.setEndTime(instance1.getTime());
// try { fmsFollowupTask.setFollowuper(followupQueueVO.getPersonInCharge());
// CronTriggerImpl cronTrigger = new CronTriggerImpl(); fmsFollowupTask.setFollowupTime(dateList.get(0));
// cronTrigger.setCronExpression(frequency); fmsFollowupTaskMapper.insertSelective(fmsFollowupTask);
// //TriggerUtils.computeFireTimesBetween(要计算触发时间的触发器对象, 用于计算触发时间的日历对象, 计算触发时间的起始时间点, 计算触发时间的结束时间点); } else {
// dateList = TriggerUtils.computeFireTimesBetween(cronTrigger, null, followupPatient.getDischargeTime(), time); //周期
// if (CollectionUtil.isEmpty(dateList)) { //4. 根据频次和总月数添加
// continue; DateComparator dateComparator = getDate(dateList);
// } if (dateComparator.getDate() == null || dateComparator.getIndex() == null) {
// } catch (Exception e) { continue;
// e.printStackTrace(); }
// } Date date = dateComparator.getDate();
// //3. 判断随访类型 Integer index = dateComparator.getIndex();
// if (followupQueueVO.getFollowupType() == 0) {
// //单次 //判断是否已有该次随访
// FmsFollowupTaskExample fmsFollowupTaskExample = new FmsFollowupTaskExample();
// //判断是否已有该次随访 fmsFollowupTaskExample.createCriteria().andTimesEqualTo(index).andPatientIdEqualTo(followupPatient.getPatientId()).andQueueIdEqualTo(followupQueueVO.getId());
// FmsFollowupTaskExample fmsFollowupTaskExample = new FmsFollowupTaskExample(); List<FmsFollowupTask> fmsFollowupTasks = fmsFollowupTaskMapper.selectByExample(fmsFollowupTaskExample);
// fmsFollowupTaskExample.createCriteria().andTimesEqualTo(1).andPatientIdEqualTo(followupPatient.getPatientId()).andQueueIdEqualTo(followupQueueVO.getId()); if (CollectionUtil.isNotEmpty(fmsFollowupTasks)) {
// List<FmsFollowupTask> fmsFollowupTasks = fmsFollowupTaskMapper.selectByExample(fmsFollowupTaskExample); continue;
// if (CollectionUtil.isNotEmpty(fmsFollowupTasks)) { }
// continue;
// } FmsFollowupTask fmsFollowupTask = new FmsFollowupTask();
// FmsFollowupTask fmsFollowupTask = new FmsFollowupTask(); BeanUtil.copyProperties(followupQueueVO, fmsFollowupTask);
// BeanUtil.copyProperties(followupQueueVO, fmsFollowupTask); fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
// fmsFollowupTask.setId(IdUtil.getSnowflakeNextId()); fmsFollowupTask.setName(followupPatient.getName());
// fmsFollowupTask.setName(followupPatient.getName()); fmsFollowupTask.setPinyinFull(followupPatient.getPinyinFull());
// fmsFollowupTask.setPinyinFull(followupPatient.getPinyinFull()); fmsFollowupTask.setPinyinSimple(followupPatient.getPinyinSimple());
// fmsFollowupTask.setPinyinSimple(followupPatient.getPinyinSimple()); fmsFollowupTask.setGender(followupPatient.getGender());
// fmsFollowupTask.setGender(followupPatient.getGender()); if (followupPatient.getBirthDate() != null) {
// if (followupPatient.getBirthDate() != null) { fmsFollowupTask.setAge(DateUtil.age(followupPatient.getBirthDate(), new Date()));
// fmsFollowupTask.setAge(DateUtil.age(followupPatient.getBirthDate(), new Date())); }
// } fmsFollowupTask.setEthnicity(followupPatient.getEthnicity());
// fmsFollowupTask.setEthnicity(followupPatient.getEthnicity()); fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
// fmsFollowupTask.setEducationYears(followupPatient.getEducationYears()); fmsFollowupTask.setTimes(index);
// fmsFollowupTask.setPhone(followupPatient.getPhone()); fmsFollowupTask.setPhone(followupPatient.getPhone());
// fmsFollowupTask.setTenantId(followupPatient.getTenantId()); fmsFollowupTask.setTenantId(followupPatient.getTenantId());
// fmsFollowupTask.setIdCardType(followupPatient.getIdCardType()); fmsFollowupTask.setIdCardType(followupPatient.getIdCardType());
// fmsFollowupTask.setIdCard(followupPatient.getIdCard()); fmsFollowupTask.setIdCard(followupPatient.getIdCard());
// fmsFollowupTask.setTimes(1); fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
// fmsFollowupTask.setQueueId(followupQueueVO.getId()); fmsFollowupTask.setQueueId(followupQueueVO.getId());
// fmsFollowupTask.setPatientId(followupPatient.getId()); fmsFollowupTask.setDelFlag((byte) 0);
// fmsFollowupTask.setEducationYears(followupPatient.getEducationYears()); fmsFollowupTask.setCreateTime(new Date());
// fmsFollowupTask.setDelFlag((byte) 0); fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
// fmsFollowupTask.setCreateTime(new Date()); fmsFollowupTask.setStatus((byte) 0);
// fmsFollowupTask.setStatus((byte) 0);
// fmsFollowupTask.setStartTime(date);
// //计算第一次随访的时间 Calendar instance = Calendar.getInstance();
// DateComparator dateComparator = getDate(dateList); instance.setTime(date);
// if (dateComparator.getDate() != null) { instance.add(Calendar.DATE, followWindowAdys / 2);
// fmsFollowupTask.setStartTime(dateComparator.getDate());
// } else { fmsFollowupTask.setEndTime(instance.getTime());
// Calendar instance = Calendar.getInstance(); fmsFollowupTask.setPatientId(followupPatient.getId());
// instance.setTime(dateList.get(0)); fmsFollowupTaskMapper.insertSelective(fmsFollowupTask);
// instance.add(Calendar.DATE, -followWindowAdys / 2); }
// fmsFollowupTask.setStartTime(instance.getTime()); }
// } }
// Calendar instance1 = Calendar.getInstance();
// instance1.setTime(dateList.get(0));
// instance1.add(Calendar.DATE, followWindowAdys / 2);
// fmsFollowupTask.setEndTime(instance1.getTime());
// fmsFollowupTask.setFollowuper(followupQueueVO.getPersonInCharge());
// fmsFollowupTask.setFollowupTime(dateList.get(0));
// changeDataSource(result);
// fmsFollowupTaskMapper.insertSelective(fmsFollowupTask);
//
// } else {
// //周期
// //4. 根据频次和总月数添加
// DateComparator dateComparator = getDate(dateList);
// if (dateComparator.getDate() == null || dateComparator.getIndex() == null) {
// continue;
// }
// Date date = dateComparator.getDate();
// Integer index = dateComparator.getIndex();
//
// //判断是否已有该次随访
// FmsFollowupTaskExample fmsFollowupTaskExample = new FmsFollowupTaskExample();
// fmsFollowupTaskExample.createCriteria().andTimesEqualTo(index).andPatientIdEqualTo(followupPatient.getPatientId()).andQueueIdEqualTo(followupQueueVO.getId());
// List<FmsFollowupTask> fmsFollowupTasks = fmsFollowupTaskMapper.selectByExample(fmsFollowupTaskExample);
// if (CollectionUtil.isNotEmpty(fmsFollowupTasks)) {
// continue;
// }
//
// FmsFollowupTask fmsFollowupTask = new FmsFollowupTask();
// BeanUtil.copyProperties(followupQueueVO, fmsFollowupTask);
// fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
// fmsFollowupTask.setName(followupPatient.getName());
// fmsFollowupTask.setPinyinFull(followupPatient.getPinyinFull());
// fmsFollowupTask.setPinyinSimple(followupPatient.getPinyinSimple());
// fmsFollowupTask.setGender(followupPatient.getGender());
// if (followupPatient.getBirthDate() != null) {
// fmsFollowupTask.setAge(DateUtil.age(followupPatient.getBirthDate(), new Date()));
// }
// fmsFollowupTask.setEthnicity(followupPatient.getEthnicity());
// fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
// fmsFollowupTask.setTimes(index);
// fmsFollowupTask.setPhone(followupPatient.getPhone());
// fmsFollowupTask.setTenantId(followupPatient.getTenantId());
// fmsFollowupTask.setIdCardType(followupPatient.getIdCardType());
// fmsFollowupTask.setIdCard(followupPatient.getIdCard());
// fmsFollowupTask.setId(IdUtil.getSnowflakeNextId());
// fmsFollowupTask.setQueueId(followupQueueVO.getId());
// fmsFollowupTask.setDelFlag((byte) 0);
// fmsFollowupTask.setCreateTime(new Date());
// fmsFollowupTask.setEducationYears(followupPatient.getEducationYears());
// fmsFollowupTask.setStatus((byte) 0);
//
// fmsFollowupTask.setStartTime(date);
// Calendar instance = Calendar.getInstance();
// instance.setTime(date);
// instance.add(Calendar.DATE, followWindowAdys / 2);
//
// fmsFollowupTask.setEndTime(instance.getTime());
// changeDataSource(result);
// fmsFollowupTask.setPatientId(followupPatient.getId());
// fmsFollowupTaskMapper.insertSelective(fmsFollowupTask);
// }
// }
// }
//
// }
// }
} }
@DataSource(DataSourceType.MASTER)
@ApiOperation("定时任务添加随访工单") @ApiOperation("定时任务添加随访工单")
@PostMapping("/task") @PostMapping("/task")
@Scheduled(cron = "0 0 0 * * ?") @Scheduled(cron = "0 0 0 * * 1")
@Anonymous @Anonymous
public void task() { public void task() {
// TODO 生成工单第一次生成之后2周的,往后只生成之后一周。第一次随访时间: ( 患者的出院时间 - 7 + 轮次时间) 到 (患者的出院时间 + 7 + 轮次时间 ) // TODO 生成工单第一次生成之后2周的,往后只生成之后一周。第一次随访时间: ( 患者的出院时间 - 7 + 轮次时间) 到 (患者的出院时间 + 7 + 轮次时间 )
//查询租户,根据租户循环切换数据源,定时处理所有医院的随访工单 //查询租户,根据租户循环切换数据源,定时处理所有医院的随访工单
List<UmsDataSourceVo.Result> tenantList = umsDataSourceDao.query(null); List<UmsDataSourceVo.Result> tenantList = umsDataSourceDao.query1(null);
if (CollectionUtil.isEmpty(tenantList)) { if (CollectionUtil.isEmpty(tenantList)) {
return; return;
} }
@ -636,10 +607,6 @@ public class TaskController {
} }
private static void changeDataSource(UmsDataSourceVo.Result result) {
DynamicDataSourceContextHolder.setDataSourceType(result.getDataSourceKey());
}
/** /**
* 法用于计算在指定时间范围内触发器的触发时间点具体步骤如下 * 法用于计算在指定时间范围内触发器的触发时间点具体步骤如下
* 初始化一个空列表 lst 存储触发时间点 * 初始化一个空列表 lst 存储触发时间点

11
acupuncture-admin/src/main/resources/TreamtmentPgTemplate.docx

@ -1,18 +1,14 @@
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
{{h_name}}评估报告 {{h_name}}评估报告
基本信息 基本信息
姓名:{{name}} 姓名:{{name}}
性别:{{sex}} 性别:{{sex}}
年龄:{{age}} 年龄:{{age}}
编号:{{visitNum}} 编号:{{visitNum}}
责任医生:{{doctor}} 责任医生:{{doctor}}
检查日期:{{visitTime}} 检查日期:{{report_date}}
主要诊断 主要诊断
{{Clinical_diagnosis}} {{Clinical_diagnosis}}
病情评估 病情评估
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
{{?rtcf_flag}} {{?rtcf_flag}}
@ -81,15 +77,10 @@
2 2
焦虑自评(SAS) 焦虑自评(SAS)
{{score8}} {{score8}}
{{/jlpg_flag}} {{/jlpg_flag}}
测评人: 测评人:
审核人: 审核人:
报告日期:{{report_date}} 报告日期:{{report_date}}

1
acupuncture-admin/src/main/resources/application-prod.yml

@ -90,3 +90,4 @@ file:
screenPath: http://test.tall.wiki/acupuncture/web-admin/screening/H5?hospitalId=hosId&hospitalName=hosName&centerId=cId screenPath: http://test.tall.wiki/acupuncture/web-admin/screening/H5?hospitalId=hosId&hospitalName=hosName&centerId=cId
pgTemplate: /home/acupuncture/server/profile/TreamtmentPgTemplate.docx pgTemplate: /home/acupuncture/server/profile/TreamtmentPgTemplate.docx
jmrsUrl: /home/acupuncture/server/profile/uploads/jmrsTemplate.docx jmrsUrl: /home/acupuncture/server/profile/uploads/jmrsTemplate.docx

5
acupuncture-admin/src/main/resources/application.yml

@ -48,6 +48,11 @@ user:
# Spring配置 # Spring配置
spring: spring:
jpa:
show-sql: true
properties:
hibernate:
format_sql: true
# 资源信息 # 资源信息
messages: messages:
# 国际化资源文件路径 # 国际化资源文件路径

26
acupuncture-common/src/main/java/com/acupuncture/common/config/RuoYiConfig.java

@ -24,6 +24,9 @@ public class RuoYiConfig
/** 上传路径 */ /** 上传路径 */
private static String profile; private static String profile;
/** 资源路径 */
private static String profileUrl;
/** 获取地址开关 */ /** 获取地址开关 */
private static boolean addressEnabled; private static boolean addressEnabled;
@ -70,6 +73,16 @@ public class RuoYiConfig
RuoYiConfig.profile = profile; RuoYiConfig.profile = profile;
} }
public static String getProfileUrl()
{
return profileUrl;
}
public void setProfileUrl(String profileUrl)
{
RuoYiConfig.profileUrl = profileUrl;
}
public static boolean isAddressEnabled() public static boolean isAddressEnabled()
{ {
return addressEnabled; return addressEnabled;
@ -119,4 +132,17 @@ public class RuoYiConfig
{ {
return getProfile() + "/upload"; return getProfile() + "/upload";
} }
/**
* 获取中医体质二维码存放路径
*/
public static String getZytzQrcodePath()
{
return getProfile() + "/zytz";
}
public static String getZytzQrcodeUrl()
{
return getProfileUrl() + "/zytz";
}
} }

4
acupuncture-common/src/main/java/com/acupuncture/common/core/domain/entity/SysUser.java

@ -100,6 +100,10 @@ public class SysUser extends BaseEntity
@ApiModelProperty("是否具有审核权限(0不具有; 1具有)") @ApiModelProperty("是否具有审核权限(0不具有; 1具有)")
private Byte slaverAdmin; private Byte slaverAdmin;
<<<<<<< HEAD
=======
>>>>>>> new
public SysUser() public SysUser()
{ {

43
acupuncture-framework/src/main/java/com/acupuncture/framework/aspectj/AdminGlobalDataSourceAspect.java

@ -37,8 +37,6 @@ import javax.servlet.http.HttpServletRequest;
public class AdminGlobalDataSourceAspect { public class AdminGlobalDataSourceAspect {
protected Logger logger = LoggerFactory.getLogger(getClass()); protected Logger logger = LoggerFactory.getLogger(getClass());
// @Autowired
// private UmsDataSourceMapper umsDataSourceMapper;
@Resource @Resource
private DmsLoginService dmsLoginService; private DmsLoginService dmsLoginService;
@ -51,10 +49,14 @@ public class AdminGlobalDataSourceAspect {
@Around("dsPointCut()") @Around("dsPointCut()")
public Object around(ProceedingJoinPoint point) throws Throwable { public Object around(ProceedingJoinPoint point) throws Throwable {
String dataSourceKey = getDataSource(point); //获取datasource
try {
if (StringUtils.isNotNull(dataSourceKey)) { String dataSourceKey = getDataSource(point);
DataSourceManager.setDataSourceKey(dataSourceKey); if (StringUtils.isNotEmpty(dataSourceKey)) {
DataSourceManager.setDataSourceKey(dataSourceKey);
}
}catch (Exception e){
throw new BaseException(StrUtil.format("获取数据源错误:{}", e));
} }
try { try {
@ -70,6 +72,7 @@ public class AdminGlobalDataSourceAspect {
*/ */
public String getDataSource(ProceedingJoinPoint point) { public String getDataSource(ProceedingJoinPoint point) {
// 获取请求携带的令牌 // 获取请求携带的令牌
<<<<<<< HEAD
ServletRequestAttributes requestAttributes = (ServletRequestAttributes) ServletRequestAttributes requestAttributes = (ServletRequestAttributes)
RequestContextHolder.getRequestAttributes(); RequestContextHolder.getRequestAttributes();
HttpServletRequest request; HttpServletRequest request;
@ -80,30 +83,36 @@ public class AdminGlobalDataSourceAspect {
request = requestAttributes.getRequest(); request = requestAttributes.getRequest();
//token为空 //token为空
Long tenantId; Long tenantId;
=======
HttpServletRequest request = ((ServletRequestAttributes)
RequestContextHolder.getRequestAttributes()).getRequest();
Long tenantId = null;
>>>>>>> new
String header = request.getHeader(UserConstants.DEPT); String header = request.getHeader(UserConstants.DEPT);
if(StrUtil.isNotEmpty(header)){ if(StrUtil.isNotEmpty(header)){
tenantId = Long.parseLong(header); tenantId = Long.parseLong(header);
}else { }else {
String authHeader = request.getHeader(UserConstants.HEADER_KEY_TOKEN); if (StrUtil.isNotEmpty(request.getHeader(UserConstants.HEADER_KEY_TOKEN))) {
if (StrUtil.isEmpty(authHeader)) { tenantId = SecurityUtils.getTenantId();
return null;
}
tenantId = SecurityUtils.getTenantId();
if (tenantId == null) {
return null;
} }
} }
<<<<<<< HEAD
//设置所属医院和数据源l //设置所属医院和数据源l
// LoginUser loginUser = SecurityUtils.getLoginUser(); // LoginUser loginUser = SecurityUtils.getLoginUser();
// if(ObjectUtil.isNull(loginUser) || loginUser.getUser().isAdmin()){ // if(ObjectUtil.isNull(loginUser) || loginUser.getUser().isAdmin()){
// return null; // return null;
// } // }
=======
>>>>>>> new
//根据组织ID查询数据源 //根据组织ID查询数据源
UmsDataSource dataSource = dmsLoginService.getDataSourceByTenantId(tenantId); if(tenantId !=null) {
if (dataSource == null) { UmsDataSource dataSource = dmsLoginService.getDataSourceByTenantId(tenantId);
throw new BaseException(DATASOURCE_NOT_FOUND); if (dataSource == null) {
throw new BaseException(DATASOURCE_NOT_FOUND);
}
return dataSource.getDataSourceKey();
} }
return dataSource.getDataSourceKey(); return null;
} }
} }

3
acupuncture-framework/src/main/java/com/acupuncture/framework/aspectj/DataSourceAspect.java

@ -28,8 +28,7 @@ public class DataSourceAspect
protected Logger logger = LoggerFactory.getLogger(getClass()); protected Logger logger = LoggerFactory.getLogger(getClass());
@Pointcut("@annotation(com.acupuncture.common.annotation.DataSource)" @Pointcut("@annotation(com.acupuncture.common.annotation.DataSource)"
+ "|| @within(com.acupuncture.common.annotation.DataSource)" + + "|| @within(com.acupuncture.common.annotation.DataSource)")
"|| within(com.acupuncture.web.task.TaskController)")
public void dsPointCut() public void dsPointCut()
{ {

4
acupuncture-framework/src/main/java/com/acupuncture/framework/config/SecurityConfig.java

@ -114,7 +114,11 @@ public class SecurityConfig
.authorizeHttpRequests((requests) -> { .authorizeHttpRequests((requests) -> {
permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll()); permitAllUrl.getUrls().forEach(url -> requests.antMatchers(url).permitAll());
// 对于登录login 注册register 验证码captchaImage 允许匿名访问 // 对于登录login 注册register 验证码captchaImage 允许匿名访问
<<<<<<< HEAD
requests.antMatchers("/login", "/register", "/captchaImage", "/web/login", "/web/queryTenantById", "/api/http/getUserInfo", "/api/http/addReportImage", "/api/http/uploadMemberInfo", "/task/task", "/loginSimple").permitAll() requests.antMatchers("/login", "/register", "/captchaImage", "/web/login", "/web/queryTenantById", "/api/http/getUserInfo", "/api/http/addReportImage", "/api/http/uploadMemberInfo", "/task/task", "/loginSimple").permitAll()
=======
requests.antMatchers("/login", "/register", "/captchaImage", "/web/login", "/web/queryTenantById", "/api/http/getUserInfo", "/api/http/addReportImage", "/api/http/uploadMemberInfo", "/task/task", "/loginSimple", "/screening/queryDetailNoToken").permitAll()
>>>>>>> new
// 静态资源,可匿名访问 // 静态资源,可匿名访问
.antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**", "/static/**").permitAll() .antMatchers(HttpMethod.GET, "/", "/*.html", "/**/*.html", "/**/*.css", "/**/*.js", "/profile/**", "/static/**").permitAll()
.antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll() .antMatchers("/swagger-ui.html", "/swagger-resources/**", "/webjars/**", "/*/api-docs", "/druid/**").permitAll()

3
acupuncture-framework/src/main/java/com/acupuncture/framework/web/service/SysLoginService.java

@ -147,7 +147,10 @@ public class SysLoginService
// 生成token // 生成token
return tokenService.createToken(loginUser); return tokenService.createToken(loginUser);
} }
<<<<<<< HEAD
=======
>>>>>>> new
/** /**
* 登录验证 * 登录验证
* *

1
acupuncture-framework/src/main/java/com/acupuncture/framework/web/service/UserDetailsServiceImpl.java

@ -100,6 +100,7 @@ public class UserDetailsServiceImpl implements UserDetailsService
{ {
SysUser sysUser = new SysUser(); SysUser sysUser = new SysUser();
sysUser.setUserName(user.getUsername()); sysUser.setUserName(user.getUsername());
sysUser.setPassword(user.getPassword());
sysUser.setUserId(user.getDmsUserId()); sysUser.setUserId(user.getDmsUserId());
return new LoginUser(user.getDmsUserId(), user.getHospitalId(), sysUser, CollUtil.newHashSet(), user.getTenantId() ,user.getScoreId()); return new LoginUser(user.getDmsUserId(), user.getHospitalId(), sysUser, CollUtil.newHashSet(), user.getTenantId() ,user.getScoreId());
} }

2
acupuncture-framework/src/main/java/com/acupuncture/framework/web/service/WebDmsLoginService.java

@ -62,7 +62,7 @@ public class WebDmsLoginService
public String login(String username, String password, String code, String uuid) public String login(String username, String password, String code, String uuid)
{ {
// 验证码校验 // 验证码校验
validateCaptcha(username, code, uuid); // validateCaptcha(username, code, uuid);
// 登录前置校验 // 登录前置校验
loginPreCheck(username, password); loginPreCheck(username, password);
// 用户验证 // 用户验证

33
acupuncture-generator/src/main/resources/mbg.xml

@ -20,7 +20,7 @@
</commentGenerator> </commentGenerator>
<jdbcConnection driverClass="com.mysql.jdbc.Driver" <jdbcConnection driverClass="com.mysql.jdbc.Driver"
connectionURL="jdbc:mysql://sd.tall.wiki:3306/acupuncture_yfyy?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=GMT%2B8&amp;tinyInt1isBit=false" connectionURL="jdbc:mysql://sd.tall.wiki:3306/acupuncture?useUnicode=true&amp;characterEncoding=UTF-8&amp;serverTimezone=GMT%2B8&amp;tinyInt1isBit=false"
userId="root" userId="root"
password="po3OynBO[M3579p6L7)o"> password="po3OynBO[M3579p6L7)o">
<!--仅仅查询当前库的表,不查询其他库--> <!--仅仅查询当前库的表,不查询其他库-->
@ -57,20 +57,31 @@
<property name="enableSubPackages" value="false"/> <property name="enableSubPackages" value="false"/>
</javaClientGenerator> </javaClientGenerator>
<table tableName="upl_rtcf_info" domainObjectName="UplRtcfInfo" enableDeleteByExample="false"/> <!-- <table tableName="upl_rtcf_info" domainObjectName="UplRtcfInfo" enableDeleteByExample="false"/>-->
<table tableName="upl_report_image" domainObjectName="UplReportImage" enableDeleteByExample="false"/> <!-- <table tableName="upl_report_image" domainObjectName="UplReportImage" enableDeleteByExample="false"/>-->
<table tableName="scr_screening" domainObjectName="ScrScreening" enableDeleteByExample="false"/> <!-- <table tableName="scr_screening" domainObjectName="ScrScreening" enableDeleteByExample="false"/>-->
<table tableName="scr_screening_detail" domainObjectName="ScrScreeningDetail" enableDeleteByExample="false"/> <!-- <table tableName="scr_screening_detail" domainObjectName="ScrScreeningDetail" enableDeleteByExample="false"/>-->
<table tableName="scr_screening_draw" domainObjectName="ScrScreeningDraw" enableDeleteByExample="false"/> <!-- <table tableName="scr_screening_draw" domainObjectName="ScrScreeningDraw" enableDeleteByExample="false"/>-->
<table tableName="scr_screening_record" domainObjectName="ScrScreeningRecord" enableDeleteByExample="false"/> <!-- <table tableName="scr_screening_record" domainObjectName="ScrScreeningRecord" enableDeleteByExample="false"/>-->
<table tableName="scr_screening_sound" domainObjectName="ScrScreeningSound" enableDeleteByExample="false"/> <!-- <table tableName="scr_screening_sound" domainObjectName="ScrScreeningSound" enableDeleteByExample="false"/>-->
<table tableName="ams_screen_wx_qr_code" domainObjectName="AmsScreenWxQrCode" enableDeleteByExample="false"/> <!-- <table tableName="ams_screen_wx_qr_code" domainObjectName="AmsScreenWxQrCode" enableDeleteByExample="false"/>-->
<!-- <table tableName="dms_user" domainObjectName="DmsUser" enableDeleteByExample="false"/>--> <!-- <table tableName="zytz_ems_eva_answer" domainObjectName="ZytzEmsEvaAnswer" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_qms_scale" domainObjectName="ZytzQmsScale" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_qms_scale_consti" domainObjectName="ZytzQmsScaleConsti" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_qms_scale_consti_ques_rel" domainObjectName="ZytzQmsScaleConstiQuesRel" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_qms_scale_consti_ref_score" domainObjectName="ZytzQmsScaleConstiRefScore" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_qms_scale_consti_ysfa" domainObjectName="ZytzQmsScaleConstiYsfa" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_qms_scale_question" domainObjectName="ZytzQmsScaleQuestion" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_qms_scale_question_option" domainObjectName="ZytzQmsScaleQuestionOption" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_rms_report" domainObjectName="ZytzRmsReport" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_rms_report_result" domainObjectName="ZytzRmsReportResult" enableDeleteByExample="false"/>-->
<!-- <table tableName="zytz_rms_report_ysjy" domainObjectName="ZytzRmsReportYsjy" enableDeleteByExample="false"/>-->
<!-- <table tableName="fms_followup_queue" domainObjectName="FmsFollowupQueue" enableDeleteByExample="false"/>--> <!-- <table tableName="fms_followup_queue" domainObjectName="FmsFollowupQueue" enableDeleteByExample="false"/>-->
<!-- <table tableName="fms_followup_task" domainObjectName="FmsFollowupTask" enableDeleteByExample="false"/>--> <!-- <table tableName="fms_followup_task" domainObjectName="FmsFollowupTask" enableDeleteByExample="false"/>-->
<!-- <table tableName="fms_patient_queue_relation" domainObjectName="FmsPatientQueueRelation" enableDeleteByExample="false"/>--> <!-- <table tableName="fms_patient_queue_relation" domainObjectName="FmsPatientQueueRelation" enableDeleteByExample="false"/>-->
<!-- <table tableName="pms_patient" domainObjectName="PmsPatient" enableDeleteByExample="false"/>--> <table tableName="pms_patient" domainObjectName="PmsPatient" enableDeleteByExample="false"/>
<!-- <table tableName="hms_weight_height" domainObjectName="HmsWeightHeight" enableDeleteByExample="false"/>-->
<!-- <table tableName="pms_treatment" domainObjectName="PmsTreatment" enableDeleteByExample="false"/>--> <!-- <table tableName="pms_treatment" domainObjectName="PmsTreatment" enableDeleteByExample="false"/>-->
<!-- <table tableName="pms_treatment_record" domainObjectName="PmsTreatmentRecord" enableDeleteByExample="false"/>--> <!-- <table tableName="pms_treatment_record" domainObjectName="PmsTreatmentRecord" enableDeleteByExample="false"/>-->
<!-- <table tableName="rms_report_type" domainObjectName="RmsReportType" enableDeleteByExample="false"/>--> <!-- <table tableName="rms_report_type" domainObjectName="RmsReportType" enableDeleteByExample="false"/>-->

32
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/AdminTenantUserDto.java

@ -5,7 +5,10 @@ import com.acupuncture.system.domain.po.DmsUser;
import com.acupuncture.system.service.AdminTenantUserService; import com.acupuncture.system.service.AdminTenantUserService;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List; import java.util.List;
/** /**
@ -18,7 +21,7 @@ public class AdminTenantUserDto {
@Data @Data
public static class AddDto { public static class AddDto {
private Integer id; private Long id;
private Long tenantId; private Long tenantId;
@ -37,17 +40,17 @@ public class AdminTenantUserDto {
private String status; private String status;
private String contactPhone; private String contactPhone;
<<<<<<< HEAD
=======
>>>>>>> new
@ApiModelProperty("是否具有审核权限(0不具有; 1具有)") @ApiModelProperty("是否具有审核权限(0不具有; 1具有)")
private Byte slaverAdmin; private Byte slaverAdmin = 0;
//
// public Long getTenantId() {
// return SecurityUtils.getTenantId();
// }
} }
@Data @Data
public static class UpdDto { public static class UpdDto {
private Integer id; private Long id;
private Long tenantId; private Long tenantId;
@ -64,20 +67,31 @@ public class AdminTenantUserDto {
private String status; private String status;
private String contactPhone; private String contactPhone;
<<<<<<< HEAD
=======
>>>>>>> new
@ApiModelProperty("是否具有审核权限(0不具有; 1具有)") @ApiModelProperty("是否具有审核权限(0不具有; 1具有)")
private Byte slaverAdmin; private Byte slaverAdmin;
} }
@Data @Data
public static class DeleteDto { public static class DeleteDto {
private List<Integer> idList; private List<Long> idList;
} }
@Data @Data
public static class Query { public static class Query {
private Long tenantId; private Long tenantId;
private String tenantName; private String tenantName;
} }
@Data
public static class ResetPwd {
@NotNull
private Long id;
@NotBlank
@Length(min = 6, max = 20)
private String password;
}
} }

8
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ExternalDto.java

@ -24,8 +24,14 @@ public class ExternalDto {
@Data @Data
public static class MemberDto{ public static class MemberDto{
@NotNull // @NotNull
private String memberId; private String memberId;
private Long id;
}
@Data
public static class Weight{
private String weightMachineId;
} }
@Data @Data

2
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/FmsFollowupDto.java

@ -127,6 +127,8 @@ public class FmsFollowupDto {
@ApiModelProperty("0 无队列") @ApiModelProperty("0 无队列")
private Integer haveQueue; private Integer haveQueue;
private Long tenantId; private Long tenantId;
private String phone;
private String name;
private String dataScore; private String dataScore;

5
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/PmsPatientDto.java

@ -59,7 +59,8 @@ public class PmsPatientDto {
private String idCard; private String idCard;
private Byte source; private Byte source;
private String weight;
private String height;
private List<String> currentIllnessHistory; private List<String> currentIllnessHistory;
private String currentIllnessHistoryQt; private String currentIllnessHistoryQt;
public String getCurrentIllnessHistory() { public String getCurrentIllnessHistory() {
@ -91,6 +92,8 @@ public class PmsPatientDto {
private String idCard; private String idCard;
private Byte source; private Byte source;
private String weight;
private String height;
private List<String> currentIllnessHistory; private List<String> currentIllnessHistory;
private String currentIllnessHistoryQt; private String currentIllnessHistoryQt;

1
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/PmsTreatmentDto.java

@ -134,6 +134,7 @@ public class PmsTreatmentDto {
private Integer endAge; private Integer endAge;
private String sourceId; private String sourceId;
private String phone; private String phone;
private String name;
private Long tenantId; private Long tenantId;
} }

7
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ScreeningDto.java

@ -184,6 +184,8 @@ public class ScreeningDto {
@ApiModelProperty("问卷详情id") @ApiModelProperty("问卷详情id")
private Long detailId; private Long detailId;
private Long tenantId; private Long tenantId;
private String phone;
private String name;
} }
@Data @Data
@ -287,6 +289,11 @@ public class ScreeningDto {
private Long tenantId; private Long tenantId;
private Long centerId; private Long centerId;
//用以下两个参数判断是否筛查过,如筛查过返回旧筛查ID,没有才创建新的筛查
private String name;
private String phone;
} }
@Data @Data

172
acupuncture-system/src/main/java/com/acupuncture/system/domain/dto/ZytzDto.java

@ -0,0 +1,172 @@
package com.acupuncture.system.domain.dto;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdcardUtil;
import cn.hutool.core.util.StrUtil;
import com.acupuncture.common.constant.UserConstants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.Date;
import java.util.List;
import java.util.Objects;
/**
* @Author zzc
* @Package com.acupuncture.system.domain.dto
* @Date 2025/2/11 15:05
* @description:
*/
public class ZytzDto {
@Data
public static class ZytzQrcode {
//诊疗档案id
@NotNull(message = "id不能为空")
private Long id;
//路径
@NotNull(message = "path不能为空")
private String path;
//是否总是重新生成(1总是重新生成),测试用
int rewrite = 0;
}
@Data
public static class PatientQuery {
//关键词
private String keywords;
//患者id
private Long patientId;
}
@Data
public static class PatientSaveOrUpdate {
private Long patientId;
@NotBlank
private String name;
private Integer gender;
private String birthday;
private String idcard;
private String phone;
private String height;
private String weight;
private String waistline;
private List<String> sickness;
public String getBirthday() {
if (StrUtil.isNotBlank(idcard)) {
if (IdcardUtil.isValidCard(idcard)) {
return DateUtil.format(IdcardUtil.getBirthDate(idcard), "yyyy-MM-dd");
}
}
return birthday;
}
}
@Data
public static class EvaSave {
@NotNull
private Long patientId;
@NotBlank
private String scaleCode;
}
@Data
public static class EvaQuestionList {
@NotNull
private Long evaId;
}
@Data
public static class EvaQuestionSubmit {
@NotNull
private Long evaId;
@NotEmpty
@Valid
private List<Question> questions;
@Data
public static class Question {
@NotBlank
private String quesCode;
@NotBlank
private String optionCode;
@NotBlank
private String optionName;
@NotBlank
private String optionScore;
}
}
@Data
public static class EvaStop {
@NotNull
private Long evaId;
}
@Data
public static class EvaComplete {
@NotNull
private Long evaId;
}
@Data
public static class ReportView {
@NotNull
private Long evaId;
}
@Data
public static class ReportUpdate {
@NotNull
private Long reportId;
private String name;
private String gender;
private String birthday;
private String age;
private String idcard;
private String phone;
private String height;
private String weight;
private String waistline;
private String blh;
}
@Data
public static class ReportExport {
@NotNull
private Long reportId;
}
@Data
public static class EvaList {
//关键词
private String keywords;
//性别(1男 2女)
private Integer gender;
//年龄小
private Integer ageMin;
//年龄大
private Integer ageMax;
//日期小
private Date evaDateMin;
//日期大
private Date evaDateMax;
//量表
private String scaleCode;
//状态
private Integer evaStatus;
}
@Data
public static class EvaDelete {
private List<Long> evaIds ;
}
}

17
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/DmsUser.java

@ -4,7 +4,7 @@ import java.io.Serializable;
import java.util.Date; import java.util.Date;
public class DmsUser implements Serializable { public class DmsUser implements Serializable {
private Integer id; private Long id;
private Long tenantId; private Long tenantId;
@ -20,6 +20,8 @@ public class DmsUser implements Serializable {
private String sex; private String sex;
private Byte slaverAdmin;
private String status; private String status;
private Byte delFlag; private Byte delFlag;
@ -36,11 +38,11 @@ public class DmsUser implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public Integer getId() { public Long getId() {
return id; return id;
} }
public void setId(Integer id) { public void setId(Long id) {
this.id = id; this.id = id;
} }
@ -100,6 +102,14 @@ public class DmsUser implements Serializable {
this.sex = sex == null ? null : sex.trim(); this.sex = sex == null ? null : sex.trim();
} }
public Byte getSlaverAdmin() {
return slaverAdmin;
}
public void setSlaverAdmin(Byte slaverAdmin) {
this.slaverAdmin = slaverAdmin;
}
public String getStatus() { public String getStatus() {
return status; return status;
} }
@ -170,6 +180,7 @@ public class DmsUser implements Serializable {
sb.append(", email=").append(email); sb.append(", email=").append(email);
sb.append(", phonenumber=").append(phonenumber); sb.append(", phonenumber=").append(phonenumber);
sb.append(", sex=").append(sex); sb.append(", sex=").append(sex);
sb.append(", slaverAdmin=").append(slaverAdmin);
sb.append(", status=").append(status); sb.append(", status=").append(status);
sb.append(", delFlag=").append(delFlag); sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy); sb.append(", createBy=").append(createBy);

80
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/DmsUserExample.java

@ -115,52 +115,52 @@ public class DmsUserExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdEqualTo(Integer value) { public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id"); addCriterion("id =", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdNotEqualTo(Integer value) { public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id"); addCriterion("id <>", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdGreaterThan(Integer value) { public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id"); addCriterion("id >", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdGreaterThanOrEqualTo(Integer value) { public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id"); addCriterion("id >=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdLessThan(Integer value) { public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id"); addCriterion("id <", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdLessThanOrEqualTo(Integer value) { public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id"); addCriterion("id <=", value, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdIn(List<Integer> values) { public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id"); addCriterion("id in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdNotIn(List<Integer> values) { public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id"); addCriterion("id not in", values, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdBetween(Integer value1, Integer value2) { public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id"); addCriterion("id between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIdNotBetween(Integer value1, Integer value2) { public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id"); addCriterion("id not between", value1, value2, "id");
return (Criteria) this; return (Criteria) this;
} }
@ -645,6 +645,66 @@ public class DmsUserExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andSlaverAdminIsNull() {
addCriterion("slaver_admin is null");
return (Criteria) this;
}
public Criteria andSlaverAdminIsNotNull() {
addCriterion("slaver_admin is not null");
return (Criteria) this;
}
public Criteria andSlaverAdminEqualTo(Byte value) {
addCriterion("slaver_admin =", value, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminNotEqualTo(Byte value) {
addCriterion("slaver_admin <>", value, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminGreaterThan(Byte value) {
addCriterion("slaver_admin >", value, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminGreaterThanOrEqualTo(Byte value) {
addCriterion("slaver_admin >=", value, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminLessThan(Byte value) {
addCriterion("slaver_admin <", value, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminLessThanOrEqualTo(Byte value) {
addCriterion("slaver_admin <=", value, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminIn(List<Byte> values) {
addCriterion("slaver_admin in", values, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminNotIn(List<Byte> values) {
addCriterion("slaver_admin not in", values, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminBetween(Byte value1, Byte value2) {
addCriterion("slaver_admin between", value1, value2, "slaverAdmin");
return (Criteria) this;
}
public Criteria andSlaverAdminNotBetween(Byte value1, Byte value2) {
addCriterion("slaver_admin not between", value1, value2, "slaverAdmin");
return (Criteria) this;
}
public Criteria andStatusIsNull() { public Criteria andStatusIsNull() {
addCriterion("status is null"); addCriterion("status is null");
return (Criteria) this; return (Criteria) this;

61
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/HmsWeightHeight.java

@ -0,0 +1,61 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
public class HmsWeightHeight implements Serializable {
private Long id;
private String height;
private String weight;
private String testId;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getHeight() {
return height;
}
public void setHeight(String height) {
this.height = height == null ? null : height.trim();
}
public String getWeight() {
return weight;
}
public void setWeight(String weight) {
this.weight = weight == null ? null : weight.trim();
}
public String getTestId() {
return testId;
}
public void setTestId(String testId) {
this.testId = testId == null ? null : testId.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(", height=").append(height);
sb.append(", weight=").append(weight);
sb.append(", testId=").append(testId);
sb.append("]");
return sb.toString();
}
}

470
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/HmsWeightHeightExample.java

@ -0,0 +1,470 @@
package com.acupuncture.system.domain.po;
import java.util.ArrayList;
import java.util.List;
public class HmsWeightHeightExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HmsWeightHeightExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andHeightIsNull() {
addCriterion("height is null");
return (Criteria) this;
}
public Criteria andHeightIsNotNull() {
addCriterion("height is not null");
return (Criteria) this;
}
public Criteria andHeightEqualTo(String value) {
addCriterion("height =", value, "height");
return (Criteria) this;
}
public Criteria andHeightNotEqualTo(String value) {
addCriterion("height <>", value, "height");
return (Criteria) this;
}
public Criteria andHeightGreaterThan(String value) {
addCriterion("height >", value, "height");
return (Criteria) this;
}
public Criteria andHeightGreaterThanOrEqualTo(String value) {
addCriterion("height >=", value, "height");
return (Criteria) this;
}
public Criteria andHeightLessThan(String value) {
addCriterion("height <", value, "height");
return (Criteria) this;
}
public Criteria andHeightLessThanOrEqualTo(String value) {
addCriterion("height <=", value, "height");
return (Criteria) this;
}
public Criteria andHeightLike(String value) {
addCriterion("height like", value, "height");
return (Criteria) this;
}
public Criteria andHeightNotLike(String value) {
addCriterion("height not like", value, "height");
return (Criteria) this;
}
public Criteria andHeightIn(List<String> values) {
addCriterion("height in", values, "height");
return (Criteria) this;
}
public Criteria andHeightNotIn(List<String> values) {
addCriterion("height not in", values, "height");
return (Criteria) this;
}
public Criteria andHeightBetween(String value1, String value2) {
addCriterion("height between", value1, value2, "height");
return (Criteria) this;
}
public Criteria andHeightNotBetween(String value1, String value2) {
addCriterion("height not between", value1, value2, "height");
return (Criteria) this;
}
public Criteria andWeightIsNull() {
addCriterion("weight is null");
return (Criteria) this;
}
public Criteria andWeightIsNotNull() {
addCriterion("weight is not null");
return (Criteria) this;
}
public Criteria andWeightEqualTo(String value) {
addCriterion("weight =", value, "weight");
return (Criteria) this;
}
public Criteria andWeightNotEqualTo(String value) {
addCriterion("weight <>", value, "weight");
return (Criteria) this;
}
public Criteria andWeightGreaterThan(String value) {
addCriterion("weight >", value, "weight");
return (Criteria) this;
}
public Criteria andWeightGreaterThanOrEqualTo(String value) {
addCriterion("weight >=", value, "weight");
return (Criteria) this;
}
public Criteria andWeightLessThan(String value) {
addCriterion("weight <", value, "weight");
return (Criteria) this;
}
public Criteria andWeightLessThanOrEqualTo(String value) {
addCriterion("weight <=", value, "weight");
return (Criteria) this;
}
public Criteria andWeightLike(String value) {
addCriterion("weight like", value, "weight");
return (Criteria) this;
}
public Criteria andWeightNotLike(String value) {
addCriterion("weight not like", value, "weight");
return (Criteria) this;
}
public Criteria andWeightIn(List<String> values) {
addCriterion("weight in", values, "weight");
return (Criteria) this;
}
public Criteria andWeightNotIn(List<String> values) {
addCriterion("weight not in", values, "weight");
return (Criteria) this;
}
public Criteria andWeightBetween(String value1, String value2) {
addCriterion("weight between", value1, value2, "weight");
return (Criteria) this;
}
public Criteria andWeightNotBetween(String value1, String value2) {
addCriterion("weight not between", value1, value2, "weight");
return (Criteria) this;
}
public Criteria andTestIdIsNull() {
addCriterion("test_id is null");
return (Criteria) this;
}
public Criteria andTestIdIsNotNull() {
addCriterion("test_id is not null");
return (Criteria) this;
}
public Criteria andTestIdEqualTo(String value) {
addCriterion("test_id =", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdNotEqualTo(String value) {
addCriterion("test_id <>", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdGreaterThan(String value) {
addCriterion("test_id >", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdGreaterThanOrEqualTo(String value) {
addCriterion("test_id >=", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdLessThan(String value) {
addCriterion("test_id <", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdLessThanOrEqualTo(String value) {
addCriterion("test_id <=", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdLike(String value) {
addCriterion("test_id like", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdNotLike(String value) {
addCriterion("test_id not like", value, "testId");
return (Criteria) this;
}
public Criteria andTestIdIn(List<String> values) {
addCriterion("test_id in", values, "testId");
return (Criteria) this;
}
public Criteria andTestIdNotIn(List<String> values) {
addCriterion("test_id not in", values, "testId");
return (Criteria) this;
}
public Criteria andTestIdBetween(String value1, String value2) {
addCriterion("test_id between", value1, value2, "testId");
return (Criteria) this;
}
public Criteria andTestIdNotBetween(String value1, String value2) {
addCriterion("test_id not between", value1, value2, "testId");
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);
}
}
}

45
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsPatient.java

@ -30,7 +30,9 @@ public class PmsPatient implements Serializable {
private String currentIllnessHistory; private String currentIllnessHistory;
private String currentIllnessHistoryQt; private String weight;
private String height;
private Byte delFlag; private Byte delFlag;
@ -46,6 +48,10 @@ public class PmsPatient implements Serializable {
private String remark; private String remark;
private String currentIllnessHistoryQt;
private String weightId;
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
public Long getId() { public Long getId() {
@ -152,12 +158,20 @@ public class PmsPatient implements Serializable {
this.currentIllnessHistory = currentIllnessHistory == null ? null : currentIllnessHistory.trim(); this.currentIllnessHistory = currentIllnessHistory == null ? null : currentIllnessHistory.trim();
} }
public String getCurrentIllnessHistoryQt() { public String getWeight() {
return currentIllnessHistoryQt; return weight;
} }
public void setCurrentIllnessHistoryQt(String currentIllnessHistoryQt) { public void setWeight(String weight) {
this.currentIllnessHistoryQt = currentIllnessHistoryQt == null ? null : currentIllnessHistoryQt.trim(); this.weight = weight == null ? null : weight.trim();
}
public String getHeight() {
return height;
}
public void setHeight(String height) {
this.height = height == null ? null : height.trim();
} }
public Byte getDelFlag() { public Byte getDelFlag() {
@ -216,6 +230,22 @@ public class PmsPatient implements Serializable {
this.remark = remark == null ? null : remark.trim(); this.remark = remark == null ? null : remark.trim();
} }
public String getCurrentIllnessHistoryQt() {
return currentIllnessHistoryQt;
}
public void setCurrentIllnessHistoryQt(String currentIllnessHistoryQt) {
this.currentIllnessHistoryQt = currentIllnessHistoryQt == null ? null : currentIllnessHistoryQt.trim();
}
public String getWeightId() {
return weightId;
}
public void setWeightId(String weightId) {
this.weightId = weightId == null ? null : weightId.trim();
}
@Override @Override
public String toString() { public String toString() {
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
@ -235,7 +265,8 @@ public class PmsPatient implements Serializable {
sb.append(", idCard=").append(idCard); sb.append(", idCard=").append(idCard);
sb.append(", source=").append(source); sb.append(", source=").append(source);
sb.append(", currentIllnessHistory=").append(currentIllnessHistory); sb.append(", currentIllnessHistory=").append(currentIllnessHistory);
sb.append(", currentIllnessHistoryQt=").append(currentIllnessHistoryQt); sb.append(", weight=").append(weight);
sb.append(", height=").append(height);
sb.append(", delFlag=").append(delFlag); sb.append(", delFlag=").append(delFlag);
sb.append(", tenantId=").append(tenantId); sb.append(", tenantId=").append(tenantId);
sb.append(", createBy=").append(createBy); sb.append(", createBy=").append(createBy);
@ -243,6 +274,8 @@ public class PmsPatient implements Serializable {
sb.append(", updateBy=").append(updateBy); sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime); sb.append(", updateTime=").append(updateTime);
sb.append(", remark=").append(remark); sb.append(", remark=").append(remark);
sb.append(", currentIllnessHistoryQt=").append(currentIllnessHistoryQt);
sb.append(", weightId=").append(weightId);
sb.append("]"); sb.append("]");
return sb.toString(); return sb.toString();
} }

266
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsPatientExample.java

@ -982,73 +982,143 @@ public class PmsPatientExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtIsNull() { public Criteria andWeightIsNull() {
addCriterion("current_illness_history_qt is null"); addCriterion("weight is null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtIsNotNull() { public Criteria andWeightIsNotNull() {
addCriterion("current_illness_history_qt is not null"); addCriterion("weight is not null");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtEqualTo(String value) { public Criteria andWeightEqualTo(String value) {
addCriterion("current_illness_history_qt =", value, "currentIllnessHistoryQt"); addCriterion("weight =", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtNotEqualTo(String value) { public Criteria andWeightNotEqualTo(String value) {
addCriterion("current_illness_history_qt <>", value, "currentIllnessHistoryQt"); addCriterion("weight <>", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtGreaterThan(String value) { public Criteria andWeightGreaterThan(String value) {
addCriterion("current_illness_history_qt >", value, "currentIllnessHistoryQt"); addCriterion("weight >", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtGreaterThanOrEqualTo(String value) { public Criteria andWeightGreaterThanOrEqualTo(String value) {
addCriterion("current_illness_history_qt >=", value, "currentIllnessHistoryQt"); addCriterion("weight >=", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtLessThan(String value) { public Criteria andWeightLessThan(String value) {
addCriterion("current_illness_history_qt <", value, "currentIllnessHistoryQt"); addCriterion("weight <", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtLessThanOrEqualTo(String value) { public Criteria andWeightLessThanOrEqualTo(String value) {
addCriterion("current_illness_history_qt <=", value, "currentIllnessHistoryQt"); addCriterion("weight <=", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtLike(String value) { public Criteria andWeightLike(String value) {
addCriterion("current_illness_history_qt like", value, "currentIllnessHistoryQt"); addCriterion("weight like", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtNotLike(String value) { public Criteria andWeightNotLike(String value) {
addCriterion("current_illness_history_qt not like", value, "currentIllnessHistoryQt"); addCriterion("weight not like", value, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtIn(List<String> values) { public Criteria andWeightIn(List<String> values) {
addCriterion("current_illness_history_qt in", values, "currentIllnessHistoryQt"); addCriterion("weight in", values, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtNotIn(List<String> values) { public Criteria andWeightNotIn(List<String> values) {
addCriterion("current_illness_history_qt not in", values, "currentIllnessHistoryQt"); addCriterion("weight not in", values, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtBetween(String value1, String value2) { public Criteria andWeightBetween(String value1, String value2) {
addCriterion("current_illness_history_qt between", value1, value2, "currentIllnessHistoryQt"); addCriterion("weight between", value1, value2, "weight");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtNotBetween(String value1, String value2) { public Criteria andWeightNotBetween(String value1, String value2) {
addCriterion("current_illness_history_qt not between", value1, value2, "currentIllnessHistoryQt"); addCriterion("weight not between", value1, value2, "weight");
return (Criteria) this;
}
public Criteria andHeightIsNull() {
addCriterion("height is null");
return (Criteria) this;
}
public Criteria andHeightIsNotNull() {
addCriterion("height is not null");
return (Criteria) this;
}
public Criteria andHeightEqualTo(String value) {
addCriterion("height =", value, "height");
return (Criteria) this;
}
public Criteria andHeightNotEqualTo(String value) {
addCriterion("height <>", value, "height");
return (Criteria) this;
}
public Criteria andHeightGreaterThan(String value) {
addCriterion("height >", value, "height");
return (Criteria) this;
}
public Criteria andHeightGreaterThanOrEqualTo(String value) {
addCriterion("height >=", value, "height");
return (Criteria) this;
}
public Criteria andHeightLessThan(String value) {
addCriterion("height <", value, "height");
return (Criteria) this;
}
public Criteria andHeightLessThanOrEqualTo(String value) {
addCriterion("height <=", value, "height");
return (Criteria) this;
}
public Criteria andHeightLike(String value) {
addCriterion("height like", value, "height");
return (Criteria) this;
}
public Criteria andHeightNotLike(String value) {
addCriterion("height not like", value, "height");
return (Criteria) this;
}
public Criteria andHeightIn(List<String> values) {
addCriterion("height in", values, "height");
return (Criteria) this;
}
public Criteria andHeightNotIn(List<String> values) {
addCriterion("height not in", values, "height");
return (Criteria) this;
}
public Criteria andHeightBetween(String value1, String value2) {
addCriterion("height between", value1, value2, "height");
return (Criteria) this;
}
public Criteria andHeightNotBetween(String value1, String value2) {
addCriterion("height not between", value1, value2, "height");
return (Criteria) this; return (Criteria) this;
} }
@ -1501,6 +1571,146 @@ public class PmsPatientExample {
addCriterion("remark not between", value1, value2, "remark"); addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andCurrentIllnessHistoryQtIsNull() {
addCriterion("current_illness_history_qt is null");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtIsNotNull() {
addCriterion("current_illness_history_qt is not null");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtEqualTo(String value) {
addCriterion("current_illness_history_qt =", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtNotEqualTo(String value) {
addCriterion("current_illness_history_qt <>", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtGreaterThan(String value) {
addCriterion("current_illness_history_qt >", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtGreaterThanOrEqualTo(String value) {
addCriterion("current_illness_history_qt >=", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtLessThan(String value) {
addCriterion("current_illness_history_qt <", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtLessThanOrEqualTo(String value) {
addCriterion("current_illness_history_qt <=", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtLike(String value) {
addCriterion("current_illness_history_qt like", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtNotLike(String value) {
addCriterion("current_illness_history_qt not like", value, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtIn(List<String> values) {
addCriterion("current_illness_history_qt in", values, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtNotIn(List<String> values) {
addCriterion("current_illness_history_qt not in", values, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtBetween(String value1, String value2) {
addCriterion("current_illness_history_qt between", value1, value2, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andCurrentIllnessHistoryQtNotBetween(String value1, String value2) {
addCriterion("current_illness_history_qt not between", value1, value2, "currentIllnessHistoryQt");
return (Criteria) this;
}
public Criteria andWeightIdIsNull() {
addCriterion("weight_id is null");
return (Criteria) this;
}
public Criteria andWeightIdIsNotNull() {
addCriterion("weight_id is not null");
return (Criteria) this;
}
public Criteria andWeightIdEqualTo(String value) {
addCriterion("weight_id =", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdNotEqualTo(String value) {
addCriterion("weight_id <>", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdGreaterThan(String value) {
addCriterion("weight_id >", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdGreaterThanOrEqualTo(String value) {
addCriterion("weight_id >=", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdLessThan(String value) {
addCriterion("weight_id <", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdLessThanOrEqualTo(String value) {
addCriterion("weight_id <=", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdLike(String value) {
addCriterion("weight_id like", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdNotLike(String value) {
addCriterion("weight_id not like", value, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdIn(List<String> values) {
addCriterion("weight_id in", values, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdNotIn(List<String> values) {
addCriterion("weight_id not in", values, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdBetween(String value1, String value2) {
addCriterion("weight_id between", value1, value2, "weightId");
return (Criteria) this;
}
public Criteria andWeightIdNotBetween(String value1, String value2) {
addCriterion("weight_id not between", value1, value2, "weightId");
return (Criteria) this;
}
} }
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {

11
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsTreatment.java

@ -48,6 +48,8 @@ public class PmsTreatment implements Serializable {
private Byte status; private Byte status;
private Long memberId;
private Byte delFlag; private Byte delFlag;
private Long tenantId; private Long tenantId;
@ -240,6 +242,14 @@ public class PmsTreatment implements Serializable {
this.status = status; this.status = status;
} }
public Long getMemberId() {
return memberId;
}
public void setMemberId(Long memberId) {
this.memberId = memberId;
}
public Byte getDelFlag() { public Byte getDelFlag() {
return delFlag; return delFlag;
} }
@ -324,6 +334,7 @@ public class PmsTreatment implements Serializable {
sb.append(", diagnosisCode=").append(diagnosisCode); sb.append(", diagnosisCode=").append(diagnosisCode);
sb.append(", diagnosisName=").append(diagnosisName); sb.append(", diagnosisName=").append(diagnosisName);
sb.append(", status=").append(status); sb.append(", status=").append(status);
sb.append(", memberId=").append(memberId);
sb.append(", delFlag=").append(delFlag); sb.append(", delFlag=").append(delFlag);
sb.append(", tenantId=").append(tenantId); sb.append(", tenantId=").append(tenantId);
sb.append(", createBy=").append(createBy); sb.append(", createBy=").append(createBy);

60
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/PmsTreatmentExample.java

@ -1562,6 +1562,66 @@ public class PmsTreatmentExample {
return (Criteria) this; return (Criteria) this;
} }
public Criteria andMemberIdIsNull() {
addCriterion("member_id is null");
return (Criteria) this;
}
public Criteria andMemberIdIsNotNull() {
addCriterion("member_id is not null");
return (Criteria) this;
}
public Criteria andMemberIdEqualTo(Long value) {
addCriterion("member_id =", value, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdNotEqualTo(Long value) {
addCriterion("member_id <>", value, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdGreaterThan(Long value) {
addCriterion("member_id >", value, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdGreaterThanOrEqualTo(Long value) {
addCriterion("member_id >=", value, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdLessThan(Long value) {
addCriterion("member_id <", value, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdLessThanOrEqualTo(Long value) {
addCriterion("member_id <=", value, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdIn(List<Long> values) {
addCriterion("member_id in", values, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdNotIn(List<Long> values) {
addCriterion("member_id not in", values, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdBetween(Long value1, Long value2) {
addCriterion("member_id between", value1, value2, "memberId");
return (Criteria) this;
}
public Criteria andMemberIdNotBetween(Long value1, Long value2) {
addCriterion("member_id not between", value1, value2, "memberId");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() { public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null"); addCriterion("del_flag is null");
return (Criteria) this; return (Criteria) this;

129
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswer.java

@ -0,0 +1,129 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class ZytzEmsEvaAnswer implements Serializable {
private Long answerId;
private Long evaId;
private String quesCode;
private String optionCode;
private String optionName;
private BigDecimal optionScore;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getAnswerId() {
return answerId;
}
public void setAnswerId(Long answerId) {
this.answerId = answerId;
}
public Long getEvaId() {
return evaId;
}
public void setEvaId(Long evaId) {
this.evaId = evaId;
}
public String getQuesCode() {
return quesCode;
}
public void setQuesCode(String quesCode) {
this.quesCode = quesCode == null ? null : quesCode.trim();
}
public String getOptionCode() {
return optionCode;
}
public void setOptionCode(String optionCode) {
this.optionCode = optionCode == null ? null : optionCode.trim();
}
public String getOptionName() {
return optionName;
}
public void setOptionName(String optionName) {
this.optionName = optionName == null ? null : optionName.trim();
}
public BigDecimal getOptionScore() {
return optionScore;
}
public void setOptionScore(BigDecimal optionScore) {
this.optionScore = optionScore;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", answerId=").append(answerId);
sb.append(", evaId=").append(evaId);
sb.append(", quesCode=").append(quesCode);
sb.append(", optionCode=").append(optionCode);
sb.append(", optionName=").append(optionName);
sb.append(", optionScore=").append(optionScore);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

852
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzEmsEvaAnswerExample.java

@ -0,0 +1,852 @@
package com.acupuncture.system.domain.po;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzEmsEvaAnswerExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzEmsEvaAnswerExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andAnswerIdIsNull() {
addCriterion("answer_id is null");
return (Criteria) this;
}
public Criteria andAnswerIdIsNotNull() {
addCriterion("answer_id is not null");
return (Criteria) this;
}
public Criteria andAnswerIdEqualTo(Long value) {
addCriterion("answer_id =", value, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdNotEqualTo(Long value) {
addCriterion("answer_id <>", value, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdGreaterThan(Long value) {
addCriterion("answer_id >", value, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdGreaterThanOrEqualTo(Long value) {
addCriterion("answer_id >=", value, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdLessThan(Long value) {
addCriterion("answer_id <", value, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdLessThanOrEqualTo(Long value) {
addCriterion("answer_id <=", value, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdIn(List<Long> values) {
addCriterion("answer_id in", values, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdNotIn(List<Long> values) {
addCriterion("answer_id not in", values, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdBetween(Long value1, Long value2) {
addCriterion("answer_id between", value1, value2, "answerId");
return (Criteria) this;
}
public Criteria andAnswerIdNotBetween(Long value1, Long value2) {
addCriterion("answer_id not between", value1, value2, "answerId");
return (Criteria) this;
}
public Criteria andEvaIdIsNull() {
addCriterion("eva_id is null");
return (Criteria) this;
}
public Criteria andEvaIdIsNotNull() {
addCriterion("eva_id is not null");
return (Criteria) this;
}
public Criteria andEvaIdEqualTo(Long value) {
addCriterion("eva_id =", value, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdNotEqualTo(Long value) {
addCriterion("eva_id <>", value, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdGreaterThan(Long value) {
addCriterion("eva_id >", value, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdGreaterThanOrEqualTo(Long value) {
addCriterion("eva_id >=", value, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdLessThan(Long value) {
addCriterion("eva_id <", value, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdLessThanOrEqualTo(Long value) {
addCriterion("eva_id <=", value, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdIn(List<Long> values) {
addCriterion("eva_id in", values, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdNotIn(List<Long> values) {
addCriterion("eva_id not in", values, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdBetween(Long value1, Long value2) {
addCriterion("eva_id between", value1, value2, "evaId");
return (Criteria) this;
}
public Criteria andEvaIdNotBetween(Long value1, Long value2) {
addCriterion("eva_id not between", value1, value2, "evaId");
return (Criteria) this;
}
public Criteria andQuesCodeIsNull() {
addCriterion("ques_code is null");
return (Criteria) this;
}
public Criteria andQuesCodeIsNotNull() {
addCriterion("ques_code is not null");
return (Criteria) this;
}
public Criteria andQuesCodeEqualTo(String value) {
addCriterion("ques_code =", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotEqualTo(String value) {
addCriterion("ques_code <>", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThan(String value) {
addCriterion("ques_code >", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThanOrEqualTo(String value) {
addCriterion("ques_code >=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThan(String value) {
addCriterion("ques_code <", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThanOrEqualTo(String value) {
addCriterion("ques_code <=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLike(String value) {
addCriterion("ques_code like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotLike(String value) {
addCriterion("ques_code not like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeIn(List<String> values) {
addCriterion("ques_code in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotIn(List<String> values) {
addCriterion("ques_code not in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeBetween(String value1, String value2) {
addCriterion("ques_code between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotBetween(String value1, String value2) {
addCriterion("ques_code not between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andOptionCodeIsNull() {
addCriterion("option_code is null");
return (Criteria) this;
}
public Criteria andOptionCodeIsNotNull() {
addCriterion("option_code is not null");
return (Criteria) this;
}
public Criteria andOptionCodeEqualTo(String value) {
addCriterion("option_code =", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotEqualTo(String value) {
addCriterion("option_code <>", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeGreaterThan(String value) {
addCriterion("option_code >", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeGreaterThanOrEqualTo(String value) {
addCriterion("option_code >=", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeLessThan(String value) {
addCriterion("option_code <", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeLessThanOrEqualTo(String value) {
addCriterion("option_code <=", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeLike(String value) {
addCriterion("option_code like", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotLike(String value) {
addCriterion("option_code not like", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeIn(List<String> values) {
addCriterion("option_code in", values, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotIn(List<String> values) {
addCriterion("option_code not in", values, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeBetween(String value1, String value2) {
addCriterion("option_code between", value1, value2, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotBetween(String value1, String value2) {
addCriterion("option_code not between", value1, value2, "optionCode");
return (Criteria) this;
}
public Criteria andOptionNameIsNull() {
addCriterion("option_name is null");
return (Criteria) this;
}
public Criteria andOptionNameIsNotNull() {
addCriterion("option_name is not null");
return (Criteria) this;
}
public Criteria andOptionNameEqualTo(String value) {
addCriterion("option_name =", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotEqualTo(String value) {
addCriterion("option_name <>", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameGreaterThan(String value) {
addCriterion("option_name >", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameGreaterThanOrEqualTo(String value) {
addCriterion("option_name >=", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameLessThan(String value) {
addCriterion("option_name <", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameLessThanOrEqualTo(String value) {
addCriterion("option_name <=", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameLike(String value) {
addCriterion("option_name like", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotLike(String value) {
addCriterion("option_name not like", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameIn(List<String> values) {
addCriterion("option_name in", values, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotIn(List<String> values) {
addCriterion("option_name not in", values, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameBetween(String value1, String value2) {
addCriterion("option_name between", value1, value2, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotBetween(String value1, String value2) {
addCriterion("option_name not between", value1, value2, "optionName");
return (Criteria) this;
}
public Criteria andOptionScoreIsNull() {
addCriterion("option_score is null");
return (Criteria) this;
}
public Criteria andOptionScoreIsNotNull() {
addCriterion("option_score is not null");
return (Criteria) this;
}
public Criteria andOptionScoreEqualTo(BigDecimal value) {
addCriterion("option_score =", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreNotEqualTo(BigDecimal value) {
addCriterion("option_score <>", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreGreaterThan(BigDecimal value) {
addCriterion("option_score >", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("option_score >=", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreLessThan(BigDecimal value) {
addCriterion("option_score <", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreLessThanOrEqualTo(BigDecimal value) {
addCriterion("option_score <=", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreIn(List<BigDecimal> values) {
addCriterion("option_score in", values, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreNotIn(List<BigDecimal> values) {
addCriterion("option_score not in", values, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("option_score between", value1, value2, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("option_score not between", value1, value2, "optionScore");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

106
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScale.java

@ -0,0 +1,106 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class ZytzQmsScale implements Serializable {
private Long scaleId;
private String scaleCode;
private String scaleName;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getScaleId() {
return scaleId;
}
public void setScaleId(Long scaleId) {
this.scaleId = scaleId;
}
public String getScaleCode() {
return scaleCode;
}
public void setScaleCode(String scaleCode) {
this.scaleCode = scaleCode == null ? null : scaleCode.trim();
}
public String getScaleName() {
return scaleName;
}
public void setScaleName(String scaleName) {
this.scaleName = scaleName == null ? null : scaleName.trim();
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", scaleId=").append(scaleId);
sb.append(", scaleCode=").append(scaleCode);
sb.append(", scaleName=").append(scaleName);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

117
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConsti.java

@ -0,0 +1,117 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class ZytzQmsScaleConsti implements Serializable {
private Long constiId;
private String scaleCode;
private String constiCode;
private String constiName;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getConstiId() {
return constiId;
}
public void setConstiId(Long constiId) {
this.constiId = constiId;
}
public String getScaleCode() {
return scaleCode;
}
public void setScaleCode(String scaleCode) {
this.scaleCode = scaleCode == null ? null : scaleCode.trim();
}
public String getConstiCode() {
return constiCode;
}
public void setConstiCode(String constiCode) {
this.constiCode = constiCode == null ? null : constiCode.trim();
}
public String getConstiName() {
return constiName;
}
public void setConstiName(String constiName) {
this.constiName = constiName == null ? null : constiName.trim();
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", constiId=").append(constiId);
sb.append(", scaleCode=").append(scaleCode);
sb.append(", constiCode=").append(constiCode);
sb.append(", constiName=").append(constiName);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

801
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiExample.java

@ -0,0 +1,801 @@
package com.acupuncture.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzQmsScaleConstiExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzQmsScaleConstiExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andConstiIdIsNull() {
addCriterion("consti_id is null");
return (Criteria) this;
}
public Criteria andConstiIdIsNotNull() {
addCriterion("consti_id is not null");
return (Criteria) this;
}
public Criteria andConstiIdEqualTo(Long value) {
addCriterion("consti_id =", value, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdNotEqualTo(Long value) {
addCriterion("consti_id <>", value, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdGreaterThan(Long value) {
addCriterion("consti_id >", value, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdGreaterThanOrEqualTo(Long value) {
addCriterion("consti_id >=", value, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdLessThan(Long value) {
addCriterion("consti_id <", value, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdLessThanOrEqualTo(Long value) {
addCriterion("consti_id <=", value, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdIn(List<Long> values) {
addCriterion("consti_id in", values, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdNotIn(List<Long> values) {
addCriterion("consti_id not in", values, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdBetween(Long value1, Long value2) {
addCriterion("consti_id between", value1, value2, "constiId");
return (Criteria) this;
}
public Criteria andConstiIdNotBetween(Long value1, Long value2) {
addCriterion("consti_id not between", value1, value2, "constiId");
return (Criteria) this;
}
public Criteria andScaleCodeIsNull() {
addCriterion("scale_code is null");
return (Criteria) this;
}
public Criteria andScaleCodeIsNotNull() {
addCriterion("scale_code is not null");
return (Criteria) this;
}
public Criteria andScaleCodeEqualTo(String value) {
addCriterion("scale_code =", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotEqualTo(String value) {
addCriterion("scale_code <>", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeGreaterThan(String value) {
addCriterion("scale_code >", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeGreaterThanOrEqualTo(String value) {
addCriterion("scale_code >=", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLessThan(String value) {
addCriterion("scale_code <", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLessThanOrEqualTo(String value) {
addCriterion("scale_code <=", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLike(String value) {
addCriterion("scale_code like", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotLike(String value) {
addCriterion("scale_code not like", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeIn(List<String> values) {
addCriterion("scale_code in", values, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotIn(List<String> values) {
addCriterion("scale_code not in", values, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeBetween(String value1, String value2) {
addCriterion("scale_code between", value1, value2, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotBetween(String value1, String value2) {
addCriterion("scale_code not between", value1, value2, "scaleCode");
return (Criteria) this;
}
public Criteria andConstiCodeIsNull() {
addCriterion("consti_code is null");
return (Criteria) this;
}
public Criteria andConstiCodeIsNotNull() {
addCriterion("consti_code is not null");
return (Criteria) this;
}
public Criteria andConstiCodeEqualTo(String value) {
addCriterion("consti_code =", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotEqualTo(String value) {
addCriterion("consti_code <>", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThan(String value) {
addCriterion("consti_code >", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThanOrEqualTo(String value) {
addCriterion("consti_code >=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThan(String value) {
addCriterion("consti_code <", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThanOrEqualTo(String value) {
addCriterion("consti_code <=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLike(String value) {
addCriterion("consti_code like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotLike(String value) {
addCriterion("consti_code not like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeIn(List<String> values) {
addCriterion("consti_code in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotIn(List<String> values) {
addCriterion("consti_code not in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeBetween(String value1, String value2) {
addCriterion("consti_code between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotBetween(String value1, String value2) {
addCriterion("consti_code not between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiNameIsNull() {
addCriterion("consti_name is null");
return (Criteria) this;
}
public Criteria andConstiNameIsNotNull() {
addCriterion("consti_name is not null");
return (Criteria) this;
}
public Criteria andConstiNameEqualTo(String value) {
addCriterion("consti_name =", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotEqualTo(String value) {
addCriterion("consti_name <>", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameGreaterThan(String value) {
addCriterion("consti_name >", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameGreaterThanOrEqualTo(String value) {
addCriterion("consti_name >=", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLessThan(String value) {
addCriterion("consti_name <", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLessThanOrEqualTo(String value) {
addCriterion("consti_name <=", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLike(String value) {
addCriterion("consti_name like", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotLike(String value) {
addCriterion("consti_name not like", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameIn(List<String> values) {
addCriterion("consti_name in", values, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotIn(List<String> values) {
addCriterion("consti_name not in", values, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameBetween(String value1, String value2) {
addCriterion("consti_name between", value1, value2, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotBetween(String value1, String value2) {
addCriterion("consti_name not between", value1, value2, "constiName");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(String value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(String value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(String value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(String value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(String value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLike(String value) {
addCriterion("del_flag like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotLike(String value) {
addCriterion("del_flag not like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<String> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<String> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(String value1, String value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(String value1, String value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

117
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRel.java

@ -0,0 +1,117 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class ZytzQmsScaleConstiQuesRel implements Serializable {
private Long id;
private String constiCode;
private String quesCode;
private Byte reverse;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getConstiCode() {
return constiCode;
}
public void setConstiCode(String constiCode) {
this.constiCode = constiCode == null ? null : constiCode.trim();
}
public String getQuesCode() {
return quesCode;
}
public void setQuesCode(String quesCode) {
this.quesCode = quesCode == null ? null : quesCode.trim();
}
public Byte getReverse() {
return reverse;
}
public void setReverse(Byte reverse) {
this.reverse = reverse;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@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(", constiCode=").append(constiCode);
sb.append(", quesCode=").append(quesCode);
sb.append(", reverse=").append(reverse);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

791
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiQuesRelExample.java

@ -0,0 +1,791 @@
package com.acupuncture.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzQmsScaleConstiQuesRelExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzQmsScaleConstiQuesRelExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andConstiCodeIsNull() {
addCriterion("consti_code is null");
return (Criteria) this;
}
public Criteria andConstiCodeIsNotNull() {
addCriterion("consti_code is not null");
return (Criteria) this;
}
public Criteria andConstiCodeEqualTo(String value) {
addCriterion("consti_code =", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotEqualTo(String value) {
addCriterion("consti_code <>", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThan(String value) {
addCriterion("consti_code >", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThanOrEqualTo(String value) {
addCriterion("consti_code >=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThan(String value) {
addCriterion("consti_code <", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThanOrEqualTo(String value) {
addCriterion("consti_code <=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLike(String value) {
addCriterion("consti_code like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotLike(String value) {
addCriterion("consti_code not like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeIn(List<String> values) {
addCriterion("consti_code in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotIn(List<String> values) {
addCriterion("consti_code not in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeBetween(String value1, String value2) {
addCriterion("consti_code between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotBetween(String value1, String value2) {
addCriterion("consti_code not between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andQuesCodeIsNull() {
addCriterion("ques_code is null");
return (Criteria) this;
}
public Criteria andQuesCodeIsNotNull() {
addCriterion("ques_code is not null");
return (Criteria) this;
}
public Criteria andQuesCodeEqualTo(String value) {
addCriterion("ques_code =", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotEqualTo(String value) {
addCriterion("ques_code <>", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThan(String value) {
addCriterion("ques_code >", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThanOrEqualTo(String value) {
addCriterion("ques_code >=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThan(String value) {
addCriterion("ques_code <", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThanOrEqualTo(String value) {
addCriterion("ques_code <=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLike(String value) {
addCriterion("ques_code like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotLike(String value) {
addCriterion("ques_code not like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeIn(List<String> values) {
addCriterion("ques_code in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotIn(List<String> values) {
addCriterion("ques_code not in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeBetween(String value1, String value2) {
addCriterion("ques_code between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotBetween(String value1, String value2) {
addCriterion("ques_code not between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andReverseIsNull() {
addCriterion("reverse is null");
return (Criteria) this;
}
public Criteria andReverseIsNotNull() {
addCriterion("reverse is not null");
return (Criteria) this;
}
public Criteria andReverseEqualTo(Byte value) {
addCriterion("reverse =", value, "reverse");
return (Criteria) this;
}
public Criteria andReverseNotEqualTo(Byte value) {
addCriterion("reverse <>", value, "reverse");
return (Criteria) this;
}
public Criteria andReverseGreaterThan(Byte value) {
addCriterion("reverse >", value, "reverse");
return (Criteria) this;
}
public Criteria andReverseGreaterThanOrEqualTo(Byte value) {
addCriterion("reverse >=", value, "reverse");
return (Criteria) this;
}
public Criteria andReverseLessThan(Byte value) {
addCriterion("reverse <", value, "reverse");
return (Criteria) this;
}
public Criteria andReverseLessThanOrEqualTo(Byte value) {
addCriterion("reverse <=", value, "reverse");
return (Criteria) this;
}
public Criteria andReverseIn(List<Byte> values) {
addCriterion("reverse in", values, "reverse");
return (Criteria) this;
}
public Criteria andReverseNotIn(List<Byte> values) {
addCriterion("reverse not in", values, "reverse");
return (Criteria) this;
}
public Criteria andReverseBetween(Byte value1, Byte value2) {
addCriterion("reverse between", value1, value2, "reverse");
return (Criteria) this;
}
public Criteria andReverseNotBetween(Byte value1, Byte value2) {
addCriterion("reverse not between", value1, value2, "reverse");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(String value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(String value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(String value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(String value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(String value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLike(String value) {
addCriterion("del_flag like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotLike(String value) {
addCriterion("del_flag not like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<String> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<String> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(String value1, String value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(String value1, String value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

129
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScore.java

@ -0,0 +1,129 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class ZytzQmsScaleConstiRefScore implements Serializable {
private Long id;
private String constiCode;
private BigDecimal refScoreYes;
private BigDecimal refScoreMaybe;
private BigDecimal fullScore;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getConstiCode() {
return constiCode;
}
public void setConstiCode(String constiCode) {
this.constiCode = constiCode == null ? null : constiCode.trim();
}
public BigDecimal getRefScoreYes() {
return refScoreYes;
}
public void setRefScoreYes(BigDecimal refScoreYes) {
this.refScoreYes = refScoreYes;
}
public BigDecimal getRefScoreMaybe() {
return refScoreMaybe;
}
public void setRefScoreMaybe(BigDecimal refScoreMaybe) {
this.refScoreMaybe = refScoreMaybe;
}
public BigDecimal getFullScore() {
return fullScore;
}
public void setFullScore(BigDecimal fullScore) {
this.fullScore = fullScore;
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@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(", constiCode=").append(constiCode);
sb.append(", refScoreYes=").append(refScoreYes);
sb.append(", refScoreMaybe=").append(refScoreMaybe);
sb.append(", fullScore=").append(fullScore);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

842
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiRefScoreExample.java

@ -0,0 +1,842 @@
package com.acupuncture.system.domain.po;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzQmsScaleConstiRefScoreExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzQmsScaleConstiRefScoreExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andConstiCodeIsNull() {
addCriterion("consti_code is null");
return (Criteria) this;
}
public Criteria andConstiCodeIsNotNull() {
addCriterion("consti_code is not null");
return (Criteria) this;
}
public Criteria andConstiCodeEqualTo(String value) {
addCriterion("consti_code =", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotEqualTo(String value) {
addCriterion("consti_code <>", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThan(String value) {
addCriterion("consti_code >", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThanOrEqualTo(String value) {
addCriterion("consti_code >=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThan(String value) {
addCriterion("consti_code <", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThanOrEqualTo(String value) {
addCriterion("consti_code <=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLike(String value) {
addCriterion("consti_code like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotLike(String value) {
addCriterion("consti_code not like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeIn(List<String> values) {
addCriterion("consti_code in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotIn(List<String> values) {
addCriterion("consti_code not in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeBetween(String value1, String value2) {
addCriterion("consti_code between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotBetween(String value1, String value2) {
addCriterion("consti_code not between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andRefScoreYesIsNull() {
addCriterion("ref_score_yes is null");
return (Criteria) this;
}
public Criteria andRefScoreYesIsNotNull() {
addCriterion("ref_score_yes is not null");
return (Criteria) this;
}
public Criteria andRefScoreYesEqualTo(BigDecimal value) {
addCriterion("ref_score_yes =", value, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesNotEqualTo(BigDecimal value) {
addCriterion("ref_score_yes <>", value, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesGreaterThan(BigDecimal value) {
addCriterion("ref_score_yes >", value, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("ref_score_yes >=", value, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesLessThan(BigDecimal value) {
addCriterion("ref_score_yes <", value, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesLessThanOrEqualTo(BigDecimal value) {
addCriterion("ref_score_yes <=", value, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesIn(List<BigDecimal> values) {
addCriterion("ref_score_yes in", values, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesNotIn(List<BigDecimal> values) {
addCriterion("ref_score_yes not in", values, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ref_score_yes between", value1, value2, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreYesNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ref_score_yes not between", value1, value2, "refScoreYes");
return (Criteria) this;
}
public Criteria andRefScoreMaybeIsNull() {
addCriterion("ref_score_Maybe is null");
return (Criteria) this;
}
public Criteria andRefScoreMaybeIsNotNull() {
addCriterion("ref_score_Maybe is not null");
return (Criteria) this;
}
public Criteria andRefScoreMaybeEqualTo(BigDecimal value) {
addCriterion("ref_score_Maybe =", value, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeNotEqualTo(BigDecimal value) {
addCriterion("ref_score_Maybe <>", value, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeGreaterThan(BigDecimal value) {
addCriterion("ref_score_Maybe >", value, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("ref_score_Maybe >=", value, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeLessThan(BigDecimal value) {
addCriterion("ref_score_Maybe <", value, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeLessThanOrEqualTo(BigDecimal value) {
addCriterion("ref_score_Maybe <=", value, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeIn(List<BigDecimal> values) {
addCriterion("ref_score_Maybe in", values, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeNotIn(List<BigDecimal> values) {
addCriterion("ref_score_Maybe not in", values, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ref_score_Maybe between", value1, value2, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andRefScoreMaybeNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("ref_score_Maybe not between", value1, value2, "refScoreMaybe");
return (Criteria) this;
}
public Criteria andFullScoreIsNull() {
addCriterion("full_score is null");
return (Criteria) this;
}
public Criteria andFullScoreIsNotNull() {
addCriterion("full_score is not null");
return (Criteria) this;
}
public Criteria andFullScoreEqualTo(BigDecimal value) {
addCriterion("full_score =", value, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreNotEqualTo(BigDecimal value) {
addCriterion("full_score <>", value, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreGreaterThan(BigDecimal value) {
addCriterion("full_score >", value, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("full_score >=", value, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreLessThan(BigDecimal value) {
addCriterion("full_score <", value, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreLessThanOrEqualTo(BigDecimal value) {
addCriterion("full_score <=", value, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreIn(List<BigDecimal> values) {
addCriterion("full_score in", values, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreNotIn(List<BigDecimal> values) {
addCriterion("full_score not in", values, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("full_score between", value1, value2, "fullScore");
return (Criteria) this;
}
public Criteria andFullScoreNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("full_score not between", value1, value2, "fullScore");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(String value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(String value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(String value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(String value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(String value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLike(String value) {
addCriterion("del_flag like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotLike(String value) {
addCriterion("del_flag not like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<String> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<String> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(String value1, String value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(String value1, String value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

106
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfa.java

@ -0,0 +1,106 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class ZytzQmsScaleConstiYsfa implements Serializable {
private Long id;
private String constiCode;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private String constiYsfaTemplate;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getConstiCode() {
return constiCode;
}
public void setConstiCode(String constiCode) {
this.constiCode = constiCode == null ? null : constiCode.trim();
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getConstiYsfaTemplate() {
return constiYsfaTemplate;
}
public void setConstiYsfaTemplate(String constiYsfaTemplate) {
this.constiYsfaTemplate = constiYsfaTemplate == null ? null : constiYsfaTemplate.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(", constiCode=").append(constiCode);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", constiYsfaTemplate=").append(constiYsfaTemplate);
sb.append("]");
return sb.toString();
}
}

661
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleConstiYsfaExample.java

@ -0,0 +1,661 @@
package com.acupuncture.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzQmsScaleConstiYsfaExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzQmsScaleConstiYsfaExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andConstiCodeIsNull() {
addCriterion("consti_code is null");
return (Criteria) this;
}
public Criteria andConstiCodeIsNotNull() {
addCriterion("consti_code is not null");
return (Criteria) this;
}
public Criteria andConstiCodeEqualTo(String value) {
addCriterion("consti_code =", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotEqualTo(String value) {
addCriterion("consti_code <>", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThan(String value) {
addCriterion("consti_code >", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThanOrEqualTo(String value) {
addCriterion("consti_code >=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThan(String value) {
addCriterion("consti_code <", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThanOrEqualTo(String value) {
addCriterion("consti_code <=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLike(String value) {
addCriterion("consti_code like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotLike(String value) {
addCriterion("consti_code not like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeIn(List<String> values) {
addCriterion("consti_code in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotIn(List<String> values) {
addCriterion("consti_code not in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeBetween(String value1, String value2) {
addCriterion("consti_code between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotBetween(String value1, String value2) {
addCriterion("consti_code not between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(String value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(String value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(String value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(String value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(String value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLike(String value) {
addCriterion("del_flag like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotLike(String value) {
addCriterion("del_flag not like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<String> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<String> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(String value1, String value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(String value1, String value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

731
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleExample.java

@ -0,0 +1,731 @@
package com.acupuncture.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzQmsScaleExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzQmsScaleExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andScaleIdIsNull() {
addCriterion("scale_id is null");
return (Criteria) this;
}
public Criteria andScaleIdIsNotNull() {
addCriterion("scale_id is not null");
return (Criteria) this;
}
public Criteria andScaleIdEqualTo(Long value) {
addCriterion("scale_id =", value, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdNotEqualTo(Long value) {
addCriterion("scale_id <>", value, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdGreaterThan(Long value) {
addCriterion("scale_id >", value, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdGreaterThanOrEqualTo(Long value) {
addCriterion("scale_id >=", value, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdLessThan(Long value) {
addCriterion("scale_id <", value, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdLessThanOrEqualTo(Long value) {
addCriterion("scale_id <=", value, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdIn(List<Long> values) {
addCriterion("scale_id in", values, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdNotIn(List<Long> values) {
addCriterion("scale_id not in", values, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdBetween(Long value1, Long value2) {
addCriterion("scale_id between", value1, value2, "scaleId");
return (Criteria) this;
}
public Criteria andScaleIdNotBetween(Long value1, Long value2) {
addCriterion("scale_id not between", value1, value2, "scaleId");
return (Criteria) this;
}
public Criteria andScaleCodeIsNull() {
addCriterion("scale_code is null");
return (Criteria) this;
}
public Criteria andScaleCodeIsNotNull() {
addCriterion("scale_code is not null");
return (Criteria) this;
}
public Criteria andScaleCodeEqualTo(String value) {
addCriterion("scale_code =", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotEqualTo(String value) {
addCriterion("scale_code <>", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeGreaterThan(String value) {
addCriterion("scale_code >", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeGreaterThanOrEqualTo(String value) {
addCriterion("scale_code >=", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLessThan(String value) {
addCriterion("scale_code <", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLessThanOrEqualTo(String value) {
addCriterion("scale_code <=", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLike(String value) {
addCriterion("scale_code like", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotLike(String value) {
addCriterion("scale_code not like", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeIn(List<String> values) {
addCriterion("scale_code in", values, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotIn(List<String> values) {
addCriterion("scale_code not in", values, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeBetween(String value1, String value2) {
addCriterion("scale_code between", value1, value2, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotBetween(String value1, String value2) {
addCriterion("scale_code not between", value1, value2, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleNameIsNull() {
addCriterion("scale_name is null");
return (Criteria) this;
}
public Criteria andScaleNameIsNotNull() {
addCriterion("scale_name is not null");
return (Criteria) this;
}
public Criteria andScaleNameEqualTo(String value) {
addCriterion("scale_name =", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameNotEqualTo(String value) {
addCriterion("scale_name <>", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameGreaterThan(String value) {
addCriterion("scale_name >", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameGreaterThanOrEqualTo(String value) {
addCriterion("scale_name >=", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameLessThan(String value) {
addCriterion("scale_name <", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameLessThanOrEqualTo(String value) {
addCriterion("scale_name <=", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameLike(String value) {
addCriterion("scale_name like", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameNotLike(String value) {
addCriterion("scale_name not like", value, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameIn(List<String> values) {
addCriterion("scale_name in", values, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameNotIn(List<String> values) {
addCriterion("scale_name not in", values, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameBetween(String value1, String value2) {
addCriterion("scale_name between", value1, value2, "scaleName");
return (Criteria) this;
}
public Criteria andScaleNameNotBetween(String value1, String value2) {
addCriterion("scale_name not between", value1, value2, "scaleName");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(String value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(String value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(String value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(String value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(String value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLike(String value) {
addCriterion("del_flag like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotLike(String value) {
addCriterion("del_flag not like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<String> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<String> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(String value1, String value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(String value1, String value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

139
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestion.java

@ -0,0 +1,139 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class ZytzQmsScaleQuestion implements Serializable {
private Long quesId;
private String scaleCode;
private String quesCode;
private Integer quesSort;
private String quesName;
private String genderApply;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getQuesId() {
return quesId;
}
public void setQuesId(Long quesId) {
this.quesId = quesId;
}
public String getScaleCode() {
return scaleCode;
}
public void setScaleCode(String scaleCode) {
this.scaleCode = scaleCode == null ? null : scaleCode.trim();
}
public String getQuesCode() {
return quesCode;
}
public void setQuesCode(String quesCode) {
this.quesCode = quesCode == null ? null : quesCode.trim();
}
public Integer getQuesSort() {
return quesSort;
}
public void setQuesSort(Integer quesSort) {
this.quesSort = quesSort;
}
public String getQuesName() {
return quesName;
}
public void setQuesName(String quesName) {
this.quesName = quesName == null ? null : quesName.trim();
}
public String getGenderApply() {
return genderApply;
}
public void setGenderApply(String genderApply) {
this.genderApply = genderApply == null ? null : genderApply.trim();
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", quesId=").append(quesId);
sb.append(", scaleCode=").append(scaleCode);
sb.append(", quesCode=").append(quesCode);
sb.append(", quesSort=").append(quesSort);
sb.append(", quesName=").append(quesName);
sb.append(", genderApply=").append(genderApply);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

931
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionExample.java

@ -0,0 +1,931 @@
package com.acupuncture.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzQmsScaleQuestionExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzQmsScaleQuestionExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andQuesIdIsNull() {
addCriterion("ques_id is null");
return (Criteria) this;
}
public Criteria andQuesIdIsNotNull() {
addCriterion("ques_id is not null");
return (Criteria) this;
}
public Criteria andQuesIdEqualTo(Long value) {
addCriterion("ques_id =", value, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdNotEqualTo(Long value) {
addCriterion("ques_id <>", value, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdGreaterThan(Long value) {
addCriterion("ques_id >", value, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdGreaterThanOrEqualTo(Long value) {
addCriterion("ques_id >=", value, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdLessThan(Long value) {
addCriterion("ques_id <", value, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdLessThanOrEqualTo(Long value) {
addCriterion("ques_id <=", value, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdIn(List<Long> values) {
addCriterion("ques_id in", values, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdNotIn(List<Long> values) {
addCriterion("ques_id not in", values, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdBetween(Long value1, Long value2) {
addCriterion("ques_id between", value1, value2, "quesId");
return (Criteria) this;
}
public Criteria andQuesIdNotBetween(Long value1, Long value2) {
addCriterion("ques_id not between", value1, value2, "quesId");
return (Criteria) this;
}
public Criteria andScaleCodeIsNull() {
addCriterion("scale_code is null");
return (Criteria) this;
}
public Criteria andScaleCodeIsNotNull() {
addCriterion("scale_code is not null");
return (Criteria) this;
}
public Criteria andScaleCodeEqualTo(String value) {
addCriterion("scale_code =", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotEqualTo(String value) {
addCriterion("scale_code <>", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeGreaterThan(String value) {
addCriterion("scale_code >", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeGreaterThanOrEqualTo(String value) {
addCriterion("scale_code >=", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLessThan(String value) {
addCriterion("scale_code <", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLessThanOrEqualTo(String value) {
addCriterion("scale_code <=", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeLike(String value) {
addCriterion("scale_code like", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotLike(String value) {
addCriterion("scale_code not like", value, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeIn(List<String> values) {
addCriterion("scale_code in", values, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotIn(List<String> values) {
addCriterion("scale_code not in", values, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeBetween(String value1, String value2) {
addCriterion("scale_code between", value1, value2, "scaleCode");
return (Criteria) this;
}
public Criteria andScaleCodeNotBetween(String value1, String value2) {
addCriterion("scale_code not between", value1, value2, "scaleCode");
return (Criteria) this;
}
public Criteria andQuesCodeIsNull() {
addCriterion("ques_code is null");
return (Criteria) this;
}
public Criteria andQuesCodeIsNotNull() {
addCriterion("ques_code is not null");
return (Criteria) this;
}
public Criteria andQuesCodeEqualTo(String value) {
addCriterion("ques_code =", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotEqualTo(String value) {
addCriterion("ques_code <>", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThan(String value) {
addCriterion("ques_code >", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThanOrEqualTo(String value) {
addCriterion("ques_code >=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThan(String value) {
addCriterion("ques_code <", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThanOrEqualTo(String value) {
addCriterion("ques_code <=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLike(String value) {
addCriterion("ques_code like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotLike(String value) {
addCriterion("ques_code not like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeIn(List<String> values) {
addCriterion("ques_code in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotIn(List<String> values) {
addCriterion("ques_code not in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeBetween(String value1, String value2) {
addCriterion("ques_code between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotBetween(String value1, String value2) {
addCriterion("ques_code not between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andQuesSortIsNull() {
addCriterion("ques_sort is null");
return (Criteria) this;
}
public Criteria andQuesSortIsNotNull() {
addCriterion("ques_sort is not null");
return (Criteria) this;
}
public Criteria andQuesSortEqualTo(Integer value) {
addCriterion("ques_sort =", value, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortNotEqualTo(Integer value) {
addCriterion("ques_sort <>", value, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortGreaterThan(Integer value) {
addCriterion("ques_sort >", value, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortGreaterThanOrEqualTo(Integer value) {
addCriterion("ques_sort >=", value, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortLessThan(Integer value) {
addCriterion("ques_sort <", value, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortLessThanOrEqualTo(Integer value) {
addCriterion("ques_sort <=", value, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortIn(List<Integer> values) {
addCriterion("ques_sort in", values, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortNotIn(List<Integer> values) {
addCriterion("ques_sort not in", values, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortBetween(Integer value1, Integer value2) {
addCriterion("ques_sort between", value1, value2, "quesSort");
return (Criteria) this;
}
public Criteria andQuesSortNotBetween(Integer value1, Integer value2) {
addCriterion("ques_sort not between", value1, value2, "quesSort");
return (Criteria) this;
}
public Criteria andQuesNameIsNull() {
addCriterion("ques_name is null");
return (Criteria) this;
}
public Criteria andQuesNameIsNotNull() {
addCriterion("ques_name is not null");
return (Criteria) this;
}
public Criteria andQuesNameEqualTo(String value) {
addCriterion("ques_name =", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameNotEqualTo(String value) {
addCriterion("ques_name <>", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameGreaterThan(String value) {
addCriterion("ques_name >", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameGreaterThanOrEqualTo(String value) {
addCriterion("ques_name >=", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameLessThan(String value) {
addCriterion("ques_name <", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameLessThanOrEqualTo(String value) {
addCriterion("ques_name <=", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameLike(String value) {
addCriterion("ques_name like", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameNotLike(String value) {
addCriterion("ques_name not like", value, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameIn(List<String> values) {
addCriterion("ques_name in", values, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameNotIn(List<String> values) {
addCriterion("ques_name not in", values, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameBetween(String value1, String value2) {
addCriterion("ques_name between", value1, value2, "quesName");
return (Criteria) this;
}
public Criteria andQuesNameNotBetween(String value1, String value2) {
addCriterion("ques_name not between", value1, value2, "quesName");
return (Criteria) this;
}
public Criteria andGenderApplyIsNull() {
addCriterion("gender_apply is null");
return (Criteria) this;
}
public Criteria andGenderApplyIsNotNull() {
addCriterion("gender_apply is not null");
return (Criteria) this;
}
public Criteria andGenderApplyEqualTo(String value) {
addCriterion("gender_apply =", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyNotEqualTo(String value) {
addCriterion("gender_apply <>", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyGreaterThan(String value) {
addCriterion("gender_apply >", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyGreaterThanOrEqualTo(String value) {
addCriterion("gender_apply >=", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyLessThan(String value) {
addCriterion("gender_apply <", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyLessThanOrEqualTo(String value) {
addCriterion("gender_apply <=", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyLike(String value) {
addCriterion("gender_apply like", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyNotLike(String value) {
addCriterion("gender_apply not like", value, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyIn(List<String> values) {
addCriterion("gender_apply in", values, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyNotIn(List<String> values) {
addCriterion("gender_apply not in", values, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyBetween(String value1, String value2) {
addCriterion("gender_apply between", value1, value2, "genderApply");
return (Criteria) this;
}
public Criteria andGenderApplyNotBetween(String value1, String value2) {
addCriterion("gender_apply not between", value1, value2, "genderApply");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(String value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(String value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(String value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(String value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(String value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLike(String value) {
addCriterion("del_flag like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotLike(String value) {
addCriterion("del_flag not like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<String> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<String> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(String value1, String value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(String value1, String value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

140
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOption.java

@ -0,0 +1,140 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class ZytzQmsScaleQuestionOption implements Serializable {
private Long optionId;
private String quesCode;
private String optionCode;
private String optionName;
private BigDecimal optionScore;
private String optionSort;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getOptionId() {
return optionId;
}
public void setOptionId(Long optionId) {
this.optionId = optionId;
}
public String getQuesCode() {
return quesCode;
}
public void setQuesCode(String quesCode) {
this.quesCode = quesCode == null ? null : quesCode.trim();
}
public String getOptionCode() {
return optionCode;
}
public void setOptionCode(String optionCode) {
this.optionCode = optionCode == null ? null : optionCode.trim();
}
public String getOptionName() {
return optionName;
}
public void setOptionName(String optionName) {
this.optionName = optionName == null ? null : optionName.trim();
}
public BigDecimal getOptionScore() {
return optionScore;
}
public void setOptionScore(BigDecimal optionScore) {
this.optionScore = optionScore;
}
public String getOptionSort() {
return optionSort;
}
public void setOptionSort(String optionSort) {
this.optionSort = optionSort == null ? null : optionSort.trim();
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", optionId=").append(optionId);
sb.append(", quesCode=").append(quesCode);
sb.append(", optionCode=").append(optionCode);
sb.append(", optionName=").append(optionName);
sb.append(", optionScore=").append(optionScore);
sb.append(", optionSort=").append(optionSort);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

932
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzQmsScaleQuestionOptionExample.java

@ -0,0 +1,932 @@
package com.acupuncture.system.domain.po;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzQmsScaleQuestionOptionExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzQmsScaleQuestionOptionExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andOptionIdIsNull() {
addCriterion("option_id is null");
return (Criteria) this;
}
public Criteria andOptionIdIsNotNull() {
addCriterion("option_id is not null");
return (Criteria) this;
}
public Criteria andOptionIdEqualTo(Long value) {
addCriterion("option_id =", value, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdNotEqualTo(Long value) {
addCriterion("option_id <>", value, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdGreaterThan(Long value) {
addCriterion("option_id >", value, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdGreaterThanOrEqualTo(Long value) {
addCriterion("option_id >=", value, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdLessThan(Long value) {
addCriterion("option_id <", value, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdLessThanOrEqualTo(Long value) {
addCriterion("option_id <=", value, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdIn(List<Long> values) {
addCriterion("option_id in", values, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdNotIn(List<Long> values) {
addCriterion("option_id not in", values, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdBetween(Long value1, Long value2) {
addCriterion("option_id between", value1, value2, "optionId");
return (Criteria) this;
}
public Criteria andOptionIdNotBetween(Long value1, Long value2) {
addCriterion("option_id not between", value1, value2, "optionId");
return (Criteria) this;
}
public Criteria andQuesCodeIsNull() {
addCriterion("ques_code is null");
return (Criteria) this;
}
public Criteria andQuesCodeIsNotNull() {
addCriterion("ques_code is not null");
return (Criteria) this;
}
public Criteria andQuesCodeEqualTo(String value) {
addCriterion("ques_code =", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotEqualTo(String value) {
addCriterion("ques_code <>", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThan(String value) {
addCriterion("ques_code >", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeGreaterThanOrEqualTo(String value) {
addCriterion("ques_code >=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThan(String value) {
addCriterion("ques_code <", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLessThanOrEqualTo(String value) {
addCriterion("ques_code <=", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeLike(String value) {
addCriterion("ques_code like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotLike(String value) {
addCriterion("ques_code not like", value, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeIn(List<String> values) {
addCriterion("ques_code in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotIn(List<String> values) {
addCriterion("ques_code not in", values, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeBetween(String value1, String value2) {
addCriterion("ques_code between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andQuesCodeNotBetween(String value1, String value2) {
addCriterion("ques_code not between", value1, value2, "quesCode");
return (Criteria) this;
}
public Criteria andOptionCodeIsNull() {
addCriterion("option_code is null");
return (Criteria) this;
}
public Criteria andOptionCodeIsNotNull() {
addCriterion("option_code is not null");
return (Criteria) this;
}
public Criteria andOptionCodeEqualTo(String value) {
addCriterion("option_code =", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotEqualTo(String value) {
addCriterion("option_code <>", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeGreaterThan(String value) {
addCriterion("option_code >", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeGreaterThanOrEqualTo(String value) {
addCriterion("option_code >=", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeLessThan(String value) {
addCriterion("option_code <", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeLessThanOrEqualTo(String value) {
addCriterion("option_code <=", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeLike(String value) {
addCriterion("option_code like", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotLike(String value) {
addCriterion("option_code not like", value, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeIn(List<String> values) {
addCriterion("option_code in", values, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotIn(List<String> values) {
addCriterion("option_code not in", values, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeBetween(String value1, String value2) {
addCriterion("option_code between", value1, value2, "optionCode");
return (Criteria) this;
}
public Criteria andOptionCodeNotBetween(String value1, String value2) {
addCriterion("option_code not between", value1, value2, "optionCode");
return (Criteria) this;
}
public Criteria andOptionNameIsNull() {
addCriterion("option_name is null");
return (Criteria) this;
}
public Criteria andOptionNameIsNotNull() {
addCriterion("option_name is not null");
return (Criteria) this;
}
public Criteria andOptionNameEqualTo(String value) {
addCriterion("option_name =", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotEqualTo(String value) {
addCriterion("option_name <>", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameGreaterThan(String value) {
addCriterion("option_name >", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameGreaterThanOrEqualTo(String value) {
addCriterion("option_name >=", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameLessThan(String value) {
addCriterion("option_name <", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameLessThanOrEqualTo(String value) {
addCriterion("option_name <=", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameLike(String value) {
addCriterion("option_name like", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotLike(String value) {
addCriterion("option_name not like", value, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameIn(List<String> values) {
addCriterion("option_name in", values, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotIn(List<String> values) {
addCriterion("option_name not in", values, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameBetween(String value1, String value2) {
addCriterion("option_name between", value1, value2, "optionName");
return (Criteria) this;
}
public Criteria andOptionNameNotBetween(String value1, String value2) {
addCriterion("option_name not between", value1, value2, "optionName");
return (Criteria) this;
}
public Criteria andOptionScoreIsNull() {
addCriterion("option_score is null");
return (Criteria) this;
}
public Criteria andOptionScoreIsNotNull() {
addCriterion("option_score is not null");
return (Criteria) this;
}
public Criteria andOptionScoreEqualTo(BigDecimal value) {
addCriterion("option_score =", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreNotEqualTo(BigDecimal value) {
addCriterion("option_score <>", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreGreaterThan(BigDecimal value) {
addCriterion("option_score >", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("option_score >=", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreLessThan(BigDecimal value) {
addCriterion("option_score <", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreLessThanOrEqualTo(BigDecimal value) {
addCriterion("option_score <=", value, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreIn(List<BigDecimal> values) {
addCriterion("option_score in", values, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreNotIn(List<BigDecimal> values) {
addCriterion("option_score not in", values, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("option_score between", value1, value2, "optionScore");
return (Criteria) this;
}
public Criteria andOptionScoreNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("option_score not between", value1, value2, "optionScore");
return (Criteria) this;
}
public Criteria andOptionSortIsNull() {
addCriterion("option_sort is null");
return (Criteria) this;
}
public Criteria andOptionSortIsNotNull() {
addCriterion("option_sort is not null");
return (Criteria) this;
}
public Criteria andOptionSortEqualTo(String value) {
addCriterion("option_sort =", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortNotEqualTo(String value) {
addCriterion("option_sort <>", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortGreaterThan(String value) {
addCriterion("option_sort >", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortGreaterThanOrEqualTo(String value) {
addCriterion("option_sort >=", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortLessThan(String value) {
addCriterion("option_sort <", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortLessThanOrEqualTo(String value) {
addCriterion("option_sort <=", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortLike(String value) {
addCriterion("option_sort like", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortNotLike(String value) {
addCriterion("option_sort not like", value, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortIn(List<String> values) {
addCriterion("option_sort in", values, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortNotIn(List<String> values) {
addCriterion("option_sort not in", values, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortBetween(String value1, String value2) {
addCriterion("option_sort between", value1, value2, "optionSort");
return (Criteria) this;
}
public Criteria andOptionSortNotBetween(String value1, String value2) {
addCriterion("option_sort not between", value1, value2, "optionSort");
return (Criteria) this;
}
public Criteria andDelFlagIsNull() {
addCriterion("del_flag is null");
return (Criteria) this;
}
public Criteria andDelFlagIsNotNull() {
addCriterion("del_flag is not null");
return (Criteria) this;
}
public Criteria andDelFlagEqualTo(String value) {
addCriterion("del_flag =", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotEqualTo(String value) {
addCriterion("del_flag <>", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThan(String value) {
addCriterion("del_flag >", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagGreaterThanOrEqualTo(String value) {
addCriterion("del_flag >=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThan(String value) {
addCriterion("del_flag <", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLessThanOrEqualTo(String value) {
addCriterion("del_flag <=", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagLike(String value) {
addCriterion("del_flag like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotLike(String value) {
addCriterion("del_flag not like", value, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagIn(List<String> values) {
addCriterion("del_flag in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotIn(List<String> values) {
addCriterion("del_flag not in", values, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagBetween(String value1, String value2) {
addCriterion("del_flag between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andDelFlagNotBetween(String value1, String value2) {
addCriterion("del_flag not between", value1, value2, "delFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

293
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReport.java

@ -0,0 +1,293 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class ZytzRmsReport implements Serializable {
private Long reportId;
private Long deptId;
private Long patientId;
private String patientName;
private String patientAge;
private String patientGender;
private String patientHeight;
private String patientWeight;
private String patientWaistline;
private Long evaId;
private String evaScaleCode;
private Date evaTime;
private String evaUsername;
private String evaNickname;
private String blh;
private String delFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private String patientNamePinyin;
private String patientNamePy;
private String patientBirthday;
private String patientIdcard;
private String patientPhone;
private static final long serialVersionUID = 1L;
public Long getReportId() {
return reportId;
}
public void setReportId(Long reportId) {
this.reportId = reportId;
}
public Long getDeptId() {
return deptId;
}
public void setDeptId(Long deptId) {
this.deptId = deptId;
}
public Long getPatientId() {
return patientId;
}
public void setPatientId(Long patientId) {
this.patientId = patientId;
}
public String getPatientName() {
return patientName;
}
public void setPatientName(String patientName) {
this.patientName = patientName == null ? null : patientName.trim();
}
public String getPatientAge() {
return patientAge;
}
public void setPatientAge(String patientAge) {
this.patientAge = patientAge == null ? null : patientAge.trim();
}
public String getPatientGender() {
return patientGender;
}
public void setPatientGender(String patientGender) {
this.patientGender = patientGender == null ? null : patientGender.trim();
}
public String getPatientHeight() {
return patientHeight;
}
public void setPatientHeight(String patientHeight) {
this.patientHeight = patientHeight == null ? null : patientHeight.trim();
}
public String getPatientWeight() {
return patientWeight;
}
public void setPatientWeight(String patientWeight) {
this.patientWeight = patientWeight == null ? null : patientWeight.trim();
}
public String getPatientWaistline() {
return patientWaistline;
}
public void setPatientWaistline(String patientWaistline) {
this.patientWaistline = patientWaistline == null ? null : patientWaistline.trim();
}
public Long getEvaId() {
return evaId;
}
public void setEvaId(Long evaId) {
this.evaId = evaId;
}
public String getEvaScaleCode() {
return evaScaleCode;
}
public void setEvaScaleCode(String evaScaleCode) {
this.evaScaleCode = evaScaleCode == null ? null : evaScaleCode.trim();
}
public Date getEvaTime() {
return evaTime;
}
public void setEvaTime(Date evaTime) {
this.evaTime = evaTime;
}
public String getEvaUsername() {
return evaUsername;
}
public void setEvaUsername(String evaUsername) {
this.evaUsername = evaUsername == null ? null : evaUsername.trim();
}
public String getEvaNickname() {
return evaNickname;
}
public void setEvaNickname(String evaNickname) {
this.evaNickname = evaNickname == null ? null : evaNickname.trim();
}
public String getBlh() {
return blh;
}
public void setBlh(String blh) {
this.blh = blh == null ? null : blh.trim();
}
public String getDelFlag() {
return delFlag;
}
public void setDelFlag(String delFlag) {
this.delFlag = delFlag == null ? null : delFlag.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getPatientNamePinyin() {
return patientNamePinyin;
}
public void setPatientNamePinyin(String patientNamePinyin) {
this.patientNamePinyin = patientNamePinyin == null ? null : patientNamePinyin.trim();
}
public String getPatientNamePy() {
return patientNamePy;
}
public void setPatientNamePy(String patientNamePy) {
this.patientNamePy = patientNamePy == null ? null : patientNamePy.trim();
}
public String getPatientBirthday() {
return patientBirthday;
}
public void setPatientBirthday(String patientBirthday) {
this.patientBirthday = patientBirthday == null ? null : patientBirthday.trim();
}
public String getPatientIdcard() {
return patientIdcard;
}
public void setPatientIdcard(String patientIdcard) {
this.patientIdcard = patientIdcard == null ? null : patientIdcard.trim();
}
public String getPatientPhone() {
return patientPhone;
}
public void setPatientPhone(String patientPhone) {
this.patientPhone = patientPhone == null ? null : patientPhone.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", reportId=").append(reportId);
sb.append(", deptId=").append(deptId);
sb.append(", patientId=").append(patientId);
sb.append(", patientName=").append(patientName);
sb.append(", patientAge=").append(patientAge);
sb.append(", patientGender=").append(patientGender);
sb.append(", patientHeight=").append(patientHeight);
sb.append(", patientWeight=").append(patientWeight);
sb.append(", patientWaistline=").append(patientWaistline);
sb.append(", evaId=").append(evaId);
sb.append(", evaScaleCode=").append(evaScaleCode);
sb.append(", evaTime=").append(evaTime);
sb.append(", evaUsername=").append(evaUsername);
sb.append(", evaNickname=").append(evaNickname);
sb.append(", blh=").append(blh);
sb.append(", delFlag=").append(delFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", patientNamePinyin=").append(patientNamePinyin);
sb.append(", patientNamePy=").append(patientNamePy);
sb.append(", patientBirthday=").append(patientBirthday);
sb.append(", patientIdcard=").append(patientIdcard);
sb.append(", patientPhone=").append(patientPhone);
sb.append("]");
return sb.toString();
}
}

1881
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportExample.java

File diff suppressed because it is too large

140
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResult.java

@ -0,0 +1,140 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class ZytzRmsReportResult implements Serializable {
private Long resultId;
private Long reportId;
private String constiCode;
private String constiName;
private String constiLevel;
private BigDecimal constiScore;
private Integer mainFlag;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private static final long serialVersionUID = 1L;
public Long getResultId() {
return resultId;
}
public void setResultId(Long resultId) {
this.resultId = resultId;
}
public Long getReportId() {
return reportId;
}
public void setReportId(Long reportId) {
this.reportId = reportId;
}
public String getConstiCode() {
return constiCode;
}
public void setConstiCode(String constiCode) {
this.constiCode = constiCode == null ? null : constiCode.trim();
}
public String getConstiName() {
return constiName;
}
public void setConstiName(String constiName) {
this.constiName = constiName == null ? null : constiName.trim();
}
public String getConstiLevel() {
return constiLevel;
}
public void setConstiLevel(String constiLevel) {
this.constiLevel = constiLevel == null ? null : constiLevel.trim();
}
public BigDecimal getConstiScore() {
return constiScore;
}
public void setConstiScore(BigDecimal constiScore) {
this.constiScore = constiScore;
}
public Integer getMainFlag() {
return mainFlag;
}
public void setMainFlag(Integer mainFlag) {
this.mainFlag = mainFlag;
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", resultId=").append(resultId);
sb.append(", reportId=").append(reportId);
sb.append(", constiCode=").append(constiCode);
sb.append(", constiName=").append(constiName);
sb.append(", constiLevel=").append(constiLevel);
sb.append(", constiScore=").append(constiScore);
sb.append(", mainFlag=").append(mainFlag);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}

912
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportResultExample.java

@ -0,0 +1,912 @@
package com.acupuncture.system.domain.po;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzRmsReportResultExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzRmsReportResultExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andResultIdIsNull() {
addCriterion("result_id is null");
return (Criteria) this;
}
public Criteria andResultIdIsNotNull() {
addCriterion("result_id is not null");
return (Criteria) this;
}
public Criteria andResultIdEqualTo(Long value) {
addCriterion("result_id =", value, "resultId");
return (Criteria) this;
}
public Criteria andResultIdNotEqualTo(Long value) {
addCriterion("result_id <>", value, "resultId");
return (Criteria) this;
}
public Criteria andResultIdGreaterThan(Long value) {
addCriterion("result_id >", value, "resultId");
return (Criteria) this;
}
public Criteria andResultIdGreaterThanOrEqualTo(Long value) {
addCriterion("result_id >=", value, "resultId");
return (Criteria) this;
}
public Criteria andResultIdLessThan(Long value) {
addCriterion("result_id <", value, "resultId");
return (Criteria) this;
}
public Criteria andResultIdLessThanOrEqualTo(Long value) {
addCriterion("result_id <=", value, "resultId");
return (Criteria) this;
}
public Criteria andResultIdIn(List<Long> values) {
addCriterion("result_id in", values, "resultId");
return (Criteria) this;
}
public Criteria andResultIdNotIn(List<Long> values) {
addCriterion("result_id not in", values, "resultId");
return (Criteria) this;
}
public Criteria andResultIdBetween(Long value1, Long value2) {
addCriterion("result_id between", value1, value2, "resultId");
return (Criteria) this;
}
public Criteria andResultIdNotBetween(Long value1, Long value2) {
addCriterion("result_id not between", value1, value2, "resultId");
return (Criteria) this;
}
public Criteria andReportIdIsNull() {
addCriterion("report_id is null");
return (Criteria) this;
}
public Criteria andReportIdIsNotNull() {
addCriterion("report_id is not null");
return (Criteria) this;
}
public Criteria andReportIdEqualTo(Long value) {
addCriterion("report_id =", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotEqualTo(Long value) {
addCriterion("report_id <>", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdGreaterThan(Long value) {
addCriterion("report_id >", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdGreaterThanOrEqualTo(Long value) {
addCriterion("report_id >=", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdLessThan(Long value) {
addCriterion("report_id <", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdLessThanOrEqualTo(Long value) {
addCriterion("report_id <=", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdIn(List<Long> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<Long> values) {
addCriterion("report_id not in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdBetween(Long value1, Long value2) {
addCriterion("report_id between", value1, value2, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotBetween(Long value1, Long value2) {
addCriterion("report_id not between", value1, value2, "reportId");
return (Criteria) this;
}
public Criteria andConstiCodeIsNull() {
addCriterion("consti_code is null");
return (Criteria) this;
}
public Criteria andConstiCodeIsNotNull() {
addCriterion("consti_code is not null");
return (Criteria) this;
}
public Criteria andConstiCodeEqualTo(String value) {
addCriterion("consti_code =", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotEqualTo(String value) {
addCriterion("consti_code <>", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThan(String value) {
addCriterion("consti_code >", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThanOrEqualTo(String value) {
addCriterion("consti_code >=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThan(String value) {
addCriterion("consti_code <", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThanOrEqualTo(String value) {
addCriterion("consti_code <=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLike(String value) {
addCriterion("consti_code like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotLike(String value) {
addCriterion("consti_code not like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeIn(List<String> values) {
addCriterion("consti_code in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotIn(List<String> values) {
addCriterion("consti_code not in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeBetween(String value1, String value2) {
addCriterion("consti_code between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotBetween(String value1, String value2) {
addCriterion("consti_code not between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiNameIsNull() {
addCriterion("consti_name is null");
return (Criteria) this;
}
public Criteria andConstiNameIsNotNull() {
addCriterion("consti_name is not null");
return (Criteria) this;
}
public Criteria andConstiNameEqualTo(String value) {
addCriterion("consti_name =", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotEqualTo(String value) {
addCriterion("consti_name <>", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameGreaterThan(String value) {
addCriterion("consti_name >", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameGreaterThanOrEqualTo(String value) {
addCriterion("consti_name >=", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLessThan(String value) {
addCriterion("consti_name <", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLessThanOrEqualTo(String value) {
addCriterion("consti_name <=", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLike(String value) {
addCriterion("consti_name like", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotLike(String value) {
addCriterion("consti_name not like", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameIn(List<String> values) {
addCriterion("consti_name in", values, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotIn(List<String> values) {
addCriterion("consti_name not in", values, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameBetween(String value1, String value2) {
addCriterion("consti_name between", value1, value2, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotBetween(String value1, String value2) {
addCriterion("consti_name not between", value1, value2, "constiName");
return (Criteria) this;
}
public Criteria andConstiLevelIsNull() {
addCriterion("consti_level is null");
return (Criteria) this;
}
public Criteria andConstiLevelIsNotNull() {
addCriterion("consti_level is not null");
return (Criteria) this;
}
public Criteria andConstiLevelEqualTo(String value) {
addCriterion("consti_level =", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelNotEqualTo(String value) {
addCriterion("consti_level <>", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelGreaterThan(String value) {
addCriterion("consti_level >", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelGreaterThanOrEqualTo(String value) {
addCriterion("consti_level >=", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelLessThan(String value) {
addCriterion("consti_level <", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelLessThanOrEqualTo(String value) {
addCriterion("consti_level <=", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelLike(String value) {
addCriterion("consti_level like", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelNotLike(String value) {
addCriterion("consti_level not like", value, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelIn(List<String> values) {
addCriterion("consti_level in", values, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelNotIn(List<String> values) {
addCriterion("consti_level not in", values, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelBetween(String value1, String value2) {
addCriterion("consti_level between", value1, value2, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiLevelNotBetween(String value1, String value2) {
addCriterion("consti_level not between", value1, value2, "constiLevel");
return (Criteria) this;
}
public Criteria andConstiScoreIsNull() {
addCriterion("consti_score is null");
return (Criteria) this;
}
public Criteria andConstiScoreIsNotNull() {
addCriterion("consti_score is not null");
return (Criteria) this;
}
public Criteria andConstiScoreEqualTo(BigDecimal value) {
addCriterion("consti_score =", value, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreNotEqualTo(BigDecimal value) {
addCriterion("consti_score <>", value, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreGreaterThan(BigDecimal value) {
addCriterion("consti_score >", value, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreGreaterThanOrEqualTo(BigDecimal value) {
addCriterion("consti_score >=", value, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreLessThan(BigDecimal value) {
addCriterion("consti_score <", value, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreLessThanOrEqualTo(BigDecimal value) {
addCriterion("consti_score <=", value, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreIn(List<BigDecimal> values) {
addCriterion("consti_score in", values, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreNotIn(List<BigDecimal> values) {
addCriterion("consti_score not in", values, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("consti_score between", value1, value2, "constiScore");
return (Criteria) this;
}
public Criteria andConstiScoreNotBetween(BigDecimal value1, BigDecimal value2) {
addCriterion("consti_score not between", value1, value2, "constiScore");
return (Criteria) this;
}
public Criteria andMainFlagIsNull() {
addCriterion("main_flag is null");
return (Criteria) this;
}
public Criteria andMainFlagIsNotNull() {
addCriterion("main_flag is not null");
return (Criteria) this;
}
public Criteria andMainFlagEqualTo(Integer value) {
addCriterion("main_flag =", value, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagNotEqualTo(Integer value) {
addCriterion("main_flag <>", value, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagGreaterThan(Integer value) {
addCriterion("main_flag >", value, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagGreaterThanOrEqualTo(Integer value) {
addCriterion("main_flag >=", value, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagLessThan(Integer value) {
addCriterion("main_flag <", value, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagLessThanOrEqualTo(Integer value) {
addCriterion("main_flag <=", value, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagIn(List<Integer> values) {
addCriterion("main_flag in", values, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagNotIn(List<Integer> values) {
addCriterion("main_flag not in", values, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagBetween(Integer value1, Integer value2) {
addCriterion("main_flag between", value1, value2, "mainFlag");
return (Criteria) this;
}
public Criteria andMainFlagNotBetween(Integer value1, Integer value2) {
addCriterion("main_flag not between", value1, value2, "mainFlag");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

117
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjy.java

@ -0,0 +1,117 @@
package com.acupuncture.system.domain.po;
import java.io.Serializable;
import java.util.Date;
public class ZytzRmsReportYsjy implements Serializable {
private Long ysjyId;
private Long reportId;
private String constiCode;
private String constiName;
private String createBy;
private Date createTime;
private String updateBy;
private Date updateTime;
private String constiYsjy;
private static final long serialVersionUID = 1L;
public Long getYsjyId() {
return ysjyId;
}
public void setYsjyId(Long ysjyId) {
this.ysjyId = ysjyId;
}
public Long getReportId() {
return reportId;
}
public void setReportId(Long reportId) {
this.reportId = reportId;
}
public String getConstiCode() {
return constiCode;
}
public void setConstiCode(String constiCode) {
this.constiCode = constiCode == null ? null : constiCode.trim();
}
public String getConstiName() {
return constiName;
}
public void setConstiName(String constiName) {
this.constiName = constiName == null ? null : constiName.trim();
}
public String getCreateBy() {
return createBy;
}
public void setCreateBy(String createBy) {
this.createBy = createBy == null ? null : createBy.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public String getUpdateBy() {
return updateBy;
}
public void setUpdateBy(String updateBy) {
this.updateBy = updateBy == null ? null : updateBy.trim();
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public String getConstiYsjy() {
return constiYsjy;
}
public void setConstiYsjy(String constiYsjy) {
this.constiYsjy = constiYsjy == null ? null : constiYsjy.trim();
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", ysjyId=").append(ysjyId);
sb.append(", reportId=").append(reportId);
sb.append(", constiCode=").append(constiCode);
sb.append(", constiName=").append(constiName);
sb.append(", createBy=").append(createBy);
sb.append(", createTime=").append(createTime);
sb.append(", updateBy=").append(updateBy);
sb.append(", updateTime=").append(updateTime);
sb.append(", constiYsjy=").append(constiYsjy);
sb.append("]");
return sb.toString();
}
}

721
acupuncture-system/src/main/java/com/acupuncture/system/domain/po/ZytzRmsReportYsjyExample.java

@ -0,0 +1,721 @@
package com.acupuncture.system.domain.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class ZytzRmsReportYsjyExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public ZytzRmsReportYsjyExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andYsjyIdIsNull() {
addCriterion("ysjy_id is null");
return (Criteria) this;
}
public Criteria andYsjyIdIsNotNull() {
addCriterion("ysjy_id is not null");
return (Criteria) this;
}
public Criteria andYsjyIdEqualTo(Long value) {
addCriterion("ysjy_id =", value, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdNotEqualTo(Long value) {
addCriterion("ysjy_id <>", value, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdGreaterThan(Long value) {
addCriterion("ysjy_id >", value, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdGreaterThanOrEqualTo(Long value) {
addCriterion("ysjy_id >=", value, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdLessThan(Long value) {
addCriterion("ysjy_id <", value, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdLessThanOrEqualTo(Long value) {
addCriterion("ysjy_id <=", value, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdIn(List<Long> values) {
addCriterion("ysjy_id in", values, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdNotIn(List<Long> values) {
addCriterion("ysjy_id not in", values, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdBetween(Long value1, Long value2) {
addCriterion("ysjy_id between", value1, value2, "ysjyId");
return (Criteria) this;
}
public Criteria andYsjyIdNotBetween(Long value1, Long value2) {
addCriterion("ysjy_id not between", value1, value2, "ysjyId");
return (Criteria) this;
}
public Criteria andReportIdIsNull() {
addCriterion("report_id is null");
return (Criteria) this;
}
public Criteria andReportIdIsNotNull() {
addCriterion("report_id is not null");
return (Criteria) this;
}
public Criteria andReportIdEqualTo(Long value) {
addCriterion("report_id =", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotEqualTo(Long value) {
addCriterion("report_id <>", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdGreaterThan(Long value) {
addCriterion("report_id >", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdGreaterThanOrEqualTo(Long value) {
addCriterion("report_id >=", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdLessThan(Long value) {
addCriterion("report_id <", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdLessThanOrEqualTo(Long value) {
addCriterion("report_id <=", value, "reportId");
return (Criteria) this;
}
public Criteria andReportIdIn(List<Long> values) {
addCriterion("report_id in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotIn(List<Long> values) {
addCriterion("report_id not in", values, "reportId");
return (Criteria) this;
}
public Criteria andReportIdBetween(Long value1, Long value2) {
addCriterion("report_id between", value1, value2, "reportId");
return (Criteria) this;
}
public Criteria andReportIdNotBetween(Long value1, Long value2) {
addCriterion("report_id not between", value1, value2, "reportId");
return (Criteria) this;
}
public Criteria andConstiCodeIsNull() {
addCriterion("consti_code is null");
return (Criteria) this;
}
public Criteria andConstiCodeIsNotNull() {
addCriterion("consti_code is not null");
return (Criteria) this;
}
public Criteria andConstiCodeEqualTo(String value) {
addCriterion("consti_code =", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotEqualTo(String value) {
addCriterion("consti_code <>", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThan(String value) {
addCriterion("consti_code >", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeGreaterThanOrEqualTo(String value) {
addCriterion("consti_code >=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThan(String value) {
addCriterion("consti_code <", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLessThanOrEqualTo(String value) {
addCriterion("consti_code <=", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeLike(String value) {
addCriterion("consti_code like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotLike(String value) {
addCriterion("consti_code not like", value, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeIn(List<String> values) {
addCriterion("consti_code in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotIn(List<String> values) {
addCriterion("consti_code not in", values, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeBetween(String value1, String value2) {
addCriterion("consti_code between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiCodeNotBetween(String value1, String value2) {
addCriterion("consti_code not between", value1, value2, "constiCode");
return (Criteria) this;
}
public Criteria andConstiNameIsNull() {
addCriterion("consti_name is null");
return (Criteria) this;
}
public Criteria andConstiNameIsNotNull() {
addCriterion("consti_name is not null");
return (Criteria) this;
}
public Criteria andConstiNameEqualTo(String value) {
addCriterion("consti_name =", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotEqualTo(String value) {
addCriterion("consti_name <>", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameGreaterThan(String value) {
addCriterion("consti_name >", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameGreaterThanOrEqualTo(String value) {
addCriterion("consti_name >=", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLessThan(String value) {
addCriterion("consti_name <", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLessThanOrEqualTo(String value) {
addCriterion("consti_name <=", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameLike(String value) {
addCriterion("consti_name like", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotLike(String value) {
addCriterion("consti_name not like", value, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameIn(List<String> values) {
addCriterion("consti_name in", values, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotIn(List<String> values) {
addCriterion("consti_name not in", values, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameBetween(String value1, String value2) {
addCriterion("consti_name between", value1, value2, "constiName");
return (Criteria) this;
}
public Criteria andConstiNameNotBetween(String value1, String value2) {
addCriterion("consti_name not between", value1, value2, "constiName");
return (Criteria) this;
}
public Criteria andCreateByIsNull() {
addCriterion("create_by is null");
return (Criteria) this;
}
public Criteria andCreateByIsNotNull() {
addCriterion("create_by is not null");
return (Criteria) this;
}
public Criteria andCreateByEqualTo(String value) {
addCriterion("create_by =", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotEqualTo(String value) {
addCriterion("create_by <>", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThan(String value) {
addCriterion("create_by >", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByGreaterThanOrEqualTo(String value) {
addCriterion("create_by >=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThan(String value) {
addCriterion("create_by <", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLessThanOrEqualTo(String value) {
addCriterion("create_by <=", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByLike(String value) {
addCriterion("create_by like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotLike(String value) {
addCriterion("create_by not like", value, "createBy");
return (Criteria) this;
}
public Criteria andCreateByIn(List<String> values) {
addCriterion("create_by in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotIn(List<String> values) {
addCriterion("create_by not in", values, "createBy");
return (Criteria) this;
}
public Criteria andCreateByBetween(String value1, String value2) {
addCriterion("create_by between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateByNotBetween(String value1, String value2) {
addCriterion("create_by not between", value1, value2, "createBy");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateByIsNull() {
addCriterion("update_by is null");
return (Criteria) this;
}
public Criteria andUpdateByIsNotNull() {
addCriterion("update_by is not null");
return (Criteria) this;
}
public Criteria andUpdateByEqualTo(String value) {
addCriterion("update_by =", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotEqualTo(String value) {
addCriterion("update_by <>", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThan(String value) {
addCriterion("update_by >", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByGreaterThanOrEqualTo(String value) {
addCriterion("update_by >=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThan(String value) {
addCriterion("update_by <", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLessThanOrEqualTo(String value) {
addCriterion("update_by <=", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByLike(String value) {
addCriterion("update_by like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotLike(String value) {
addCriterion("update_by not like", value, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByIn(List<String> values) {
addCriterion("update_by in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotIn(List<String> values) {
addCriterion("update_by not in", values, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByBetween(String value1, String value2) {
addCriterion("update_by between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateByNotBetween(String value1, String value2) {
addCriterion("update_by not between", value1, value2, "updateBy");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public 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);
}
}
}

8
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/AdminStatisticsVo.java

@ -352,6 +352,14 @@ public class AdminStatisticsVo {
} }
} }
@Data
@ApiModel("")
public static class ZlfyResultVo {
private Long id;
private String answer;
}
@Data @Data
@ApiModel("随访分布") @ApiModel("随访分布")
public static class SffbVo { public static class SffbVo {

2
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/AdminTenantUserVo.java

@ -38,6 +38,8 @@ public class AdminTenantUserVo {
private Date createTime; private Date createTime;
private String tenantName; private String tenantName;
private Byte slaverAdmin;
} }
} }

5
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/DmsLoginUserVo.java

@ -22,8 +22,10 @@ public class DmsLoginUserVo {
} }
@Data @Data
public static class DmsUserVo { public static class DmsUserVo {
private Integer id; private Long id;
private Long tenantId; private Long tenantId;
private String tenantName;
private String tenantPhone;
private String userName; private String userName;
private String password; private String password;
@ -33,6 +35,7 @@ public class DmsLoginUserVo {
private String email; private String email;
private String phonenumber; private String phonenumber;
private Byte slaverAdmin;
private String sex; private String sex;

18
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ExternalVo.java

@ -13,15 +13,15 @@ public class ExternalVo {
@Data @Data
public static class Result{ public static class Result{
private String message; private String message = "bcaUser";
private String gid; private String gid;
private String memberid; private String memberid;
private String testId; // private String testId;
private String testDate; // private String testDate;
private String name; private String name;
@ -31,8 +31,18 @@ public class ExternalVo {
private String birthYear; private String birthYear;
private String weight; // private String weight;
private String phone; private String phone;
public String getSex() {
if ("0".equals(sex)) {
return "1";
}
if ("1".equals(sex)) {
return "2";
}
return sex;
}
} }
@Data @Data

7
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/FmsFollowupVo.java

@ -123,6 +123,7 @@ public class FmsFollowupVo {
private Date updateTime; private Date updateTime;
private String remark; private String remark;
private String queueName; private String queueName;
private Long queueId;
private String tenantName; private String tenantName;
@ApiModelProperty("随访窗口期") @ApiModelProperty("随访窗口期")
private Integer followWindowAdys; private Integer followWindowAdys;
@ -132,6 +133,9 @@ public class FmsFollowupVo {
public Integer getStatus() { public Integer getStatus() {
if (status == null) {
return 0;
}
if (status == 2){ if (status == 2){
return status; return status;
} }
@ -143,6 +147,9 @@ public class FmsFollowupVo {
return 4; return 4;
} }
if (startTime != null) { if (startTime != null) {
if (remindTime == null) {
return status;
}
//判断是否临近随访时间 开始时间 + 临近提醒时间 < 当前时间 //判断是否临近随访时间 开始时间 + 临近提醒时间 < 当前时间
Calendar instance = Calendar.getInstance(); Calendar instance = Calendar.getInstance();
instance.setTime(startTime); instance.setTime(startTime);

5
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/PmsPatientVo.java

@ -42,6 +42,8 @@ public class PmsPatientVo {
@ApiModelProperty("现病史,存储格式:[\"高血压\",\"脑血管病\"]") @ApiModelProperty("现病史,存储格式:[\"高血压\",\"脑血管病\"]")
private String currentIllnessHistory; private String currentIllnessHistory;
private String currentIllnessHistoryQt; private String currentIllnessHistoryQt;
private String weight;
private String height;
@ApiModelProperty("建档组织(当前登录账号医院ID)") @ApiModelProperty("建档组织(当前登录账号医院ID)")
private Long tenantId; private Long tenantId;
@ApiModelProperty("创建者") @ApiModelProperty("创建者")
@ -52,6 +54,9 @@ public class PmsPatientVo {
private String remark; private String remark;
private String tenantName; private String tenantName;
@ApiModelProperty("身高体重机器ID")
private String weightMachineId;
} }
} }

1
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/PmsTreatmentVo.java

@ -56,6 +56,7 @@ public class PmsTreatmentVo {
private String tenantName; private String tenantName;
private String zyzdQt; private String zyzdQt;
private Long memberId;
@Data @Data
public static class QueueVo{ public static class QueueVo{

423
acupuncture-system/src/main/java/com/acupuncture/system/domain/vo/ZytzVo.java

@ -0,0 +1,423 @@
package com.acupuncture.system.domain.vo;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.IdcardUtil;
import cn.hutool.core.util.StrUtil;
import lombok.Data;
import java.math.BigDecimal;
import java.util.Comparator;
import java.util.Date;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
/**
* @Author zzc
* @Package com.acupuncture.system.domain.dto
* @Date 2025/2/11 15:05
* @description:
*/
public class ZytzVo {
@Data
public static class PatientQuery {
private Long patientId;
private String name;
private Integer gender;
private String birthday;
private String idcard;
private String phone;
private String height;
private String weight;
private String waistline;
private List<String> sickness;
public Integer getAge() {
Integer age = null;
try {
if (StrUtil.isNotBlank(idcard) && IdcardUtil.isValidCard(idcard)) {
age = IdcardUtil.getAgeByIdCard(idcard);
} else if (StrUtil.isNotBlank(birthday)) {
age = DateUtil.ageOfNow(DateUtil.parse(birthday));
}
} catch (Exception ignored) {
}
return age;
}
}
@Data
public static class PatientSaveOrUpdate {
private Long patientId;
private String name;
private Integer gender;
private String birthday;
private String idcard;
private String phone;
private String height;
private String weight;
private String waistline;
private List<String> sickness;
public Integer getAge() {
Integer age = null;
try {
if (StrUtil.isNotBlank(idcard) && IdcardUtil.isValidCard(idcard)) {
age = IdcardUtil.getAgeByIdCard(idcard);
} else if (StrUtil.isNotBlank(birthday)) {
age = DateUtil.ageOfNow(DateUtil.parse(birthday));
}
} catch (Exception ignored) {
}
return age;
}
}
@Data
public static class EvaSave {
private Long evaId;
private Long patientId;
private String scaleCode;
private String scaleName;
private Integer evaStatus;
}
@Data
public static class EvaQuestionList {
private Long evaId;
private Long patientId;
private String scaleCode;
private String scaleName;
private Integer evaStatus;
private List<Question> questions;
@Data
public static class Question {
private String quesCode;
private String quesName;
private String quesSort;
private List<Option> options;
@Data
public static class Option {
private String optionCode;
private String optionName;
private String optionScore;
private String optionSort;
private String optionChecked;
}
}
}
@Data
public static class ReportView {
//报告单信息
private Long reportId;
//患者信息
private Long patientId;
private String name;
private Integer gender;
private String birthday;
private String age;
private String height;
private String weight;
private String waistline;
private String idcard;
private String phone;
//测评信息
private Long evaId;
private Date evaTime;
private String evaUsername;
private String evaNickname;
private String evaScaleCode;
private String evaScaleName;
private String blh;
//分数明细
private List<Score> scores;
//养生方案
private List<Ysfa> ysfa;
//测评结论
private String result;
//主体质
private String result1;
//兼夹体质
private String result2;
@Data
public static class Score {
private String constiCode;
private String constiName;
private String constiLevel;
private String constiScore;
private Integer mainFlag;
//参考分数(是)
private String refScoreYes;
//参考分数(倾向是)
private String refScoreMaybe;
//满分
private String fullScore;
public String getConstiScore() {
if (constiScore != null && new BigDecimal(constiScore).compareTo(BigDecimal.ZERO) < 0) {
return "0.00";
}
return constiScore;
}
}
@Data
public static class Ysfa {
private String constiCode;
private String constiName;
private String ysjy;
}
public String getResult() {
if (CollectionUtil.isEmpty(scores)) {
return "";
}
StringBuilder result = new StringBuilder();
String yesStr = "", jbsStr = "", qxsStr = "";
//拼接三部分字符串(是,基本是,倾向是)
for (Score score : scores) {
if (score.getConstiLevel().equals("00")) {
yesStr = yesStr + score.getConstiName() + "、";
}
if (score.getConstiLevel().equals("10")) {
jbsStr = jbsStr + score.getConstiName() + "、";
}
if (score.getConstiLevel().equals("11")) {
qxsStr = qxsStr + score.getConstiName() + "、";
}
}
//去掉尾部,
if (StrUtil.isNotBlank(yesStr)) {
yesStr = yesStr.substring(0, yesStr.length() - 1);
}
if (StrUtil.isNotBlank(jbsStr)) {
jbsStr = jbsStr.substring(0, jbsStr.length() - 1);
}
if (StrUtil.isNotBlank(qxsStr)) {
qxsStr = qxsStr.substring(0, qxsStr.length() - 1);
}
//拼接
result.append(StrUtil.isNotBlank(yesStr) ? "【" + yesStr + "】 " : "")
.append(StrUtil.isNotBlank(jbsStr) ? "基本是【" + yesStr + "】 " : "")
.append(StrUtil.isNotBlank(qxsStr) ? "有 【" + qxsStr + "】 倾向 " : "");
return result.toString();
}
// public String getResult() {
// if (CollectionUtil.isEmpty(scores)) {
// return "";
// }
//
// //找到主体质
// Score mainSCore = null;
// for (Score score : scores) {
// if (score.getMainFlag() == 1) {
// mainSCore = score;
// }
// }
// if (mainSCore == null) {
// return "";
// }
// if (Objects.equals(mainSCore.getConstiLevel(), "00")) {
// return "【" + mainSCore.getConstiName() + "】";
// } else if (Objects.equals(mainSCore.getConstiLevel(), "10")) {
// return "基本是【" + mainSCore.getConstiName() + "】";
// } else if (Objects.equals(mainSCore.getConstiLevel(), "11")) {
// return "倾向是【" + mainSCore.getConstiName() + "】";
// } else {
// return "";
// }
// }
public String getResult1() {
if (CollectionUtil.isEmpty(scores)) {
return "";
}
scores = scores.stream().filter(e -> e.getMainFlag() != null).collect(Collectors.toList());
//找到主体质
Score mainSCore = null;
for (Score score : scores) {
if (score.getMainFlag() == 1) {
mainSCore = score;
}
}
if (mainSCore == null) {
return "";
}
if (Objects.equals(mainSCore.getConstiLevel(), "00")) {
return "【" + mainSCore.getConstiName() + "】";
} else if (Objects.equals(mainSCore.getConstiLevel(), "10")) {
return "基本是【" + mainSCore.getConstiName() + "】";
} else if (Objects.equals(mainSCore.getConstiLevel(), "11")) {
return "倾向是【" + mainSCore.getConstiName() + "】";
} else {
return "";
}
}
public String getResult2() {
if (CollectionUtil.isEmpty(scores)) {
return "";
}
scores = scores.stream().filter(e -> e.getMainFlag() != null).collect(Collectors.toList());
//找到兼夹体质并按照分数从大到小排序
List<Score> jianjiaScores = scores.stream().filter(score -> score.getMainFlag() == 2).sorted(Comparator.comparing(Score::getConstiScore).reversed())
.collect(Collectors.toList());
StringBuilder res = new StringBuilder();
for (Score score : jianjiaScores) {
if (Objects.equals(score.getConstiLevel(), "00")) {
res.append("【" + score.getConstiName() + "】");
} else if (Objects.equals(score.getConstiLevel(), "10")) {
res.append("基本是【" + score.getConstiName() + "】");
} else if (Objects.equals(score.getConstiLevel(), "11")) {
res.append("倾向是【" + score.getConstiName() + "】");
} else {
res.append("");
}
res.append("、");
}
//去掉尾部
if (StrUtil.isNotBlank(res.toString())) {
res = new StringBuilder(res.substring(0, res.length() - 1));
}
return res.toString();
}
}
@Data
public static class EvaList {
//报告单信息
private Long reportId;
//患者信息
private Long patientId;
private String name;
private Integer gender;
private String birthday;
private String age;
private String height;
private String weight;
private String waistline;
private String idcard;
private String phone;
//测评信息
private Long evaId;
private Date evaTime;
private String evaUsername;
private String evaNickname;
private String evaScaleCode;
private String evaScaleName;
private Integer evaStatus;
private String blh;
//分数明细
private List<Score> scores;
//测评结论
private String result;
@Data
public static class Score {
private String constiCode;
private String constiName;
private String constiLevel;
private String constiScore;
private Integer mainFlag;
//参考分数(是)
private String refScoreYes;
//参考分数(倾向是)
private String refScoreMaybe;
//满分
private String fullScore;
public String getConstiScore() {
if (constiScore != null && new BigDecimal(constiScore).compareTo(BigDecimal.ZERO) < 0) {
return "0.00";
}
return constiScore;
}
}
public String getResult() {
if (CollectionUtil.isEmpty(scores)) {
return "";
}
StringBuilder result = new StringBuilder();
String yesStr = "", jbsStr = "", qxsStr = "";
//拼接三部分字符串(是,基本是,倾向是)
for (Score score : scores) {
if (score.getConstiLevel().equals("00")) {
yesStr = yesStr + score.getConstiName() + "、";
}
if (score.getConstiLevel().equals("10")) {
jbsStr = jbsStr + score.getConstiName() + "、";
}
if (score.getConstiLevel().equals("11")) {
qxsStr = qxsStr + score.getConstiName() + "、";
}
}
//去掉尾部,
if (StrUtil.isNotBlank(yesStr)) {
yesStr = yesStr.substring(0, yesStr.length() - 1);
}
if (StrUtil.isNotBlank(jbsStr)) {
jbsStr = jbsStr.substring(0, jbsStr.length() - 1);
}
if (StrUtil.isNotBlank(qxsStr)) {
qxsStr = qxsStr.substring(0, qxsStr.length() - 1);
}
//拼接
result.append(StrUtil.isNotBlank(yesStr) ? "【" + yesStr + "】 " : "")
.append(StrUtil.isNotBlank(jbsStr) ? "基本是【" + yesStr + "】 " : "")
.append(StrUtil.isNotBlank(qxsStr) ? "有 【" + qxsStr + "】 倾向 " : "");
return result.toString();
}
}
@Data
public static class EvaResult {
//测评id
private Long evaId;
//量表代码
private String scaleCode;
//量表名称
private String scaleName;
//体质代码
private String constiCode;
//体质名称
private String constiName;
//原始分
private BigDecimal score;
//转化分
private BigDecimal zhScore;
//题目数量
private Integer quesNum;
//体质level
private String constiLevel;
//是否主体质
private Integer mainFlag;
public BigDecimal getScore() {
return score == null ? BigDecimal.ZERO : score;
}
}
}

1
acupuncture-system/src/main/java/com/acupuncture/system/mapper/SysRoleMapper.java

@ -27,7 +27,6 @@ public interface SysRoleMapper
* @param userId 用户ID * @param userId 用户ID
* @return 角色列表 * @return 角色列表
*/ */
// @DataSource(DataSourceType.MASTER)
public List<SysRole> selectRolePermissionByUserId(Long userId); public List<SysRole> selectRolePermissionByUserId(Long userId);
/** /**

1
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/AdminDataSourceDao.java

@ -23,7 +23,6 @@ public interface AdminDataSourceDao {
* @param dto * @param dto
* @return * @return
*/ */
@DataSource(value = DataSourceType.MASTER)
List<AdminDataSourceVo.Result> query(@Param("query") AdminDataSourceDto.Query dto, List<AdminDataSourceVo.Result> query(@Param("query") AdminDataSourceDto.Query dto,
@Param("userId") Long userId, @Param("userId") Long userId,
@Param("tenantId")Long tenantId); @Param("tenantId")Long tenantId);

21
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/AdminTongjiDao.java

@ -25,7 +25,6 @@ public interface AdminTongjiDao {
* @param tenantId * @param tenantId
* @return * @return
*/ */
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.PatientVo.GenderVo queryGenderStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.PatientVo.GenderVo queryGenderStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@ -36,53 +35,37 @@ public interface AdminTongjiDao {
* @param tenantId * @param tenantId
* @return * @return
*/ */
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.PatientVo.AgeVo queryAgeStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.PatientVo.AgeVo queryAgeStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.PatientVo.JwbzVo queryJwbzStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.PatientVo.JwbzVo queryJwbzStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
List<String> queryZyzdStatistics(@Param("dto") StatisticsDto.Query dto, List<String> queryZyzdStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
Integer queryTotalPatient(@Param("dto") StatisticsDto.Query dto, Integer queryTotalPatient(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.TreamentVo.TxfbVo queryTxfbStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.TreamentVo.TxfbVo queryTxfbStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.TreamentVo.ZytzVo queryZytzStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.TreamentVo.ZytzVo queryZytzStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.ZlTypeVo.Zllxtj queryZllxtjStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.ZlTypeVo.Zllxtj queryZllxtjStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.ZlTypeVo.BzfffbVo.Fpz queryFpzStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.ZlTypeVo.BzfffbVo.Fpz queryFpzStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.ZlTypeVo.ZlxgVo queryZlxgStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.ZlTypeVo.ZlxgVo queryZlxgStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER) List<AdminStatisticsVo.ZlfyResultVo> queryZlfyStatistics(@Param("dto") StatisticsDto.Query dto,
AdminStatisticsVo.ZlTypeVo.ZlfyVo queryZlfyStatistics(@Param("dto") StatisticsDto.Query dto, @Param("tenantId") Long tenantId);
@Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
List<AdminStatisticsVo.SftjVo> querySftjStatistics(@Param("dto") StatisticsDto.Query dto, List<AdminStatisticsVo.SftjVo> querySftjStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
List<AdminStatisticsVo.SffbVo.DlVo> querySfStatistics(@Param("dto") StatisticsDto.Query dto, List<AdminStatisticsVo.SffbVo.DlVo> querySfStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.TreamentVo.TtfbVo queryTtfbStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.TreamentVo.TtfbVo queryTtfbStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.TreamentVo.SmfbVo querySmfbStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.TreamentVo.SmfbVo querySmfbStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.TreamentVo.JlfbVo queryJlfbStatistics(@Param("dto") StatisticsDto.Query dto, AdminStatisticsVo.TreamentVo.JlfbVo queryJlfbStatistics(@Param("dto") StatisticsDto.Query dto,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
AdminStatisticsVo.ZlTypeVo.BzfffbVo.Smz querySmzStatistics(@Param("dto") StatisticsDto.Query dto, @Param("tenantId") Long tenantId); AdminStatisticsVo.ZlTypeVo.BzfffbVo.Smz querySmzStatistics(@Param("dto") StatisticsDto.Query dto, @Param("tenantId") Long tenantId);
List<String> queryTxStatistics(@Param("dto") StatisticsDto.Query dto, List<String> queryTxStatistics(@Param("dto") StatisticsDto.Query dto,

8
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/DmsUserDao.java

@ -16,7 +16,6 @@ import org.apache.ibatis.annotations.Param;
*/ */
public interface DmsUserDao { public interface DmsUserDao {
@DataSource(DataSourceType.MASTER)
DmsTenant queryById(@Param("id") Long id); DmsTenant queryById(@Param("id") Long id);
/** /**
@ -45,4 +44,11 @@ public interface DmsUserDao {
DmsLoginUserVo.DmsUserVo checkUserNameUnique(String userName); DmsLoginUserVo.DmsUserVo checkUserNameUnique(String userName);
DmsLoginUserVo.DmsUserVo checkPhoneUnique(String phonenumber); DmsLoginUserVo.DmsUserVo checkPhoneUnique(String phonenumber);
/**
* 根据租户用户id查询租户用户信息
* @param userId
* @return
*/
DmsLoginUserVo.DmsUserVo queryTenantUserById(Long userId);
} }

2
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ExternalDao.java

@ -16,4 +16,6 @@ import java.util.List;
public interface ExternalDao { public interface ExternalDao {
List<ExternalVo.Result> select(@Param("query") ExternalDto.Query query); List<ExternalVo.Result> select(@Param("query") ExternalDto.Query query);
List<ExternalVo.Result> selectByMemberId(@Param("query") ExternalDto.Query query);
} }

16
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/FmsFollowupDao.java

@ -22,10 +22,8 @@ public interface FmsFollowupDao {
* @param name * @param name
* @return * @return
*/ */
@DataSource(DataSourceType.MASTER)
List<FmsFollowupVo.FollowupQueueVO> queryCommonQueue(@Param("name") String name); List<FmsFollowupVo.FollowupQueueVO> queryCommonQueue(@Param("name") String name);
@DataSource(DataSourceType.MASTER)
List<FmsFollowupVo.FollowupQueueVO> queryAll(@Param("name") String name, List<FmsFollowupVo.FollowupQueueVO> queryAll(@Param("name") String name,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@ -40,21 +38,18 @@ public interface FmsFollowupDao {
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
List<FmsFollowupVo.FollowupPatient> queryPatient(@Param("id") Long id, List<FmsFollowupVo.FollowupPatient> queryPatient(@Param("id") Long id,
@Param("taskFlag") Byte taskFlag,
@Param("haveQueue")Integer haveQueue,
@Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
List<FmsFollowupVo.FollowupPatient> queryTaskPatient(@Param("id") Long id,
@Param("taskFlag") Byte taskFlag, @Param("taskFlag") Byte taskFlag,
@Param("haveQueue")Integer haveQueue, @Param("haveQueue")Integer haveQueue,
@Param("tenantId") Long tenantId, @Param("tenantId") Long tenantId,
@Param("dataScore") String dataScore); @Param("phone") String phone,
@Param("name") String name);
List<FmsFollowupVo.FollowupPatient> adminQueryPatient(@Param("id") Long id, List<FmsFollowupVo.FollowupPatient> adminQueryPatient(@Param("id") Long id,
@Param("taskFlag") Byte taskFlag, @Param("taskFlag") Byte taskFlag,
@Param("haveQueue")Integer haveQueue, @Param("haveQueue")Integer haveQueue,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId,
@Param("phone") String phone,
@Param("name") String name);
/** /**
* 查询随访任务 * 查询随访任务
@ -83,6 +78,5 @@ public interface FmsFollowupDao {
List<PmsTreatmentVo.TreatmentVO.QueueVo> queryQueueListByPatientId(@Param("patientId") Long patientId); List<PmsTreatmentVo.TreatmentVO.QueueVo> queryQueueListByPatientId(@Param("patientId") Long patientId);
@DataSource(DataSourceType.MASTER)
List<PmsTreatmentVo.TreatmentVO.QueueVo> adminQueryQueueListByPatientId(@Param("patientId") Long patientId); List<PmsTreatmentVo.TreatmentVO.QueueVo> adminQueryQueueListByPatientId(@Param("patientId") Long patientId);
} }

1
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/PmsPatientDao.java

@ -20,7 +20,6 @@ public interface PmsPatientDao {
List<PmsPatientVo.PatientResult> query(@Param("query") PmsPatientDto.PatientQuery query); List<PmsPatientVo.PatientResult> query(@Param("query") PmsPatientDto.PatientQuery query);
@DataSource(DataSourceType.MASTER)
List<PmsPatientVo.PatientResult> adminQuery(@Param("query") PmsPatientDto.PatientQuery query); List<PmsPatientVo.PatientResult> adminQuery(@Param("query") PmsPatientDto.PatientQuery query);
void batchInsert(@Param("pmsPatientList") List<PmsPatient> pmsPatientList); void batchInsert(@Param("pmsPatientList") List<PmsPatient> pmsPatientList);
} }

5
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/PmsTreatmentDao.java

@ -25,14 +25,9 @@ public interface PmsTreatmentDao {
List<PmsTreatmentVo.TreatmentRecord> selectRecord(@Param("treatmentId") Long treatmentId, List<PmsTreatmentVo.TreatmentRecord> selectRecord(@Param("treatmentId") Long treatmentId,
@Param("codeList") List<String> codeList); @Param("codeList") List<String> codeList);
@DataSource(DataSourceType.MASTER)
List<PmsTreatmentVo.TreatmentRecord> adminSelectRecord(@Param("treatmentId") Long treatmentId, List<PmsTreatmentVo.TreatmentRecord> adminSelectRecord(@Param("treatmentId") Long treatmentId,
@Param("codeList") List<String> codeList); @Param("codeList") List<String> codeList);
// void batchInsert(@Param("pmsPatientList") List<PmsPatient> pmsPatientList);
@DataSource(DataSourceType.MASTER)
List<PmsTreatmentVo.TreatmentVO> adminQuery(@Param("query") PmsTreatmentDto.TreatmentQueryDTO query); List<PmsTreatmentVo.TreatmentVO> adminQuery(@Param("query") PmsTreatmentDto.TreatmentQueryDTO query);
@DataSource(DataSourceType.MASTER)
PmsTreatmentVo.TreatmentRecordVO adminQueryTreatment(@Param("id") Long id); PmsTreatmentVo.TreatmentRecordVO adminQueryTreatment(@Param("id") Long id);
} }

1
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ScreeningDetailDao.java

@ -42,7 +42,6 @@ public interface ScreeningDetailDao extends ScrScreeningDetailMapper {
@Param("type") Byte type, @Param("type") Byte type,
@Param("param") ScreeningDto.Query param); @Param("param") ScreeningDto.Query param);
@DataSource(DataSourceType.MASTER)
List<ScrScreenVo.Result> adminQueryResult(@Param("detailId") Long detailId, List<ScrScreenVo.Result> adminQueryResult(@Param("detailId") Long detailId,
@Param("type") Byte type, @Param("type") Byte type,
@Param("param") ScreeningDto.Query param); @Param("param") ScreeningDto.Query param);

3
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/UmsDataSourceDao.java

@ -14,8 +14,9 @@ import java.util.List;
* @description: * @description:
*/ */
public interface UmsDataSourceDao { public interface UmsDataSourceDao {
@DataSource(DataSourceType.MASTER) @DataSource(DataSourceType.MASTER)
List<UmsDataSourceVo.Result> query(@Param("tenantId") Long tenantId); List<UmsDataSourceVo.Result> query(@Param("tenantId") Long tenantId);
List<UmsDataSourceVo.Result> query1(@Param("tenantId") Long tenantId);
} }

2
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/WxQrCodeDao.java

@ -9,7 +9,6 @@ import java.util.List;
public interface WxQrCodeDao { public interface WxQrCodeDao {
@DataSource(DataSourceType.MASTER)
AmsWxQrCodeVo.Result queryById(@Param("id")Long id); AmsWxQrCodeVo.Result queryById(@Param("id")Long id);
/** /**
@ -28,7 +27,6 @@ public interface WxQrCodeDao {
@Param("userId") Long userId, @Param("userId") Long userId,
@Param("tenantId") Long tenantId); @Param("tenantId") Long tenantId);
@DataSource(DataSourceType.MASTER)
List<AmsWxQrCodeVo.ScreenResult> adminSelectScreenList(@Param("hospitalIdList") List<Long> hospitalIdList); List<AmsWxQrCodeVo.ScreenResult> adminSelectScreenList(@Param("hospitalIdList") List<Long> hospitalIdList);

133
acupuncture-system/src/main/java/com/acupuncture/system/persist/dao/ZytzDao.java

@ -0,0 +1,133 @@
package com.acupuncture.system.persist.dao;
import com.acupuncture.system.domain.dto.AdminDataSourceDto;
import com.acupuncture.system.domain.po.ZytzEmsEvaAnswer;
import com.acupuncture.system.domain.po.ZytzRmsReportResult;
import com.acupuncture.system.domain.vo.AdminDataSourceVo;
import com.acupuncture.system.domain.vo.ZytzVo;
import org.apache.ibatis.annotations.Param;
import java.util.Date;
import java.util.List;
/**
* @Author zzc
* @Package com.acupuncture.system.persist.dao
* @Date 2025/2/10 9:48
* @description:
*/
public interface ZytzDao {
/**
* 查找患者列表
*
* @param patientId
* @return
* @Param deptId
* @Param keywords
*/
// List<ZytzVo.PatientQuery> patientQuery(@Param("deptId") Long deptId,
// @Param("keywords") String keywords,
// @Param("patientId") Long patientId);
/**
* 根据patientId查询sickness
*
* @param patientId
* @return
*/
//List<String> querySicknessByPatientId(@Param("patientId") Long patientId);
/**
* 批量插入sickness
*
* @param pmsPatientSicknessList
*/
//void batchInsertSickness(@Param("list") List<PmsPatientSickness> pmsPatientSicknessList);
/**
* 查询问题选项及答案
*
* @param evaId
* @return
*/
ZytzVo.EvaQuestionList evaQuestionList(@Param("evaId") Long evaId);
/**
* 批量插入answer
*
* @param answerList
* @return
*/
void batchInsertAnswer(@Param("list") List<ZytzEmsEvaAnswer> answerList);
/**
* 批量插入reportResult
*
* @param reportResultList
*/
void batchInsertReportResult(@Param("list") List<ZytzRmsReportResult> reportResultList);
/**
* 查询测评分数
*
* @param evaId
* @return
*/
List<ZytzVo.EvaResult> countReportResult(@Param("evaId") Long evaId);
/**
* 查询养生建议
*
* @param constiCode
* @param deptId
* @return
*/
// String queryYsjy(@Param("constiCode") String constiCode, @Param("deptId") Long deptId);
/**
* 查询报告单
*
* @param evaId
* @return
*/
ZytzVo.ReportView reportView(@Param("evaId") Long evaId);
/**
* 查询测评列表
*
* @param deptId
* @param keywords
* @param scaleCode
* @param evaStatus
* @param gender
* @param ageMin
* @param ageMax
* @param evaDateMin
* @param evaDateMax
* @return
*/
// List<ZytzVo.EvaList> queryEvaList(@Param("deptId") Long deptId,
// @Param("keywords") String keywords,
// @Param("scaleCode") String scaleCode,
// @Param("evaStatus") Integer evaStatus,
// @Param("gender") Integer gender,
// @Param("ageMin") Integer ageMin,
// @Param("ageMax") Integer ageMax,
// @Param("evaDateMin") Date evaDateMin,
// @Param("evaDateMax") Date evaDateMax);
/**
* 查询报告单分数
*
* @param reportId
* @return
*/
// List<ZytzVo.EvaList.Score> queryReportScores(@Param("reportId") Long reportId);
/**
* 删除
* @param evaIds
* @return
*/
// Integer deleteEvas(@Param("ids") List<Long> evaIds);
}

4
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/DmsUserMapper.java

@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Param;
public interface DmsUserMapper { public interface DmsUserMapper {
long countByExample(DmsUserExample example); long countByExample(DmsUserExample example);
int deleteByPrimaryKey(Integer id); int deleteByPrimaryKey(Long id);
int insert(DmsUser record); int insert(DmsUser record);
@ -16,7 +16,7 @@ public interface DmsUserMapper {
List<DmsUser> selectByExample(DmsUserExample example); List<DmsUser> selectByExample(DmsUserExample example);
DmsUser selectByPrimaryKey(Integer id); DmsUser selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") DmsUser record, @Param("example") DmsUserExample example); int updateByExampleSelective(@Param("record") DmsUser record, @Param("example") DmsUserExample example);

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/HmsWeightHeightMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.HmsWeightHeight;
import com.acupuncture.system.domain.po.HmsWeightHeightExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HmsWeightHeightMapper {
long countByExample(HmsWeightHeightExample example);
int deleteByPrimaryKey(Long id);
int insert(HmsWeightHeight record);
int insertSelective(HmsWeightHeight record);
List<HmsWeightHeight> selectByExample(HmsWeightHeightExample example);
HmsWeightHeight selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HmsWeightHeight record, @Param("example") HmsWeightHeightExample example);
int updateByExample(@Param("record") HmsWeightHeight record, @Param("example") HmsWeightHeightExample example);
int updateByPrimaryKeySelective(HmsWeightHeight record);
int updateByPrimaryKey(HmsWeightHeight record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzEmsEvaAnswerMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzEmsEvaAnswer;
import com.acupuncture.system.domain.po.ZytzEmsEvaAnswerExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzEmsEvaAnswerMapper {
long countByExample(ZytzEmsEvaAnswerExample example);
int deleteByPrimaryKey(Long answerId);
int insert(ZytzEmsEvaAnswer record);
int insertSelective(ZytzEmsEvaAnswer record);
List<ZytzEmsEvaAnswer> selectByExample(ZytzEmsEvaAnswerExample example);
ZytzEmsEvaAnswer selectByPrimaryKey(Long answerId);
int updateByExampleSelective(@Param("record") ZytzEmsEvaAnswer record, @Param("example") ZytzEmsEvaAnswerExample example);
int updateByExample(@Param("record") ZytzEmsEvaAnswer record, @Param("example") ZytzEmsEvaAnswerExample example);
int updateByPrimaryKeySelective(ZytzEmsEvaAnswer record);
int updateByPrimaryKey(ZytzEmsEvaAnswer record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzQmsScaleConsti;
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzQmsScaleConstiMapper {
long countByExample(ZytzQmsScaleConstiExample example);
int deleteByPrimaryKey(Long constiId);
int insert(ZytzQmsScaleConsti record);
int insertSelective(ZytzQmsScaleConsti record);
List<ZytzQmsScaleConsti> selectByExample(ZytzQmsScaleConstiExample example);
ZytzQmsScaleConsti selectByPrimaryKey(Long constiId);
int updateByExampleSelective(@Param("record") ZytzQmsScaleConsti record, @Param("example") ZytzQmsScaleConstiExample example);
int updateByExample(@Param("record") ZytzQmsScaleConsti record, @Param("example") ZytzQmsScaleConstiExample example);
int updateByPrimaryKeySelective(ZytzQmsScaleConsti record);
int updateByPrimaryKey(ZytzQmsScaleConsti record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiQuesRelMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRel;
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiQuesRelExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzQmsScaleConstiQuesRelMapper {
long countByExample(ZytzQmsScaleConstiQuesRelExample example);
int deleteByPrimaryKey(Long id);
int insert(ZytzQmsScaleConstiQuesRel record);
int insertSelective(ZytzQmsScaleConstiQuesRel record);
List<ZytzQmsScaleConstiQuesRel> selectByExample(ZytzQmsScaleConstiQuesRelExample example);
ZytzQmsScaleConstiQuesRel selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") ZytzQmsScaleConstiQuesRel record, @Param("example") ZytzQmsScaleConstiQuesRelExample example);
int updateByExample(@Param("record") ZytzQmsScaleConstiQuesRel record, @Param("example") ZytzQmsScaleConstiQuesRelExample example);
int updateByPrimaryKeySelective(ZytzQmsScaleConstiQuesRel record);
int updateByPrimaryKey(ZytzQmsScaleConstiQuesRel record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiRefScoreMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScore;
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiRefScoreExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzQmsScaleConstiRefScoreMapper {
long countByExample(ZytzQmsScaleConstiRefScoreExample example);
int deleteByPrimaryKey(Long id);
int insert(ZytzQmsScaleConstiRefScore record);
int insertSelective(ZytzQmsScaleConstiRefScore record);
List<ZytzQmsScaleConstiRefScore> selectByExample(ZytzQmsScaleConstiRefScoreExample example);
ZytzQmsScaleConstiRefScore selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") ZytzQmsScaleConstiRefScore record, @Param("example") ZytzQmsScaleConstiRefScoreExample example);
int updateByExample(@Param("record") ZytzQmsScaleConstiRefScore record, @Param("example") ZytzQmsScaleConstiRefScoreExample example);
int updateByPrimaryKeySelective(ZytzQmsScaleConstiRefScore record);
int updateByPrimaryKey(ZytzQmsScaleConstiRefScore record);
}

34
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleConstiYsfaMapper.java

@ -0,0 +1,34 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfa;
import com.acupuncture.system.domain.po.ZytzQmsScaleConstiYsfaExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzQmsScaleConstiYsfaMapper {
long countByExample(ZytzQmsScaleConstiYsfaExample example);
int deleteByPrimaryKey(Long id);
int insert(ZytzQmsScaleConstiYsfa record);
int insertSelective(ZytzQmsScaleConstiYsfa record);
List<ZytzQmsScaleConstiYsfa> selectByExampleWithBLOBs(ZytzQmsScaleConstiYsfaExample example);
List<ZytzQmsScaleConstiYsfa> selectByExample(ZytzQmsScaleConstiYsfaExample example);
ZytzQmsScaleConstiYsfa selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") ZytzQmsScaleConstiYsfa record, @Param("example") ZytzQmsScaleConstiYsfaExample example);
int updateByExampleWithBLOBs(@Param("record") ZytzQmsScaleConstiYsfa record, @Param("example") ZytzQmsScaleConstiYsfaExample example);
int updateByExample(@Param("record") ZytzQmsScaleConstiYsfa record, @Param("example") ZytzQmsScaleConstiYsfaExample example);
int updateByPrimaryKeySelective(ZytzQmsScaleConstiYsfa record);
int updateByPrimaryKeyWithBLOBs(ZytzQmsScaleConstiYsfa record);
int updateByPrimaryKey(ZytzQmsScaleConstiYsfa record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzQmsScale;
import com.acupuncture.system.domain.po.ZytzQmsScaleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzQmsScaleMapper {
long countByExample(ZytzQmsScaleExample example);
int deleteByPrimaryKey(Long scaleId);
int insert(ZytzQmsScale record);
int insertSelective(ZytzQmsScale record);
List<ZytzQmsScale> selectByExample(ZytzQmsScaleExample example);
ZytzQmsScale selectByPrimaryKey(Long scaleId);
int updateByExampleSelective(@Param("record") ZytzQmsScale record, @Param("example") ZytzQmsScaleExample example);
int updateByExample(@Param("record") ZytzQmsScale record, @Param("example") ZytzQmsScaleExample example);
int updateByPrimaryKeySelective(ZytzQmsScale record);
int updateByPrimaryKey(ZytzQmsScale record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleQuestionMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestion;
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzQmsScaleQuestionMapper {
long countByExample(ZytzQmsScaleQuestionExample example);
int deleteByPrimaryKey(Long quesId);
int insert(ZytzQmsScaleQuestion record);
int insertSelective(ZytzQmsScaleQuestion record);
List<ZytzQmsScaleQuestion> selectByExample(ZytzQmsScaleQuestionExample example);
ZytzQmsScaleQuestion selectByPrimaryKey(Long quesId);
int updateByExampleSelective(@Param("record") ZytzQmsScaleQuestion record, @Param("example") ZytzQmsScaleQuestionExample example);
int updateByExample(@Param("record") ZytzQmsScaleQuestion record, @Param("example") ZytzQmsScaleQuestionExample example);
int updateByPrimaryKeySelective(ZytzQmsScaleQuestion record);
int updateByPrimaryKey(ZytzQmsScaleQuestion record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzQmsScaleQuestionOptionMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOption;
import com.acupuncture.system.domain.po.ZytzQmsScaleQuestionOptionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzQmsScaleQuestionOptionMapper {
long countByExample(ZytzQmsScaleQuestionOptionExample example);
int deleteByPrimaryKey(Long optionId);
int insert(ZytzQmsScaleQuestionOption record);
int insertSelective(ZytzQmsScaleQuestionOption record);
List<ZytzQmsScaleQuestionOption> selectByExample(ZytzQmsScaleQuestionOptionExample example);
ZytzQmsScaleQuestionOption selectByPrimaryKey(Long optionId);
int updateByExampleSelective(@Param("record") ZytzQmsScaleQuestionOption record, @Param("example") ZytzQmsScaleQuestionOptionExample example);
int updateByExample(@Param("record") ZytzQmsScaleQuestionOption record, @Param("example") ZytzQmsScaleQuestionOptionExample example);
int updateByPrimaryKeySelective(ZytzQmsScaleQuestionOption record);
int updateByPrimaryKey(ZytzQmsScaleQuestionOption record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzRmsReport;
import com.acupuncture.system.domain.po.ZytzRmsReportExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzRmsReportMapper {
long countByExample(ZytzRmsReportExample example);
int deleteByPrimaryKey(Long reportId);
int insert(ZytzRmsReport record);
int insertSelective(ZytzRmsReport record);
List<ZytzRmsReport> selectByExample(ZytzRmsReportExample example);
ZytzRmsReport selectByPrimaryKey(Long reportId);
int updateByExampleSelective(@Param("record") ZytzRmsReport record, @Param("example") ZytzRmsReportExample example);
int updateByExample(@Param("record") ZytzRmsReport record, @Param("example") ZytzRmsReportExample example);
int updateByPrimaryKeySelective(ZytzRmsReport record);
int updateByPrimaryKey(ZytzRmsReport record);
}

28
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportResultMapper.java

@ -0,0 +1,28 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzRmsReportResult;
import com.acupuncture.system.domain.po.ZytzRmsReportResultExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzRmsReportResultMapper {
long countByExample(ZytzRmsReportResultExample example);
int deleteByPrimaryKey(Long resultId);
int insert(ZytzRmsReportResult record);
int insertSelective(ZytzRmsReportResult record);
List<ZytzRmsReportResult> selectByExample(ZytzRmsReportResultExample example);
ZytzRmsReportResult selectByPrimaryKey(Long resultId);
int updateByExampleSelective(@Param("record") ZytzRmsReportResult record, @Param("example") ZytzRmsReportResultExample example);
int updateByExample(@Param("record") ZytzRmsReportResult record, @Param("example") ZytzRmsReportResultExample example);
int updateByPrimaryKeySelective(ZytzRmsReportResult record);
int updateByPrimaryKey(ZytzRmsReportResult record);
}

34
acupuncture-system/src/main/java/com/acupuncture/system/persist/mapper/ZytzRmsReportYsjyMapper.java

@ -0,0 +1,34 @@
package com.acupuncture.system.persist.mapper;
import com.acupuncture.system.domain.po.ZytzRmsReportYsjy;
import com.acupuncture.system.domain.po.ZytzRmsReportYsjyExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface ZytzRmsReportYsjyMapper {
long countByExample(ZytzRmsReportYsjyExample example);
int deleteByPrimaryKey(Long ysjyId);
int insert(ZytzRmsReportYsjy record);
int insertSelective(ZytzRmsReportYsjy record);
List<ZytzRmsReportYsjy> selectByExampleWithBLOBs(ZytzRmsReportYsjyExample example);
List<ZytzRmsReportYsjy> selectByExample(ZytzRmsReportYsjyExample example);
ZytzRmsReportYsjy selectByPrimaryKey(Long ysjyId);
int updateByExampleSelective(@Param("record") ZytzRmsReportYsjy record, @Param("example") ZytzRmsReportYsjyExample example);
int updateByExampleWithBLOBs(@Param("record") ZytzRmsReportYsjy record, @Param("example") ZytzRmsReportYsjyExample example);
int updateByExample(@Param("record") ZytzRmsReportYsjy record, @Param("example") ZytzRmsReportYsjyExample example);
int updateByPrimaryKeySelective(ZytzRmsReportYsjy record);
int updateByPrimaryKeyWithBLOBs(ZytzRmsReportYsjy record);
int updateByPrimaryKey(ZytzRmsReportYsjy record);
}

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save