Compare commits

...

152 Commits

Author SHA1 Message Date
zzc 987be82a81 119服务器部署 1 year ago
zhangye 77abb7321d 20220608 3 years ago
zhangye 5b4703ee30 修改实时数据接口 3 years ago
zhangye 5193bfb6c1 20220514 3 years ago
zhangye d38c8e300a 20220513 3 years ago
zhangye e4ec06c8a5 大数据可视化版本v4.0 3 years ago
zhangye 88ecdc5a53 20220506送测版本1.0 3 years ago
zhangye 4450c5af6e 实现大屏统计接口,简单测试 3 years ago
zhangye 2264c8add1 添加大屏统计接口 3 years ago
zhangye a93cf2e0cb 20220410 3 years ago
zhizhi wu c47686977e baseTest 3 years ago
zhizhi wu 2b6bfe2e06 智能判断五边形 3 years ago
ccsens_wu dffab7e875 intelligence 3 years ago
zhizhi wu 8bc5bfcbec 五边形智能测评,待测试 3 years ago
zhizhi wu 244b0ae5cf question 查询报告单和生成报告单 3 years ago
ccsens_wu 4a35e76431 动作还原时的颜色 3 years ago
zhizhi wu 9192d77840 bug 4 years ago
zhizhi wu 49a0fe4578 tall test tall-ht->tall 4 years ago
zhizhi wu bc47253e9d bug 4 years ago
zhizhi wu 998f1335a3 moca指数 4 years ago
zhizhi wu 0256b89d2e drone test 4 years ago
zhizhi wu 6f6a098357 drone test 4 years ago
zhizhi wu b01d1234e3 drone test 4 years ago
zhizhi wu 6950b97cd3 恢复删除的笔画 4 years ago
zhizhi wu 8ab8bfd5e8 动作分析,速度保留5位小数、 4 years ago
zhizhi wu 6b42c128e2 日志 4 years ago
zhizhi wu a48d275ece 前5笔笔画时长,仅计算长笔画时长 4 years ago
zhizhi wu 776c177084 计算长线条时间 4 years ago
zhizhi wu b1fc9acd0f 画图线条分析导出 4 years ago
zhizhi wu 7e2e5f5e50 mmse单量表导出分数 4 years ago
zhizhi wu 8340bc8fed 导出做了某试题的全部分析 4 years ago
zhizhi wu 7ea264b292 选项 4 years ago
zhizhi wu 700282cb2e 定向力 4 years ago
zhizhi wu 5069a31fd3 green 4 years ago
zhizhi wu 88c2690de3 question prod 4 years ago
zhizhi wu af02107151 未选择选项,则不保存分数 4 years ago
zy_Java b2a5a5364f 20210928修改总时间异常 4 years ago
zhizhi wu 245dac46b8 分数bug 4 years ago
zhizhi wu 4ca9a8659a 到处五边形分数 4 years ago
zhizhi wu 8727b3d558 导出分数和答案 4 years ago
zhizhi wu 516ca76643 test mq 4 years ago
zy_Java a54db05955 20210821修复条件查询报告单报错 4 years ago
zhizhi wu 7756f6e3a8 importPosition 4 years ago
zhizhi wu cecf014891 导入职位 4 years ago
zy_Java a0122f7ff9 日常任务加分级和排序 4 years ago
zy_Java c65cc43be4 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zy_Java 4ba3430d22 20210628画图信息添加背景图 4 years ago
zhizhi wu b7e45bf699 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zhizhi wu de62493825 发送跳转消息 4 years ago
zy_Java 4dd4938a66 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zy_Java 12d2e94707 20210622 4 years ago
zhizhi wu 954516795b 语音合成 4 years ago
zhizhi wu db7ce44453 sql bug 4 years ago
zhizhi wu 41d1064f3b bug修改 4 years ago
zhizhi wu 457d35ffd0 conflict 4 years ago
zhizhi wu 50dd09f15a 题目其他内容补充 4 years ago
zhizhi wu b27038d615 试题配置 4 years ago
zy_Java 1a50ba9f98 20210609修改报告单二导出 4 years ago
zhizhi wu ba94d289bc 调整pdf 4 years ago
zhizhi wu a9216c0e78 调整pdf 4 years ago
zhizhi wu 92700abfe8 导出报告单2 4 years ago
zhizhi wu c721c068f6 保存答案时空指针 4 years ago
zy_Java dec4478fb0 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zy_Java ec1fdf0717 20210528修改平均画图速度 4 years ago
zhizhi wu fb05093029 ht dev mq 4 years ago
zy_Java b5bbab757e 20210528上线前 4 years ago
zy_Java 00c5b310ff 20210527 4 years ago
zy_Java feec82cc4b 20210521编辑报告单 4 years ago
zy_Java 52867a8121 20210520修改报告单信息 4 years ago
zy_Java d31d1ac4c5 20210520根据报告单类型导出报告单 4 years ago
zy_Java 5e8da19238 20210517导出pdf的bugv1.0 4 years ago
zy_Java bc8525188b 20210517导出pdf的bug 4 years ago
zy_Java 8e03a7114a 20210517v1.0 4 years ago
zy_Java 0d52edff18 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zy_Java f0c1e41b18 转移服务器 4 years ago
zhizhi wu 3c6251c1a0 报告单bug 4 years ago
zhizhi wu e7836aea15 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zhizhi wu e5ffcb978e 画图总时间修改 4 years ago
zy_Java 05a6978dcb Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zy_Java 4e61d0c7a0 20210512 4 years ago
zhizhi wu 396094f4bf 导出顶部+患者名字查询 4 years ago
zhizhi wu f042161294 检查患者未完成的报告单 4 years ago
zhizhi wu e429dda45c 去掉历史报告单 4 years ago
zhizhi wu bd4946c23c 其他记录 4 years ago
zhizhi wu 89a4845c14 切换分支 4 years ago
zhizhi wu 955060cee4 返回历史报告单 4 years ago
zhizhi wu fd8cd63f41 分析导出修改 4 years ago
zhizhi wu 223b39cef7 报告单分析导出 4 years ago
zhizhi wu 7ade4958f5 报告单导出 4 years ago
zhizhi wu 9a40afe785 导出病例分析 4 years ago
zy_Java a22b958eab Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zy_Java 227c0ea0df 20210428 4 years ago
zhizhi wu b5fa41b8e3 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zhizhi wu 8cecce1ada 试题补充内容的选项查询 4 years ago
zy_Java 3c75de9df1 20210427 4 years ago
zy_Java 6d0e4e6b8a 20210427tall查询任务排序 4 years ago
zhizhi wu edfdd1d4e7 单个量表导出 4 years ago
zhizhi wu 48410cdf03 切换分支 4 years ago
zhizhi wu 2932b871da 导入试题 4 years ago
zhizhi wu e7795b1863 四个位置的距离改为相对中心的坐标 4 years ago
zhizhi wu 2854e67f01 bug修复 4 years ago
zhizhi wu 5740f37ddd 距离 4 years ago
zhizhi wu 43c103836d 动作采集分析 4 years ago
zhizhi wu 48c5fe5044 修改注释 4 years ago
zhizhi wu 3c66a93d97 动作分析2.3.1 4 years ago
zhizhi wu 17a14e0c49 试题分析 4 years ago
zhizhi wu 9863403e99 去除历史报告单中对权限的判断 question 4 years ago
zhizhi wu c3c0bce2c8 去掉修改报告单时的身份判断 question 4 years ago
zhizhi wu 4fb3c9ae2f 优化导入功能 4 years ago
zy_Java 5a7ecfabff 20210322v1.2 4 years ago
zhizhi wu 6db293244f Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zhizhi wu bc175f8279 ht tall test eureka 修改为192.168.31.13 4 years ago
zy_Java 7a85e2a453 Merge branch 'sd' of dd.tall.wiki:ccsens_wiki/ccsenscloud into sd 4 years ago
zy_Java 269babd09a 20210318v1.1 4 years ago
zhizhi wu cf00986f18 HT根据分数查询报告单分页 4 years ago
zhizhi wu 1bbf02f918 编辑报告单时,将显示在历史报告单修改为1 4 years ago
zhizhi wu 4b919fc063 ht 4 years ago
zhizhi wu a1e27e8094 根据分数查询报告单 4 years ago
zhizhi wu a7f74616b1 ht 搜索报告单 4 years ago
zhizhi wu f0a6fcfbc2 导出 4 years ago
zhizhi wu 3076284142 question green 4 years ago
zhizhi wu 3aacabde07 question 试题修改成 KT相关的,仍然不通用,待完善 4 years ago
zy_Java 8908287361 新建question项目 4 years ago
zy_Java fc820838b9 20210202删除画图轨迹 5 years ago
zy_Java 774fe4654f 导出报表时去除小数点 5 years ago
zy_Java 590282b10e 将分数修改为bigDecimal 5 years ago
zy_Java 58dd4f9f6f 20210107未选择病人点试题报错 5 years ago
zy_Java f34727bf10 20210107 5 years ago
zy_Java 76954189fe ht二期完成 5 years ago
zy_Java 309edfaa1c 20201230添加根据报告单和试题id查询选项详情的接口 5 years ago
zy_Java 6e534f49ab 20201229查询试题返回是否回显 5 years ago
zy_Java 49d85e7a29 20201229添加关联试题的id 5 years ago
zy_Java 3fe9f10fe6 20201225v2.0 5 years ago
zy_Java 85bc48f484 题目信息添加共享答案的其他试题的id 5 years ago
zy_Java 4cfe555902 修改画图返回值 5 years ago
zy_Java 907277aecc 20201221导入Rey 5 years ago
zy_Java a15bb0dd94 20201221v1.1 5 years ago
zy_Java 4a47ca2fcd 20201213 5 years ago
zy_Java 8488343e32 20201211 5 years ago
zy_Java 9875fa52fe 查看画图信息返回list 5 years ago
zy_Java 49d58ade29 20201204新增保存用户画图轨迹功能 5 years ago
zhizhi wu 952be0abdb 报告单无分数显示空,而不是0 5 years ago
zhizhi wu c83d7ee236 病人报告单 5 years ago
zhizhi wu 8ed667d2a5 报告单 5 years ago
zy_Java a24a7e9b20 修改eurekaIp 5 years ago
zy_Java d8dec3fe7f 0830-1.0 5 years ago
zhizhi wu f0664271ab prod redis password 5 years ago
zhizhi wu c56608c728 恢复master版本,修改prod配置 5 years ago
zhizhi wu 14757dae10 患者年龄性别统计修改 5 years ago
zhizhi wu 62b8852ba0 tall test配置 5 years ago
zhizhi wu 166a174f7d game druid-test 5 years ago
zhizhi wu df27e33d30 ht 5 years ago
  1. 153
      .drone.yml
  2. 9
      beneficiation/HELP.md
  3. 67
      cloudutil/src/main/resources/application-util-8hz.yml
  4. 61
      cloudutil/src/main/resources/application-util-green.yml
  5. 3
      cloudutil/src/main/resources/application-util-prod.yml
  6. 2
      cloudutil/src/main/resources/application-util-test.yml
  7. 4
      ct/src/main/resources/application-test.yml
  8. 4
      ct/src/main/resources/druid-test.yml
  9. 9
      form/HELP.md
  10. 4
      game/src/main/resources/application-test.yml
  11. 6
      game/src/main/resources/druid-test.yml
  12. 6
      health/src/main/resources/application-prod.yml
  13. 4
      health/src/main/resources/application-test.yml
  14. 4
      health/src/main/resources/application.yml
  15. 6
      health/src/main/resources/druid-prod.yml
  16. 4
      health/src/main/resources/druid-test.yml
  17. 6
      ht/pom.xml
  18. 1
      ht/src/main/java/com/ccsens/ht/HtApplication.java
  19. 50
      ht/src/main/java/com/ccsens/ht/api/BaiDuController.java
  20. 21
      ht/src/main/java/com/ccsens/ht/api/DoctorController.java
  21. 6
      ht/src/main/java/com/ccsens/ht/api/FileController.java
  22. 194
      ht/src/main/java/com/ccsens/ht/api/ImportController.java
  23. 48
      ht/src/main/java/com/ccsens/ht/api/IntelligenceController.java
  24. 144
      ht/src/main/java/com/ccsens/ht/api/PatientReportController.java
  25. 142
      ht/src/main/java/com/ccsens/ht/api/PatientReportExportController.java
  26. 64
      ht/src/main/java/com/ccsens/ht/api/PatientReportSearchController.java
  27. 102
      ht/src/main/java/com/ccsens/ht/api/QuestionController.java
  28. 129
      ht/src/main/java/com/ccsens/ht/api/StatisticsController.java
  29. 6
      ht/src/main/java/com/ccsens/ht/aspect/DoctorAuditAspect.java
  30. 24
      ht/src/main/java/com/ccsens/ht/bean/dto/IntelligenceDto.java
  31. 158
      ht/src/main/java/com/ccsens/ht/bean/dto/PatientReportDto.java
  32. 47
      ht/src/main/java/com/ccsens/ht/bean/dto/PatientReportSearchDto.java
  33. 112
      ht/src/main/java/com/ccsens/ht/bean/dto/QuestionDto.java
  34. 27
      ht/src/main/java/com/ccsens/ht/bean/dto/StatisticsDto.java
  35. 40
      ht/src/main/java/com/ccsens/ht/bean/dto/message/MessageDto.java
  36. 386
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientAcp.java
  37. 2520
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientAcpExample.java
  38. 172
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvas.java
  39. 1071
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvasExample.java
  40. 84
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvasLine.java
  41. 501
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvasLineExample.java
  42. 106
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientIntelligence.java
  43. 701
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientIntelligenceExample.java
  44. 117
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientReportRecordDesc.java
  45. 761
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientReportRecordDescExample.java
  46. 365
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientScore.java
  47. 2281
      ht/src/main/java/com/ccsens/ht/bean/po/HtPatientScoreExample.java
  48. 11
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestion.java
  49. 60
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionExample.java
  50. 95
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionIntelligence.java
  51. 631
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionIntelligenceExample.java
  52. 277
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOption.java
  53. 117
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOptionDesc.java
  54. 761
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOptionDescExample.java
  55. 1801
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOptionExample.java
  56. 161
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecord.java
  57. 1021
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecordExample.java
  58. 117
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecordOption.java
  59. 771
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecordOptionExample.java
  60. 128
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionShow.java
  61. 821
      ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionShowExample.java
  62. 117
      ht/src/main/java/com/ccsens/ht/bean/po/HtReportRelevance.java
  63. 771
      ht/src/main/java/com/ccsens/ht/bean/po/HtReportRelevanceExample.java
  64. 12
      ht/src/main/java/com/ccsens/ht/bean/vo/DoctorVo.java
  65. 22
      ht/src/main/java/com/ccsens/ht/bean/vo/IntelligenceVo.java
  66. 33
      ht/src/main/java/com/ccsens/ht/bean/vo/PatientReportSearchVo.java
  67. 607
      ht/src/main/java/com/ccsens/ht/bean/vo/PatientReportVo.java
  68. 83
      ht/src/main/java/com/ccsens/ht/bean/vo/QuestionShowVo.java
  69. 377
      ht/src/main/java/com/ccsens/ht/bean/vo/QuestionVo.java
  70. 118
      ht/src/main/java/com/ccsens/ht/bean/vo/StatisticsVo.java
  71. 1
      ht/src/main/java/com/ccsens/ht/config/SpringConfig.java
  72. 21
      ht/src/main/java/com/ccsens/ht/persist/dao/HtDoctorDao.java
  73. 28
      ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientCanvasDao.java
  74. 116
      ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientReportDao.java
  75. 18
      ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientReportRecordDescDao.java
  76. 18
      ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientScoreDao.java
  77. 14
      ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionDao.java
  78. 26
      ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionOptionDescDao.java
  79. 16
      ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionRecordDao.java
  80. 15
      ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionRecordOptionDao.java
  81. 17
      ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionShowDao.java
  82. 32
      ht/src/main/java/com/ccsens/ht/persist/dao/HtReportDao.java
  83. 100
      ht/src/main/java/com/ccsens/ht/persist/dao/StatisticsDao.java
  84. 58
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientAcpMapper.java
  85. 36
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientCanvasLineMapper.java
  86. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientCanvasMapper.java
  87. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientIntelligenceMapper.java
  88. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientReportRecordDescMapper.java
  89. 58
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientScoreMapper.java
  90. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionIntelligenceMapper.java
  91. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionOptionDescMapper.java
  92. 58
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionOptionMapper.java
  93. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionRecordMapper.java
  94. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionRecordOptionMapper.java
  95. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionShowMapper.java
  96. 30
      ht/src/main/java/com/ccsens/ht/persist/mapper/HtReportRelevanceMapper.java
  97. 51
      ht/src/main/java/com/ccsens/ht/service/DoctorService.java
  98. 326
      ht/src/main/java/com/ccsens/ht/service/ExportService.java
  99. 9
      ht/src/main/java/com/ccsens/ht/service/IDoctorService.java
  100. 24
      ht/src/main/java/com/ccsens/ht/service/IExportService.java

153
.drone.yml

@ -0,0 +1,153 @@
kind: pipeline
type: docker
name: default
# workspace,path可设定默认的拉取目录和每个step中docker镜像的chdir目录,通常不需要设置
# workspace官方说明:https://docs.drone.io/yaml/docker/#the-workspace-object
# 可在repo->setting中设置secret,使用from_secret引用密钥
# 常量值
constants:
- &SERVER_HOST test.tall.wiki
- &SERVER_PORT 30022
- &BUILD_CMDER
- ls
- mvn -version
- java -version
- mvn clean package -Dmaven.test.skip=true
- &SCP_TARGET /home/cloud/ht
- &SCP_SOURCE
- tall/target/*.jar
- ht/target/*.jar
- &SCP_STRIP_DIR_LEVEL 2
- &SSH_CMDER
- cd /home/cloud/ht
- pwd
- ./tall.sh > /dev/null 2> /dev/null &
- ./ht.sh > /dev/null 2> /dev/null &
#- &NOTIFY_EMAIL weizezhao@ccsens.com
- &NOTIFY_WECHATROBOT_WEBHOOK https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=b2b93e9a-128b-41d4-8dce-12004e3f48b9
# 挂载的主机卷,可以映射到docker容器中
volumes:
- name: ssh_key
host:
path: /root/.ssh/
- name: cache
host:
path: /var/lib/cache
# 执行触发器
trigger:
branch:
- sd
- drone
# 构建阶段
steps:
- name: build-maven
image: maven:3.8.4-jdk-8
pull: if-not-exists # default always
volumes:
- name: cache
path: /root/.m2
commands: *BUILD_CMDER
- name: deploy-scp
image: appleboy/drone-scp
pull: if-not-exists
volumes:
- name: ssh_key
path: /root/.ssh/
settings:
host: *SERVER_HOST
port: *SERVER_PORT
username: root
key_path: /root/.ssh/id_rsa
rm: false # true则会删除目标目录重建
target: *SCP_TARGET
source: *SCP_SOURCE
strip_components: *SCP_STRIP_DIR_LEVEL # 去除的目录层数,如果没有该选项,则拷贝过去是 target/xxx.jar,1代表去除target
- name: run-ssh
image: appleboy/drone-ssh
pull: if-not-exists
volumes:
- name: ssh_key
path: /root/.ssh/
settings:
settings:
host: *SERVER_HOST
port: *SERVER_PORT
username: root
key_path: /root/.ssh/id_rsa
script_stop: true # stop script after first failure
#command_timeout: 30s # 30seconds, the maximum amount of time for the execute commands, default is 10 minutes.
script: *SSH_CMDER
#- cd /home/cloud/ht
#- ./ht.sh > /dev/null 2> /dev/null &
- name: notify-wechatwork
image: fifsky/drone-wechat-work
pull: if-not-exists
settings:
url: *NOTIFY_WECHATROBOT_WEBHOOK
msgtype: markdown
content: |
{{if eq .Status "success" }}
#### 🎉 ${DRONE_REPO} 构建成功
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR}
> [点击查看](${DRONE_BUILD_LINK})
{{else}}
#### ❌ ${DRONE_REPO} 构建失败
> Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
> Author: ${DRONE_COMMIT_AUTHOR}
> 请立即修复!!!
> [点击查看](${DRONE_BUILD_LINK})
{{end}}
when:
status:
- failure
- success
# - name: notify-email
# image: drillster/drone-email
# pull: if-not-exists
# settings:
# host: smtp.qiye.aliyun.com #例如 smtp.qq.com
# port: 465 #例如QQ邮箱端口465
# username: devops@ccsens.com #邮箱用户名
# password: #邮箱密码
# from_secret: orgsecret_password_mail_devops
# from: devops@ccsens.com
# recipients: *NOTIFY_EMAIL #收件人,多个用,隔开
# when: #执行条件
# status:
# - success
# - changed
# - failure
# - name: notify-dingtalk
# image: lddsb/drone-dingtalk-message
# environment:
# PASSWORD:
# from_secret: password_mail_devops
# settings:
# token: your-dingtalk-robot-access-token
# type: markdown
# message_color: true
# message_pic: true
# sha_link: true
# -name: notify-slack
# image: plugins/slack
# webhook: https://hooks.slack.com/ www.dijiuyy.com services/xxx/xxx/xxx
# channel: dev
# template: >
# {{#success build.status}}
# build {{build.number}} succeeded. Good job.
# {{else}}
# build {{build.number}} failed. Fix me please.
# {{/success}}

9
beneficiation/HELP.md

@ -0,0 +1,9 @@
# Getting Started
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.4.2/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.4.2/maven-plugin/reference/html/#build-image)

67
cloudutil/src/main/resources/application-util-8hz.yml

@ -0,0 +1,67 @@
#服务端点暴露
management:
endpoints:
web:
exposure:
# 暴露xxx端点,如需暴露多个,用,分隔;如需暴露所有端点,用'*'
include: auditevents,caches,conditions,flyway,health,heapdump,httptrace,info,integrationgraph,jolokia,logfile,loggers,liquibase,metrics,mappings,prometheus,scheduledtasks,sessions,shutdown,threaddump,hystrix.stream
# # 不暴露哪些端点
exclude: env,beans,configprops
endpoint:
health:
# 是否展示健康检查详情
show-details: always
health:
redis:
enabled: false
#eureka注册
eureka:
client:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
defaultZone: http://admin:admin@127.0.0.1:7010/eureka/
# defaultZone: http://admin:admin@81.70.54.64:7010/eureka/
instance:
# 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
prefer-ip-address: true
metadata-map:
management:
context-path: ${server.servlet.context-path:}/actuator
home-page-url-path: ${server.servlet.context-path:}/
status-page-url-path: ${server.servlet.context-path:}/actuator/info
health-check-url-path: ${server.servlet.context-path:}/actuator/health
feign:
client:
config:
default:
connectTime: 5000
readTimeout: 5000
# NONE【性能最佳,适用于生产】:不记录任何日志(默认值)。
# BASIC【适用于生产环境追踪问题】:仅记录请求方法、URL、响应状态代码以及执行时间。
# HEADERS:记录BASIC级别的基础上,记录请求和响应的header。
# FULL【比较适用于开发及测试环境定位问题】:记录请求和响应的header、body和元数据
loggerLevel: basic
hystrix:
enabled: true
hystrix:
threadpool:
default:
coreSize: 200 #并发执行的最大线程数,默认10
maxQueueSize: 1000 #BlockingQueue的最大队列数,默认值-1
queueSizeRejectionThreshold: 800 #即使maxQueueSize没有达到,达到queueSizeRejectionThreshold该值后,请求也会被拒绝,默认值5
# sleuth
logging:
level:
root: info
org.springframework.cloud.sleuth: DEBUG
spring:
# zipkin:
# base-url: http://140.143.228.3:9411
# sleuth:
# sampler:
# # 采样率,模式0.1,也就是10%,为了便于观察效果,改为1.0,也就是100%。生产环境建议保持默认。
# probability: 0.1
cloud:
inetutils:
ignored-interfaces: ['VMware.*']

61
cloudutil/src/main/resources/application-util-green.yml

@ -0,0 +1,61 @@
#服务端点暴露
management:
endpoints:
web:
exposure:
# 暴露xxx端点,如需暴露多个,用,分隔;如需暴露所有端点,用'*'
include: auditevents,caches,conditions,flyway,health,heapdump,httptrace,info,integrationgraph,jolokia,logfile,loggers,liquibase,metrics,mappings,prometheus,scheduledtasks,sessions,shutdown,threaddump,hystrix.stream
# # 不暴露哪些端点
# exclude: env,beans,configprops
endpoint:
health:
# 是否展示健康检查详情
show-details: always
health:
redis:
enabled: false
#eureka注册
eureka:
client:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
defaultZone: http://admin:admin@sxzxyzzlm.tall.wiki:7010/eureka/
# defaultZone: http://admin:admin@192.168.0.99:7010/eureka/
instance:
# 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
prefer-ip-address: true
metadata-map:
management:
context-path: ${server.servlet.context-path:}/actuator
home-page-url-path: ${server.servlet.context-path:}/
status-page-url-path: ${server.servlet.context-path:}/actuator/info
health-check-url-path: ${server.servlet.context-path:}/actuator/health
feign:
client:
config:
default:
connectTime: 5000
readTimeout: 5000
# NONE【性能最佳,适用于生产】:不记录任何日志(默认值)。
# BASIC【适用于生产环境追踪问题】:仅记录请求方法、URL、响应状态代码以及执行时间。
# HEADERS:记录BASIC级别的基础上,记录请求和响应的header。
# FULL【比较适用于开发及测试环境定位问题】:记录请求和响应的header、body和元数据
loggerLevel: basic
hystrix:
enabled: true
# sleuth
logging:
level:
root: info
org.springframework.cloud.sleuth: DEBUG
spring:
# zipkin:
# base-url: http://49.233.89.188:9411
# sleuth:
# sampler:
# # 采样率,模式0.1,也就是10%,为了便于观察效果,改为1.0,也就是100%。生产环境建议保持默认。
# probability: 1.0
cloud:
inetutils:
ignored-interfaces: ['VMware.*']

3
cloudutil/src/main/resources/application-util-prod.yml

@ -20,7 +20,8 @@ eureka:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
defaultZone: http://admin:admin@140.143.228.3:7010/eureka/
defaultZone: http://admin:admin@121.36.3.207:7010/eureka/
# defaultZone: http://admin:admin@81.70.54.64:7010/eureka/
instance:
# 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
prefer-ip-address: true

2
cloudutil/src/main/resources/application-util-test.yml

@ -20,7 +20,7 @@ eureka:
service-url:
# 指定eureka server通信地址,注意/eureka/小尾巴不能少
#defaultZone: http://admin:admin@peer1:8761/eureka/,http://admin:admin@peer2:8762/eureka/
defaultZone: http://admin:admin@49.233.89.188:7010/eureka/
defaultZone: http://admin:admin@192.168.0.99:7010/eureka/
instance:
# 是否注册IP到eureka server,如不指定或设为false,那就回注册主机名到eureka server
prefer-ip-address: true

4
ct/src/main/resources/application-test.yml

@ -8,7 +8,7 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
host: api.ccsens.com
host: 127.0.0.1
password: 111111
port: 5672
username: admin
@ -28,4 +28,4 @@ swagger:
enable: true
eureka:
instance:
ip-address: 49.233.89.188
ip-address: 192.168.0.99

4
ct/src/main/resources/druid-test.yml

@ -15,7 +15,7 @@ spring:
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 5
password:
password: 37080c1f223685592316b02dad8816c019290a476e54ebb638f9aa3ba8b6bdb9
poolPreparedStatements: true
servletLogSlowSql: true
servletLoginPassword: 111111
@ -27,7 +27,7 @@ spring:
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://127.0.0.1/ct?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://49.233.89.188/ct?useUnicode=true&characterEncoding=UTF-8
username: root
validationQuery: SELECT 1 FROM DUAL
env: CCSENS_GAME

9
form/HELP.md

@ -0,0 +1,9 @@
# Getting Started
### Reference Documentation
For further reference, please consider the following sections:
* [Official Apache Maven documentation](https://maven.apache.org/guides/index.html)
* [Spring Boot Maven Plugin Reference Guide](https://docs.spring.io/spring-boot/docs/2.4.1/maven-plugin/reference/html/)
* [Create an OCI image](https://docs.spring.io/spring-boot/docs/2.4.1/maven-plugin/reference/html/#build-image)

4
game/src/main/resources/application-test.yml

@ -8,7 +8,7 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
host: api.ccsens.com
host: 192.168.0.99
password: 111111
port: 5672
username: admin
@ -28,4 +28,4 @@ swagger:
enable: true
eureka:
instance:
ip-address: 49.233.89.188
ip-address: 192.168.0.99

6
game/src/main/resources/druid-test.yml

@ -15,7 +15,7 @@ spring:
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 5
password:
password: 37080c1f223685592316b02dad8816c019290a476e54ebb638f9aa3ba8b6bdb9
poolPreparedStatements: true
servletLogSlowSql: true
servletLoginPassword: 111111
@ -27,7 +27,7 @@ spring:
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://127.0.0.1/game?useUnicode=true&characterEncoding=UTF-8
rname: root
url: jdbc:mysql://49.233.89.188/game?useUnicode=true&characterEncoding=UTF-8
username: root
validationQuery: SELECT 1 FROM DUAL
env: CCSENS_GAME

6
health/src/main/resources/application-prod.yml

@ -11,7 +11,7 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
host: api.ccsens.com
host: 127.0.0.1
password: 111111
port: 5672
username: admin
@ -31,11 +31,11 @@ swagger:
enable: false
eureka:
instance:
ip-address: 192.144.182.42
ip-address: 81.70.54.64
file:
path: /home/cloud/health/uploads/
domain: https://sd.tall.com/gateway/health/
imgDomain: https://sd.tall.com/gateway/health/uploads
qrCode: https://www.tall.wiki/gateway/health/uploads/
qrCode: https://sd.tall.com/gateway/health/uploads/
health:
school: sxdx

4
health/src/main/resources/application-test.yml

@ -11,7 +11,7 @@ spring:
datasource:
type: com.alibaba.druid.pool.DruidDataSource
rabbitmq:
host: api.ccsens.com
host: 192.168.0.99
password: 111111
port: 5672
username: admin
@ -31,7 +31,7 @@ swagger:
enable: true
eureka:
instance:
ip-address: 49.233.89.188
ip-address: 192.168.0.99
file:
path: /home/cloud/health/uploads/
domain: https://test.tall.wiki/gateway/health/

4
health/src/main/resources/application.yml

@ -1,4 +1,4 @@
spring:
profiles:
active: test
include: common, util-test
active: prod
include: common, util-prod

6
health/src/main/resources/druid-prod.yml

@ -3,7 +3,7 @@ spring:
druid:
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
driverClassName: com.mysql.cj.jdbc.Driver
dynamicUrl: jdbc:mysql://api.ccsens.com:3306/${schema}
dynamicUrl: jdbc:mysql:/127.0.0.1:3306/${schema}
filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*'
filterName: druidFilter
filterProfileEnable: true
@ -15,7 +15,7 @@ spring:
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 5
password: 7cdefb88e0b8c8a401b66a83ee0cf80387461268074d1c3dcb146ab485318633
password:
poolPreparedStatements: true
servletLogSlowSql: true
servletLoginPassword: 111111
@ -27,7 +27,7 @@ spring:
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://api.ccsens.com/health?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://127.0.0.1/health?useUnicode=true&characterEncoding=UTF-8
username: root
validationQuery: SELECT 1 FROM DUAL
env: CCSENS_HEALTH

4
health/src/main/resources/druid-test.yml

@ -15,7 +15,7 @@ spring:
maxWait: 60000
minEvictableIdleTimeMillis: 300000
minIdle: 5
password:
password: 37080c1f223685592316b02dad8816c019290a476e54ebb638f9aa3ba8b6bdb9
poolPreparedStatements: true
servletLogSlowSql: true
servletLoginPassword: 111111
@ -27,7 +27,7 @@ spring:
testOnReturn: false
testWhileIdle: true
timeBetweenEvictionRunsMillis: 60000
url: jdbc:mysql://127.0.0.1/health?useUnicode=true&characterEncoding=UTF-8
url: jdbc:mysql://49.233.89.188/health?useUnicode=true&characterEncoding=UTF-8
username: root
validationQuery: SELECT 1 FROM DUAL
env: CCSENS_GAME

6
ht/pom.xml

@ -23,7 +23,11 @@
<groupId>com.ccsens</groupId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.python</groupId>
<artifactId>jython-standalone</artifactId>
<version>2.7.0</version>
</dependency>
</dependencies>

1
ht/src/main/java/com/ccsens/ht/HtApplication.java

@ -3,7 +3,6 @@ package com.ccsens.ht;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;

50
ht/src/main/java/com/ccsens/ht/api/BaiDuController.java

@ -0,0 +1,50 @@
package com.ccsens.ht.api;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.util.RestTemplateUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import sun.misc.BASE64Decoder;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
/**
* @description:
* @author: whj
* @time: 2021/6/22 8:56
*/
@Slf4j
@Api(tags = "百度相关",value = "百度相关")
@RestController
public class BaiDuController {
@ApiOperation(value = "合成语音",notes = "合成语音")
@RequestMapping(value = "/yuyin", method = RequestMethod.GET)
public void yuyin(String text, HttpServletResponse response) throws IOException {
try {
response.setHeader("content-disposition", "attachment;fileName=yuyin.mp3");
String result = RestTemplateUtil.postUrlEncode("https://cloud.baidu.com/aidemo?type=tns&per=4119&spd=1&pit=5&vol=5&aue=6&tex=" + text, new JSONObject());
JSONObject jsonObject = JSONObject.parseObject(result);
String data = jsonObject.getString("data").replace("data:audio/x-mpeg;base64,", "");
log.info("data:{}",data);
byte[] buffer = new BASE64Decoder().decodeBuffer(data);
OutputStream out = response.getOutputStream();
out.write(buffer);
out.close();
}catch (Exception e) {
e.printStackTrace();
}
}
}

21
ht/src/main/java/com/ccsens/ht/api/DoctorController.java

@ -4,7 +4,9 @@ package com.ccsens.ht.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.ht.annotation.DoctorAudit;
import com.ccsens.ht.bean.dto.DoctorDto;
import com.ccsens.ht.bean.po.HtDoctor;
import com.ccsens.ht.bean.vo.PatientReportVo;
import com.ccsens.ht.uitl.Constant;
import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.ht.bean.vo.DoctorVo;
import com.ccsens.ht.service.IDoctorService;
@ -19,7 +21,9 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.List;
/**
* @program: ptpro
@ -32,7 +36,7 @@ import javax.validation.Valid;
@RestController
public class DoctorController {
@Autowired
@Resource
private IDoctorService doctorService;
@ -113,4 +117,19 @@ public class DoctorController {
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "查询下属医生信息",notes = "查询下属医生信息")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "查询下属医生信息", required = true)
})
@RequestMapping(value="/querySubordinate", method = RequestMethod.POST)
public JsonResponse<List<DoctorVo.Subordinate>> queryAllSubordinate(@RequestBody @ApiParam @Valid QueryDto params) {
log.info("查询下属信息请求参数:{}", params);
Long userId = params.getUserId();
List<DoctorVo.Subordinate> subordinates = doctorService.queryAllSubordinate(userId);
log.info("{}查询下属返回结果:{}", userId, subordinates);
return JsonResponse.newInstance().ok(subordinates);
}
}

6
ht/src/main/java/com/ccsens/ht/api/FileController.java

@ -27,13 +27,13 @@ import javax.validation.Valid;
@RestController
public class FileController {
@MustLogin
@ApiOperation(value = "测评试题查询",notes = "测评试题查询")
@ApiOperation(value = "文件上传",notes = "文件上传")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "测评试题查询信息", required = true)
@ApiImplicitParam(name = "json", value = "文件上传", required = true)
})
@RequestMapping(value="/saveFile", method = RequestMethod.POST)
public JsonResponse<FileVo.Save> saveFile(@RequestBody @ApiParam @Valid QueryDto<FileDto.Save> queryDto) throws Exception {
String path = Base64FileUtil.base64ToFile(queryDto.getParam().getBase64(), PropUtil.path, "/file/" + DateUtil.today() + "/");
String path = Base64FileUtil.base64ToFile(queryDto.getParam().getBase64(), PropUtil.path, "/file/" + DateUtil.today() + "/","jpg");
FileVo.Save save = new FileVo.Save();
save.setPath(PropUtil.imgDomain + path);
return JsonResponse.newInstance().ok(save);

194
ht/src/main/java/com/ccsens/ht/api/ImportController.java

@ -1,5 +1,6 @@
package com.ccsens.ht.api;
import cn.hutool.core.collection.CollectionUtil;
import com.ccsens.ht.service.IImportService;
import com.ccsens.ht.uitl.Constant;
import com.ccsens.util.JsonResponse;
@ -18,6 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.Part;
import java.io.File;
import java.util.List;
/**
@ -42,6 +44,28 @@ public class ImportController {
*@Author: wuhuijuan
*@date: 2019/10/21 10:04
*/
@ApiOperation(value = "导入医院基础信息",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importPosition", method = RequestMethod.POST)
public JsonResponse importPosition(@RequestParam(required = true) Part file) throws Exception {
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importPosition(excelFile, 0);
log.info("导入医院职位完成");
return JsonResponse.newInstance().ok();
}
/**
*@Description:
*@Param:
*@return: com.ccsens.ptpro.util.JsonResponse
*@Author: wuhuijuan
*@date: 2019/10/21 10:04
*/
@ApiOperation(value = "导入医疗项目相关数据",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
@ -54,23 +78,183 @@ public class ImportController {
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File execlFile = new File(dir+path);
File excelFile = new File(dir+path);
long time2 = System.currentTimeMillis();
log.info("解析文件耗时:{}", (time2 - time1));
importService.importPosition(execlFile, 0);
importService.importPosition(excelFile, 0);
long time3 = System.currentTimeMillis();
log.info("导入职务耗时:{}", (time3 - time2));
importService.importTitle(execlFile, 1);
importService.importTitle(excelFile, 1);
long time4 = System.currentTimeMillis();
log.info("导入职称耗时:{}", (time4 - time3));
importService.importReport(execlFile, 2);
List<String> codes = importService.importReport(excelFile, 2);
long time5 = System.currentTimeMillis();
log.info("导入报告单耗时:{}", (time5 - time4));
importService.importQuestion(execlFile, Constant.Ht.Question.ALL);
importService.importReportRecord(excelFile, 3);
log.info("导入报告单其他记录耗时:{}", System.currentTimeMillis() - time5);
if (CollectionUtil.isNotEmpty(codes)) {
for (String code: codes) {
importService.importQuestion(excelFile, code);
log.info("{}导入完成",code);
}
}
return JsonResponse.newInstance().ok();
}
/**
*@Description:
*@Param:
*@return: com.ccsens.ptpro.util.JsonResponse
*@Author: wuhuijuan
*@date: 2019/10/21 10:04
*/
@ApiOperation(value = "单独导入报告单类型",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importReportType", method = RequestMethod.POST)
public JsonResponse importReportType(@RequestParam(required = true) Part file) throws Exception{
//1.上传文件
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importReport(excelFile, 2);
return JsonResponse.newInstance().ok();
}
@ApiOperation(value = "单独导入报告单类型",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importReportTypeRecord", method = RequestMethod.POST)
public JsonResponse importReportTypeRecord(@RequestParam(required = true) Part file) throws Exception{
//1.上传文件
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importReportRecord(excelFile, 3);
return JsonResponse.newInstance().ok();
}
@ApiOperation(value = "导入指定测评类型",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file"),
@ApiImplicitParam(name = "code", value = "测评类型", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importEvaluation", method = RequestMethod.POST)
public JsonResponse importEvaluation(@RequestParam(required = true) Part file, @RequestParam(required = true) String code) throws Exception{
//1.上传文件
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importQuestion(excelFile, code);
log.info("导入{}",code);
return JsonResponse.newInstance().ok();
}
/**
*@Description:
*@Param:
*@return: com.ccsens.ptpro.util.JsonResponse
*@Author: wuhuijuan
*@date: 2020/5/14 11:21
*/
@ApiOperation(value = "导入importMoca",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importMoca", method = RequestMethod.POST)
public JsonResponse importMoca(@RequestParam(required = true) Part file) throws Exception{
//1.上传文件
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importQuestion(excelFile, Constant.Ht.Report.MOCA);
log.info("导入moca");
return JsonResponse.newInstance().ok();
}
/**
*@Description:
*@Param:
*@return: com.ccsens.ptpro.util.JsonResponse
*@Author: wuhuijuan
*@date: 2020/5/14 11:21
*/
@ApiOperation(value = "导入importMoca",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importMMSE", method = RequestMethod.POST)
public JsonResponse importMMSE(@RequestParam(required = true) Part file) throws Exception{
//1.上传文件
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importQuestion(excelFile, Constant.Ht.Report.MMSE);
log.info("导入mmse");
return JsonResponse.newInstance().ok();
}
/**
*@Description:
*@Param:
*@return: com.ccsens.ptpro.util.JsonResponse
*@Author: wuhuijuan
*@date: 2020/5/14 11:21
*/
@ApiOperation(value = "导入importRey",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importRey", method = RequestMethod.POST)
public JsonResponse importRey(@RequestParam(required = true) Part file) throws Exception{
//1.上传文件
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importQuestion(excelFile, Constant.Ht.Report.REY);
log.info("导入Rey");
return JsonResponse.newInstance().ok();
}
/**
*@Description:
*@Param:
*@return: com.ccsens.ptpro.util.JsonResponse
*@Author: wuhuijuan
*@date: 2020/5/14 11:21
*/
@ApiOperation(value = "导入importXFXPD",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx")
@ApiImplicitParams({
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file")
})
@RequestMapping(value = "/importXFXPD", method = RequestMethod.POST)
public JsonResponse importXFXPD(@RequestParam(required = true) Part file) throws Exception{
//1.上传文件
String allowedExts = "xls,xlsx";
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator;
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir);
File excelFile = new File(dir+path);
importService.importQuestion(excelFile, Constant.Ht.Report.XFXPD);
log.info("导入XFXPD");
return JsonResponse.newInstance().ok();
}
}

48
ht/src/main/java/com/ccsens/ht/api/IntelligenceController.java

@ -0,0 +1,48 @@
package com.ccsens.ht.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.ht.annotation.DoctorAudit;
import com.ccsens.ht.bean.dto.IntelligenceDto;
import com.ccsens.ht.bean.dto.QuestionDto;
import com.ccsens.ht.bean.vo.IntelligenceVo;
import com.ccsens.ht.bean.vo.QuestionVo;
import com.ccsens.ht.service.IIntelligenceService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.validation.Valid;
/**
* @description:
* @author: whj
* @time: 2022/3/11 9:56
*/
@Slf4j
@Api(tags = "智能测评",value = "智能测评,1:五边形测评")
@RestController
public class IntelligenceController {
@Resource
private IIntelligenceService intelligenceService;
@MustLogin
@DoctorAudit
@ApiOperation(value = "智能测评",notes = "智能测评")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "智能测评", required = true)
})
@RequestMapping(value="/intelligence", method = RequestMethod.POST)
public JsonResponse<IntelligenceVo.Result> intelligence(@RequestBody @ApiParam @Valid QueryDto<IntelligenceDto.Query> queryDto){
log.info("智能测评:{}", queryDto);
IntelligenceVo.Result result = intelligenceService.intelligence(queryDto.getParam(), queryDto.getUserId());
log.info("智能测评结果:{}", result);
return JsonResponse.newInstance().ok(result);
}
}

144
ht/src/main/java/com/ccsens/ht/api/PatientReportController.java

@ -1,9 +1,12 @@
package com.ccsens.ht.api;
import cn.hutool.core.util.CharsetUtil;
import com.ccsens.ht.annotation.DoctorAudit;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.ht.bean.dto.PatientReportDto;
import com.ccsens.ht.bean.po.HtDoctor;
import com.ccsens.ht.uitl.Constant;
import com.ccsens.util.bean.dto.QueryDto;
import com.ccsens.ht.bean.vo.PatientReportVo;
import com.ccsens.ht.service.IPatientReportService;
@ -12,14 +15,15 @@ import com.ccsens.util.JsonResponse;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.List;
/**
* @program: ptpro
@ -32,7 +36,7 @@ import java.io.IOException;
@RestController
public class PatientReportController {
@Autowired
@Resource
private IPatientReportService patientReportService;
@MustLogin
@ -117,10 +121,10 @@ public class PatientReportController {
@ApiImplicitParam(name = "json", value = "查询报告单详情", required = true)
})
@RequestMapping(value="/queryReportDetail", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.ReprotDetail> queryReportDetail(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){
public JsonResponse<PatientReportVo.ReportDetail> queryReportDetail(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){
//查询报告单信息
log.info("查询报告单详情:{}", param);
PatientReportVo.ReprotDetail detail = patientReportService.queryReportDetail(param.getParam(), param.getUserId());
PatientReportVo.ReportDetail detail = patientReportService.queryReportDetail(param.getParam(), param.getUserId());
log.info("查询报告单详情结果:{}", detail);
return JsonResponse.newInstance().ok(detail);
}
@ -139,20 +143,10 @@ public class PatientReportController {
return JsonResponse.newInstance().ok(authority);
}
@ApiOperation(value = "导出报告单",notes = "导出报告单")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "导出报告单", required = true)
})
@RequestMapping(value="/exportReport", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.Export> exportReport(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){
//查询报告单信息
log.info("查询报告单详情:{}", param);
String path = patientReportService.exportReport(param.getParam(), param.getUserId());
log.info("文件路径:{}", path);
PatientReportVo.Export export = new PatientReportVo.Export();
export.setPath(path);
return JsonResponse.newInstance().ok(export);
}
@ApiOperation(value = "分享报告单",notes = "分享报告单")
@ApiImplicitParams({
@ -162,11 +156,115 @@ public class PatientReportController {
public JsonResponse<PatientReportVo.Export> shareReport(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param) throws IOException {
//查询报告单信息
log.info("查询报告单详情:{}", param);
String path = patientReportService.generateQRCode(param.getParam(), param.getUserId());
String path = patientReportService.generateQrCode(param.getParam(), param.getUserId());
log.info("文件路径:{}", path);
PatientReportVo.Export export = new PatientReportVo.Export();
export.setPath(path);
return JsonResponse.newInstance().ok(export);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "查询下属医生的报告单列表",notes = "根据医生ID查询报告单列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "查询下属医生的报告单列表", required = true)
})
@RequestMapping(value="/querySubordinateReports", method = RequestMethod.POST)
public JsonResponse<PageInfo<PatientReportVo.ReportName>> querySubordinateReports(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.Doctor> param){
//编辑报告单信息
log.info("查询某个医生的报告单列表:{}", param);
HtDoctor doctor = (HtDoctor) param.getOtherMsg().get(Constant.Ht.DOCTOR_PARAM);
PageInfo<PatientReportVo.ReportName> reportNamePageInfo = patientReportService.queryDoctorReports(param.getParam(), doctor, param.getUserId());
log.info("查询某个医生的报告单结果:{}", reportNamePageInfo);
return JsonResponse.newInstance().ok(reportNamePageInfo);
}
@MustLogin
@ApiOperation(value = "管理员查询报告单列表",notes = "管理员查询报告单列表")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "管理员查询报告单列表", required = true)
})
@RequestMapping(value="/queryAllReports", method = RequestMethod.POST)
public JsonResponse<PageInfo<PatientReportVo.ReportName>> queryAllReports(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.AdminQueryReport> param){
//编辑报告单信息
log.info("管理员查询报告单列表请求参数:{}", param);
HtDoctor doctor = (HtDoctor) param.getOtherMsg().get(Constant.Ht.DOCTOR_PARAM);
PageInfo<PatientReportVo.ReportName> reportNamePageInfo = patientReportService.queryAllReports(param.getParam(), param.getUserId());
log.info("管理员查询报告单列表结果:{}", reportNamePageInfo);
return JsonResponse.newInstance().ok(reportNamePageInfo);
}
@MustLogin
@ApiOperation(value = "根据临床诊断统计",notes = "根据临床诊断统计")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "根据临床诊断统计", required = true)
})
@RequestMapping(value="/countByClinicalDiagnosis", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.ClinicalDiagnosis> countByClinicalDiagnosis(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.ClinicalDiagnosis> param){
//编辑报告单信息
log.info("根据临床诊断统计请求参数:{}", param);
List<PatientReportVo.ClinicalDiagnosis> list = patientReportService.countByClinicalDiagnosis(param.getParam(), param.getUserId());
log.info("根据临床诊断统计结果:{}", list);
return JsonResponse.newInstance().ok(list);
}
@MustLogin
@ApiOperation(value = "根据年龄+性别统计",notes = "根据年龄+性别统计")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "根据年龄+性别统计", required = true)
})
@RequestMapping(value="/countBySexAndAge", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.AgeAndSexGroup> countBySexAndAge(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.AgeAndSex> param){
log.info("根据临床诊断统计请求参数:{}", param);
List<PatientReportVo.AgeAndSexGroup> reportNamePageInfo = patientReportService.countBySexAndAge(param.getParam(), param.getUserId());
log.info("根据临床诊断统计结果:{}", reportNamePageInfo);
return JsonResponse.newInstance().ok(reportNamePageInfo);
}
@MustLogin
@ApiOperation(value = "根据日期统计",notes = "根据日期统计")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "根据日期统计", required = true)
})
@RequestMapping(value="/countByDay", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.Day> countByDay(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.Day> param){
log.info("根据临床诊断统计请求参数:{}", param);
List<PatientReportVo.Day> reportNamePageInfo = patientReportService.countByDay(param.getParam(), param.getUserId());
log.info("根据临床诊断统计结果:{}", reportNamePageInfo);
return JsonResponse.newInstance().ok(reportNamePageInfo);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "查询报告单详细答题信息",notes = "根据报告单id和测评类型,查看报告单的详细信息")
@ApiImplicitParams({
})
@RequestMapping(value="/queryReportAnswer", method = RequestMethod.POST)
public JsonResponse<List<PatientReportVo.ReportDetailAnswer>> queryReportAnswer(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryReportAnswer> param){
log.info("查询报告单详细答题信息:{}", param);
List<PatientReportVo.ReportDetailAnswer> reportDetailAnswers = patientReportService.queryReportAnswer(param.getParam(), param.getUserId());
log.info("查询报告单详细答题信息完成");
return JsonResponse.newInstance().ok(reportDetailAnswers);
}
@ApiOperation(value = "导出指定题型的分数和答案",notes = "导出指定题型的分数和答案")
@ApiImplicitParams({
})
@RequestMapping(value="/exportAnswer", method = RequestMethod.GET)
public void exportAnswer(@ApiParam PatientReportDto.Answer answer, HttpServletResponse response) throws Exception {
//查询报告单信息
log.info("导出指定题型的分数和答案:{}", answer);
Workbook workbook = patientReportService.exportAnswer(answer);
log.info("导出指定题型的分数和答案结束");
String fileName = "答案记录.xlsx";
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8));
workbook.write(response.getOutputStream());
}
}

142
ht/src/main/java/com/ccsens/ht/api/PatientReportExportController.java

@ -0,0 +1,142 @@
package com.ccsens.ht.api;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.CharsetUtil;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.ht.annotation.DoctorAudit;
import com.ccsens.ht.bean.dto.PatientReportDto;
import com.ccsens.ht.bean.vo.PatientReportVo;
import com.ccsens.ht.service.IExportService;
import com.ccsens.ht.service.IPatientReportService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.PropUtil;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.net.URLEncoder;
import java.util.List;
/**
* @description:
* @author: whj
* @time: 2021/4/21 19:01
*/
@Slf4j
@Api(tags = "报告单导出",value = "报告单导出")
@RestController
public class PatientReportExportController {
@Resource
private IPatientReportService patientReportService;
@Resource
private IExportService exportService;
@MustLogin
@DoctorAudit
@ApiOperation(value = "导出报告单",notes = "导出报告单")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "导出报告单", required = true)
})
@RequestMapping(value="/exportReport", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.Export> exportReport(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){
//查询报告单信息
log.info("查询报告单详情:{}", param);
String path = patientReportService.exportReport(param.getParam(), param.getUserId());
log.info("文件路径:{}", path);
PatientReportVo.Export export = new PatientReportVo.Export();
export.setPath(path);
return JsonResponse.newInstance().ok(export);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "根据类型导出报告单",notes = "导出报告单")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "导出报告单", required = true)
})
@RequestMapping(value="/exportReportByCode", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.Export> exportReportByCode(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.QueryDetail> param){
//查询报告单信息
log.info("根据类型导出报告单:{}", param);
String path = exportService.exportReport(param.getParam(), param.getUserId());
log.info("文件路径:{}", path);
PatientReportVo.Export export = new PatientReportVo.Export();
export.setPath(path);
return JsonResponse.newInstance().ok(export);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "导出指定类型的量表",notes = "导出指定量表")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "导出指定量表", required = true)
})
@RequestMapping(value="/exportByCode", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.Export> exportByCode(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.ExportCode> param) {
//查询报告单信息
log.info("导出指定类型的量表:{}", param);
String path = exportService.exportByCode(param.getParam(), param.getUserId());
log.info("文件路径:{}", path);
PatientReportVo.Export export = new PatientReportVo.Export();
export.setPath(path);
return JsonResponse.newInstance().ok(export);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "导出指定量表",notes = "导出指定量表")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "导出指定量表", required = true)
})
@RequestMapping(value="/export", method = RequestMethod.POST)
public JsonResponse<PatientReportVo.Export> export(@RequestBody @ApiParam @Valid QueryDto<PatientReportDto.ExportCode> param) {
//查询报告单信息
log.info("导出指定报告单:{}", param);
String path = patientReportService.export(param.getParam(), param.getUserId());
log.info("文件路径:{}", path);
PatientReportVo.Export export = new PatientReportVo.Export();
export.setPath(path);
return JsonResponse.newInstance().ok(export);
}
@ApiOperation(value = "导出指定id的报告单分析",notes = "导出指定id的报告单分析")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "导出指定id的报告单分析", required = true)
})
@RequestMapping(value="/exportAnalyse", method = RequestMethod.GET)
public void exportAnalyse(@RequestParam(value = "ids")@ApiParam @Valid List<Long> ids, HttpServletResponse response) throws IOException {
//查询报告单信息
log.info("导出指定报告单分析:{}", ids);
Workbook workbook = patientReportService.exportAnalyse(ids);
log.info("导出报告单分析结束");
String fileName = "报告单信息.xlsx";
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8));
workbook.write(response.getOutputStream());
}
@ApiOperation(value = "导出有指定题目分数的报告单分析",notes = "导出有指定题目分数的报告单分析")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "指定题目", required = true)
})
@RequestMapping(value="/exportAnalyseAll", method = RequestMethod.GET)
public void exportAnalyseAll(@ApiParam @Valid PatientReportDto.Answer answer, HttpServletResponse response) throws Exception {
//查询报告单信息
log.info("导出有指定题目分数的报告单分析:{}", answer);
// Workbook workbook = patientReportService.exportAnalyseAll(answer);
// log.info("导出有指定题目分数的报告单分析");
// String fileName = "报告单信息.xlsx";
// response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8));
// workbook.write(response.getOutputStream());
List<String> stringList = patientReportService.exportAnalyseAll(answer);
}
}

64
ht/src/main/java/com/ccsens/ht/api/PatientReportSearchController.java

@ -0,0 +1,64 @@
package com.ccsens.ht.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.ht.annotation.DoctorAudit;
import com.ccsens.ht.bean.dto.PatientReportDto;
import com.ccsens.ht.bean.dto.PatientReportSearchDto;
import com.ccsens.ht.bean.vo.PatientReportSearchVo;
import com.ccsens.ht.bean.vo.PatientReportVo;
import com.ccsens.ht.service.IPatientReportService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import com.github.pagehelper.PageInfo;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.validation.Valid;
import java.util.List;
/**
* @description:
* @author: whj
* @time: 2021/3/10 15:03
*/
@Slf4j
@Api(tags = "报告单搜索",value = "报告单搜索条件,搜索")
@RestController
@RequestMapping("/patientReport")
public class PatientReportSearchController {
@Resource
private IPatientReportService patientReportService;
@MustLogin
@DoctorAudit
@ApiOperation(value = "查询搜索条件",notes = "whj 查询搜索条件")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "查询搜索条件", required = true)
})
@RequestMapping(value="/searchParam", method = RequestMethod.POST)
public JsonResponse<PatientReportSearchVo.SearchParam> searchParam(@RequestBody @ApiParam @Valid QueryDto<PatientReportSearchDto.SearchParam> dto){
log.info("查询搜索条件:{}", dto);
List<PatientReportSearchVo.SearchParam> params = patientReportService.searchParam(dto.getParam());
log.info("查询搜索条件已完成");
return JsonResponse.newInstance().ok(params);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "根据条件搜索报告单",notes = "whj 搜索报告单")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "查询搜索条件", required = true)
})
@RequestMapping(value="/search", method = RequestMethod.POST)
public JsonResponse<PatientReportSearchVo.Search> search(@RequestBody @ApiParam @Valid QueryDto<PatientReportSearchDto.SearchList> dto){
log.info("搜索报告单:{}", dto);
PageInfo<PatientReportSearchVo.Search> params = patientReportService.search(dto.getParam());
log.info("搜索报告单已完成");
return JsonResponse.newInstance().ok(params);
}
}

102
ht/src/main/java/com/ccsens/ht/api/QuestionController.java

@ -1,6 +1,7 @@
package com.ccsens.ht.api;
import cn.hutool.core.util.CharsetUtil;
import com.ccsens.ht.annotation.DoctorAudit;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.util.bean.dto.QueryDto;
@ -9,17 +10,20 @@ import com.ccsens.ht.bean.vo.QuestionVo;
import com.ccsens.ht.service.IQuestionService;
import com.ccsens.util.CodeEnum;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.NotSupportedFileTypeException;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletResponse;
import javax.validation.Valid;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.List;
/**
* @description:
@ -43,12 +47,26 @@ public class QuestionController {
@RequestMapping(value="/queryQuestion", method = RequestMethod.POST)
public JsonResponse<QuestionVo.Query> query(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.Query> queryDto){
log.info("查询试题:{}", queryDto);
QuestionVo.Query query = questionService.queryQuestion(queryDto.getParam(), queryDto.getUserId());
log.info("查询试题结果:{}", query);
return JsonResponse.newInstance().ok(query);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "通过报告单和试题id查询试题的答案",notes = "测评试题查询")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "测评试题查询信息", required = true)
})
@RequestMapping(value="/optionJson", method = RequestMethod.POST)
public JsonResponse<List<QuestionVo.OptionJson>> queryOptionJson(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.QueryPatientCanvas> queryDto){
log.info("查询试题:{}", queryDto);
List<QuestionVo.OptionJson> optionJsonList = questionService.queryOptionJson(queryDto.getParam(), queryDto.getUserId());
log.info("查询试题结果:{}", optionJsonList);
return JsonResponse.newInstance().ok(optionJsonList);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "保存试题得分",notes = "保存试题得分")
@ -56,12 +74,90 @@ public class QuestionController {
@ApiImplicitParam(name = "json", value = "试题得分情况", required = true)
})
@RequestMapping(value="/saveScore", method = RequestMethod.POST)
public JsonResponse saveScore(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.Score> queryDto) throws IOException, NotSupportedFileTypeException {
public JsonResponse saveScore(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.Score> queryDto) {
log.info("保存试题得分:{}", queryDto);
CodeEnum codeEnum = questionService.saveScore(queryDto.getParam(), queryDto.getUserId());
log.info("保存试题得分结果:{}", codeEnum);
return JsonResponse.newInstance().ok(codeEnum);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "保存用户画图信息",notes = "zy:保存画板信息画图轨迹等")
@ApiImplicitParams({
})
@RequestMapping(value="/saveCanvas", method = RequestMethod.POST)
public JsonResponse<List<QuestionVo.PatientCanvas>> saveCanvas(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.SavePatientCanvas> queryDto) {
log.info("保存用户画图信息");
List<QuestionVo.PatientCanvas> patientCanvas = questionService.saveCanvas(queryDto.getParam(), queryDto.getUserId());
log.info("保存用户画图信息成功后返回");
return JsonResponse.newInstance().ok(patientCanvas);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "保存题目的其他记录",notes = "whj:保存题目的其他记录")
@ApiImplicitParams({
})
@RequestMapping(value="/saveRecord", method = RequestMethod.POST)
public JsonResponse saveRecord(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.Record> queryDto) {
log.info("保存题目的其他记录:{}", queryDto);
questionService.saveRecord(queryDto.getParam(), queryDto.getUserId());
log.info("保存题目的其他记录成功");
return JsonResponse.newInstance().ok();
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "查看用户画图信息",notes = "zy:查看画板信息画图轨迹等")
@ApiImplicitParams({
})
@RequestMapping(value="/queryCanvas", method = RequestMethod.POST)
public JsonResponse<List<QuestionVo.PatientCanvas>> queryCanvas(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.QueryPatientCanvas> queryDto) {
log.info("查看用户画图信息");
List<QuestionVo.PatientCanvas> patientCanvas = questionService.getCanvas(queryDto.getParam(), queryDto.getUserId());
log.info("查看用户画图信息成功");
return JsonResponse.newInstance().ok(patientCanvas);
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "删除画图轨迹",notes = "zy:删除画图的轨迹,可以一次删除多条")
@ApiImplicitParams({
})
@RequestMapping(value="/delCanvas", method = RequestMethod.POST)
public JsonResponse delCanvas(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.DelPatientCanvas> queryDto) {
log.info("删除画图轨迹");
questionService.delCanvas(queryDto.getParam(), queryDto.getUserId());
log.info("删除画图轨迹成功");
return JsonResponse.newInstance().ok();
}
@MustLogin
@DoctorAudit
@ApiOperation(value = "恢复画图轨迹",notes = "恢复画图的轨迹")
@ApiImplicitParams({
})
@RequestMapping(value="/backCanvas", method = RequestMethod.POST)
public JsonResponse backCanvas(@RequestBody @ApiParam @Valid QueryDto<QuestionDto.BackPatientCanvas> queryDto) {
log.info("恢复画图轨迹");
questionService.backCanvas(queryDto.getParam(), queryDto.getUserId());
log.info("恢复画图轨迹成功");
return JsonResponse.newInstance().ok();
}
@ApiOperation(value = "导出图片的题目画图每笔的长度等",notes = "导出图片的题目画图每笔的长度等")
@ApiImplicitParams({
@ApiImplicitParam(name = "json", value = "指定题目", required = true)
})
@RequestMapping(value="/exportLine", method = RequestMethod.GET)
public void exportLine(@ApiParam @Valid QuestionDto.ExportLine answer, HttpServletResponse response) throws IOException {
//查询报告单信息
log.info("导出图片的题目画图每笔的长度等:{}", answer);
Workbook workbook = questionService.exportLine(answer);
log.info("导出图片的题目画图每笔的长度结束");
String fileName = "笔画长度.xlsx";
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8));
workbook.write(response.getOutputStream());
}
}

129
ht/src/main/java/com/ccsens/ht/api/StatisticsController.java

@ -0,0 +1,129 @@
package com.ccsens.ht.api;
import com.ccsens.ht.bean.dto.StatisticsDto;
import com.ccsens.ht.bean.vo.PositionVo;
import com.ccsens.ht.bean.vo.StatisticsVo;
import com.ccsens.ht.service.IStatisticsService;
import com.ccsens.util.JsonResponse;
import io.swagger.annotations.*;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
/**
* @author
*/
@Slf4j
@Api(tags = "大屏查询统计数据",value = "")
@RestController
@RequestMapping("/statistics")
public class StatisticsController {
@Resource
private IStatisticsService statisticsService;
@ApiOperation(value = "查询医院",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/hospital", method = RequestMethod.GET)
public JsonResponse<List<PositionVo.Position>> queryHospital(){
log.info("查询医院");
List<PositionVo.Position> positionList = statisticsService.queryHospital();
log.info("返回医院信息:{}",positionList);
return JsonResponse.newInstance().ok(positionList);
}
@ApiOperation(value = "查询测评类型和分项",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/queryCode", method = RequestMethod.POST)
public JsonResponse<List<StatisticsVo.ReportCode>> queryReportCode(@RequestBody @ApiParam @Validated StatisticsDto.HospitalId hospitalId){
log.info("查询测评类型和分项");
List<StatisticsVo.ReportCode> reportCodeList = statisticsService.queryReportCode(hospitalId.getId());
log.info("返回查询测评类型和分项:{}",reportCodeList);
return JsonResponse.newInstance().ok(reportCodeList);
}
@ApiOperation(value = "测评人数实时统计",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/realtime", method = RequestMethod.POST)
public JsonResponse<StatisticsVo.Realtime> realtime(@RequestBody @ApiParam @Validated StatisticsDto.HospitalId hospitalId) throws Exception {
log.info("测评人数实时统计:{}", hospitalId);
StatisticsVo.Realtime realtime = statisticsService.realtime(hospitalId.getId());
log.info("测评人数实时统计完成");
return JsonResponse.newInstance().ok(realtime);
}
@ApiOperation(value = "查询性别年龄分布",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/age", method = RequestMethod.POST)
public JsonResponse<StatisticsVo.AgeAndSex> ageAndSex(@RequestBody @ApiParam @Validated StatisticsDto.HospitalId hospitalId){
log.info("查询性别年龄分布:{}", hospitalId);
StatisticsVo.AgeAndSex ageAndSex = statisticsService.ageAndSex(hospitalId.getId());
log.info("查询性别年龄分布完成");
return JsonResponse.newInstance().ok(ageAndSex);
}
@ApiOperation(value = "区域分布",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/area", method = RequestMethod.POST)
public JsonResponse<StatisticsVo.AreaDistribution> areaDistribution(@RequestBody @ApiParam @Validated StatisticsDto.HospitalId hospitalId){
log.info("查询区域分布:{}", hospitalId);
StatisticsVo.AreaDistribution areaDistribution = statisticsService.areaDistribution(hospitalId.getId());
log.info("查询区域分布完成");
return JsonResponse.newInstance().ok(areaDistribution);
}
@ApiOperation(value = "测评结果总评分布",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/appraise", method = RequestMethod.POST)
public JsonResponse<List<StatisticsVo.Chart>> appraise(@RequestBody @ApiParam @Validated StatisticsDto.HospitalId hospitalId){
log.info("查询测评结果总评分布:{}", hospitalId);
List<StatisticsVo.Chart> chartList = statisticsService.appraise(hospitalId.getId());
log.info("查询测评结果总评分布完成");
return JsonResponse.newInstance().ok(chartList);
}
@ApiOperation(value = "报告单总分分布 ",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/report", method = RequestMethod.POST)
public JsonResponse<StatisticsVo.ReportDistribution> reportScore(@RequestBody @ApiParam @Validated StatisticsDto.Report report){
log.info("查询报告单总分分布:{}", report);
StatisticsVo.ReportDistribution reportDistribution = statisticsService.reportScore(report);
log.info("查询报告单总分分布完成");
return JsonResponse.newInstance().ok(reportDistribution);
}
@ApiOperation(value = "报告单分项分数分布 ",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/subentry", method = RequestMethod.POST)
public JsonResponse<StatisticsVo.ReportDistribution> subentryScore(@RequestBody @ApiParam @Validated StatisticsDto.Report report){
log.info("查询报告单分项分数分布:{}", report);
StatisticsVo.ReportDistribution reportDistribution = statisticsService.subentryScore(report);
log.info("查询报告单分项分数分布完成");
return JsonResponse.newInstance().ok(reportDistribution);
}
@ApiOperation(value = "报告单分数散点图",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="/scatter", method = RequestMethod.POST)
public JsonResponse<StatisticsVo.ReportScatterDiagram> scatterDiagram(@RequestBody @ApiParam @Validated StatisticsDto.Report report){
log.info("查询报告单分数散点图:{}", report);
StatisticsVo.ReportScatterDiagram reportScatterDiagram = statisticsService.scatterDiagram(report);
log.info("查询报告单分数散点图完成");
return JsonResponse.newInstance().ok(reportScatterDiagram);
}
}

6
ht/src/main/java/com/ccsens/ht/aspect/DoctorAuditAspect.java

@ -17,7 +17,9 @@ import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;
import javax.annotation.Resource;
import java.util.List;
import java.util.Map;
/**
* 判断医生是否审核通过
@ -30,7 +32,7 @@ import java.util.List;
@Component
public class DoctorAuditAspect {
@Autowired
@Resource
private HtDoctorMapper htDoctorMapper;
@Pointcut("@annotation(com.ccsens.ht.annotation.DoctorAudit)")
@ -49,6 +51,8 @@ public class DoctorAuditAspect {
return JsonResponse.newInstance().ok(CodeEnum.AUDIT_NOT_PASS);
}
Map<String, Object> map = dto.getOtherMsg();
map.put(Constant.Ht.DOCTOR_PARAM, doctors.get(0));
Object result =pjp.proceed();
return result;

24
ht/src/main/java/com/ccsens/ht/bean/dto/IntelligenceDto.java

@ -0,0 +1,24 @@
package com.ccsens.ht.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description:
* @author: whj
* @time: 2022/3/11 10:32
*/
public class IntelligenceDto {
@Data
@ApiModel("智能测评-请求")
public static class Query {
@ApiModelProperty("报告单ID")
private Long patientReportId;
@ApiModelProperty("题目ID")
private Long questionId;
@ApiModelProperty("图片路径")
private String url;
}
}

158
ht/src/main/java/com/ccsens/ht/bean/dto/PatientReportDto.java

@ -6,10 +6,8 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.*;
import java.util.List;
/**
* @program: ptpro
@ -55,6 +53,10 @@ public class PatientReportDto {
@ApiModelProperty("病人报告单ID")
@NotNull(message = "报告单ID不允许为空")
private Long id;
@ApiModelProperty("报告单类型")
private String report = "REPORT1.0";
@ApiModelProperty("受试者合作评分")
private Integer workingScore;
public HtPatientReport copy(){
HtPatientReport report = new HtPatientReport();
@ -84,6 +86,35 @@ public class PatientReportDto {
@ApiModelProperty("病人报告单ID")
@NotNull(message = "病人报告单ID不能为空")
private Long id;
@ApiModelProperty("是否需要rey 默认为0 0全部查询导出 1不导出rey 2只导出rey")
private int rey = 0;
@ApiModelProperty("报告单类型")
private String report = "REPORT1.0";
}
@ApiModel("导出指定某一种报告单")
@Data
public static class ExportCode{
@ApiModelProperty("病人报告单ID")
@NotNull(message = "病人报告单ID不能为空")
private Long id;
@ApiModelProperty("报告单类型")
private String code;
}
@ApiModel("导出报告单分析-请求")
@Data
public static class ExportSpecial{
@ApiModelProperty("报告单ID")
private Long id;
// public ExportSpecial() {
// }
//
// public ExportSpecial(Long id) {
// this.id = id;
// }
}
/**医生对报告单权限*/
@ -94,4 +125,123 @@ public class PatientReportDto {
@NotNull(message = "病人报告单ID不能为空")
private Long id;
}
@ApiModel("医生ID")
@Data
public static class Doctor{
@ApiModelProperty("医生ID")
@NotNull(message = "医生ID不能为空")
private Long id;
@ApiModelProperty("第几页")
@Min(value = 1)
private int pageNum = 1;
@ApiModelProperty("每页多少条")
@Min(value = 1)
@Max(value=100)
private int pageSize = 10;
}
@ApiModel("查询报告单")
@Data
public static class AdminQueryReport {
@ApiModelProperty("病人名字")
private String patientName;
@ApiModelProperty("病人年龄-开始")
private Byte startAge;
@ApiModelProperty("病人年龄-结束")
private Byte endAge;
@ApiModelProperty("性别")
private Byte patientSex;
@ApiModelProperty("教育程度(1:文盲 2:小学 3:初中 4:高中 5:大学 6:大学以上 7:其他)")
private Byte educationalStatus;
@ApiModelProperty("受教时间-开始")
private Integer startEducationalStatusUnit;
@ApiModelProperty("受教时间-结束")
private Integer endEducationalStatusUnit;
@ApiModelProperty("临床诊断")
private String clinicalDiagnosis;
@ApiModelProperty("严重程度")
private Byte pasi;
@ApiModelProperty("开始时间")
private Long startTime;
@ApiModelProperty("结束时间")
private Long endTime;
@ApiModelProperty("分数")
private List<Score> scores;
@ApiModelProperty("第几页")
@Min(value = 1)
private int pageNum = 1;
@ApiModelProperty("每页多少条")
@Min(value = 1)
@Max(value=100)
private int pageSize = 10;
}
@ApiModel("分数")
@Data
public static class Score{
@ApiModelProperty("量表类型")
private String code;
@ApiModelProperty("开始")
private Double start;
@ApiModelProperty("结束")
private Double end;
}
@ApiModel("临床诊断统计请求")
@Data
public static class ClinicalDiagnosis{
}
@ApiModel("年龄性别统计请求")
@Data
public static class AgeAndSex{
}
@ApiModel("日期统计请求")
@Data
public static class Day {
@ApiModelProperty("开始时间")
private Long startTime;
@ApiModelProperty("结束时间")
private Long endTime;
}
@ApiModel("查询报告单答题信息")
@Data
public static class QueryReportAnswer {
@NotNull(message = "报到单id不能为空")
@ApiModelProperty("报告单id")
private Long id;
@NotBlank(message = "测评类型不能为空")
@ApiModelProperty("测评类型")
private String evaluationCode;
}
@ApiModel("查询病友画图原图")
@Data
public static class QueryQuestionImg {
@NotNull(message = "报到单id不能为空")
@ApiModelProperty("报告单id")
private Long id;
@NotNull(message = "题目id不能为空")
@ApiModelProperty("题目id")
private Long questionId;
}
@ApiModel("分数导出")
@Data
public static class Answer {
@NotBlank(message = "题目类型不能为空")
@ApiModelProperty("题目类型 MMSE")
private String questionCode;
@NotNull(message = "请指定第几题")
@ApiModelProperty("排序")
private Integer sort;
}
}

47
ht/src/main/java/com/ccsens/ht/bean/dto/PatientReportSearchDto.java

@ -0,0 +1,47 @@
package com.ccsens.ht.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.List;
/**
* @description:
* @author: whj
* @time: 2021/3/10 16:21
*/
public class PatientReportSearchDto {
@Data
@ApiModel("搜索条件-请求参数")
public static class SearchParam{
@ApiModelProperty("查询类型")
@NotEmpty(message = "请输入查询报告单类型")
private String parentCode;
}
@Data
@ApiModel("搜索报告单参数列表-请求")
public static class SearchList {
private List<Search> codes;
@ApiModelProperty("第几页")
@Min(value = 1)
private int pageNum = 1;
@ApiModelProperty("每页多少条")
@Min(value = 1)
@Max(value=100)
private int pageSize = 10;
}
@Data
@ApiModel("搜索报告单参数-请求")
public static class Search {
@NotEmpty(message="请选择查询类型")
private String code;
private Integer start;
private Integer end;
}
}

112
ht/src/main/java/com/ccsens/ht/bean/dto/QuestionDto.java

@ -5,8 +5,10 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.servlet.http.Part;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.File;
import java.math.BigDecimal;
import java.util.List;
/**
@ -41,7 +43,7 @@ public class QuestionDto {
@ApiModelProperty("选项集合")
private List<Option> options;
@ApiModelProperty("病友画图或录音")
private String path;
private List<String> paths;
}
@Data
@ApiModel("QuestionDtoOption")
@ -51,6 +53,114 @@ public class QuestionDto {
private Long id;
@ApiModelProperty("答题时间")
private Long answerTime;
@ApiModelProperty("得分")
private BigDecimal score;
}
@Data
@ApiModel("添加画图的信息")
public static class SavePatientCanvas{
@NotNull(message = "选项ID不能为空")
@ApiModelProperty("报告单id")
private Long patientReportId;
@NotNull(message = "测评试题id不能为空")
@ApiModelProperty("测评试题id")
private Long questionId;
@ApiModelProperty("打开画板时间")
private Long openCanvasTime;
@ApiModelProperty("开始画图时间")
private Long beginTime;
@ApiModelProperty("轨迹,每个字符串是一条轨迹,轨迹内格式(x,y,time;x,y,time;.....)")
private List<String> points;
@ApiModelProperty("画板大小")
private Canvas canvas;
@ApiModelProperty("笔触信息")
private CanvasLine line;
@ApiModelProperty("超出占比")
private String beyondProportion;
@ApiModelProperty("背景图片路径")
private String backgroundUrl;
@ApiModelProperty("是否需要重置画图信息(删掉以前的画图信息) 0否 1是")
private byte isFirst;
}
@Data
@ApiModel("其他记录-request")
public static class Record{
@NotNull
@ApiModelProperty("病人报告单ID")
private Long patientReportId;
@NotNull
@ApiModelProperty("其他记录答案")
private List<RecordDetail> details;
}
@Data
@ApiModel("其他记录答案-request")
public static class RecordDetail{
@ApiModelProperty("试题ID")
@NotNull(message = "试题ID不能为空")
private Long recordId;
@NotEmpty
@ApiModelProperty("答案")
private List<String> answers;
}
@Data
@ApiModel("画板信息")
public static class Canvas{
@ApiModelProperty("画板宽")
private Integer width;
@ApiModelProperty("画板高")
private Integer height;
}
@Data
@ApiModel("笔触信息")
public static class CanvasLine{
@ApiModelProperty("笔触颜色")
private String color;
@ApiModelProperty("笔触粗细")
private Integer width;
}
@Data
@ApiModel("查找画图的信息")
public static class QueryPatientCanvas{
@NotNull(message = "选项ID不能为空")
@ApiModelProperty("报告单id")
private Long patientReportId;
@NotNull(message = "测评试题id不能为空")
@ApiModelProperty("测评试题id")
private Long questionId;
@ApiModelProperty("参考长度")
private BigDecimal referenceLength;
@ApiModelProperty("参考思考时间")
private BigDecimal referenceReflectOnTime;
}
@Data
@ApiModel("删除画图笔画")
public static class DelPatientCanvas{
@ApiModelProperty("轨迹的id")
private List<Long> pointId;
}
@Data
@ApiModel("恢复画图笔画")
public static class BackPatientCanvas{
@ApiModelProperty("轨迹的id")
private Long pointId;
}
@Data
@ApiModel("导出线条长度")
public static class ExportLine {
@NotNull(message = "选项ID不能为空")
@ApiModelProperty("报告单id")
private Long patientReportId;
@NotNull(message = "测评试题id不能为空")
@ApiModelProperty("测评试题id")
private Long questionId;
}
}

27
ht/src/main/java/com/ccsens/ht/bean/dto/StatisticsDto.java

@ -0,0 +1,27 @@
package com.ccsens.ht.bean.dto;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class StatisticsDto {
@Data
@ApiModel("请求-医院id")
public static class HospitalId{
@ApiModelProperty("医院id")
private Long id;
}
@Data
@ApiModel("请求-报告单类型信息")
public static class Report{
@ApiModelProperty("医院id")
private Long hospitalId;
@ApiModelProperty("报告单类型code")
private String reportCode;
@ApiModelProperty("报告单分项code")
private String subentryCode;
}
}

40
ht/src/main/java/com/ccsens/ht/bean/dto/message/MessageDto.java

@ -0,0 +1,40 @@
package com.ccsens.ht.bean.dto.message;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.lang.reflect.ParameterizedType;
/**
* @description:
* @author: whj
* @time: 2021/6/15 9:17
*/
@Data
public class MessageDto<T> {
private String type;
private String event;
private T data;
public void setData(T data) {
this.data = data;
if (data != null) {
this.type = data.getClass().getSimpleName();
}
}
@ApiModel("通知跳转到指定题目")
@Data
public static final class QuestionInform{
@ApiModelProperty("taskId")
private Long taskId;
@ApiModelProperty("提醒文案")
private String content;
@ApiModelProperty("量表")
private String code;
@ApiModelProperty("序号")
private byte sort;
}
}

386
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientAcp.java

@ -1,183 +1,205 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtPatientAcp implements Serializable {
private Long id;
private Long patientId;
private String ct;
private String mri;
private String hcy;
private String vb12;
private String folicAcid;
private String tt3;
private String tt4;
private String tsh;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private Long recorder;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientId() {
return patientId;
}
public void setPatientId(Long patientId) {
this.patientId = patientId;
}
public String getCt() {
return ct;
}
public void setCt(String ct) {
this.ct = ct == null ? null : ct.trim();
}
public String getMri() {
return mri;
}
public void setMri(String mri) {
this.mri = mri == null ? null : mri.trim();
}
public String getHcy() {
return hcy;
}
public void setHcy(String hcy) {
this.hcy = hcy == null ? null : hcy.trim();
}
public String getVb12() {
return vb12;
}
public void setVb12(String vb12) {
this.vb12 = vb12 == null ? null : vb12.trim();
}
public String getFolicAcid() {
return folicAcid;
}
public void setFolicAcid(String folicAcid) {
this.folicAcid = folicAcid == null ? null : folicAcid.trim();
}
public String getTt3() {
return tt3;
}
public void setTt3(String tt3) {
this.tt3 = tt3 == null ? null : tt3.trim();
}
public String getTt4() {
return tt4;
}
public void setTt4(String tt4) {
this.tt4 = tt4 == null ? null : tt4.trim();
}
public String getTsh() {
return tsh;
}
public void setTsh(String tsh) {
this.tsh = tsh == null ? null : tsh.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public Long getRecorder() {
return recorder;
}
public void setRecorder(Long recorder) {
this.recorder = recorder;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", patientId=").append(patientId);
sb.append(", ct=").append(ct);
sb.append(", mri=").append(mri);
sb.append(", hcy=").append(hcy);
sb.append(", vb12=").append(vb12);
sb.append(", folicAcid=").append(folicAcid);
sb.append(", tt3=").append(tt3);
sb.append(", tt4=").append(tt4);
sb.append(", tsh=").append(tsh);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append(", recorder=").append(recorder);
sb.append("]");
return sb.toString();
}
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtPatientAcp implements Serializable {
private Long id;
private Long patientId;
private String ct;
private String mri;
private String hcy;
private String vb12;
private String folicAcid;
private String tt3;
private String tt4;
private String tsh;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private Long recorder;
private String ta1;
private String tpt;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientId() {
return patientId;
}
public void setPatientId(Long patientId) {
this.patientId = patientId;
}
public String getCt() {
return ct;
}
public void setCt(String ct) {
this.ct = ct == null ? null : ct.trim();
}
public String getMri() {
return mri;
}
public void setMri(String mri) {
this.mri = mri == null ? null : mri.trim();
}
public String getHcy() {
return hcy;
}
public void setHcy(String hcy) {
this.hcy = hcy == null ? null : hcy.trim();
}
public String getVb12() {
return vb12;
}
public void setVb12(String vb12) {
this.vb12 = vb12 == null ? null : vb12.trim();
}
public String getFolicAcid() {
return folicAcid;
}
public void setFolicAcid(String folicAcid) {
this.folicAcid = folicAcid == null ? null : folicAcid.trim();
}
public String getTt3() {
return tt3;
}
public void setTt3(String tt3) {
this.tt3 = tt3 == null ? null : tt3.trim();
}
public String getTt4() {
return tt4;
}
public void setTt4(String tt4) {
this.tt4 = tt4 == null ? null : tt4.trim();
}
public String getTsh() {
return tsh;
}
public void setTsh(String tsh) {
this.tsh = tsh == null ? null : tsh.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public Long getRecorder() {
return recorder;
}
public void setRecorder(Long recorder) {
this.recorder = recorder;
}
public String getTa1() {
return ta1;
}
public void setTa1(String ta1) {
this.ta1 = ta1 == null ? null : ta1.trim();
}
public String getTpt() {
return tpt;
}
public void setTpt(String tpt) {
this.tpt = tpt == null ? null : tpt.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(", patientId=").append(patientId);
sb.append(", ct=").append(ct);
sb.append(", mri=").append(mri);
sb.append(", hcy=").append(hcy);
sb.append(", vb12=").append(vb12);
sb.append(", folicAcid=").append(folicAcid);
sb.append(", tt3=").append(tt3);
sb.append(", tt4=").append(tt4);
sb.append(", tsh=").append(tsh);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append(", recorder=").append(recorder);
sb.append(", ta1=").append(ta1);
sb.append(", tpt=").append(tpt);
sb.append("]");
return sb.toString();
}
}

2520
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientAcpExample.java

File diff suppressed because it is too large

172
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvas.java

@ -0,0 +1,172 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtPatientCanvas implements Serializable {
private Long id;
private Long patientReportId;
private Long questionId;
private Long beginTime;
private Integer canvasWidth;
private Integer canvasHeight;
private String lineColor;
private Integer lineWidth;
private Date createTime;
private Date updateTime;
private Byte isDel;
private Long openCanvasTime;
private String beyondProportion;
private String backgroundUrl;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientReportId() {
return patientReportId;
}
public void setPatientReportId(Long patientReportId) {
this.patientReportId = patientReportId;
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public Long getBeginTime() {
return beginTime;
}
public void setBeginTime(Long beginTime) {
this.beginTime = beginTime;
}
public Integer getCanvasWidth() {
return canvasWidth;
}
public void setCanvasWidth(Integer canvasWidth) {
this.canvasWidth = canvasWidth;
}
public Integer getCanvasHeight() {
return canvasHeight;
}
public void setCanvasHeight(Integer canvasHeight) {
this.canvasHeight = canvasHeight;
}
public String getLineColor() {
return lineColor;
}
public void setLineColor(String lineColor) {
this.lineColor = lineColor == null ? null : lineColor.trim();
}
public Integer getLineWidth() {
return lineWidth;
}
public void setLineWidth(Integer lineWidth) {
this.lineWidth = lineWidth;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public Long getOpenCanvasTime() {
return openCanvasTime;
}
public void setOpenCanvasTime(Long openCanvasTime) {
this.openCanvasTime = openCanvasTime;
}
public String getBeyondProportion() {
return beyondProportion;
}
public void setBeyondProportion(String beyondProportion) {
this.beyondProportion = beyondProportion == null ? null : beyondProportion.trim();
}
public String getBackgroundUrl() {
return backgroundUrl;
}
public void setBackgroundUrl(String backgroundUrl) {
this.backgroundUrl = backgroundUrl == null ? null : backgroundUrl.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(", patientReportId=").append(patientReportId);
sb.append(", questionId=").append(questionId);
sb.append(", beginTime=").append(beginTime);
sb.append(", canvasWidth=").append(canvasWidth);
sb.append(", canvasHeight=").append(canvasHeight);
sb.append(", lineColor=").append(lineColor);
sb.append(", lineWidth=").append(lineWidth);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append(", openCanvasTime=").append(openCanvasTime);
sb.append(", beyondProportion=").append(beyondProportion);
sb.append(", backgroundUrl=").append(backgroundUrl);
sb.append("]");
return sb.toString();
}
}

1071
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvasExample.java

File diff suppressed because it is too large

84
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvasLine.java

@ -0,0 +1,84 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtPatientCanvasLine implements Serializable {
private Long id;
private Long patientCanvasId;
private Date createTime;
private Date updateTime;
private Byte isDel;
private String points;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientCanvasId() {
return patientCanvasId;
}
public void setPatientCanvasId(Long patientCanvasId) {
this.patientCanvasId = patientCanvasId;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public String getPoints() {
return points;
}
public void setPoints(String points) {
this.points = points == null ? null : points.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(", patientCanvasId=").append(patientCanvasId);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append(", points=").append(points);
sb.append("]");
return sb.toString();
}
}

501
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientCanvasLineExample.java

@ -0,0 +1,501 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtPatientCanvasLineExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtPatientCanvasLineExample() {
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 andPatientCanvasIdIsNull() {
addCriterion("patient_canvas_id is null");
return (Criteria) this;
}
public Criteria andPatientCanvasIdIsNotNull() {
addCriterion("patient_canvas_id is not null");
return (Criteria) this;
}
public Criteria andPatientCanvasIdEqualTo(Long value) {
addCriterion("patient_canvas_id =", value, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdNotEqualTo(Long value) {
addCriterion("patient_canvas_id <>", value, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdGreaterThan(Long value) {
addCriterion("patient_canvas_id >", value, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdGreaterThanOrEqualTo(Long value) {
addCriterion("patient_canvas_id >=", value, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdLessThan(Long value) {
addCriterion("patient_canvas_id <", value, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdLessThanOrEqualTo(Long value) {
addCriterion("patient_canvas_id <=", value, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdIn(List<Long> values) {
addCriterion("patient_canvas_id in", values, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdNotIn(List<Long> values) {
addCriterion("patient_canvas_id not in", values, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdBetween(Long value1, Long value2) {
addCriterion("patient_canvas_id between", value1, value2, "patientCanvasId");
return (Criteria) this;
}
public Criteria andPatientCanvasIdNotBetween(Long value1, Long value2) {
addCriterion("patient_canvas_id not between", value1, value2, "patientCanvasId");
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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientIntelligence.java

@ -0,0 +1,106 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtPatientIntelligence implements Serializable {
private Long id;
private Long patientReportId;
private Long questionId;
private String url;
private String result;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientReportId() {
return patientReportId;
}
public void setPatientReportId(Long patientReportId) {
this.patientReportId = patientReportId;
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
public String getResult() {
return result;
}
public void setResult(String result) {
this.result = result == null ? null : result.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", patientReportId=").append(patientReportId);
sb.append(", questionId=").append(questionId);
sb.append(", url=").append(url);
sb.append(", result=").append(result);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

701
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientIntelligenceExample.java

@ -0,0 +1,701 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtPatientIntelligenceExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtPatientIntelligenceExample() {
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 andPatientReportIdIsNull() {
addCriterion("patient_report_id is null");
return (Criteria) this;
}
public Criteria andPatientReportIdIsNotNull() {
addCriterion("patient_report_id is not null");
return (Criteria) this;
}
public Criteria andPatientReportIdEqualTo(Long value) {
addCriterion("patient_report_id =", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdNotEqualTo(Long value) {
addCriterion("patient_report_id <>", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdGreaterThan(Long value) {
addCriterion("patient_report_id >", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdGreaterThanOrEqualTo(Long value) {
addCriterion("patient_report_id >=", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdLessThan(Long value) {
addCriterion("patient_report_id <", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdLessThanOrEqualTo(Long value) {
addCriterion("patient_report_id <=", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdIn(List<Long> values) {
addCriterion("patient_report_id in", values, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdNotIn(List<Long> values) {
addCriterion("patient_report_id not in", values, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdBetween(Long value1, Long value2) {
addCriterion("patient_report_id between", value1, value2, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdNotBetween(Long value1, Long value2) {
addCriterion("patient_report_id not between", value1, value2, "patientReportId");
return (Criteria) this;
}
public Criteria andQuestionIdIsNull() {
addCriterion("question_id is null");
return (Criteria) this;
}
public Criteria andQuestionIdIsNotNull() {
addCriterion("question_id is not null");
return (Criteria) this;
}
public Criteria andQuestionIdEqualTo(Long value) {
addCriterion("question_id =", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotEqualTo(Long value) {
addCriterion("question_id <>", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdGreaterThan(Long value) {
addCriterion("question_id >", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) {
addCriterion("question_id >=", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdLessThan(Long value) {
addCriterion("question_id <", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdLessThanOrEqualTo(Long value) {
addCriterion("question_id <=", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdIn(List<Long> values) {
addCriterion("question_id in", values, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotIn(List<Long> values) {
addCriterion("question_id not in", values, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdBetween(Long value1, Long value2) {
addCriterion("question_id between", value1, value2, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotBetween(Long value1, Long value2) {
addCriterion("question_id not between", value1, value2, "questionId");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andResultIsNull() {
addCriterion("result is null");
return (Criteria) this;
}
public Criteria andResultIsNotNull() {
addCriterion("result is not null");
return (Criteria) this;
}
public Criteria andResultEqualTo(String value) {
addCriterion("result =", value, "result");
return (Criteria) this;
}
public Criteria andResultNotEqualTo(String value) {
addCriterion("result <>", value, "result");
return (Criteria) this;
}
public Criteria andResultGreaterThan(String value) {
addCriterion("result >", value, "result");
return (Criteria) this;
}
public Criteria andResultGreaterThanOrEqualTo(String value) {
addCriterion("result >=", value, "result");
return (Criteria) this;
}
public Criteria andResultLessThan(String value) {
addCriterion("result <", value, "result");
return (Criteria) this;
}
public Criteria andResultLessThanOrEqualTo(String value) {
addCriterion("result <=", value, "result");
return (Criteria) this;
}
public Criteria andResultLike(String value) {
addCriterion("result like", value, "result");
return (Criteria) this;
}
public Criteria andResultNotLike(String value) {
addCriterion("result not like", value, "result");
return (Criteria) this;
}
public Criteria andResultIn(List<String> values) {
addCriterion("result in", values, "result");
return (Criteria) this;
}
public Criteria andResultNotIn(List<String> values) {
addCriterion("result not in", values, "result");
return (Criteria) this;
}
public Criteria andResultBetween(String value1, String value2) {
addCriterion("result between", value1, value2, "result");
return (Criteria) this;
}
public Criteria andResultNotBetween(String value1, String value2) {
addCriterion("result not between", value1, value2, "result");
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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientReportRecordDesc.java

@ -0,0 +1,117 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtPatientReportRecordDesc implements Serializable {
private Long id;
private Long patientReportId;
private Long recordId;
private String answer;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private Long answerTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientReportId() {
return patientReportId;
}
public void setPatientReportId(Long patientReportId) {
this.patientReportId = patientReportId;
}
public Long getRecordId() {
return recordId;
}
public void setRecordId(Long recordId) {
this.recordId = recordId;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer == null ? null : answer.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public Long getAnswerTime() {
return answerTime;
}
public void setAnswerTime(Long answerTime) {
this.answerTime = answerTime;
}
@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(", patientReportId=").append(patientReportId);
sb.append(", recordId=").append(recordId);
sb.append(", answer=").append(answer);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append(", answerTime=").append(answerTime);
sb.append("]");
return sb.toString();
}
}

761
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientReportRecordDescExample.java

@ -0,0 +1,761 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtPatientReportRecordDescExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtPatientReportRecordDescExample() {
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 andPatientReportIdIsNull() {
addCriterion("patient_report_id is null");
return (Criteria) this;
}
public Criteria andPatientReportIdIsNotNull() {
addCriterion("patient_report_id is not null");
return (Criteria) this;
}
public Criteria andPatientReportIdEqualTo(Long value) {
addCriterion("patient_report_id =", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdNotEqualTo(Long value) {
addCriterion("patient_report_id <>", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdGreaterThan(Long value) {
addCriterion("patient_report_id >", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdGreaterThanOrEqualTo(Long value) {
addCriterion("patient_report_id >=", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdLessThan(Long value) {
addCriterion("patient_report_id <", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdLessThanOrEqualTo(Long value) {
addCriterion("patient_report_id <=", value, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdIn(List<Long> values) {
addCriterion("patient_report_id in", values, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdNotIn(List<Long> values) {
addCriterion("patient_report_id not in", values, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdBetween(Long value1, Long value2) {
addCriterion("patient_report_id between", value1, value2, "patientReportId");
return (Criteria) this;
}
public Criteria andPatientReportIdNotBetween(Long value1, Long value2) {
addCriterion("patient_report_id not between", value1, value2, "patientReportId");
return (Criteria) this;
}
public Criteria andRecordIdIsNull() {
addCriterion("record_id is null");
return (Criteria) this;
}
public Criteria andRecordIdIsNotNull() {
addCriterion("record_id is not null");
return (Criteria) this;
}
public Criteria andRecordIdEqualTo(Long value) {
addCriterion("record_id =", value, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdNotEqualTo(Long value) {
addCriterion("record_id <>", value, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdGreaterThan(Long value) {
addCriterion("record_id >", value, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdGreaterThanOrEqualTo(Long value) {
addCriterion("record_id >=", value, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdLessThan(Long value) {
addCriterion("record_id <", value, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdLessThanOrEqualTo(Long value) {
addCriterion("record_id <=", value, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdIn(List<Long> values) {
addCriterion("record_id in", values, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdNotIn(List<Long> values) {
addCriterion("record_id not in", values, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdBetween(Long value1, Long value2) {
addCriterion("record_id between", value1, value2, "recordId");
return (Criteria) this;
}
public Criteria andRecordIdNotBetween(Long value1, Long value2) {
addCriterion("record_id not between", value1, value2, "recordId");
return (Criteria) this;
}
public Criteria andAnswerIsNull() {
addCriterion("answer is null");
return (Criteria) this;
}
public Criteria andAnswerIsNotNull() {
addCriterion("answer is not null");
return (Criteria) this;
}
public Criteria andAnswerEqualTo(String value) {
addCriterion("answer =", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerNotEqualTo(String value) {
addCriterion("answer <>", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerGreaterThan(String value) {
addCriterion("answer >", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerGreaterThanOrEqualTo(String value) {
addCriterion("answer >=", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerLessThan(String value) {
addCriterion("answer <", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerLessThanOrEqualTo(String value) {
addCriterion("answer <=", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerLike(String value) {
addCriterion("answer like", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerNotLike(String value) {
addCriterion("answer not like", value, "answer");
return (Criteria) this;
}
public Criteria andAnswerIn(List<String> values) {
addCriterion("answer in", values, "answer");
return (Criteria) this;
}
public Criteria andAnswerNotIn(List<String> values) {
addCriterion("answer not in", values, "answer");
return (Criteria) this;
}
public Criteria andAnswerBetween(String value1, String value2) {
addCriterion("answer between", value1, value2, "answer");
return (Criteria) this;
}
public Criteria andAnswerNotBetween(String value1, String value2) {
addCriterion("answer not between", value1, value2, "answer");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria 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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andAnswerTimeIsNull() {
addCriterion("answer_time is null");
return (Criteria) this;
}
public Criteria andAnswerTimeIsNotNull() {
addCriterion("answer_time is not null");
return (Criteria) this;
}
public Criteria andAnswerTimeEqualTo(Long value) {
addCriterion("answer_time =", value, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeNotEqualTo(Long value) {
addCriterion("answer_time <>", value, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeGreaterThan(Long value) {
addCriterion("answer_time >", value, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeGreaterThanOrEqualTo(Long value) {
addCriterion("answer_time >=", value, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeLessThan(Long value) {
addCriterion("answer_time <", value, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeLessThanOrEqualTo(Long value) {
addCriterion("answer_time <=", value, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeIn(List<Long> values) {
addCriterion("answer_time in", values, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeNotIn(List<Long> values) {
addCriterion("answer_time not in", values, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeBetween(Long value1, Long value2) {
addCriterion("answer_time between", value1, value2, "answerTime");
return (Criteria) this;
}
public Criteria andAnswerTimeNotBetween(Long value1, Long value2) {
addCriterion("answer_time not between", value1, value2, "answerTime");
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);
}
}
}

365
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientScore.java

@ -1,183 +1,184 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtPatientScore implements Serializable {
private Long id;
private Long patientReportId;
private Long patientId;
private String questionParentCode;
private Long questionId;
private Long optionId;
private String optionName;
private Integer score;
private Byte type;
private String answer;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private Long answerTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientReportId() {
return patientReportId;
}
public void setPatientReportId(Long patientReportId) {
this.patientReportId = patientReportId;
}
public Long getPatientId() {
return patientId;
}
public void setPatientId(Long patientId) {
this.patientId = patientId;
}
public String getQuestionParentCode() {
return questionParentCode;
}
public void setQuestionParentCode(String questionParentCode) {
this.questionParentCode = questionParentCode == null ? null : questionParentCode.trim();
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public Long getOptionId() {
return optionId;
}
public void setOptionId(Long optionId) {
this.optionId = optionId;
}
public String getOptionName() {
return optionName;
}
public void setOptionName(String optionName) {
this.optionName = optionName == null ? null : optionName.trim();
}
public Integer getScore() {
return score;
}
public void setScore(Integer score) {
this.score = score;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer == null ? null : answer.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public Long getAnswerTime() {
return answerTime;
}
public void setAnswerTime(Long answerTime) {
this.answerTime = answerTime;
}
@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(", patientReportId=").append(patientReportId);
sb.append(", patientId=").append(patientId);
sb.append(", questionParentCode=").append(questionParentCode);
sb.append(", questionId=").append(questionId);
sb.append(", optionId=").append(optionId);
sb.append(", optionName=").append(optionName);
sb.append(", score=").append(score);
sb.append(", type=").append(type);
sb.append(", answer=").append(answer);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append(", answerTime=").append(answerTime);
sb.append("]");
return sb.toString();
}
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class HtPatientScore implements Serializable {
private Long id;
private Long patientReportId;
private Long patientId;
private String questionParentCode;
private Long questionId;
private Long optionId;
private String optionName;
private BigDecimal score;
private Byte type;
private String answer;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private Long answerTime;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getPatientReportId() {
return patientReportId;
}
public void setPatientReportId(Long patientReportId) {
this.patientReportId = patientReportId;
}
public Long getPatientId() {
return patientId;
}
public void setPatientId(Long patientId) {
this.patientId = patientId;
}
public String getQuestionParentCode() {
return questionParentCode;
}
public void setQuestionParentCode(String questionParentCode) {
this.questionParentCode = questionParentCode == null ? null : questionParentCode.trim();
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public Long getOptionId() {
return optionId;
}
public void setOptionId(Long optionId) {
this.optionId = optionId;
}
public String getOptionName() {
return optionName;
}
public void setOptionName(String optionName) {
this.optionName = optionName == null ? null : optionName.trim();
}
public BigDecimal getScore() {
return score;
}
public void setScore(BigDecimal score) {
this.score = score;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public String getAnswer() {
return answer;
}
public void setAnswer(String answer) {
this.answer = answer == null ? null : answer.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
public Long getAnswerTime() {
return answerTime;
}
public void setAnswerTime(Long answerTime) {
this.answerTime = answerTime;
}
@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(", patientReportId=").append(patientReportId);
sb.append(", patientId=").append(patientId);
sb.append(", questionParentCode=").append(questionParentCode);
sb.append(", questionId=").append(questionId);
sb.append(", optionId=").append(optionId);
sb.append(", optionName=").append(optionName);
sb.append(", score=").append(score);
sb.append(", type=").append(type);
sb.append(", answer=").append(answer);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append(", answerTime=").append(answerTime);
sb.append("]");
return sb.toString();
}
}

2281
ht/src/main/java/com/ccsens/ht/bean/po/HtPatientScoreExample.java

File diff suppressed because it is too large

11
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestion.java

@ -22,6 +22,8 @@ public class HtQuestion implements Serializable {
private String relationCode;
private Long relationId;
private Byte operateType;
private Byte recodeStarttime;
@ -116,6 +118,14 @@ public class HtQuestion implements Serializable {
this.relationCode = relationCode == null ? null : relationCode.trim();
}
public Long getRelationId() {
return relationId;
}
public void setRelationId(Long relationId) {
this.relationId = relationId;
}
public Byte getOperateType() {
return operateType;
}
@ -211,6 +221,7 @@ public class HtQuestion implements Serializable {
sb.append(", recordType=").append(recordType);
sb.append(", recordContent=").append(recordContent);
sb.append(", relationCode=").append(relationCode);
sb.append(", relationId=").append(relationId);
sb.append(", operateType=").append(operateType);
sb.append(", recodeStarttime=").append(recodeStarttime);
sb.append(", timeWabei=").append(timeWabei);

60
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionExample.java

@ -705,6 +705,66 @@ public class HtQuestionExample {
return (Criteria) this;
}
public Criteria andRelationIdIsNull() {
addCriterion("relation_id is null");
return (Criteria) this;
}
public Criteria andRelationIdIsNotNull() {
addCriterion("relation_id is not null");
return (Criteria) this;
}
public Criteria andRelationIdEqualTo(Long value) {
addCriterion("relation_id =", value, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdNotEqualTo(Long value) {
addCriterion("relation_id <>", value, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdGreaterThan(Long value) {
addCriterion("relation_id >", value, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdGreaterThanOrEqualTo(Long value) {
addCriterion("relation_id >=", value, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdLessThan(Long value) {
addCriterion("relation_id <", value, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdLessThanOrEqualTo(Long value) {
addCriterion("relation_id <=", value, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdIn(List<Long> values) {
addCriterion("relation_id in", values, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdNotIn(List<Long> values) {
addCriterion("relation_id not in", values, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdBetween(Long value1, Long value2) {
addCriterion("relation_id between", value1, value2, "relationId");
return (Criteria) this;
}
public Criteria andRelationIdNotBetween(Long value1, Long value2) {
addCriterion("relation_id not between", value1, value2, "relationId");
return (Criteria) this;
}
public Criteria andOperateTypeIsNull() {
addCriterion("operate_type is null");
return (Criteria) this;

95
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionIntelligence.java

@ -0,0 +1,95 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtQuestionIntelligence implements Serializable {
private Long id;
private Long questionId;
private String url;
private Byte type;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url == null ? null : url.trim();
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", questionId=").append(questionId);
sb.append(", url=").append(url);
sb.append(", type=").append(type);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

631
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionIntelligenceExample.java

@ -0,0 +1,631 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtQuestionIntelligenceExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtQuestionIntelligenceExample() {
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 andQuestionIdIsNull() {
addCriterion("question_id is null");
return (Criteria) this;
}
public Criteria andQuestionIdIsNotNull() {
addCriterion("question_id is not null");
return (Criteria) this;
}
public Criteria andQuestionIdEqualTo(Long value) {
addCriterion("question_id =", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotEqualTo(Long value) {
addCriterion("question_id <>", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdGreaterThan(Long value) {
addCriterion("question_id >", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) {
addCriterion("question_id >=", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdLessThan(Long value) {
addCriterion("question_id <", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdLessThanOrEqualTo(Long value) {
addCriterion("question_id <=", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdIn(List<Long> values) {
addCriterion("question_id in", values, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotIn(List<Long> values) {
addCriterion("question_id not in", values, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdBetween(Long value1, Long value2) {
addCriterion("question_id between", value1, value2, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotBetween(Long value1, Long value2) {
addCriterion("question_id not between", value1, value2, "questionId");
return (Criteria) this;
}
public Criteria andUrlIsNull() {
addCriterion("url is null");
return (Criteria) this;
}
public Criteria andUrlIsNotNull() {
addCriterion("url is not null");
return (Criteria) this;
}
public Criteria andUrlEqualTo(String value) {
addCriterion("url =", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotEqualTo(String value) {
addCriterion("url <>", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThan(String value) {
addCriterion("url >", value, "url");
return (Criteria) this;
}
public Criteria andUrlGreaterThanOrEqualTo(String value) {
addCriterion("url >=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThan(String value) {
addCriterion("url <", value, "url");
return (Criteria) this;
}
public Criteria andUrlLessThanOrEqualTo(String value) {
addCriterion("url <=", value, "url");
return (Criteria) this;
}
public Criteria andUrlLike(String value) {
addCriterion("url like", value, "url");
return (Criteria) this;
}
public Criteria andUrlNotLike(String value) {
addCriterion("url not like", value, "url");
return (Criteria) this;
}
public Criteria andUrlIn(List<String> values) {
addCriterion("url in", values, "url");
return (Criteria) this;
}
public Criteria andUrlNotIn(List<String> values) {
addCriterion("url not in", values, "url");
return (Criteria) this;
}
public Criteria andUrlBetween(String value1, String value2) {
addCriterion("url between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andUrlNotBetween(String value1, String value2) {
addCriterion("url not between", value1, value2, "url");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria 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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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);
}
}
}

277
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOption.java

@ -1,139 +1,140 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtQuestionOption implements Serializable {
private Long id;
private Long questionId;
private Integer sort;
private String type;
private String name;
private Integer score;
private String display;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type == null ? null : type.trim();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public Integer getScore() {
return score;
}
public void setScore(Integer score) {
this.score = score;
}
public String getDisplay() {
return display;
}
public void setDisplay(String display) {
this.display = display == null ? null : display.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", questionId=").append(questionId);
sb.append(", sort=").append(sort);
sb.append(", type=").append(type);
sb.append(", name=").append(name);
sb.append(", score=").append(score);
sb.append(", display=").append(display);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class HtQuestionOption implements Serializable {
private Long id;
private Long questionId;
private Integer sort;
private String type;
private String name;
private BigDecimal score;
private String display;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getType() {
return type;
}
public void setType(String type) {
this.type = type == null ? null : type.trim();
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name == null ? null : name.trim();
}
public BigDecimal getScore() {
return score;
}
public void setScore(BigDecimal score) {
this.score = score;
}
public String getDisplay() {
return display;
}
public void setDisplay(String display) {
this.display = display == null ? null : display.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", questionId=").append(questionId);
sb.append(", sort=").append(sort);
sb.append(", type=").append(type);
sb.append(", name=").append(name);
sb.append(", score=").append(score);
sb.append(", display=").append(display);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

117
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOptionDesc.java

@ -0,0 +1,117 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtQuestionOptionDesc implements Serializable {
private Long id;
private Long optionId;
private Integer sort;
private Byte type;
private String content;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getOptionId() {
return optionId;
}
public void setOptionId(Long optionId) {
this.optionId = optionId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public String getContent() {
return content;
}
public void setContent(String content) {
this.content = content == null ? null : content.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", optionId=").append(optionId);
sb.append(", sort=").append(sort);
sb.append(", type=").append(type);
sb.append(", content=").append(content);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

761
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOptionDescExample.java

@ -0,0 +1,761 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtQuestionOptionDescExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtQuestionOptionDescExample() {
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 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 andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Integer value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Integer value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Integer value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Integer value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Integer value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Integer value1, Integer value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Integer value1, Integer value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andTypeIsNull() {
addCriterion("type is null");
return (Criteria) this;
}
public Criteria andTypeIsNotNull() {
addCriterion("type is not null");
return (Criteria) this;
}
public Criteria andTypeEqualTo(Byte value) {
addCriterion("type =", value, "type");
return (Criteria) this;
}
public Criteria andTypeNotEqualTo(Byte value) {
addCriterion("type <>", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThan(Byte value) {
addCriterion("type >", value, "type");
return (Criteria) this;
}
public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("type >=", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThan(Byte value) {
addCriterion("type <", value, "type");
return (Criteria) this;
}
public Criteria andTypeLessThanOrEqualTo(Byte value) {
addCriterion("type <=", value, "type");
return (Criteria) this;
}
public Criteria andTypeIn(List<Byte> values) {
addCriterion("type in", values, "type");
return (Criteria) this;
}
public Criteria andTypeNotIn(List<Byte> values) {
addCriterion("type not in", values, "type");
return (Criteria) this;
}
public Criteria andTypeBetween(Byte value1, Byte value2) {
addCriterion("type between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andTypeNotBetween(Byte value1, Byte value2) {
addCriterion("type not between", value1, value2, "type");
return (Criteria) this;
}
public Criteria andContentIsNull() {
addCriterion("content is null");
return (Criteria) this;
}
public Criteria andContentIsNotNull() {
addCriterion("content is not null");
return (Criteria) this;
}
public Criteria andContentEqualTo(String value) {
addCriterion("content =", value, "content");
return (Criteria) this;
}
public Criteria andContentNotEqualTo(String value) {
addCriterion("content <>", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThan(String value) {
addCriterion("content >", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThanOrEqualTo(String value) {
addCriterion("content >=", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThan(String value) {
addCriterion("content <", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThanOrEqualTo(String value) {
addCriterion("content <=", value, "content");
return (Criteria) this;
}
public Criteria andContentLike(String value) {
addCriterion("content like", value, "content");
return (Criteria) this;
}
public Criteria andContentNotLike(String value) {
addCriterion("content not like", value, "content");
return (Criteria) this;
}
public Criteria andContentIn(List<String> values) {
addCriterion("content in", values, "content");
return (Criteria) this;
}
public Criteria andContentNotIn(List<String> values) {
addCriterion("content not in", values, "content");
return (Criteria) this;
}
public Criteria andContentBetween(String value1, String value2) {
addCriterion("content between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andContentNotBetween(String value1, String value2) {
addCriterion("content not between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria 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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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);
}
}
}

1801
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionOptionExample.java

File diff suppressed because it is too large

161
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecord.java

@ -0,0 +1,161 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtQuestionRecord implements Serializable {
private Long id;
private Byte recordType;
private Long questionId;
private Integer sort;
private Byte calcType;
private String showTitle;
private String showForm;
private String defaultValue;
private Byte type;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Byte getRecordType() {
return recordType;
}
public void setRecordType(Byte recordType) {
this.recordType = recordType;
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public Byte getCalcType() {
return calcType;
}
public void setCalcType(Byte calcType) {
this.calcType = calcType;
}
public String getShowTitle() {
return showTitle;
}
public void setShowTitle(String showTitle) {
this.showTitle = showTitle == null ? null : showTitle.trim();
}
public String getShowForm() {
return showForm;
}
public void setShowForm(String showForm) {
this.showForm = showForm == null ? null : showForm.trim();
}
public String getDefaultValue() {
return defaultValue;
}
public void setDefaultValue(String defaultValue) {
this.defaultValue = defaultValue == null ? null : defaultValue.trim();
}
public Byte getType() {
return type;
}
public void setType(Byte type) {
this.type = type;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", recordType=").append(recordType);
sb.append(", questionId=").append(questionId);
sb.append(", sort=").append(sort);
sb.append(", calcType=").append(calcType);
sb.append(", showTitle=").append(showTitle);
sb.append(", showForm=").append(showForm);
sb.append(", defaultValue=").append(defaultValue);
sb.append(", type=").append(type);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

1021
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecordExample.java

File diff suppressed because it is too large

117
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecordOption.java

@ -0,0 +1,117 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtQuestionRecordOption implements Serializable {
private Long id;
private Long questionRecordId;
private Integer sort;
private String dataKey;
private String dataValue;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getQuestionRecordId() {
return questionRecordId;
}
public void setQuestionRecordId(Long questionRecordId) {
this.questionRecordId = questionRecordId;
}
public Integer getSort() {
return sort;
}
public void setSort(Integer sort) {
this.sort = sort;
}
public String getDataKey() {
return dataKey;
}
public void setDataKey(String dataKey) {
this.dataKey = dataKey == null ? null : dataKey.trim();
}
public String getDataValue() {
return dataValue;
}
public void setDataValue(String dataValue) {
this.dataValue = dataValue == null ? null : dataValue.trim();
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", questionRecordId=").append(questionRecordId);
sb.append(", sort=").append(sort);
sb.append(", dataKey=").append(dataKey);
sb.append(", dataValue=").append(dataValue);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

771
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionRecordOptionExample.java

@ -0,0 +1,771 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtQuestionRecordOptionExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtQuestionRecordOptionExample() {
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 andQuestionRecordIdIsNull() {
addCriterion("question_record_id is null");
return (Criteria) this;
}
public Criteria andQuestionRecordIdIsNotNull() {
addCriterion("question_record_id is not null");
return (Criteria) this;
}
public Criteria andQuestionRecordIdEqualTo(Long value) {
addCriterion("question_record_id =", value, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdNotEqualTo(Long value) {
addCriterion("question_record_id <>", value, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdGreaterThan(Long value) {
addCriterion("question_record_id >", value, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdGreaterThanOrEqualTo(Long value) {
addCriterion("question_record_id >=", value, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdLessThan(Long value) {
addCriterion("question_record_id <", value, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdLessThanOrEqualTo(Long value) {
addCriterion("question_record_id <=", value, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdIn(List<Long> values) {
addCriterion("question_record_id in", values, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdNotIn(List<Long> values) {
addCriterion("question_record_id not in", values, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdBetween(Long value1, Long value2) {
addCriterion("question_record_id between", value1, value2, "questionRecordId");
return (Criteria) this;
}
public Criteria andQuestionRecordIdNotBetween(Long value1, Long value2) {
addCriterion("question_record_id not between", value1, value2, "questionRecordId");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Integer value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Integer value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Integer value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Integer value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Integer value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Integer value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Integer> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Integer> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Integer value1, Integer value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Integer value1, Integer value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andDataKeyIsNull() {
addCriterion("data_key is null");
return (Criteria) this;
}
public Criteria andDataKeyIsNotNull() {
addCriterion("data_key is not null");
return (Criteria) this;
}
public Criteria andDataKeyEqualTo(String value) {
addCriterion("data_key =", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyNotEqualTo(String value) {
addCriterion("data_key <>", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyGreaterThan(String value) {
addCriterion("data_key >", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyGreaterThanOrEqualTo(String value) {
addCriterion("data_key >=", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyLessThan(String value) {
addCriterion("data_key <", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyLessThanOrEqualTo(String value) {
addCriterion("data_key <=", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyLike(String value) {
addCriterion("data_key like", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyNotLike(String value) {
addCriterion("data_key not like", value, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyIn(List<String> values) {
addCriterion("data_key in", values, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyNotIn(List<String> values) {
addCriterion("data_key not in", values, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyBetween(String value1, String value2) {
addCriterion("data_key between", value1, value2, "dataKey");
return (Criteria) this;
}
public Criteria andDataKeyNotBetween(String value1, String value2) {
addCriterion("data_key not between", value1, value2, "dataKey");
return (Criteria) this;
}
public Criteria andDataValueIsNull() {
addCriterion("data_value is null");
return (Criteria) this;
}
public Criteria andDataValueIsNotNull() {
addCriterion("data_value is not null");
return (Criteria) this;
}
public Criteria andDataValueEqualTo(String value) {
addCriterion("data_value =", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueNotEqualTo(String value) {
addCriterion("data_value <>", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueGreaterThan(String value) {
addCriterion("data_value >", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueGreaterThanOrEqualTo(String value) {
addCriterion("data_value >=", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueLessThan(String value) {
addCriterion("data_value <", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueLessThanOrEqualTo(String value) {
addCriterion("data_value <=", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueLike(String value) {
addCriterion("data_value like", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueNotLike(String value) {
addCriterion("data_value not like", value, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueIn(List<String> values) {
addCriterion("data_value in", values, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueNotIn(List<String> values) {
addCriterion("data_value not in", values, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueBetween(String value1, String value2) {
addCriterion("data_value between", value1, value2, "dataValue");
return (Criteria) this;
}
public Criteria andDataValueNotBetween(String value1, String value2) {
addCriterion("data_value not between", value1, value2, "dataValue");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria 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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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);
}
}
}

128
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionShow.java

@ -0,0 +1,128 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtQuestionShow implements Serializable {
private Long id;
private Long questionId;
private Byte showType;
private Byte showNode;
private String param;
private Byte sort;
private String remark;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getQuestionId() {
return questionId;
}
public void setQuestionId(Long questionId) {
this.questionId = questionId;
}
public Byte getShowType() {
return showType;
}
public void setShowType(Byte showType) {
this.showType = showType;
}
public Byte getShowNode() {
return showNode;
}
public void setShowNode(Byte showNode) {
this.showNode = showNode;
}
public String getParam() {
return param;
}
public void setParam(String param) {
this.param = param == null ? null : param.trim();
}
public Byte getSort() {
return sort;
}
public void setSort(Byte sort) {
this.sort = sort;
}
public String getRemark() {
return remark;
}
public void setRemark(String remark) {
this.remark = remark == null ? null : remark.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", questionId=").append(questionId);
sb.append(", showType=").append(showType);
sb.append(", showNode=").append(showNode);
sb.append(", param=").append(param);
sb.append(", sort=").append(sort);
sb.append(", remark=").append(remark);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

821
ht/src/main/java/com/ccsens/ht/bean/po/HtQuestionShowExample.java

@ -0,0 +1,821 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtQuestionShowExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtQuestionShowExample() {
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 andQuestionIdIsNull() {
addCriterion("question_id is null");
return (Criteria) this;
}
public Criteria andQuestionIdIsNotNull() {
addCriterion("question_id is not null");
return (Criteria) this;
}
public Criteria andQuestionIdEqualTo(Long value) {
addCriterion("question_id =", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotEqualTo(Long value) {
addCriterion("question_id <>", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdGreaterThan(Long value) {
addCriterion("question_id >", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdGreaterThanOrEqualTo(Long value) {
addCriterion("question_id >=", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdLessThan(Long value) {
addCriterion("question_id <", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdLessThanOrEqualTo(Long value) {
addCriterion("question_id <=", value, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdIn(List<Long> values) {
addCriterion("question_id in", values, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotIn(List<Long> values) {
addCriterion("question_id not in", values, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdBetween(Long value1, Long value2) {
addCriterion("question_id between", value1, value2, "questionId");
return (Criteria) this;
}
public Criteria andQuestionIdNotBetween(Long value1, Long value2) {
addCriterion("question_id not between", value1, value2, "questionId");
return (Criteria) this;
}
public Criteria andShowTypeIsNull() {
addCriterion("show_type is null");
return (Criteria) this;
}
public Criteria andShowTypeIsNotNull() {
addCriterion("show_type is not null");
return (Criteria) this;
}
public Criteria andShowTypeEqualTo(Byte value) {
addCriterion("show_type =", value, "showType");
return (Criteria) this;
}
public Criteria andShowTypeNotEqualTo(Byte value) {
addCriterion("show_type <>", value, "showType");
return (Criteria) this;
}
public Criteria andShowTypeGreaterThan(Byte value) {
addCriterion("show_type >", value, "showType");
return (Criteria) this;
}
public Criteria andShowTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("show_type >=", value, "showType");
return (Criteria) this;
}
public Criteria andShowTypeLessThan(Byte value) {
addCriterion("show_type <", value, "showType");
return (Criteria) this;
}
public Criteria andShowTypeLessThanOrEqualTo(Byte value) {
addCriterion("show_type <=", value, "showType");
return (Criteria) this;
}
public Criteria andShowTypeIn(List<Byte> values) {
addCriterion("show_type in", values, "showType");
return (Criteria) this;
}
public Criteria andShowTypeNotIn(List<Byte> values) {
addCriterion("show_type not in", values, "showType");
return (Criteria) this;
}
public Criteria andShowTypeBetween(Byte value1, Byte value2) {
addCriterion("show_type between", value1, value2, "showType");
return (Criteria) this;
}
public Criteria andShowTypeNotBetween(Byte value1, Byte value2) {
addCriterion("show_type not between", value1, value2, "showType");
return (Criteria) this;
}
public Criteria andShowNodeIsNull() {
addCriterion("show_node is null");
return (Criteria) this;
}
public Criteria andShowNodeIsNotNull() {
addCriterion("show_node is not null");
return (Criteria) this;
}
public Criteria andShowNodeEqualTo(Byte value) {
addCriterion("show_node =", value, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeNotEqualTo(Byte value) {
addCriterion("show_node <>", value, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeGreaterThan(Byte value) {
addCriterion("show_node >", value, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeGreaterThanOrEqualTo(Byte value) {
addCriterion("show_node >=", value, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeLessThan(Byte value) {
addCriterion("show_node <", value, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeLessThanOrEqualTo(Byte value) {
addCriterion("show_node <=", value, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeIn(List<Byte> values) {
addCriterion("show_node in", values, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeNotIn(List<Byte> values) {
addCriterion("show_node not in", values, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeBetween(Byte value1, Byte value2) {
addCriterion("show_node between", value1, value2, "showNode");
return (Criteria) this;
}
public Criteria andShowNodeNotBetween(Byte value1, Byte value2) {
addCriterion("show_node not between", value1, value2, "showNode");
return (Criteria) this;
}
public Criteria andParamIsNull() {
addCriterion("param is null");
return (Criteria) this;
}
public Criteria andParamIsNotNull() {
addCriterion("param is not null");
return (Criteria) this;
}
public Criteria andParamEqualTo(String value) {
addCriterion("param =", value, "param");
return (Criteria) this;
}
public Criteria andParamNotEqualTo(String value) {
addCriterion("param <>", value, "param");
return (Criteria) this;
}
public Criteria andParamGreaterThan(String value) {
addCriterion("param >", value, "param");
return (Criteria) this;
}
public Criteria andParamGreaterThanOrEqualTo(String value) {
addCriterion("param >=", value, "param");
return (Criteria) this;
}
public Criteria andParamLessThan(String value) {
addCriterion("param <", value, "param");
return (Criteria) this;
}
public Criteria andParamLessThanOrEqualTo(String value) {
addCriterion("param <=", value, "param");
return (Criteria) this;
}
public Criteria andParamLike(String value) {
addCriterion("param like", value, "param");
return (Criteria) this;
}
public Criteria andParamNotLike(String value) {
addCriterion("param not like", value, "param");
return (Criteria) this;
}
public Criteria andParamIn(List<String> values) {
addCriterion("param in", values, "param");
return (Criteria) this;
}
public Criteria andParamNotIn(List<String> values) {
addCriterion("param not in", values, "param");
return (Criteria) this;
}
public Criteria andParamBetween(String value1, String value2) {
addCriterion("param between", value1, value2, "param");
return (Criteria) this;
}
public Criteria andParamNotBetween(String value1, String value2) {
addCriterion("param not between", value1, value2, "param");
return (Criteria) this;
}
public Criteria andSortIsNull() {
addCriterion("sort is null");
return (Criteria) this;
}
public Criteria andSortIsNotNull() {
addCriterion("sort is not null");
return (Criteria) this;
}
public Criteria andSortEqualTo(Byte value) {
addCriterion("sort =", value, "sort");
return (Criteria) this;
}
public Criteria andSortNotEqualTo(Byte value) {
addCriterion("sort <>", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThan(Byte value) {
addCriterion("sort >", value, "sort");
return (Criteria) this;
}
public Criteria andSortGreaterThanOrEqualTo(Byte value) {
addCriterion("sort >=", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThan(Byte value) {
addCriterion("sort <", value, "sort");
return (Criteria) this;
}
public Criteria andSortLessThanOrEqualTo(Byte value) {
addCriterion("sort <=", value, "sort");
return (Criteria) this;
}
public Criteria andSortIn(List<Byte> values) {
addCriterion("sort in", values, "sort");
return (Criteria) this;
}
public Criteria andSortNotIn(List<Byte> values) {
addCriterion("sort not in", values, "sort");
return (Criteria) this;
}
public Criteria andSortBetween(Byte value1, Byte value2) {
addCriterion("sort between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andSortNotBetween(Byte value1, Byte value2) {
addCriterion("sort not between", value1, value2, "sort");
return (Criteria) this;
}
public Criteria andRemarkIsNull() {
addCriterion("remark is null");
return (Criteria) this;
}
public Criteria andRemarkIsNotNull() {
addCriterion("remark is not null");
return (Criteria) this;
}
public Criteria andRemarkEqualTo(String value) {
addCriterion("remark =", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotEqualTo(String value) {
addCriterion("remark <>", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThan(String value) {
addCriterion("remark >", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkGreaterThanOrEqualTo(String value) {
addCriterion("remark >=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThan(String value) {
addCriterion("remark <", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLessThanOrEqualTo(String value) {
addCriterion("remark <=", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkLike(String value) {
addCriterion("remark like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotLike(String value) {
addCriterion("remark not like", value, "remark");
return (Criteria) this;
}
public Criteria andRemarkIn(List<String> values) {
addCriterion("remark in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotIn(List<String> values) {
addCriterion("remark not in", values, "remark");
return (Criteria) this;
}
public Criteria andRemarkBetween(String value1, String value2) {
addCriterion("remark between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria andRemarkNotBetween(String value1, String value2) {
addCriterion("remark not between", value1, value2, "remark");
return (Criteria) this;
}
public Criteria 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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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
ht/src/main/java/com/ccsens/ht/bean/po/HtReportRelevance.java

@ -0,0 +1,117 @@
package com.ccsens.ht.bean.po;
import java.io.Serializable;
import java.util.Date;
public class HtReportRelevance implements Serializable {
private Long id;
private String reportCode;
private Long reportId;
private String impression;
private Integer socre;
private String pdfUrl;
private Date createTime;
private Date updateTime;
private Byte isDel;
private static final long serialVersionUID = 1L;
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getReportCode() {
return reportCode;
}
public void setReportCode(String reportCode) {
this.reportCode = reportCode == null ? null : reportCode.trim();
}
public Long getReportId() {
return reportId;
}
public void setReportId(Long reportId) {
this.reportId = reportId;
}
public String getImpression() {
return impression;
}
public void setImpression(String impression) {
this.impression = impression == null ? null : impression.trim();
}
public Integer getSocre() {
return socre;
}
public void setSocre(Integer socre) {
this.socre = socre;
}
public String getPdfUrl() {
return pdfUrl;
}
public void setPdfUrl(String pdfUrl) {
this.pdfUrl = pdfUrl == null ? null : pdfUrl.trim();
}
public Date getCreateTime() {
return createTime;
}
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
public Date getUpdateTime() {
return updateTime;
}
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
public Byte getIsDel() {
return isDel;
}
public void setIsDel(Byte isDel) {
this.isDel = isDel;
}
@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(", reportCode=").append(reportCode);
sb.append(", reportId=").append(reportId);
sb.append(", impression=").append(impression);
sb.append(", socre=").append(socre);
sb.append(", pdfUrl=").append(pdfUrl);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append(", isDel=").append(isDel);
sb.append("]");
return sb.toString();
}
}

771
ht/src/main/java/com/ccsens/ht/bean/po/HtReportRelevanceExample.java

@ -0,0 +1,771 @@
package com.ccsens.ht.bean.po;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class HtReportRelevanceExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public HtReportRelevanceExample() {
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 andReportCodeIsNull() {
addCriterion("report_code is null");
return (Criteria) this;
}
public Criteria andReportCodeIsNotNull() {
addCriterion("report_code is not null");
return (Criteria) this;
}
public Criteria andReportCodeEqualTo(String value) {
addCriterion("report_code =", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeNotEqualTo(String value) {
addCriterion("report_code <>", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeGreaterThan(String value) {
addCriterion("report_code >", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeGreaterThanOrEqualTo(String value) {
addCriterion("report_code >=", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeLessThan(String value) {
addCriterion("report_code <", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeLessThanOrEqualTo(String value) {
addCriterion("report_code <=", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeLike(String value) {
addCriterion("report_code like", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeNotLike(String value) {
addCriterion("report_code not like", value, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeIn(List<String> values) {
addCriterion("report_code in", values, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeNotIn(List<String> values) {
addCriterion("report_code not in", values, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeBetween(String value1, String value2) {
addCriterion("report_code between", value1, value2, "reportCode");
return (Criteria) this;
}
public Criteria andReportCodeNotBetween(String value1, String value2) {
addCriterion("report_code not between", value1, value2, "reportCode");
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 andImpressionIsNull() {
addCriterion("impression is null");
return (Criteria) this;
}
public Criteria andImpressionIsNotNull() {
addCriterion("impression is not null");
return (Criteria) this;
}
public Criteria andImpressionEqualTo(String value) {
addCriterion("impression =", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionNotEqualTo(String value) {
addCriterion("impression <>", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionGreaterThan(String value) {
addCriterion("impression >", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionGreaterThanOrEqualTo(String value) {
addCriterion("impression >=", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionLessThan(String value) {
addCriterion("impression <", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionLessThanOrEqualTo(String value) {
addCriterion("impression <=", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionLike(String value) {
addCriterion("impression like", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionNotLike(String value) {
addCriterion("impression not like", value, "impression");
return (Criteria) this;
}
public Criteria andImpressionIn(List<String> values) {
addCriterion("impression in", values, "impression");
return (Criteria) this;
}
public Criteria andImpressionNotIn(List<String> values) {
addCriterion("impression not in", values, "impression");
return (Criteria) this;
}
public Criteria andImpressionBetween(String value1, String value2) {
addCriterion("impression between", value1, value2, "impression");
return (Criteria) this;
}
public Criteria andImpressionNotBetween(String value1, String value2) {
addCriterion("impression not between", value1, value2, "impression");
return (Criteria) this;
}
public Criteria andSocreIsNull() {
addCriterion("socre is null");
return (Criteria) this;
}
public Criteria andSocreIsNotNull() {
addCriterion("socre is not null");
return (Criteria) this;
}
public Criteria andSocreEqualTo(Integer value) {
addCriterion("socre =", value, "socre");
return (Criteria) this;
}
public Criteria andSocreNotEqualTo(Integer value) {
addCriterion("socre <>", value, "socre");
return (Criteria) this;
}
public Criteria andSocreGreaterThan(Integer value) {
addCriterion("socre >", value, "socre");
return (Criteria) this;
}
public Criteria andSocreGreaterThanOrEqualTo(Integer value) {
addCriterion("socre >=", value, "socre");
return (Criteria) this;
}
public Criteria andSocreLessThan(Integer value) {
addCriterion("socre <", value, "socre");
return (Criteria) this;
}
public Criteria andSocreLessThanOrEqualTo(Integer value) {
addCriterion("socre <=", value, "socre");
return (Criteria) this;
}
public Criteria andSocreIn(List<Integer> values) {
addCriterion("socre in", values, "socre");
return (Criteria) this;
}
public Criteria andSocreNotIn(List<Integer> values) {
addCriterion("socre not in", values, "socre");
return (Criteria) this;
}
public Criteria andSocreBetween(Integer value1, Integer value2) {
addCriterion("socre between", value1, value2, "socre");
return (Criteria) this;
}
public Criteria andSocreNotBetween(Integer value1, Integer value2) {
addCriterion("socre not between", value1, value2, "socre");
return (Criteria) this;
}
public Criteria andPdfUrlIsNull() {
addCriterion("pdf_url is null");
return (Criteria) this;
}
public Criteria andPdfUrlIsNotNull() {
addCriterion("pdf_url is not null");
return (Criteria) this;
}
public Criteria andPdfUrlEqualTo(String value) {
addCriterion("pdf_url =", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlNotEqualTo(String value) {
addCriterion("pdf_url <>", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlGreaterThan(String value) {
addCriterion("pdf_url >", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlGreaterThanOrEqualTo(String value) {
addCriterion("pdf_url >=", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlLessThan(String value) {
addCriterion("pdf_url <", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlLessThanOrEqualTo(String value) {
addCriterion("pdf_url <=", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlLike(String value) {
addCriterion("pdf_url like", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlNotLike(String value) {
addCriterion("pdf_url not like", value, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlIn(List<String> values) {
addCriterion("pdf_url in", values, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlNotIn(List<String> values) {
addCriterion("pdf_url not in", values, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlBetween(String value1, String value2) {
addCriterion("pdf_url between", value1, value2, "pdfUrl");
return (Criteria) this;
}
public Criteria andPdfUrlNotBetween(String value1, String value2) {
addCriterion("pdf_url not between", value1, value2, "pdfUrl");
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 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 Criteria andIsDelIsNull() {
addCriterion("is_del is null");
return (Criteria) this;
}
public Criteria andIsDelIsNotNull() {
addCriterion("is_del is not null");
return (Criteria) this;
}
public Criteria andIsDelEqualTo(Byte value) {
addCriterion("is_del =", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotEqualTo(Byte value) {
addCriterion("is_del <>", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThan(Byte value) {
addCriterion("is_del >", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) {
addCriterion("is_del >=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThan(Byte value) {
addCriterion("is_del <", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelLessThanOrEqualTo(Byte value) {
addCriterion("is_del <=", value, "isDel");
return (Criteria) this;
}
public Criteria andIsDelIn(List<Byte> values) {
addCriterion("is_del in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotIn(List<Byte> values) {
addCriterion("is_del not in", values, "isDel");
return (Criteria) this;
}
public Criteria andIsDelBetween(Byte value1, Byte value2) {
addCriterion("is_del between", value1, value2, "isDel");
return (Criteria) this;
}
public Criteria andIsDelNotBetween(Byte value1, Byte value2) {
addCriterion("is_del not between", value1, value2, "isDel");
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);
}
}
}

12
ht/src/main/java/com/ccsens/ht/bean/vo/DoctorVo.java

@ -45,6 +45,18 @@ public class DoctorVo {
private String department;
}
@Data
@ApiModel("下属信息")
public static class Subordinate{
@ApiModelProperty("id")
private Long id;
@ApiModelProperty("姓名")
private String name;
@ApiModelProperty("职务名称")
private String positionName;
@ApiModelProperty("科室名称")
private String department;
}
}

22
ht/src/main/java/com/ccsens/ht/bean/vo/IntelligenceVo.java

@ -0,0 +1,22 @@
package com.ccsens.ht.bean.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
* @description:
* @author: whj
* @time: 2022/3/11 10:32
*/
public class IntelligenceVo {
@Data
@ApiModel("智能测评结果-返回")
public static class Result{
@ApiModelProperty("有无返回结果 0:无答案 1:有答案")
private byte result;
@ApiModelProperty("选项ID")
private Long optionId;
}
}

33
ht/src/main/java/com/ccsens/ht/bean/vo/PatientReportSearchVo.java

@ -0,0 +1,33 @@
package com.ccsens.ht.bean.vo;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/**
* @description:
* @author: whj
* @time: 2021/3/10 16:06
*/
public class PatientReportSearchVo {
@Data
@ApiModel("搜索条件-响应")
public static class SearchParam {
private Long id;
private String code;
private String name;
private byte optionStatus;
private String parentCode;
private List<SearchParam> children = new ArrayList<>();
}
@Data
@ApiModel("搜索-响应")
public static class Search {
private Long id;
private String name;
}
}

607
ht/src/main/java/com/ccsens/ht/bean/vo/PatientReportVo.java

@ -5,16 +5,18 @@ import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.ccsens.ht.uitl.Constant;
import com.ccsens.util.PdfUtil;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.math.BigDecimal;
import java.util.*;
/**
* @program: ptpro
* @program: ht
* @description:
* @author: wu huijuan
* @author: whj
* @create: 2019/10/31 10:28
*/
public class PatientReportVo {
@ -61,20 +63,22 @@ public class PatientReportVo {
private Byte authority;
@ApiModelProperty("报告单文件路径")
private String url;
@ApiModelProperty("医生ID")
private Long doctorId;
}
@ApiModel("PatientReportVoReprotDetail")
@ApiModel("PatientReportVoReportDetail")
@Data
public static class ReprotDetail{
public static class ReportDetail {
@ApiModelProperty("报告单上病人信息")
private ReprotPatient patient;
private ReportPatient patient;
@ApiModelProperty("报告单上分数信息")
private List<ReportScore> scores;
}
@ApiModel("PatientReportVoReprotPatient")
@ApiModel("PatientReportVoReportPatient")
@Data
public static class ReprotPatient{
public static class ReportPatient {
@ApiModelProperty("病人报告单ID")
private Long id;
@ApiModelProperty("报告单名字")
@ -89,8 +93,6 @@ public class PatientReportVo {
private String doctorName;
@ApiModelProperty("编号")
private String serialNumber;
@ApiModelProperty("初步印象")
private String initialImpression;
@ApiModelProperty("临床诊断")
private String clinicalDiagnosis;
@ApiModelProperty("严重程度(0:未评测 1:轻度 2:中度 3:重度) ")
@ -123,12 +125,57 @@ public class PatientReportVo {
private Byte career;
@ApiModelProperty("医院")
private String hospital;
@ApiModelProperty("受试者合作评分")
private int workingScore;
@ApiModelProperty("初步印象")
private String initialImpression;
public List<PdfUtil.Row> toPdfRow(){
Map<Byte, String> careerMap = new HashMap<>();
List<PdfUtil.Row> rows = getInitRows();
//第四栏
rows.add(
fillRowCosColSpan(3,
"临床诊断:" + this.clinicalDiagnosis,
"","")
);
return rows;
}
public List<PdfUtil.Row> toPdfSimpleCodeRow(){
List<PdfUtil.Row> rows = getInitRows();
//第四栏
Date date = new Date();
if (this.reportTime != null && this.reportTime > 0) {
date.setTime(this.reportTime);
}
PdfUtil.Row fourRow = new PdfUtil.Row();
PdfUtil.Cell cell = new PdfUtil.Cell();
cell.setContent("临床诊断:" + (StrUtil.isEmpty(this.clinicalDiagnosis) ? "" : this.clinicalDiagnosis) );
cell.setCenter(false);
cell.setColSpan(2);
cell.setBorderLeft(0);
cell.setBorderBottom(0);
fourRow.addCell(cell);
PdfUtil.Cell cell2 = new PdfUtil.Cell();
cell2.setContent("检查日期:" + DateUtil.format(date, "yyyy-MM-dd"));
cell2.setCenter(false);
cell2.setBorderLeft(0);
cell2.setBorderBottom(0);
fourRow.addCell(cell2);
rows.add(fourRow);
return rows;
}
private List<PdfUtil.Row> getInitRows() {
Map<Byte, String> careerMap = new HashMap<>(16);
String careerMsg = "1:农林牧渔水利生产人员 2:教师 3:医务工作者 4:专业技术人员 5:生产、运输设备操作人员及有关人员 6:商业、服务业人员 7:国家机关、事业单位、企业负责人 8:国家机关、事业单位、企业办事人员和有关人员 9:军人 10:媒体、文体类工作人员 11:在校学生 12:未就业 13:家务 14:其他";
for (String careerOne: careerMsg.split(" ")) {
careerMap.put(Byte.parseByte(careerOne.split(":")[0]), careerOne.split(":")[1]);
String splitStr = " ";
for (String careerOne : careerMsg.split(splitStr)) {
String splitStr2 = ":";
careerMap.put(Byte.parseByte(careerOne.split(splitStr2)[0]), careerOne.split(splitStr2)[1]);
}
@ -145,30 +192,16 @@ public class PatientReportVo {
rows.add(
fillRow(
"文化程度:" + this.educationalStatusUnit + "年",
"编号:" + this.serialNumber,
"编号:" + (StrUtil.isEmpty(this.serialNumber) ? "" : this.serialNumber),
"职业:" + careerMap.get(this.career))
);
//第三栏
rows.add(
fillRow(
"科别:" + this.department,
"床号:" + this.bedNumber,
"病案号:" + this.hospitalNumber)
"科别:" + (StrUtil.isEmpty(this.department) ? "" : this.department),
"床号:" + (StrUtil.isEmpty(this.bedNumber) ? "" : this.bedNumber),
"病案号:" + (StrUtil.isEmpty(this.hospitalNumber) ? "" : this.hospitalNumber))
);
//第四栏
// Date date = null;
// if (this.reportTime > 0) {
// date = new Date();
// date.setTime(this.reportTime);
// }
rows.add(
fillRow(
"临床诊断:" + this.clinicalDiagnosis,
"","")
// "检查日期:" + (date == null ? "" : DateUtil.format(date, "yyyy-MM-dd")))
);
return rows;
}
@ -188,10 +221,34 @@ public class PatientReportVo {
return row;
}
private PdfUtil.Row fillRowCosColSpan(int colSpan,String... params) {
colSpan = colSpan == 0 ? 1 : colSpan;
PdfUtil.Row row = new PdfUtil.Row();
for (String param: params) {
PdfUtil.Cell cell = new PdfUtil.Cell();
cell.setContent(param);
// cell.setBorder(0);
cell.setCenter(false);
cell.setBorderLeft(0);
cell.setBorderRight(0);
cell.setBorderTop(0);
cell.setBorderBottom(0);
cell.setColSpan(colSpan);
row.addCell(cell);
}
return row;
}
}
@ApiModel("题目序号和分数-响应")
@Data
public static class SortScore{
private int sort;
private BigDecimal score;
}
/**分数类型*/
@ApiModel("PatientReportVoReportScore")
@ApiModel("报告单分数-响应")
@Data
public static class ReportScore{
@ApiModelProperty("报告单检查类型")
@ -205,7 +262,7 @@ public class PatientReportVo {
@ApiModelProperty("总分(<0:不需要显示总分,=0:不计分, >0:总分)")
private Integer totalScore;
@ApiModelProperty("病人得分")
private Integer score;
private BigDecimal score;
@ApiModelProperty("备注")
private String remark;
@ApiModelProperty("类型(1:报告单 2:测评 3:测评子类 4:二级子类)")
@ -217,35 +274,57 @@ public class PatientReportVo {
this.subReport.add(score);
}
/**
* 将mmse的多层嵌套转成一层
* @param score 报告
* @param list 转换后的list
*/
public void dealMMSE(ReportScore score, List<ReportScore> list) {
if (CollectionUtil.isEmpty(score.subReport)) {
list.add(score);
} else {
score.subReport.forEach(subScore -> dealMMSE(subScore, list));
}
}
public List<PdfUtil.Row> toRow() {
int colNum = 8;
int colNum = 9;
int headNum = 2;
List<PdfUtil.Row> rows = new ArrayList<>();
if (CollectionUtil.isEmpty(subReport)) {
PdfUtil.Row row = new PdfUtil.Row();
PdfUtil.Cell cell1 = new PdfUtil.Cell();
cell1.setContent(this.code + (StrUtil.isBlank(this.remark) ? "" : "("+this.remark+")"));
cell1.setColSpan(headNum);
PdfUtil.Cell cell2 = new PdfUtil.Cell();
cell2.setContent(this.score == null ? "" : this.score + (this.totalScore > 0 ? "/" + this.totalScore : ""));
cell2.setColSpan(colNum - headNum);
cell2.setBorderRight(1);
row.addCell(cell1);
row.addCell(cell2);
rows.add(row);
toRowOnlyTotal(colNum, headNum, rows);
} else {
String mmse = Constant.Ht.Report.MMSE;
String npi = Constant.Ht.Report.NPI;
if (mmse.equalsIgnoreCase(this.code) || npi.equalsIgnoreCase(this.code)) {
fillMmseOrNpi(headNum, rows, mmse, npi);
} else {
fillMoca(rows);
switch (this.code) {
case Constant.Ht.Report.MMSE:
case Constant.Ht.Report.NPI:
fillMmseOrNpi(headNum, rows, mmse, npi);
break;
case Constant.Ht.Report.MOCA:
fillMoca(rows);
break;
case Constant.Ht.Report.HAMD:
case Constant.Ht.Report.HAMA:
case Constant.Ht.Report.ADL:
toRowOnlyTotal(colNum, headNum, rows);
break;
default:
fillCommon(rows);
break;
}
}
toDescRow(colNum, headNum, rows);
return rows;
}
private void toDescRow(int colNum, int headNum, List<PdfUtil.Row> rows) {
if (StrUtil.isBlank(this.description)) {
return rows;
return ;
}
PdfUtil.Row descRow = new PdfUtil.Row();
PdfUtil.Cell cell = new PdfUtil.Cell();
@ -258,10 +337,167 @@ public class PatientReportVo {
// MOCA中,视直觉单独展示
fillSzj(colNum, headNum, rows);
}
private void toRowOnlyTotal(int colNum, int headNum, List<PdfUtil.Row> rows) {
PdfUtil.Row row = new PdfUtil.Row();
PdfUtil.Cell cell1 = new PdfUtil.Cell();
cell1.setContent(this.code + (StrUtil.isBlank(this.remark) ? "" : "(" + this.remark + ")"));
cell1.setColSpan(headNum);
PdfUtil.Cell cell2 = new PdfUtil.Cell();
cell2.setContent(this.score == null ? "" : this.score + (this.totalScore > 0 ? "/" + this.totalScore : ""));
cell2.setColSpan(colNum - headNum);
cell2.setBorderRight(1);
row.addCell(cell1);
row.addCell(cell2);
rows.add(row);
}
public List<PdfUtil.Row> toSingleRow() {
int colNum = Constant.Ht.Report.HAMD.equalsIgnoreCase(code)
|| Constant.Ht.Report.MOCA.equalsIgnoreCase(code) ? 9 : 8;
int headNum = 2;
List<PdfUtil.Row> rows = new ArrayList<>();
if (CollectionUtil.isEmpty(subReport)) {
toRowOnlyTotal(colNum, headNum, rows);
} else {
String mmse = Constant.Ht.Report.MMSE;
String npi = Constant.Ht.Report.NPI;
switch (this.code) {
case Constant.Ht.Report.MMSE:
fillMMSE(rows);
break;
case Constant.Ht.Report.NPI:
fillMmseOrNpi(headNum, rows, mmse, npi);
break;
case Constant.Ht.Report.MOCA:
fillSingleMoca(rows);
break;
default:
fillCommon(rows);
break;
}
}
toDescRow(colNum, headNum, rows);
return rows;
}
private void fillMMSE(List<PdfUtil.Row> rows) {
List<ReportScore> mmseList = new ArrayList<>();
dealMMSE(this, mmseList);
PdfUtil.Row row = new PdfUtil.Row();
PdfUtil.Cell purposeCell = new PdfUtil.Cell(Constant.Export.MMSE_PURPOSE);
purposeCell.setColSpan(8);
purposeCell.setBorderRight(1);
purposeCell.setCenter(false);
purposeCell.setHeight(36);
row.addCell(purposeCell);
rows.add(row);
PdfUtil.Row titleRow = new PdfUtil.Row();
PdfUtil.Row scoreRow = new PdfUtil.Row();
for (int i = 0; i < mmseList.size() ; i++) {
if (i == 0) {
PdfUtil.Cell cell = new PdfUtil.Cell("简明心理状况测验(MMSE)");
cell.setRowSpan(4);
titleRow.addCell(cell);
rows.add(titleRow);
rows.add(scoreRow);
} else if (i==7){
titleRow = new PdfUtil.Row();
scoreRow = new PdfUtil.Row();
rows.add(titleRow);
rows.add(scoreRow);
}
ReportScore score = mmseList.get(i);
PdfUtil.Cell titleCell = new PdfUtil.Cell(score.getName());
titleRow.addCell(titleCell);
titleCell.setBorderRight(i == 6 ? 1 : 0);
PdfUtil.Cell scoreCell = new PdfUtil.Cell((score.score == null ? "" : score.score) + (score.totalScore > 0 ? "/" + score.totalScore : ""));
scoreCell.setBorderRight(i == 6 ? 1 : 0);
scoreRow.addCell(scoreCell);
if (i == mmseList.size() - 1) {
PdfUtil.Cell titleTotalCell = new PdfUtil.Cell("总分");
titleTotalCell.setColSpan(3);
titleTotalCell.setBorderRight(1);
titleRow.addCell(titleTotalCell);
PdfUtil.Cell scoreTotalCell = new PdfUtil.Cell((this.score == null ? "" : this.score) + (this.totalScore > 0 ? "/" + this.totalScore : ""));
scoreTotalCell.setColSpan(3);
scoreTotalCell.setBorderRight(1);
scoreRow.addCell(scoreTotalCell);
}
}
}
/**
* 通用项目得分
* @param rows pdf的内容
*/
private void fillCommon(List<PdfUtil.Row> rows) {
//总列数
int total = Constant.Ht.Report.HAMD.equalsIgnoreCase(code) ? 9 : 8;
// 标题
PdfUtil.Row row = new PdfUtil.Row();
PdfUtil.Cell cell = new PdfUtil.Cell();
cell.setContent(this.name + "(" + this.code + ")各项目的因子分和总分");
cell.setColSpan(total);
cell.setBorderTop(0);
cell.setBorderRight(0);
cell.setBorderLeft(0);
row.addCell(cell);
rows.add(row);
// 默认两行
PdfUtil.Row row1 = new PdfUtil.Row();
PdfUtil.Row row2 = new PdfUtil.Row();
// 题目
PdfUtil.Cell firstCell1 = new PdfUtil.Cell();
firstCell1.setContent("项目");
row1.addCell(firstCell1);
PdfUtil.Cell firstCell2 = new PdfUtil.Cell();
firstCell2.setContent("计分");
row2.addCell(firstCell2);
// 子类型
int colspan = (total - 1) / (this.subReport.size() + 1);
int lastSpan = total - 1 - colspan * this.subReport.size();
this.subReport.forEach(score -> {
PdfUtil.Cell cell1 = new PdfUtil.Cell();
PdfUtil.Cell cell2 = new PdfUtil.Cell();
cell1.setContent(score.name);
cell1.setColSpan(colspan);
cell2.setContent(score.score == null ? "" : score.score + (score.totalScore > 0 ? "/" + score.totalScore : ""));
cell2.setColSpan(colspan);
row1.addCell(cell1);
row2.addCell(cell2);
});
// 总分
PdfUtil.Cell lastCell1 = new PdfUtil.Cell();
lastCell1.setContent("总分");
lastCell1.setColSpan(lastSpan);
lastCell1.setBorderRight(1);
row1.addCell(lastCell1);
PdfUtil.Cell lastCell2 = new PdfUtil.Cell();
lastCell2.setContent(this.score == null ? "" : this.score + (this.totalScore > 0 ? "/" + this.totalScore : ""));
lastCell2.setColSpan(lastSpan);
lastCell2.setBorderRight(1);
row2.addCell(lastCell2);
rows.add(row1);
rows.add(row2);
}
private void fillMmseOrNpi(int headNum, List<PdfUtil.Row> rows, String mmse, String npi) {
PdfUtil.Row row1 = new PdfUtil.Row();
PdfUtil.Cell cell = new PdfUtil.Cell();
@ -274,21 +510,49 @@ public class PatientReportVo {
PdfUtil.Row row2 = new PdfUtil.Row();
// fillBlankCell(row2);
//子测评项
this.subReport.forEach(reportScore -> {
for (int i = 0; i < this.subReport.size(); i++) {
ReportScore reportScore = this.subReport.get(i);
String score = (reportScore.score == null ? "" : reportScore.score) + (reportScore.getTotalScore() > 0 ? "/" + reportScore.getTotalScore() : "");
boolean isLast = npi.equalsIgnoreCase(this.code) && this.subReport.indexOf(reportScore) == this.subReport.size() - 1;
fillRow(row1,row2, reportScore.getName(), score, mmse.equalsIgnoreCase(this.code), isLast, npi.equalsIgnoreCase(this.code) ? new int[]{3,3} : null);
});
boolean isMMSE = mmse.equalsIgnoreCase(this.code);
if (isMMSE) {
fillRow(row1,row2, reportScore.getName(), score, true, isLast, null);
} else {
fillRow(row1,row2, reportScore.getName(), score, false, isLast, i==0 ? new int[]{3,3} : new int[]{4,4});
}
}
// 总分
if (mmse.equalsIgnoreCase(this.code)) {
fillRow(row1,row2, "总分", this.score == null ? "" : this.score + (this.totalScore > 0 ? "/" + this.totalScore : ""), mmse.equalsIgnoreCase(this.code), true);
fillRow(row1,row2, "总分", (this.score == null ? "" : this.score) + (this.totalScore > 0 ? "/" + this.totalScore : ""), mmse.equalsIgnoreCase(this.code), true);
}
rows.add(row1);
rows.add(row2);
}
private void fillMoca(List<PdfUtil.Row> rows) {
fillMocaScore(rows);
}
private void fillSingleMoca(List<PdfUtil.Row> rows) {
//moca
PdfUtil.Row row = new PdfUtil.Row();
PdfUtil.Cell purposeCell = new PdfUtil.Cell(Constant.Export.MOCA_PURPOSE);
purposeCell.setColSpan(9);
purposeCell.setCenter(false);
purposeCell.setBorderRight(1);
purposeCell.setHeight(36);
row.addCell(purposeCell);
rows.add(row);
fillMocaScore(rows);
}
private void fillMocaScore(List<PdfUtil.Row> rows) {
int firstIndex = 5;
PdfUtil.Row row1 = new PdfUtil.Row();
PdfUtil.Cell cell = new PdfUtil.Cell();
@ -303,7 +567,7 @@ public class PatientReportVo {
fillRow(row1, row2, reportScore.getName(), " ", false, false, i == 0 ? new int[]{2,2}: null);
} else {
String score = (reportScore.score == null ? "" : reportScore.score) + (reportScore.getTotalScore() > 0 ? "/" + reportScore.getTotalScore() : "");
fillRow(row1, row2, reportScore.getName(), score, false, false, i == 0 ? new int[]{2,2}: null);
fillRow(row1, row2, reportScore.getName(), score, false, false, i == 0 || i == firstIndex - 1 ? new int[]{2,2}: null);
}
}
PdfUtil.Cell scoreNameCell = new PdfUtil.Cell();
@ -311,7 +575,7 @@ public class PatientReportVo {
scoreNameCell.setBorderRight(1);
row1.addCell(scoreNameCell);
PdfUtil.Cell scoreCell = new PdfUtil.Cell();
scoreCell.setContent(this.score == null ? "" : this.score + (this.totalScore > 0 ? "/" + this.totalScore : ""));
scoreCell.setContent((this.score == null ? "" : this.score) + (this.totalScore > 0 ? "/" + this.totalScore : ""));
scoreCell.setRowSpan(4);
scoreCell.setBorderRight(1);
row2.addCell(scoreCell);
@ -350,7 +614,6 @@ public class PatientReportVo {
scoreScoreCell.setRowSpan(2);
scoreScoreCell.setColSpan(ychy.equalsIgnoreCase(reportScore.getCode()) ? 2 : 1);
row4.addCell(scoreScoreCell);
}
rows.add(row3);
rows.add(row4);
@ -376,23 +639,23 @@ public class PatientReportVo {
}
}
/**
* 添加一个空格
* @param rows
*/
private void fillBlankCell(PdfUtil.Row... rows) {
for (PdfUtil.Row row: rows) {
PdfUtil.Cell cell = new PdfUtil.Cell();
row.addCell(cell);
}
}
// /**
// * 添加一个空格
// * @param rows 行
// */
// private void fillBlankCell(PdfUtil.Row... rows) {
// for (PdfUtil.Row row: rows) {
// PdfUtil.Cell cell = new PdfUtil.Cell();
// row.addCell(cell);
// }
// }
private void fillRow(PdfUtil.Row row1, PdfUtil.Row row2, String name, String score, boolean isTop, boolean isRight, int... colspan){
//名称
PdfUtil.Cell cell1 = new PdfUtil.Cell();
cell1.setContent(name);
cell1.setBorderTop(isTop? 1 : 0);
cell1.setBorderRight(isRight? 1 : 0);
cell1.setBorderTop(isTop? 1 : null);
cell1.setBorderRight(isRight? 1 : null);
cell1.setColSpan(colspan == null || colspan.length == 0 ? 1 : colspan[0]);
row1.addCell(cell1);
@ -400,19 +663,18 @@ public class PatientReportVo {
PdfUtil.Cell cell2 = new PdfUtil.Cell();
cell2.setContent(score);
cell2.setColSpan(colspan == null || colspan.length <= 1 ? 1 : colspan[1]);
cell2.setBorderRight(isRight? 1 : 0);
cell2.setBorderRight(isRight? 1 : null);
row2.addCell(cell2);
}
}
/**医生对报告单权限*/
@ApiModel("PatientReportVoAuthority")
@ApiModel("医生对报告单权限")
@Data
public static class Authority{
@ApiModelProperty("对报告单的操作权限 0:仅查看 1: 可修改 2:可审查")
private int authority;
public static final int OLAY_READ = 0;
public static final int ONLY_READ = 0;
public static final int READ_WRITE = 1;
public static final int CHECK = 2;
}
@ -423,4 +685,201 @@ public class PatientReportVo {
@ApiModelProperty("路径")
private String path;
}
@ApiModel("临床诊断统计")
@Data
public static class ClinicalDiagnosis{
@ApiModelProperty("临床诊断类型")
private String diagnosis;
@ApiModelProperty("对应人数")
private Integer count;
}
@ApiModel("年龄性别统计")
@Data
public static class AgeAndSex{
@ApiModelProperty("年龄段")
private Byte ageLevel;
@ApiModelProperty("性别")
private Byte sex;
@ApiModelProperty("对应人数")
private Integer count;
// public AgeAndSex(){}
// public AgeAndSex(Byte ageLevel, Byte sex, Integer count) {
// this.ageLevel = ageLevel;
// this.sex = sex;
// this.count = count;
// }
}
@ApiModel("年龄+性别统计")
@Data
public static class AgeAndSexGroup {
@ApiModelProperty("年龄段")
private String ageLevel;
@ApiModelProperty("男")
private AgeAndSex man;
@ApiModelProperty("女")
private AgeAndSex woman;
}
@ApiModel("日期统计")
@Data
public static class Day {
@ApiModelProperty("日期")
private String dateDay;
@ApiModelProperty("统计")
private Integer count;
}
@ApiModel("报告单的详细答题信息")
@Data
public static class ReportDetailAnswer {
@ApiModelProperty("上级选项名")
private String parentCode;
@ApiModelProperty("题目信息")
private List<QuestionInfo> questionList;
}
@ApiModel("题目详情")
@Data
public static class QuestionInfo {
@ApiModelProperty("试题id")
private Long questionId;
@ApiModelProperty("题目名")
private String questionName;
@ApiModelProperty("题目类型")
private byte type;
@ApiModelProperty("用户操作类型")
private byte operateType;
@ApiModelProperty("题目答案")
private List<Answer> answers;
@ApiModelProperty("答题信息(图片路径等)")
private String otherValue;
}
@ApiModel("病友的答案")
@Data
public static class Answer {
@JsonIgnore
private String optionName;
@ApiModelProperty("答案")
private String answer;
}
@ApiModel("病友画图详情")
@Data
public static class QueryQuestionImg {
@ApiModelProperty("图片路径")
private String imgPath;
}
@Data
@ApiModel("导出试题")
public static class QuestionAndAnswer{
private Long id;
@ApiModelProperty("排序")
private int sort;
@ApiModelProperty("试题")
private String question;
@ApiModelProperty("选项")
private List<Option> optionList;
}
@ApiModel("导出选项")
@Data
public static class Option{
private Long id;
@ApiModelProperty("选项内容")
private String name;
@ApiModelProperty("选中状态 0:未选中 1:选中")
private byte chooseStatus;
@ApiModelProperty("答案")
private String answer;
}
@ApiModel("报告单分析导出-vo")
@Data
public static class Analyse{
@ApiModelProperty("报告单ID")
private Long id;
@ApiModelProperty("测评日期")
private Long reportTime;
@ApiModelProperty("患者名字")
private String patientName;
@ApiModelProperty("患者手机号")
private String patientPhone;
@ApiModelProperty("性别")
private Byte sex;
@ApiModelProperty("年龄")
private Byte patientAge;
@ApiModelProperty("文化程度")
private Byte educationalStatus;
@ApiModelProperty("职业")
private Byte career;
@ApiModelProperty("临床诊断")
private String clinicalDiagnosis;
@ApiModelProperty("严重程度")
private Byte pasi;
@ApiModelProperty("mmse分数")
private List<MMSEScore> mmseScores;
@ApiModelProperty("moca分数")
private List<MoCAScore> mocaScores;
@ApiModelProperty("总分")
private List<TotalScore> totalScores;
}
@ApiModel("mmse分数-导出分析")
@Data
public static class MMSEScore{
@ApiModelProperty("code")
private String code;
@ApiModelProperty("分数")
private BigDecimal score;
public MMSEScore() {
}
public MMSEScore(String code, BigDecimal score) {
this.code = code;
this.score = score;
}
}
@ApiModel("moca分数-导出分析")
@Data
public static class MoCAScore{
@ApiModelProperty("题目排序")
private int sort;
@ApiModelProperty("分数")
private BigDecimal score;
}
@ApiModel("量表总分数-导出分析")
@Data
public static class TotalScore{
@ApiModelProperty("量表类型")
private String evaluationCode;
@ApiModelProperty("总评分")
private BigDecimal totalScore;
}
@ApiModel("分数和答案")
@Data
public static class AnswerAndScore{
@ApiModelProperty("报告单ID")
private Long patientReportId;
@ApiModelProperty("患者ID")
private Long patientId;
@ApiModelProperty("分数")
private String score;
@ApiModelProperty("答案")
private String recordValue;
@ApiModelProperty("诊断结果")
private String clinicalDiagnosis;
}
}

83
ht/src/main/java/com/ccsens/ht/bean/vo/QuestionShowVo.java

@ -0,0 +1,83 @@
package com.ccsens.ht.bean.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.util.ArrayList;
import java.util.List;
/**
* @description:
* @author: whj
* @time: 2021/6/10 16:29
*/
public class QuestionShowVo {
@Data
@ApiModel("显示信息")
public static class Show{
@ApiModelProperty("类型 0:倒计时 1:限制选项数量 2:不是选中指定选项执行操作 3:显示内容")
private byte showType;
}
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("选项限制")
public static class OptionLimit extends Show{
@ApiModelProperty("限制类型 0:限制数量")
private byte type;
@ApiModelProperty("属性")
private String name;
@ApiModelProperty("最大")
private byte max;
@ApiModelProperty("最小")
private byte min;
}
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("特殊指定-返回")
public static class OptionSpecial extends Show{
@ApiModelProperty("限制类型 0:选中选项数量达到最大后,内容非指定选项,则显示对应信息")
private byte type;
@ApiModelProperty("选项ID")
private List<Long> optionIds = new ArrayList<>();
@ApiModelProperty("选项序号")
private List<Byte> optionNums;
@ApiModelProperty("显示类型 0:图片")
private byte show;
@ApiModelProperty("内容")
private String content;
}
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("题目内容补充")
public static class QuestionSupplement extends Show{
@ApiModelProperty("类型 0:图片")
private byte type;
@ApiModelProperty("内容")
private String content;
}
@ApiModel("倒计时配置")
@Data
public static class MesTimer {
@ApiModelProperty("限制类型 0:跳转指定题目")
private byte type;
@ApiModelProperty("taskId")
private Long taskId;
@ApiModelProperty("提醒文案")
private String content;
@ApiModelProperty("量表")
private String code;
@ApiModelProperty("序号")
private byte sort;
@ApiModelProperty("时长")
private int time;
}
}

377
ht/src/main/java/com/ccsens/ht/bean/vo/QuestionVo.java

@ -1,16 +1,20 @@
package com.ccsens.ht.bean.vo;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.ccsens.ht.bean.po.HtPatientQuestionRecord;
import com.ccsens.ht.bean.po.HtQuestion;
import com.ccsens.ht.bean.po.HtQuestionIntroducer;
import com.ccsens.ht.bean.po.HtQuestionOption;
import com.ccsens.ht.bean.po.HtQuestionShow;
import com.ccsens.ht.uitl.Constant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;
import org.springframework.util.CollectionUtils;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@ -45,13 +49,13 @@ public class QuestionVo {
super();
}
public Query(Question question, List<Option> options, List<Introduce> introduces, List<Record> records, int maxSort) {
public Query(Question question, List<Option> options, List<Introduce> introduces, List<Record> records, List<HtQuestionShow> shows, int maxSort) {
this.question = question;
this.introduces = introduces;
this.optionJsons = new ArrayList<>();
//方便后续把相同属性的选项放到一个对象的List中
Map<String, OptionJson> map = new HashMap<>();
if (CollectionUtil.isNotEmpty(options)) {
//方便后续把相同属性的选项放到一个对象的List中
Map<String, OptionJson> map = new HashMap<>();
options.forEach(option -> {
if (map.get(option.getName()) == null) {
OptionJson json = new OptionJson();
@ -65,18 +69,68 @@ public class QuestionVo {
});
}
this.records = records;
this.isLast = question.getSort().intValue() == maxSort;
this.isFirst = question.getSort().intValue() == 1;
this.isLast = question.getSort() == maxSort;
this.isFirst = question.getSort() == 1;
if (CollectionUtil.isEmpty(shows)) {
return;
}
shows.forEach(show->{
if (StrUtil.isBlank(show.getParam())) {
return;
}
switch (show.getShowType()) {
case Constant.Ht.QuestionShow.SHOW_TYPE_LIMIT:
QuestionShowVo.OptionLimit limit = JSONObject.parseObject(show.getParam(), QuestionShowVo.OptionLimit.class);
limit.setShowType(Constant.Ht.QuestionShow.SHOW_TYPE_LIMIT);
// 对选项要求追加到对应name下
OptionJson optionJson = map.get(limit.getName());
if (optionJson == null) {
return;
}
if (optionJson.getOptionShows() == null) {
optionJson.setOptionShows(new ArrayList<>());
}
optionJson.getOptionShows().add(limit);
break;
case Constant.Ht.QuestionShow.SHOW_TYPE_SPECIAL:
QuestionShowVo.OptionSpecial special = JSONObject.parseObject(show.getParam(), QuestionShowVo.OptionSpecial.class);
special.setShowType(Constant.Ht.QuestionShow.SHOW_TYPE_SPECIAL);
if (special.getOptionNums() == null) {
break;
}
// 根据选项序号获取对应的选项ID
special.getOptionNums().forEach(num -> {
if (options.size() >= num) {
special.getOptionIds().add(options.get(num - 1).getId());
}
});
// 追加到题目信息里
question.getQuestionShows().add(special);
break;
case Constant.Ht.QuestionShow.SHOW_TYPE_SHOW:
QuestionShowVo.QuestionSupplement questionSupplement = JSONObject.parseObject(show.getParam(), QuestionShowVo.QuestionSupplement.class);
questionSupplement.setShowType(Constant.Ht.QuestionShow.SHOW_TYPE_SHOW);
// 追加到题目信息里
question.getQuestionShows().add(questionSupplement);
break;
default:
break;
}
});
}
}
@Data
@ApiModel("QuestionVoReport")
@ApiModel("报告单类型")
public static class Report{
@ApiModelProperty("报告单编码")
private String code;
@ApiModelProperty("")
@ApiModelProperty("名字")
private String name;
@ApiModelProperty("补充内容")
List<QuestionRecord> codeRecords;
}
@Data
@ -92,7 +146,7 @@ public class QuestionVo {
vo.setQuestion(Question.toQuestionVo(question));
if (CollectionUtil.isNotEmpty(options)) {
//方便后续把相同属性的选项放到一个对象的List中
Map<String, OptionJson> map = new HashMap<>();
Map<String, OptionJson> map = new HashMap<>(16);
options.forEach(option -> {
if (map.get(option.getName()) == null) {
OptionJson json = new OptionJson();
@ -114,6 +168,8 @@ public class QuestionVo {
public static class Question{
@ApiModelProperty("试题ID")
private Long id;
@ApiModelProperty("一级评测类型")
private String evaluationCode;
@ApiModelProperty("评测类型")
private String parentCode;
@ApiModelProperty("排序")
@ -138,15 +194,24 @@ public class QuestionVo {
private Integer clearTimes;
@ApiModelProperty("定时器时长")
private Integer timingLength;
@ApiModelProperty("答案路径")
private String path;
// @ApiModelProperty("答案路径")
// private String path;
@ApiModelProperty("是否进行智能测评 0: 否 1:是")
private byte intelligence;
@ApiModelProperty("共享答案的试题Id")
private List<Long> shareAnswerIds;
@ApiModelProperty("是否展示关联的试题的答案 0否 1是")
private byte showShareAnswer;
@ApiModelProperty("关联试题")
List<QuestionOption> relationQuestions = new ArrayList<>();
@ApiModelProperty("补充内容")
List<QuestionRecord> questionRecords;
@ApiModelProperty("补充显示内容")
List<? super QuestionShowVo.Show> questionShows = new ArrayList<>();
/**
* 将HtQuestion转化成Question
* @param question
* @return
* @param question 试题信息
* @return 试题vo
*/
public static Question toQuestionVo(HtQuestion question) {
Question vo = new Question();
@ -154,30 +219,86 @@ public class QuestionVo {
return vo;
}
/**
* 将HtQuestion集合转化成Question集合
* @param questions
* @return
*/
public static List<Question> toQuestionVos(List<HtQuestion> questions) {
List<Question> vos = new ArrayList<>();
if (CollectionUtils.isEmpty(questions)) {
return vos;
}
@Data
@ApiModel("题目或code补充")
public static final class QuestionRecord{
@ApiModelProperty("id")
private Long id;
@ApiModelProperty("0:点击过程 1:自动计算 2:手动计算")
private Byte calcType;
@ApiModelProperty("显示内容")
private String showTitle;
@ApiModelProperty("显示形式")
private String showForm;
@ApiModelProperty("默认值")
private String defaultValue;
@ApiModelProperty("自动计算规则:0:答案个数 1:插入数 同一物品两次以上插入算为一个插入 2:重复数 每次重复均算为一次重复")
private Byte type;
@ApiModelProperty("备注")
private String remark;
@ApiModelProperty("答案")
private List<String> answers;
@ApiModelProperty("选项")
private List<RecordOption> options;
public List<RecordOption> getOptions() {
if (CollectionUtil.isEmpty(answers) || CollectionUtil.isEmpty(options)) {
return options;
}
questions.forEach(question -> {
Question vo = new Question();
BeanUtils.copyProperties(question, vo);
vos.add(vo);
});
return vos;
for (RecordOption option: options) {
for (String answer: answers) {
if (option.getDataKey().equals(answer)) {
option.choose = 1;
break;
}
}
}
return options;
}
}
@Data
@ApiModel("record的选项")
public static final class RecordOption {
@ApiModelProperty("id")
private Long id;
@ApiModelProperty("提交值")
private String dataKey;
@ApiModelProperty("显示值")
private String dataValue;
@ApiModelProperty("是否选中 0:否 1:是")
private byte choose = 0;
}
@Data
@ApiModel("选项补充")
public static final class OptionDesc{
@ApiModelProperty("id")
private Long id;
private Byte type;
private String content;
}
@Data
@ApiModel("(可以共享答案的试题)关联的试题id")
public static class ShareAnswer{
@ApiModelProperty("关联试题的id")
private Long shareAnswerId;
@ApiModelProperty("是否展示关联试题的答案")
private byte showShareAnswer;
}
@Data
@ApiModel("QuestionVoOptionOptionJson")
public static class OptionJson {
private String name;
private List<Option> options = new ArrayList<>();
@ApiModelProperty("补充显示内容")
List<? super QuestionShowVo.Show> optionShows = new ArrayList<>();
public void addOption(Option option){
options.add(option);
}
@ -198,12 +319,19 @@ public class QuestionVo {
private Integer score;
@ApiModelProperty("显示")
private String display;
@ApiModelProperty("答案")
@ApiModelProperty("画图(路径)")
private String answer;
@ApiModelProperty("是否选中")
private Byte choose;
@ApiModelProperty("文本答案")
private String content;
@ApiModelProperty("选项补充")
private List<OptionDesc> optionDescList;
}
@Data
@ApiModel("QuestionVoIntroduce")
public static class Introduce {
@ -216,17 +344,17 @@ public class QuestionVo {
/**
* 将HtQuestionIntroduce转化成介绍vo
* @param introduces
* @return
* @param introduces 引导语
* @return 引导语vo
*/
public static List<Introduce> toIntroduces(List<HtQuestionIntroducer> introduces) {
List<Introduce> vos = new ArrayList<>();
if (CollectionUtils.isEmpty(introduces)) {
return vos;
}
introduces.forEach(introducer -> {
introduces.forEach(introduce -> {
Introduce vo = new Introduce();
BeanUtils.copyProperties(introducer, vo);
BeanUtils.copyProperties(introduce, vo);
vos.add(vo);
});
return vos;
@ -247,8 +375,8 @@ public class QuestionVo {
/**
* HtPatientQuestionRecord转化成介绍vo
* @param records
* @return
* @param records 其他记录
* @return 其他记录VO
*/
public static List<Record> toRecords(List<HtPatientQuestionRecord> records) {
List<Record> vos = new ArrayList<>();
@ -264,4 +392,181 @@ public class QuestionVo {
}
}
@Data
@ApiModel("病人画图的轨迹信息")
public static class PatientCanvas{
@ApiModelProperty("画图信息id")
private Long patientCanvasId;
@ApiModelProperty("报告单id")
private Long patientReportId;
@ApiModelProperty("测评试题id")
private Long questionId;
@ApiModelProperty("题目类型")
private byte questionType;
@ApiModelProperty("用户操作类型")
private byte operateType;
@ApiModelProperty("题目详情(画图题的图片)")
private String questionName;
@ApiModelProperty("开始时间")
private Long beginTime;
@ApiModelProperty("轨迹,每个字符串是一条轨迹,轨迹内格式(x,y,time;x,y,time;.....)")
private List<PointStatus> points;
@ApiModelProperty("画板大小")
private Canvas canvas;
@ApiModelProperty("背景图片路径")
private String backgroundUrl;
@ApiModelProperty("笔触信息")
private CanvasLine line;
@ApiModelProperty("统计参数")
private Parameter parameters;
}
@Data
@ApiModel("轨迹信息及颜色")
public static class Point{
@ApiModelProperty("id")
private Long pointId;
@ApiModelProperty("颜色")
private Integer color;
@ApiModelProperty("轨迹坐标值 x,y,time,type type:0 普通 1左 2右 3 上 4 下")
private String value;
}
@Data
@ApiModel("轨迹信息及颜色")
public static class PointStatus{
@ApiModelProperty("id")
private Long pointId;
@ApiModelProperty("颜色")
private Integer color;
@ApiModelProperty("轨迹坐标值 x,y,time,type type:0 普通 1左 2右 3 上 4 下")
private String value;
@ApiModelProperty("状态 0:未删除 1:删除")
private byte delStatus;
}
@Data
@ApiModel("坐标")
public static class Coordinate {
@ApiModelProperty("横坐标")
private int x;
@ApiModelProperty("横坐标")
private int y;
public Coordinate() {
}
public Coordinate(int x, int y) {
this.x = x;
this.y = y;
}
}
@Data
@ApiModel("画板信息")
public static class Canvas{
@ApiModelProperty("画板宽")
private Integer width;
@ApiModelProperty("画板高")
private Integer height;
}
@Data
@ApiModel("笔触信息")
public static class CanvasLine{
@ApiModelProperty("笔触颜色")
private String color;
@ApiModelProperty("笔触粗细")
private Integer width;
}
@Data
@ApiModel("轨迹参数统计")
public static class Parameter{
@ApiModelProperty("打开画板至开始画图的时间")
private Long startDuration;
@ApiModelProperty("画图总时长,下笔到结束")
private Long totalDuration;
@ApiModelProperty("总笔画数")
private int lineNums;
@ApiModelProperty("最长笔画长度")
private double longLine;
@ApiModelProperty("最长笔画速度")
private double longSpeed;
@ApiModelProperty("最短笔画长度")
private double shortLine;
@ApiModelProperty("最短笔画速度")
private double shortSpeed;
@ApiModelProperty("笔画中间值")
private double centre;
@ApiModelProperty("平均每分钟画几笔")
private int aveTimes;
@ApiModelProperty("超出占比")
private String beyondProportion;
@ApiModelProperty("每条轨迹的参数")
private List<LineParameter> lineParameterList;
/*20210112新加统计数据*/
@ApiModelProperty("思考总时间(所有笔画间隔时间)")
private Long reflectOnTime;
@ApiModelProperty("落笔总时间(所有笔画绘图时间)")
private long paintTime;
@ApiModelProperty("原点坐标 x,y")
private String center;
@ApiModelProperty("中心 暂定为坐标:X,Y")
private String centreCoordinate;
@ApiModelProperty("中心相对原点坐标 X,Y")
private Coordinate showCentreCoordinate;
@ApiModelProperty("重心 暂定为坐标:X,Y")
private String barycenterCoordinate;
// 上下左右应部分图片存在倒转展示的问题,前端应反向展示
@ApiModelProperty("定点坐标(y最大,图上反而在最下)")
private Coordinate top;
@ApiModelProperty("底点坐标")
private Coordinate bottom ;
@ApiModelProperty("最左点")
private Coordinate left;
@ApiModelProperty("最右点")
private Coordinate right;
@ApiModelProperty("最小外接长方形面积 单位为px")
private double minRectangleAcreage;
@ApiModelProperty("最小外接圆面积 单位为px 保留两位小数")
private BigDecimal minCircleAcreage;
@ApiModelProperty("平均笔画长度")
private double aveLength;
@ApiModelProperty("平均思考时间")
private double aveReflectOnTime;
@ApiModelProperty("长笔画数量")
private int longNums;
@ApiModelProperty("短笔画数量")
private int shortNums;
@ApiModelProperty("快速思考数量")
private int quickNums;
@ApiModelProperty("长久思考数量")
private int slowNums;
@ApiModelProperty("过渡时间(在所有短-长笔画序列中画出一个短笔划后开始一个长笔划的总时间)")
private long transitionTime;
@ApiModelProperty("5个早期长笔画的经过时间(前5个长笔画的绘图时间之和")
private long fiveLongLinesTime;
@ApiModelProperty("前5笔长笔画率(前5个笔画中长笔画所占比率)")
private BigDecimal longLineRate;
@ApiModelProperty("平均绘图速度")
private double aveSpeed;
}
@Data
@ApiModel("每条轨迹信息")
public static class LineParameter{
@ApiModelProperty("笔画长度")
private double length;
@ApiModelProperty("用时")
private long duration;
@ApiModelProperty("速度")
private double speed;
@ApiModelProperty("时间间隔,和上一笔比较")
private long intervalDuration;
@ApiModelProperty("长度状态 0:短笔画 1:长笔画 ")
private byte lengthStatus;
@ApiModelProperty("思考时间状态 0:快速 1:迟疑")
private byte reflectOnStatus;
}
}

118
ht/src/main/java/com/ccsens/ht/bean/vo/StatisticsVo.java

@ -0,0 +1,118 @@
package com.ccsens.ht.bean.vo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import jnr.ffi.annotations.In;
import lombok.Data;
import java.util.List;
/**
* @author
*/
@Data
public class StatisticsVo {
@ApiModel("返回-测评人数实时统计")
@Data
public static class Realtime{
@ApiModelProperty("累计")
private int totalNum;
@ApiModelProperty("本月")
private int monthNum;
@ApiModelProperty("本日")
private int dayNum;
@ApiModelProperty("折线图数据")
private List<Chart> chartList;
}
@ApiModel("图表数据-类型数据")
@Data
public static class Chart{
@ApiModelProperty("类型")
private String type;
@ApiModelProperty("数量")
private int num;
}
@Data
@ApiModel("返回-性别年龄分布")
public static class AgeAndSex{
@ApiModelProperty("男性人数")
private int man;
@ApiModelProperty("女性人数")
private int woman;
@ApiModelProperty("年龄分布数据")
private List<Chart> chartList;
}
@Data
@ApiModel("返回-区域分布")
public static class AreaDistribution{
@ApiModelProperty("当前省份")
private String name;
@ApiModelProperty("当前省份数量")
private int num;
@ApiModelProperty("省份分布数据")
private List<Chart> chartList;
}
@Data
@ApiModel("返回-报告单分数分布")
public static class ReportDistribution{
@ApiModelProperty("数据类型")
private List<String> types;
@ApiModelProperty("横坐标类型")
private List<String> xAxis;
@ApiModelProperty("数据")
private List<ChartManWoman> chartList;
}
@Data
@ApiModel("图表数据-男女")
public static class ChartManWoman{
@ApiModelProperty("男生数据")
private List<Integer> manList;
@ApiModelProperty("女生数据")
private List<Integer> womanList;
}
@Data
@ApiModel("返回-报告单分数散点图")
public static class ReportScatterDiagram{
@ApiModelProperty("测评类型的最大分")
private int allMax;
@ApiModelProperty("分项的最大分")
private int mMax;
@ApiModelProperty("数据")
private List<List<Integer>> list;
}
@Data
@ApiModel("返回-查询试题类型")
public static class ReportCode{
@ApiModelProperty("id")
private Long id;
@ApiModelProperty("类型名")
private String name;
@ApiModelProperty("code")
private String code;
@ApiModelProperty("分项信息")
private List<ReportCode> subentryList;
}
@Data
public static class SundryNum{
private String ageType;
private int sexType;
private String scoreType;
private int num;
}
@Data
public static class CodeAndSubentryNum{
private int codeScore;
private int subentryScore;
private int num;
}
}

1
ht/src/main/java/com/ccsens/ht/config/SpringConfig.java

@ -17,7 +17,6 @@ import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.StringHttpMessageConverter;
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
import org.springframework.web.servlet.config.annotation.ContentNegotiationConfigurer;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

21
ht/src/main/java/com/ccsens/ht/persist/dao/HtDoctorDao.java

@ -0,0 +1,21 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.vo.DoctorVo;
import com.ccsens.ht.persist.mapper.HtDoctorMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* 医生信息
* @author whj
*/
public interface HtDoctorDao extends HtDoctorMapper {
/**
* 查询所有的下属信息
* @param positionId
* @return
*/
List<DoctorVo.Subordinate> queryAllSubordinate(@Param("positionId") Long positionId);
}

28
ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientCanvasDao.java

@ -0,0 +1,28 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.vo.QuestionVo;
import com.ccsens.ht.persist.mapper.HtPatientCanvasMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author
*/
@Repository
public interface HtPatientCanvasDao extends HtPatientCanvasMapper {
/**
* 查看用户画图轨迹
* @param canvasId 画板ID
* @return List<QuestionVo.PointStatus> 画图轨迹
*/
List<QuestionVo.Point> getCanvasPoints(@Param("canvasId") Long canvasId);
/**
* 查看用户全部画图轨迹含删除轨迹
* @param id 画板ID
* @return List<QuestionVo.PointStatus> 画图轨迹
*/
List<QuestionVo.PointStatus> getCanvasPointsDel(@Param("canvasId") Long id);
}

116
ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientReportDao.java

@ -1,5 +1,8 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.dto.PatientReportDto;
import com.ccsens.ht.bean.dto.PatientReportSearchDto;
import com.ccsens.ht.bean.vo.PatientReportSearchVo;
import com.ccsens.ht.bean.vo.PatientReportVo;
import com.ccsens.ht.persist.mapper.HtPatientReportMapper;
import org.apache.ibatis.annotations.Param;
@ -15,39 +18,122 @@ public interface HtPatientReportDao extends HtPatientReportMapper {
/**
*根据病人报告单ID查询报告单结果
* @param id
*@return: com.ccsens.ht.bean.vo.PatientReportVo.ReprotPatient
*@Author: wuHuiJuan
* @param id 报告单ID
*@return com.ccsens.ht.bean.vo.PatientReportVo.ReprotPatient
*@author wuHuiJuan
*@date: 2019/11/19 11:08
*/
PatientReportVo.ReprotPatient queryReportResult(@Param("id") Long id);
PatientReportVo.ReportPatient queryReportResult(@Param("id") Long id);
/**
* 根据病人报告单ID查询报告单各项相关分数
* @param id
*@return: com.ccsens.ht.bean.vo.PatientReportVo.ReportScore
*@Author: wuHuiJuan
* @param id 报告单ID
* @param rey 是否查询rey
* @param report 报告单类型
*@return com.ccsens.ht.bean.vo.PatientReportVo.ReportScore
*@author wuHuiJuan
*@date: 2019/11/19 11:46
*/
List<PatientReportVo.ReportScore> queryReportScore(@Param("id") Long id);
List<PatientReportVo.ReportScore> queryReportScore(@Param("id") Long id,@Param("rey") int rey, @Param("report") String report);
/**
* 查询NPI的分数
* @param id
* @return
* @param id 报告单ID
* @return npi分数
*/
List<Map<String, Object>> queryNPIScore(@Param("id") Long id);
List<Map<String, Object>> queryNpiScore(@Param("id") Long id);
/**
* 检查未完成的报告单
* @param userId
* @return
* @param userId 医生ID
* @return 报告单
*/
PatientReportVo.Complete checkComplete(@Param("userId") Long userId);
/**
* 忽略报告单
* @param id
* @param userId
* @param id 报告单ID
* @param userId 用户ID
*/
void ignoreComplete(@Param("id") Long id, @Param("userId") Long userId);
/**
* 查询报告单名字ID名字导出路径
* @param doctorId 医生ID
* @param patientId 病人ID
* @return 报告单id,名字和pdf路径
*/
List<PatientReportVo.ReportName> queryReportName(@Param("doctorId")Long doctorId, @Param("patientId") Long patientId);
/**
* 管理员查询报告单
* @param adminQueryReport 搜索条件
* @return 报告单
*/
List<PatientReportVo.ReportName> queryAllReports(PatientReportDto.AdminQueryReport adminQueryReport);
/**
* 根据临床诊断统计
* @param param 统计条件
* @return 临床诊断统计
*/
List<PatientReportVo.ClinicalDiagnosis> countByClinicalDiagnosis(PatientReportDto.ClinicalDiagnosis param);
/**
* 根据年龄性别统计
* @param param 年龄性别
* @return 年龄性别统计
*/
List<PatientReportVo.AgeAndSex> countBySexAndAge(PatientReportDto.AgeAndSex param);
/**
* 根据日期统计
* @param param 日期
* @return 统计
*/
List<PatientReportVo.Day> countByDay(PatientReportDto.Day param);
/**
* 查询报告单的详细答题洗洗
* @param id 报告单id
* @param evaluationCode 测试类型
* @return 报告单的详细答题明细
*/
List<PatientReportVo.ReportDetailAnswer> queryReportAnswer(@Param("id")Long id, @Param("evaluationCode")String evaluationCode);
/**
* 根据分数搜索报告单
* @param codes 分数
* @return 报告单
*/
List<PatientReportSearchVo.Search> search(@Param("codes") List<PatientReportSearchDto.Search> codes);
/**
* 根据病人报告单ID查询报告单各项相关分数
* @param id 报告单ID
* @param code 量表类型
* @return 报告单分数
*/
List<PatientReportVo.ReportScore> queryReportScore2(@Param("id") Long id, @Param("code") String code);
/**
* 查询evaluate_code = code的所有试题选项及答案
* @param id 报告单ID
* @param code code
* @return 题目
*/
List<PatientReportVo.QuestionAndAnswer> queryQuestionAndScore(@Param("id") Long id, @Param("code") String code);
/**
*
* @param ids 指定报告单ID
* @return 报告单分数 mmse 分类 moca 试题和分数 其他总分
*/
List<PatientReportVo.Analyse> queryReportAnalyseScore(@Param("ids") List<Long> ids);
/**
* 查询指定答案和分数
* @param answer 请求参数
* @return 分数记录临床诊断
*/
List<PatientReportVo.AnswerAndScore> queryAnswer(@Param("param") PatientReportDto.Answer answer);
}

18
ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientReportRecordDescDao.java

@ -0,0 +1,18 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtPatientReportRecordDesc;
import com.ccsens.ht.persist.mapper.HtPatientReportRecordDescMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @author whj
*/
public interface HtPatientReportRecordDescDao extends HtPatientReportRecordDescMapper {
/**
* 批量保存答案
* @param records 保存答案
*/
void batchSave(@Param("list") List<HtPatientReportRecordDesc> records);
}

18
ht/src/main/java/com/ccsens/ht/persist/dao/HtPatientScoreDao.java

@ -1,7 +1,10 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.dto.PatientReportDto;
import com.ccsens.ht.bean.po.HtPatientScore;
import com.ccsens.ht.bean.vo.PatientReportVo;
import com.ccsens.ht.persist.mapper.HtPatientScoreMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -18,4 +21,19 @@ public interface HtPatientScoreDao extends HtPatientScoreMapper {
*@date: 2019/11/14 9:29
*/
void insertBatch(List<HtPatientScore> scores);
/**
* 查询有指定题目分数的报告单ID
* @param answer 指定题目
* @return
*/
List<Long> queryIdsByAnswer(PatientReportDto.Answer answer);
/**
* 查询moca每道题的分数
* @param patientReportId 报告单ID
* @param codes [] evaluationCode 数组
* @return 题目序号和分数
*/
List<PatientReportVo.SortScore> querySortScore(@Param("patientReportId") Long patientReportId, @Param("evaluationCode") String... codes);
}

14
ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionDao.java

@ -1,6 +1,7 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtQuestion;
import com.ccsens.ht.bean.vo.QuestionVo;
import com.ccsens.ht.persist.mapper.HtQuestionMapper;
import org.apache.ibatis.annotations.Param;
@ -23,4 +24,17 @@ public interface HtQuestionDao extends HtQuestionMapper {
*/
Integer selectMaxSort(@Param("code") String code);
/**
* 查询可以共享答案的试题id
*/
List<QuestionVo.ShareAnswer> queryShareAnswer(@Param("questionId")Long questionId, @Param("patientReportId") Long patientReportId);
/**
* 查询试题和其他记录以及其他记录的答案
* @param code evaluation_code
* @param num sort
* @param patientReportId 报告单ID
* @return 试题
*/
QuestionVo.Question queryQuestionAndRecord(@Param("code") String code, @Param("num") int num, @Param("patientReportId") Long patientReportId);
}

26
ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionOptionDescDao.java

@ -0,0 +1,26 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtQuestionOptionDesc;
import com.ccsens.ht.persist.mapper.HtQuestionOptionDescMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
/**
* @description: 选项补充
* @author: whj
* @time: 2021/4/21 0:43
*/
public interface HtQuestionOptionDescDao extends HtQuestionOptionDescMapper {
/**
* 删除指定选项的补充
* @param optionDescDelList 指定选项
*/
void delete(@Param("list") List<Long> optionDescDelList);
/**
* 批量插入
* @param optionDescList 选项补充
*/
void insertBatch(List<HtQuestionOptionDesc> optionDescList);
}

16
ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionRecordDao.java

@ -0,0 +1,16 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtQuestionRecord;
import com.ccsens.ht.persist.mapper.HtQuestionRecordMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface HtQuestionRecordDao extends HtQuestionRecordMapper {
/**
* 批量添加试题
* @param questionRecords 试题
*/
void insertBatch(@Param("list") List<HtQuestionRecord> questionRecords);
}

15
ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionRecordOptionDao.java

@ -0,0 +1,15 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtQuestionRecordOption;
import com.ccsens.ht.persist.mapper.HtQuestionRecordOptionMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface HtQuestionRecordOptionDao extends HtQuestionRecordOptionMapper {
/**
* 批量插入
* @param questionRecordOptions options
*/
void insertBatch(@Param("list") List<HtQuestionRecordOption> questionRecordOptions);
}

17
ht/src/main/java/com/ccsens/ht/persist/dao/HtQuestionShowDao.java

@ -0,0 +1,17 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtQuestionShow;
import com.ccsens.ht.persist.mapper.HtQuestionShowMapper;
import java.util.List;
/**
* @author whj
*/
public interface HtQuestionShowDao extends HtQuestionShowMapper {
/**
* 批量添加题目显示
* @param showList
*/
void insertBatch(List<HtQuestionShow> showList);
}

32
ht/src/main/java/com/ccsens/ht/persist/dao/HtReportDao.java

@ -1,7 +1,11 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtReport;
import com.ccsens.ht.bean.vo.PatientReportSearchVo;
import com.ccsens.ht.bean.vo.QuestionVo;
import com.ccsens.ht.bean.vo.StatisticsVo;
import com.ccsens.ht.persist.mapper.HtReportMapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -28,4 +32,32 @@ public interface HtReportDao extends HtReportMapper {
*@date: 2019/11/19 10:10
*/
List<HtReport> queryReportShow();
/**
* 查询所有下级菜单和是否有试题
* @param parentCode 父code
* @return 搜索条件
*/
List<PatientReportSearchVo.SearchParam> queryParam(@Param("parentCode") String parentCode);
/**
* 查询指定等级的报告单code
* @param type type
* @return code
*/
List<String> queryCode(@Param("type") byte type);
/**
* 查询报告单和记录
* @param code code
* @param patientReportId patientReportId
* @return report+record
*/
QuestionVo.Report queryReportAndRecord(@Param("code") String code, @Param("patientReportId") Long patientReportId);
/**
* 查询测评类型和分项id
* @return 返回类型和分项id
*/
List<StatisticsVo.ReportCode> queryReportAndSubentry();
}

100
ht/src/main/java/com/ccsens/ht/persist/dao/StatisticsDao.java

@ -0,0 +1,100 @@
package com.ccsens.ht.persist.dao;
import com.ccsens.ht.bean.po.HtReport;
import com.ccsens.ht.bean.vo.StatisticsVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author
*/
@Repository
public interface StatisticsDao {
/**
* 查找总数 当月数量 当天数量
* @param hospitalId 医院id
* @param beginOfMonth 本月开始时间
* @param endOfMonth 本月结束时间
* @param beginOfDay 当天开始时间
* @param endOfDay 当天结束时间
* @return 返回总数 本月数量 当天数量
*/
StatisticsVo.Realtime getTotalNum(@Param("hospitalId") Long hospitalId, @Param("beginOfMonth") long beginOfMonth,@Param("endOfMonth") long endOfMonth,@Param("beginOfDay") long beginOfDay,@Param("endOfDay") long endOfDay);
/**
* 查找实时数据
* @param hospitalId 医院Id
* @return 返回实时数据
*/
List<StatisticsVo.Chart> getRealtimeNum(@Param("hospitalId") Long hospitalId);
/**
* 查找年龄分布信息
* @param hospitalId 医院id
* @return 返回各个年龄段的数量
*/
List<StatisticsVo.Chart> getWithAge(@Param("hospitalId")Long hospitalId);
/**
* 查找男女占比
* @param hospitalId 医院id
* @return 返回男女数量
*/
StatisticsVo.AgeAndSex getWithSex(@Param("hospitalId")Long hospitalId);
/**
* 查找测评结果总评分布
* @param hospitalId 医院id
* @return 返回总评分布
*/
List<StatisticsVo.Chart> getAppraise(@Param("hospitalId")Long hospitalId);
/**
* 查找各省份的数据
* @return 返回省份数据
*/
List<StatisticsVo.Chart> areaDistribution();
/**
* 查找医院所在省份的数据
* @param hospitalId 医院id
* @return 返回医院所在省份的数据
*/
StatisticsVo.AreaDistribution hospitalProvince(@Param("hospitalId")Long hospitalId);
/**
* 通过code查找测评类型的所有子类
* @param reportCode code
* @return 返回该类型的满分
*/
List<String> getReportSubCode(@Param("reportCode")String reportCode);
/**
* 根据医院id和报告单code查询各种类型的人数
* @param reportCode code
* @param hospitalId 医院id
* @param types 分数分类
* @return 返回各种类型的人数
*/
List<StatisticsVo.SundryNum> querySundryNumList(@Param("reportCode")String reportCode, @Param("hospitalId")Long hospitalId, @Param("types")List<Integer> types);
/**
* 根据医院id和子类id查找各种类型的人数
* @param hospitalId 医院id
* @param reportList 子类code
* @return 返回各种类型的人数
*/
List<StatisticsVo.SundryNum> querySundryNumListBySubentry(@Param("hospitalId")Long hospitalId, @Param("reportList")List<String> reportList);
/**
* 查找类型和分项各分数的人数
* @param hospitalId 医院id
* @param reportCode 类型code
* @param subentryCode 分项code
* @return 返回人数
*/
List<StatisticsVo.CodeAndSubentryNum> getCodeAndSubentryNums(@Param("hospitalId")Long hospitalId, @Param("reportCode")String reportCode, @Param("subentryCode")List<String> subentryCode);
}

58
ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientAcpMapper.java

@ -1,30 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientAcp;
import com.ccsens.ht.bean.po.HtPatientAcpExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientAcpMapper {
long countByExample(HtPatientAcpExample example);
int deleteByExample(HtPatientAcpExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientAcp record);
int insertSelective(HtPatientAcp record);
List<HtPatientAcp> selectByExample(HtPatientAcpExample example);
HtPatientAcp selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example);
int updateByExample(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example);
int updateByPrimaryKeySelective(HtPatientAcp record);
int updateByPrimaryKey(HtPatientAcp record);
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientAcp;
import com.ccsens.ht.bean.po.HtPatientAcpExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientAcpMapper {
long countByExample(HtPatientAcpExample example);
int deleteByExample(HtPatientAcpExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientAcp record);
int insertSelective(HtPatientAcp record);
List<HtPatientAcp> selectByExample(HtPatientAcpExample example);
HtPatientAcp selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example);
int updateByExample(@Param("record") HtPatientAcp record, @Param("example") HtPatientAcpExample example);
int updateByPrimaryKeySelective(HtPatientAcp record);
int updateByPrimaryKey(HtPatientAcp record);
}

36
ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientCanvasLineMapper.java

@ -0,0 +1,36 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientCanvasLine;
import com.ccsens.ht.bean.po.HtPatientCanvasLineExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientCanvasLineMapper {
long countByExample(HtPatientCanvasLineExample example);
int deleteByExample(HtPatientCanvasLineExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientCanvasLine record);
int insertSelective(HtPatientCanvasLine record);
List<HtPatientCanvasLine> selectByExampleWithBLOBs(HtPatientCanvasLineExample example);
List<HtPatientCanvasLine> selectByExample(HtPatientCanvasLineExample example);
HtPatientCanvasLine selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientCanvasLine record, @Param("example") HtPatientCanvasLineExample example);
int updateByExampleWithBLOBs(@Param("record") HtPatientCanvasLine record, @Param("example") HtPatientCanvasLineExample example);
int updateByExample(@Param("record") HtPatientCanvasLine record, @Param("example") HtPatientCanvasLineExample example);
int updateByPrimaryKeySelective(HtPatientCanvasLine record);
int updateByPrimaryKeyWithBLOBs(HtPatientCanvasLine record);
int updateByPrimaryKey(HtPatientCanvasLine record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientCanvasMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientCanvas;
import com.ccsens.ht.bean.po.HtPatientCanvasExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientCanvasMapper {
long countByExample(HtPatientCanvasExample example);
int deleteByExample(HtPatientCanvasExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientCanvas record);
int insertSelective(HtPatientCanvas record);
List<HtPatientCanvas> selectByExample(HtPatientCanvasExample example);
HtPatientCanvas selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientCanvas record, @Param("example") HtPatientCanvasExample example);
int updateByExample(@Param("record") HtPatientCanvas record, @Param("example") HtPatientCanvasExample example);
int updateByPrimaryKeySelective(HtPatientCanvas record);
int updateByPrimaryKey(HtPatientCanvas record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientIntelligenceMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientIntelligence;
import com.ccsens.ht.bean.po.HtPatientIntelligenceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientIntelligenceMapper {
long countByExample(HtPatientIntelligenceExample example);
int deleteByExample(HtPatientIntelligenceExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientIntelligence record);
int insertSelective(HtPatientIntelligence record);
List<HtPatientIntelligence> selectByExample(HtPatientIntelligenceExample example);
HtPatientIntelligence selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientIntelligence record, @Param("example") HtPatientIntelligenceExample example);
int updateByExample(@Param("record") HtPatientIntelligence record, @Param("example") HtPatientIntelligenceExample example);
int updateByPrimaryKeySelective(HtPatientIntelligence record);
int updateByPrimaryKey(HtPatientIntelligence record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientReportRecordDescMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientReportRecordDesc;
import com.ccsens.ht.bean.po.HtPatientReportRecordDescExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientReportRecordDescMapper {
long countByExample(HtPatientReportRecordDescExample example);
int deleteByExample(HtPatientReportRecordDescExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientReportRecordDesc record);
int insertSelective(HtPatientReportRecordDesc record);
List<HtPatientReportRecordDesc> selectByExample(HtPatientReportRecordDescExample example);
HtPatientReportRecordDesc selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientReportRecordDesc record, @Param("example") HtPatientReportRecordDescExample example);
int updateByExample(@Param("record") HtPatientReportRecordDesc record, @Param("example") HtPatientReportRecordDescExample example);
int updateByPrimaryKeySelective(HtPatientReportRecordDesc record);
int updateByPrimaryKey(HtPatientReportRecordDesc record);
}

58
ht/src/main/java/com/ccsens/ht/persist/mapper/HtPatientScoreMapper.java

@ -1,30 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientScore;
import com.ccsens.ht.bean.po.HtPatientScoreExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientScoreMapper {
long countByExample(HtPatientScoreExample example);
int deleteByExample(HtPatientScoreExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientScore record);
int insertSelective(HtPatientScore record);
List<HtPatientScore> selectByExample(HtPatientScoreExample example);
HtPatientScore selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example);
int updateByExample(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example);
int updateByPrimaryKeySelective(HtPatientScore record);
int updateByPrimaryKey(HtPatientScore record);
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtPatientScore;
import com.ccsens.ht.bean.po.HtPatientScoreExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtPatientScoreMapper {
long countByExample(HtPatientScoreExample example);
int deleteByExample(HtPatientScoreExample example);
int deleteByPrimaryKey(Long id);
int insert(HtPatientScore record);
int insertSelective(HtPatientScore record);
List<HtPatientScore> selectByExample(HtPatientScoreExample example);
HtPatientScore selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example);
int updateByExample(@Param("record") HtPatientScore record, @Param("example") HtPatientScoreExample example);
int updateByPrimaryKeySelective(HtPatientScore record);
int updateByPrimaryKey(HtPatientScore record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionIntelligenceMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtQuestionIntelligence;
import com.ccsens.ht.bean.po.HtQuestionIntelligenceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtQuestionIntelligenceMapper {
long countByExample(HtQuestionIntelligenceExample example);
int deleteByExample(HtQuestionIntelligenceExample example);
int deleteByPrimaryKey(Long id);
int insert(HtQuestionIntelligence record);
int insertSelective(HtQuestionIntelligence record);
List<HtQuestionIntelligence> selectByExample(HtQuestionIntelligenceExample example);
HtQuestionIntelligence selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtQuestionIntelligence record, @Param("example") HtQuestionIntelligenceExample example);
int updateByExample(@Param("record") HtQuestionIntelligence record, @Param("example") HtQuestionIntelligenceExample example);
int updateByPrimaryKeySelective(HtQuestionIntelligence record);
int updateByPrimaryKey(HtQuestionIntelligence record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionOptionDescMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtQuestionOptionDesc;
import com.ccsens.ht.bean.po.HtQuestionOptionDescExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtQuestionOptionDescMapper {
long countByExample(HtQuestionOptionDescExample example);
int deleteByExample(HtQuestionOptionDescExample example);
int deleteByPrimaryKey(Long id);
int insert(HtQuestionOptionDesc record);
int insertSelective(HtQuestionOptionDesc record);
List<HtQuestionOptionDesc> selectByExample(HtQuestionOptionDescExample example);
HtQuestionOptionDesc selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtQuestionOptionDesc record, @Param("example") HtQuestionOptionDescExample example);
int updateByExample(@Param("record") HtQuestionOptionDesc record, @Param("example") HtQuestionOptionDescExample example);
int updateByPrimaryKeySelective(HtQuestionOptionDesc record);
int updateByPrimaryKey(HtQuestionOptionDesc record);
}

58
ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionOptionMapper.java

@ -1,30 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtQuestionOption;
import com.ccsens.ht.bean.po.HtQuestionOptionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtQuestionOptionMapper {
long countByExample(HtQuestionOptionExample example);
int deleteByExample(HtQuestionOptionExample example);
int deleteByPrimaryKey(Long id);
int insert(HtQuestionOption record);
int insertSelective(HtQuestionOption record);
List<HtQuestionOption> selectByExample(HtQuestionOptionExample example);
HtQuestionOption selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example);
int updateByExample(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example);
int updateByPrimaryKeySelective(HtQuestionOption record);
int updateByPrimaryKey(HtQuestionOption record);
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtQuestionOption;
import com.ccsens.ht.bean.po.HtQuestionOptionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtQuestionOptionMapper {
long countByExample(HtQuestionOptionExample example);
int deleteByExample(HtQuestionOptionExample example);
int deleteByPrimaryKey(Long id);
int insert(HtQuestionOption record);
int insertSelective(HtQuestionOption record);
List<HtQuestionOption> selectByExample(HtQuestionOptionExample example);
HtQuestionOption selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example);
int updateByExample(@Param("record") HtQuestionOption record, @Param("example") HtQuestionOptionExample example);
int updateByPrimaryKeySelective(HtQuestionOption record);
int updateByPrimaryKey(HtQuestionOption record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionRecordMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtQuestionRecord;
import com.ccsens.ht.bean.po.HtQuestionRecordExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtQuestionRecordMapper {
long countByExample(HtQuestionRecordExample example);
int deleteByExample(HtQuestionRecordExample example);
int deleteByPrimaryKey(Long id);
int insert(HtQuestionRecord record);
int insertSelective(HtQuestionRecord record);
List<HtQuestionRecord> selectByExample(HtQuestionRecordExample example);
HtQuestionRecord selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtQuestionRecord record, @Param("example") HtQuestionRecordExample example);
int updateByExample(@Param("record") HtQuestionRecord record, @Param("example") HtQuestionRecordExample example);
int updateByPrimaryKeySelective(HtQuestionRecord record);
int updateByPrimaryKey(HtQuestionRecord record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionRecordOptionMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtQuestionRecordOption;
import com.ccsens.ht.bean.po.HtQuestionRecordOptionExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtQuestionRecordOptionMapper {
long countByExample(HtQuestionRecordOptionExample example);
int deleteByExample(HtQuestionRecordOptionExample example);
int deleteByPrimaryKey(Long id);
int insert(HtQuestionRecordOption record);
int insertSelective(HtQuestionRecordOption record);
List<HtQuestionRecordOption> selectByExample(HtQuestionRecordOptionExample example);
HtQuestionRecordOption selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtQuestionRecordOption record, @Param("example") HtQuestionRecordOptionExample example);
int updateByExample(@Param("record") HtQuestionRecordOption record, @Param("example") HtQuestionRecordOptionExample example);
int updateByPrimaryKeySelective(HtQuestionRecordOption record);
int updateByPrimaryKey(HtQuestionRecordOption record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtQuestionShowMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtQuestionShow;
import com.ccsens.ht.bean.po.HtQuestionShowExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtQuestionShowMapper {
long countByExample(HtQuestionShowExample example);
int deleteByExample(HtQuestionShowExample example);
int deleteByPrimaryKey(Long id);
int insert(HtQuestionShow record);
int insertSelective(HtQuestionShow record);
List<HtQuestionShow> selectByExample(HtQuestionShowExample example);
HtQuestionShow selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtQuestionShow record, @Param("example") HtQuestionShowExample example);
int updateByExample(@Param("record") HtQuestionShow record, @Param("example") HtQuestionShowExample example);
int updateByPrimaryKeySelective(HtQuestionShow record);
int updateByPrimaryKey(HtQuestionShow record);
}

30
ht/src/main/java/com/ccsens/ht/persist/mapper/HtReportRelevanceMapper.java

@ -0,0 +1,30 @@
package com.ccsens.ht.persist.mapper;
import com.ccsens.ht.bean.po.HtReportRelevance;
import com.ccsens.ht.bean.po.HtReportRelevanceExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface HtReportRelevanceMapper {
long countByExample(HtReportRelevanceExample example);
int deleteByExample(HtReportRelevanceExample example);
int deleteByPrimaryKey(Long id);
int insert(HtReportRelevance record);
int insertSelective(HtReportRelevance record);
List<HtReportRelevance> selectByExample(HtReportRelevanceExample example);
HtReportRelevance selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") HtReportRelevance record, @Param("example") HtReportRelevanceExample example);
int updateByExample(@Param("record") HtReportRelevance record, @Param("example") HtReportRelevanceExample example);
int updateByPrimaryKeySelective(HtReportRelevance record);
int updateByPrimaryKey(HtReportRelevance record);
}

51
ht/src/main/java/com/ccsens/ht/service/DoctorService.java

@ -10,23 +10,21 @@ import com.ccsens.ht.bean.dto.DoctorDto;
import com.ccsens.ht.bean.po.*;
import com.ccsens.ht.bean.vo.DoctorVo;
import com.ccsens.ht.persist.dao.HtDoctorAuditDao;
import com.ccsens.ht.persist.dao.HtDoctorDao;
import com.ccsens.ht.persist.dao.HtPositionDao;
import com.ccsens.ht.persist.dao.HtTitleDao;
import com.ccsens.ht.persist.mapper.HtDoctorMapper;
import com.ccsens.ht.uitl.Constant;
import com.ccsens.util.*;
import com.ccsens.util.exception.BaseException;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import org.springframework.validation.annotation.Validated;
import javax.annotation.Resource;
import java.util.ArrayList;
@ -47,7 +45,7 @@ public class DoctorService implements IDoctorService {
@Autowired
private Snowflake snowflake;
@Resource
private HtDoctorMapper htDoctorMapper;
private HtDoctorDao htDoctorDao;
@Resource
private HtPositionDao htPositionDao;
@Resource
@ -66,7 +64,7 @@ public class DoctorService implements IDoctorService {
log.info("提交资格认证:{}", submit);
HtDoctorExample example = new HtDoctorExample();
example.createCriteria().andUserIdEqualTo(userId);
List<HtDoctor> htDoctors = htDoctorMapper.selectByExample(example);
List<HtDoctor> htDoctors = htDoctorDao.selectByExample(example);
HtDoctor oldDoctor = null;
for (HtDoctor doctor: htDoctors) {
// 已经审核通过,无需重复审核
@ -98,14 +96,14 @@ public class DoctorService implements IDoctorService {
htDoctor.setId(oldDoctor.getId());
htDoctor.setAuditorId((long)Constant.Ht.NUMBER_DEFAULT);
htDoctor.setAuditState(Constant.Ht.Doctor.CHECK_WAIT);
htDoctorMapper.updateByPrimaryKeySelective(htDoctor);
htDoctorDao.updateByPrimaryKeySelective(htDoctor);
} else {
htDoctor.setId(snowflake.nextId());
htDoctor.setCreateTime(new Date());
htDoctor.setUserId(userId);
htDoctor.setAuditorId((long)Constant.Ht.NUMBER_DEFAULT);
htDoctor.setAuditState(Constant.Ht.Doctor.CHECK_WAIT);
htDoctorMapper.insertSelective(htDoctor);
htDoctorDao.insertSelective(htDoctor);
}
@ -129,7 +127,7 @@ public class DoctorService implements IDoctorService {
HtDoctorExample example = new HtDoctorExample();
example.createCriteria().andUserIdEqualTo(userId).andAuditStateEqualTo(Constant.Ht.Doctor.CHECK_SUCCESS);
List<HtDoctor> htDoctors = htDoctorMapper.selectByExample(example);
List<HtDoctor> htDoctors = htDoctorDao.selectByExample(example);
if (CollectionUtils.isEmpty(htDoctors)) {
log.info("用户:{}尚未审核通过", userId);
return new PageInfo<>();
@ -162,14 +160,14 @@ public class DoctorService implements IDoctorService {
//审核用户
HtDoctorExample example = new HtDoctorExample();
example.createCriteria().andUserIdEqualTo(userId).andAuditStateEqualTo(Constant.Ht.Doctor.CHECK_SUCCESS);
List<HtDoctor> htDoctors = htDoctorMapper.selectByExample(example);
List<HtDoctor> htDoctors = htDoctorDao.selectByExample(example);
if (CollectionUtils.isEmpty(htDoctors)) {
log.info("用户:{}尚未审核通过", userId);
return CodeEnum.AUDIT_NOT_PASS;
}
Long auditDoctorId = htDoctors.get(0).getId();
//待审核用户
HtDoctor waitDoctor = htDoctorMapper.selectByPrimaryKey(audit.getDoctorId());
HtDoctor waitDoctor = htDoctorDao.selectByPrimaryKey(audit.getDoctorId());
log.info("待审核医生信息:{}", waitDoctor);
if (waitDoctor == null) {
return CodeEnum.PARAM_ERROR;
@ -223,7 +221,7 @@ public class DoctorService implements IDoctorService {
eidtDoctor.setAuditState(audit.getAuditState());
eidtDoctor.setAuditorId(auditDoctorId);
eidtDoctor.setId(audit.getDoctorId());
htDoctorMapper.updateByPrimaryKeySelective(eidtDoctor);
htDoctorDao.updateByPrimaryKeySelective(eidtDoctor);
return CodeEnum.SUCCESS;
}
@ -256,7 +254,7 @@ public class DoctorService implements IDoctorService {
HtDoctorExample example1 = new HtDoctorExample();
example1.createCriteria().andPositionIdEqualTo(map.getLong("id")).andAuditStateEqualTo(Constant.Ht.Doctor.CHECK_SUCCESS);
//查找上级职务对应的医生
List<HtDoctor> superiors = htDoctorMapper.selectByExample(example1);
List<HtDoctor> superiors = htDoctorDao.selectByExample(example1);
if(CollectionUtils.isEmpty(superiors)) {
return;
}
@ -278,20 +276,13 @@ public class DoctorService implements IDoctorService {
@Override
public List<HtDoctor> selectByExample(HtDoctorExample doctorExample) {
return htDoctorMapper.selectByExample(doctorExample);
return htDoctorDao.selectByExample(doctorExample);
}
@Override
public String getShareUrl(Long userId) throws Exception {
HtDoctorExample example = new HtDoctorExample();
example.createCriteria().andUserIdEqualTo(userId).andAuditStateEqualTo(Constant.Ht.Doctor.CHECK_SUCCESS);
List<HtDoctor> htDoctors = htDoctorMapper.selectByExample(example);
if (CollectionUtil.isEmpty(htDoctors)) {
log.info("没有找到{}对应的医生信息", userId);
throw new BaseException(CodeEnum.PARAM_ERROR);
}
HtDoctor doctor = htDoctors.get(0);
HtDoctor doctor = getHtDoctor(userId);
if (StrUtil.isNotBlank(doctor.getSharePatientEdit())) {
return doctor.getSharePatientEdit();
}
@ -306,9 +297,27 @@ public class DoctorService implements IDoctorService {
}
private HtDoctor getHtDoctor(Long userId) {
HtDoctorExample example = new HtDoctorExample();
example.createCriteria().andUserIdEqualTo(userId).andAuditStateEqualTo(Constant.Ht.Doctor.CHECK_SUCCESS);
List<HtDoctor> htDoctors = htDoctorDao.selectByExample(example);
if (CollectionUtil.isEmpty(htDoctors)) {
log.info("没有找到{}对应的医生信息", userId);
throw new BaseException(CodeEnum.PARAM_ERROR);
}
return htDoctors.get(0);
}
@Override
public DoctorVo.Query queryDoctorStatus(Long userId) {
DoctorVo.Query query = htDoctorAuditDao.queryDoctorStatus(userId);
return query;
}
@Override
public List<DoctorVo.Subordinate> queryAllSubordinate(Long userId) {
HtDoctor doctor = getHtDoctor(userId);
return htDoctorDao.queryAllSubordinate(doctor.getPositionId());
}
}

326
ht/src/main/java/com/ccsens/ht/service/ExportService.java

@ -0,0 +1,326 @@
package com.ccsens.ht.service;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.ccsens.ht.bean.dto.PatientReportDto;
import com.ccsens.ht.bean.po.*;
import com.ccsens.ht.bean.vo.PatientReportVo;
import com.ccsens.ht.persist.dao.HtPatientReportDao;
import com.ccsens.ht.persist.dao.HtReportDao;
import com.ccsens.ht.persist.mapper.HtReportRelevanceMapper;
import com.ccsens.ht.uitl.Constant;
import com.ccsens.util.CodeEnum;
import com.ccsens.util.PdfUtil;
import com.ccsens.util.PropUtil;
import com.ccsens.util.exception.BaseException;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import javax.annotation.Resource;
import java.text.DecimalFormat;
import java.util.ArrayList;
import java.util.List;
/**
* @author
*/
@Slf4j
@Service
@Transactional(propagation = Propagation.REQUIRED, rollbackFor = Exception.class)
public class ExportService implements IExportService {
@Resource
private HtPatientReportDao htPatientReportDao;
@Resource
private HtReportDao htReportDao;
@Resource
private HtReportRelevanceMapper reportRelevanceMapper;
@Resource
private IPatientReportService patientReportService;
@Resource
private Snowflake snowflake;
@Override
public String exportReport(PatientReportDto.QueryDetail param, Long userId) {
if (StrUtil.isBlank(param.getReport())) {
param.setReport("REPORT1.0");
}
log.info("根据报告单类型导出报告单:{}, 操作用户:{}", param, userId);
// TODO 暂时不导出rey试题,将传入参数改为1
param.setRey(1);
//查看是否已生成对应文件路径
HtPatientReport report = htPatientReportDao.selectByPrimaryKey(param.getId());
if (report == null) {
throw new BaseException(CodeEnum.REPORT_NOT_FOUND);
}
//查询报告单类型关联的信息
HtReportRelevance reportRelevance;
HtReportRelevanceExample relevanceExample = new HtReportRelevanceExample();
relevanceExample.createCriteria().andReportIdEqualTo(param.getId()).andReportCodeEqualTo(param.getReport());
List<HtReportRelevance> reportRelevanceList = reportRelevanceMapper.selectByExample(relevanceExample);
if (CollectionUtil.isNotEmpty(reportRelevanceList)) {
reportRelevance = reportRelevanceList.get(0);
} else {
reportRelevance = new HtReportRelevance();
reportRelevance.setId(snowflake.nextId());
reportRelevance.setReportCode(param.getReport());
reportRelevance.setReportId(param.getId());
reportRelevanceMapper.insertSelective(reportRelevance);
}
//如果以前有生成的信息,直接返回
if (StrUtil.isNotBlank(reportRelevance.getPdfUrl())) {
return report.getUrl();
}
//查看报告单和试题分数信息
PatientReportVo.ReportDetail detail = patientReportService.queryReportDetail(param, userId);
if (detail == null) {
throw new BaseException(CodeEnum.REPORT_NOT_FOUND);
}
log.info("报告单和试题信息 {}", detail);
//添加受试者合作评分和初步印象
// PatientReportVo.ReprotPatient patient = detail.getPatient();
// patient.setWorkingScore(ObjectUtil.isNull(reportRelevance.getSocre()) ? 0 : reportRelevance.getSocre());
// patient.setInitialImpression(reportRelevance.getImpression());
//生成写入pdf数据
List<PdfUtil.Row> content = new ArrayList<>();
switch (param.getReport()) {
case Constant.Ht.Report.PARENT_CODE_2:
case Constant.Ht.Report.PARENT_CODE_3:
writeParentCode2(param.getReport(), content, detail.getScores());
//添加初步印象和受试者合作评分
addScoreAndImpression(detail.getPatient().getInitialImpression(), content);
//添加测评员和报告日期
initLast(content, 2);
break;
default:
detail.getScores().forEach(reportScore -> content.addAll(reportScore.toRow()));
PdfUtil.Row row = new PdfUtil.Row();
PdfUtil.Cell initWordCell = addCell(row, "初步印象", 2, 2);
initWordCell.setHeight(PdfUtil.Cell.defaultHeight * 2);
PdfUtil.Cell initImplCell = addCell(row, detail.getPatient().getInitialImpression(), 6, 2);
initImplCell.setHeight(PdfUtil.Cell.defaultHeight * 2);
initImplCell.setBorderRight(1);
initImplCell.setCenter(false);
content.add(row);
//添加测评员和报告日期
initLast(content, 4);
break;
}
//表头
String[] split = detail.getPatient().getHospital().split("");
String title = String.join(" ", split);
//生成pdf并返回路径
String path = PropUtil.imgDomain + "/" + PdfUtil.createPdf(PropUtil.path, title, Constant.Ht.Report.PARENT_NAME, new PdfUtil.Margin(), detail.getPatient().toPdfRow(), content);
//TODO 将路径存入报告单关联信息表
// reportRelevance.setPdfUrl(path);
// reportRelevanceMapper.updateByPrimaryKeySelective(reportRelevance);
log.info("生成文件路径:{}", path);
return path;
}
@Override
public String exportByCode(PatientReportDto.ExportCode param, Long userId) {
if (StrUtil.isBlank(param.getCode())) {
return null;
}
log.info("导出指定类型的量表:{}, 操作用户:{}", param, userId);
//查看当前类型属于哪个报告单
String report = "";
HtReportExample reportExample = new HtReportExample();
reportExample.createCriteria().andCodeEqualTo(param.getCode());
List<HtReport> reportList = htReportDao.selectByExample(reportExample);
if (CollectionUtil.isEmpty(reportList)) {
report = reportList.get(0).getParentCode();
}
// //查询报告单类型关联的信息
// HtReportRelevance reportRelevance;
// HtReportRelevanceExample relevanceExample = new HtReportRelevanceExample();
// relevanceExample.createCriteria().andReportIdEqualTo(param.getId()).andReportCodeEqualTo(report);
// List<HtReportRelevance> reportRelevanceList = reportRelevanceMapper.selectByExample(relevanceExample);
// if(CollectionUtil.isNotEmpty(reportRelevanceList)){
// reportRelevance = reportRelevanceList.get(0);
// }else {
// reportRelevance = new HtReportRelevance();
// reportRelevance.setId(snowflake.nextId());
// reportRelevance.setReportCode(report);
// reportRelevance.setReportId(param.getId());
// reportRelevanceMapper.insertSelective(reportRelevance);
// }
//查看报告单和试题分数信息
// PatientReportVo.ReprotDetail detail = patientReportService.queryReportDetail(param, userId);
// if (detail == null) {
// throw new BaseException(CodeEnum.REPORT_NOT_FOUND);
// }
//查询报告单信息和病人信息
PatientReportVo.ReportPatient reportPatient = htPatientReportDao.queryReportResult(param.getId());
//查询报告单的关联信息
HtReportRelevanceExample relevanceExample = new HtReportRelevanceExample();
relevanceExample.createCriteria().andReportIdEqualTo(param.getId()).andReportCodeEqualTo(report);
List<HtReportRelevance> reportRelevanceList = reportRelevanceMapper.selectByExample(relevanceExample);
if (CollectionUtil.isNotEmpty(reportRelevanceList)) {
reportPatient.setWorkingScore(ObjectUtil.isNull(reportRelevanceList.get(0).getSocre()) ? 0 : reportRelevanceList.get(0).getSocre());
reportPatient.setInitialImpression(reportRelevanceList.get(0).getImpression());
}
//查询报告单分数
List<PatientReportVo.ReportScore> reportScore = htPatientReportDao.queryReportScore2(param.getId(), param.getCode());
//重新封装报告单信息
List<PatientReportVo.ReportScore> scores = patientReportService.getReportScores(reportScore, param.getId());
//生成写入pdf数据
List<PdfUtil.Row> content = new ArrayList<>();
writeParentCode2(param.getCode(),content, scores);
//添加初步印象和受试者合作评分
addScoreAndImpression("", content);
//添加测评员和报告日期
initLast(content, 2);
//表头
String[] split = reportPatient.getHospital().split("");
String title = String.join(" ", split);
//生成pdf并返回路径
String subHead = CollectionUtil.isEmpty(scores) ? "" : "认知评估量表("+scores.get(0).getName() + ")报告单";
String path = PropUtil.imgDomain + "/" + PdfUtil.createPdf(PropUtil.path, title, subHead, new PdfUtil.Margin(), reportPatient.toPdfRow(), content);
//TODO 将路径存入报告单关联信息表
// reportRelevance.setPdfUrl(path);
// reportRelevanceMapper.updateByPrimaryKeySelective(reportRelevance);
log.info("生成文件路径:{}", path);
return path;
}
private void addScoreAndImpression(String initialImpression, List<PdfUtil.Row> content) {
PdfUtil.Row workingScore = new PdfUtil.Row();
workingScore.addCell(new PdfUtil.Cell("受试者合作评分", 1, 1));
String a = "A 感兴趣、配合关心结果;\n";
String b = "B 表现出感兴趣和合作,出于对医生的友好;\n";
String c = "C 顺从、不感兴趣;\n";
String d = "D 不满、需多次要求配合,拒绝部分检查;\n";
String e = "E 不配合或拒绝";
String s = "";
s = a + b + c + d + e;
// switch (detail.getPatient().getWorkingScore()){
// case 0:
// s = "√ " + a + " " + b + " " + c + " " + d + " " + e;
// break;
// case 1:
// s = " " + a + "√ " + b + " " + c + " " + d + " " + e;
// break;
// case 2:
// s = " " + a + " " + b + "√ " + c + " " + d + " " + e;
// break;
// case 3:
// s = " " + a + " " + b + " " + c + "√ " + d + " " + e;
// break;
// case 4:
// s = " " + a + " " + b + " " + c + " " + d + "√ " + e;
// break;
// default:
// s = a + b + c + d + e;
// break;
// }
// String s = "√ A 感兴趣、配合关心结果;\n" +
// " B 表现出感兴趣和合作,出于对医生的友好;\n" +
// " C 顺从、不感兴趣;\n" +
// " D 不满、需多次要求配合,拒绝部分检查;\n" +
// " E 不配合或拒绝";
// workingScore.addCell(new PdfUtil.Cell(String.valueOf(detail.getPatient().getWorkingScore()),2,1,1));
PdfUtil.Cell cell = new PdfUtil.Cell(s, 3, 1, 1);
cell.setCenter(false);
workingScore.addCell(cell);
content.add(workingScore);
PdfUtil.Row impression = new PdfUtil.Row();
impression.addCell(new PdfUtil.Cell("初步印象", 1, 1));
impression.addCell(new PdfUtil.Cell(initialImpression, 3, 1, 1));
content.add(impression);
}
private void writeParentCode2(String code, List<PdfUtil.Row> content, List<PatientReportVo.ReportScore> scores) {
if (StrUtil.isNotBlank(code) && Constant.Export.PURPOSE_MAP.containsKey(code)) {
PdfUtil.Row purpose = new PdfUtil.Row();
PdfUtil.Cell cell = new PdfUtil.Cell(Constant.Export.PURPOSE_MAP.get(code), 4, 1);
cell.setBorderRight(1);
cell.setCenter(false);
purpose.addCell(cell);
content.add(purpose);
}
PdfUtil.Row title = new PdfUtil.Row();
title.addCell(new PdfUtil.Cell("项目",2,1));
// title.addCell(new PdfUtil.Cell());
title.addCell(new PdfUtil.Cell("得分"));
PdfUtil.Cell r = new PdfUtil.Cell();
r.setContent("异常参考值/说明");
r.setBorderRight(1);
title.addCell(r);
content.add(title);
scores.forEach(reportScore -> {
String name = StrUtil.isEmpty(reportScore.getDescription()) ? reportScore.getName() : reportScore.getDescription();
if (CollectionUtil.isEmpty(reportScore.getSubReport())) {
PdfUtil.Row row = new PdfUtil.Row();
PdfUtil.Cell cellName = new PdfUtil.Cell();
cellName.setColSpan(2);
cellName.setContent(name);
row.addCell(cellName);
PdfUtil.Cell cellScore = new PdfUtil.Cell();
DecimalFormat df = new DecimalFormat("#.#");
cellScore.setContent(ObjectUtil.isNotNull(reportScore.getScore()) ? df.format(reportScore.getScore()) : "");
row.addCell(cellScore);
PdfUtil.Cell remark = new PdfUtil.Cell();
remark.setContent(reportScore.getRemark());
remark.setBorderRight(1);
row.addCell(remark);
content.add(row);
} else {
for (int i = 0; i < reportScore.getSubReport().size(); i++) {
PatientReportVo.ReportScore score = reportScore.getSubReport().get(i);
PdfUtil.Row row = new PdfUtil.Row();
if (i == 0) {
PdfUtil.Cell cellName = new PdfUtil.Cell();
cellName.setRowSpan(reportScore.getSubReport().size());
cellName.setContent(name);
row.addCell(cellName);
}
row.addCell(new PdfUtil.Cell(score.getName()));
row.addCell(new PdfUtil.Cell(ObjectUtil.isNotNull(score.getScore()) ? score.getScore().toString() : ""));
PdfUtil.Cell remark = new PdfUtil.Cell();
remark.setContent(score.getRemark());
remark.setBorderRight(1);
row.addCell(remark);
content.add(row);
}
}
});
}
private PdfUtil.Cell addCell(PdfUtil.Row row, String content, int colSpan, int rowSpan, int... border) {
PdfUtil.Cell cell1 = new PdfUtil.Cell();
cell1.setContent(content);
cell1.setRowSpan(rowSpan);
cell1.setColSpan(colSpan);
cell1.setBorder(border == null || border.length == 0 ? 1 : border[0]);
row.addCell(cell1);
return cell1;
}
private void initLast(List<PdfUtil.Row> content, int totalSpan) {
PdfUtil.Row row2 = new PdfUtil.Row();
PdfUtil.Cell doctorCell = addCell(row2, "测评员:", totalSpan, 1, 0);
doctorCell.setBorderLeft(null);
doctorCell.setBorderBottom(null);
PdfUtil.Cell dateCell = addCell(row2, "报告日期:", totalSpan, 1, 0);
dateCell.setBorderBottom(null);
dateCell.setBorderLeft(null);
content.add(row2);
}
}

9
ht/src/main/java/com/ccsens/ht/service/IDoctorService.java

@ -7,6 +7,7 @@ import com.ccsens.ht.bean.vo.DoctorVo;
import com.ccsens.util.CodeEnum;
import com.ccsens.util.JsonResponse;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@ -65,4 +66,12 @@ public interface IDoctorService {
* @return
*/
String getShareUrl(Long userId) throws Exception;
/**
* 查询所有的下属信息
* @param userId
* @return
*/
List<DoctorVo.Subordinate> queryAllSubordinate(Long userId);
}

24
ht/src/main/java/com/ccsens/ht/service/IExportService.java

@ -0,0 +1,24 @@
package com.ccsens.ht.service;
import com.ccsens.ht.bean.dto.PatientReportDto;
/**
* @author
*/
public interface IExportService {
/**
* 根据报告单类型导出pdf
* @param param 报告单id和类型
* @param userId userId
* @return 返回pdf路径
*/
String exportReport(PatientReportDto.QueryDetail param, Long userId);
/**
* 导出指定类型的量表
* @param param 报告单类型
* @param userId userId
* @return 返回路径
*/
String exportByCode(PatientReportDto.ExportCode param, Long userId);
}

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

Loading…
Cancel
Save