Compare commits
79
Commits
develop
...
c6338a8d45
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c6338a8d45 | ||
|
|
66795541c0 | ||
|
|
0fed763499 | ||
|
|
786b053703 | ||
|
|
fda24ef418 | ||
|
|
5a870bb767 | ||
|
|
3005d8d80a | ||
|
|
fc347944a0 | ||
|
|
7aa25f5f3a | ||
|
|
4a139d9240 | ||
|
|
409b5bdfa0 | ||
|
|
de4b503376 | ||
|
|
a3bf6a2063 | ||
|
|
0389fc8390 | ||
|
|
344cd1ff5e | ||
|
|
412e66b3dd | ||
|
|
0b4f4a4d74 | ||
|
|
53d48fdd06 | ||
|
|
e2bac530e2 | ||
|
|
307cc42437 | ||
|
|
f7f27c34c9 | ||
|
|
a975e9d223 | ||
|
|
96e82801e0 | ||
|
|
86190b949f | ||
|
|
2214aee8b4 | ||
|
|
b0016073e3 | ||
|
|
d3f14ed824 | ||
|
|
b7906db202 | ||
|
|
04b00de86e | ||
|
|
25643710e3 | ||
|
|
bac673f2e8 | ||
|
|
01982703f4 | ||
|
|
d1e2f707ae | ||
|
|
156ccde751 | ||
|
|
f5d1090479 | ||
|
|
21f801019a | ||
|
|
961dc7c104 | ||
|
|
7d3ee66a4b | ||
|
|
2c9d1d8781 | ||
|
|
bc941755b3 | ||
|
|
7f27749cdf | ||
|
|
618020de3a | ||
|
|
f4598505c2 | ||
|
|
858e23a311 | ||
|
|
b5c87ed3ff | ||
|
|
ff63db7081 | ||
|
|
04c2a2218a | ||
|
|
c488d5c7ab | ||
|
|
e3f9545462 | ||
|
|
065dc6e7db | ||
|
|
073efdd34f | ||
|
|
bc40b561dc | ||
|
|
886c9d1dbc | ||
|
|
b9ea233a45 | ||
|
|
670f36a57b | ||
|
|
3733d442cc | ||
|
|
061749cfb3 | ||
|
|
0b403a559e | ||
|
|
8fd4cd9253 | ||
|
|
10d5e6ca4a | ||
|
|
d98884ea4c | ||
|
|
bab238daae | ||
|
|
5233e6cb4b | ||
|
|
224dae23ee | ||
|
|
5f790c0c7e | ||
|
|
890cdfe40d | ||
|
|
909ccacaeb | ||
|
|
9b3021e847 | ||
|
|
264ca97055 | ||
|
|
9251e202f3 | ||
|
|
5885cd2ea0 | ||
|
|
d2a2f8291c | ||
|
|
a38f8adfc8 | ||
|
|
4c98dd2d30 | ||
|
|
b751f40bb4 | ||
|
|
61045e4389 | ||
|
|
a3cb8a45ad | ||
|
|
fb5f142127 | ||
|
|
2c0d684079 |
@@ -0,0 +1,111 @@
|
||||
DROP TABLE "20250917_CARE";
|
||||
DROP TABLE "ARC_ASSESS_VALUE";
|
||||
DROP TABLE "ARC_FOOD_ATLAS";
|
||||
DROP TABLE "ARC_QUESTIONNAIRE";
|
||||
DROP TABLE "ARC_QUESTIONNAIRE_CHILD";
|
||||
DROP TABLE "CESHI_NOTE";
|
||||
DROP TABLE "COMMON_EXPORTS_INFO_QH";
|
||||
DROP TABLE "COMMON_EXPORTS_ITEM_QH";
|
||||
DROP TABLE "COMMON_IMPORTS_DETAIL_QH";
|
||||
DROP TABLE "COMMON_IMPORTS_QH";
|
||||
DROP TABLE "CON_COST_STATISTICS";
|
||||
DROP TABLE "CON_DEPARTMENT";
|
||||
DROP TABLE "CON_DOCTOR_FOLLOW";
|
||||
DROP TABLE "CON_DOCTOR_SCHEDULING";
|
||||
DROP TABLE "CON_DOCTOR_SCHEDULING_DATE";
|
||||
DROP TABLE "CON_EVALUATE";
|
||||
DROP TABLE "CON_FAMILY_MEMBERS";
|
||||
DROP TABLE "CON_HEALTH_INFO";
|
||||
DROP TABLE "CON_HEALTH_INFO_ANSWER";
|
||||
DROP TABLE "CON_HOSPITAL_FOLLOW";
|
||||
DROP TABLE "CON_KNOWLEDGE";
|
||||
DROP TABLE "CON_KNOWLEDGE_CATEGORY";
|
||||
DROP TABLE "CON_MEDICAL_RECORDS";
|
||||
DROP TABLE "CON_SESSION_RESERVATION_DATE";
|
||||
DROP TABLE "DEMO";
|
||||
DROP TABLE "DEMO_FIELD_DEF_VAL_MAIN";
|
||||
DROP TABLE "DEMO_FIELD_DEF_VAL_SUB";
|
||||
DROP TABLE "EMERGENCY_SERIOUS_DISEASE";
|
||||
DROP TABLE "HEALTH_CLASSIFICATION";
|
||||
DROP TABLE "HEALTH_USER_EMPLOYEE_EX_QH";
|
||||
DROP TABLE "JEECG_MONTHLY_GROWTH_ANALYSIS";
|
||||
DROP TABLE "JEECG_ORDER_CUSTOMER";
|
||||
DROP TABLE "JEECG_ORDER_MAIN";
|
||||
DROP TABLE "JEECG_ORDER_TICKET";
|
||||
DROP TABLE "JEECG_PROJECT_NATURE_INCOME";
|
||||
DROP TABLE "JIMU_DICT";
|
||||
DROP TABLE "JIMU_DICT_ITEM";
|
||||
DROP TABLE "JIMU_REPORT";
|
||||
DROP TABLE "JIMU_REPORT_DATA_SOURCE";
|
||||
DROP TABLE "JIMU_REPORT_DB";
|
||||
DROP TABLE "JIMU_REPORT_DB_FIELD";
|
||||
DROP TABLE "JIMU_REPORT_DB_PARAM";
|
||||
DROP TABLE "JIMU_REPORT_LINK";
|
||||
DROP TABLE "JIMU_REPORT_MAP";
|
||||
DROP TABLE "JIMU_REPORT_SHARE";
|
||||
DROP TABLE "JOA_DEMO";
|
||||
DROP TABLE "LORE_CHECK_SUBJECT";
|
||||
DROP TABLE "ONL_AUTH_DATA";
|
||||
DROP TABLE "ONL_AUTH_PAGE";
|
||||
DROP TABLE "ONL_AUTH_RELATION";
|
||||
DROP TABLE "ONL_CGFORM_BUTTON";
|
||||
DROP TABLE "ONL_CGFORM_ENHANCE_JAVA";
|
||||
DROP TABLE "ONL_CGFORM_ENHANCE_JS";
|
||||
DROP TABLE "ONL_CGFORM_ENHANCE_SQL";
|
||||
DROP TABLE "ONL_CGFORM_FIELD";
|
||||
DROP TABLE "ONL_CGFORM_HEAD";
|
||||
DROP TABLE "ONL_CGFORM_INDEX";
|
||||
DROP TABLE "ONL_CGREPORT_HEAD";
|
||||
DROP TABLE "ONL_CGREPORT_ITEM";
|
||||
DROP TABLE "ONL_CGREPORT_PARAM";
|
||||
DROP TABLE "OSS_FILE";
|
||||
DROP TABLE "QRTZ_BLOB_TRIGGERS";
|
||||
DROP TABLE "QRTZ_CALENDARS";
|
||||
DROP TABLE "QRTZ_CRON_TRIGGERS";
|
||||
DROP TABLE "QRTZ_FIRED_TRIGGERS";
|
||||
DROP TABLE "QRTZ_JOB_DETAILS" CASCADE;
|
||||
DROP TABLE "QRTZ_LOCKS";
|
||||
DROP TABLE "QRTZ_PAUSED_TRIGGER_GRPS";
|
||||
DROP TABLE "QRTZ_SCHEDULER_STATE";
|
||||
DROP TABLE "QRTZ_SIMPLE_TRIGGERS";
|
||||
DROP TABLE "QRTZ_SIMPROP_TRIGGERS";
|
||||
DROP TABLE "QRTZ_TRIGGERS";
|
||||
DROP TABLE "REP_DEMO_DXTJ";
|
||||
DROP TABLE "REP_DEMO_EMPLOYEE";
|
||||
DROP TABLE "REP_DEMO_GONGSI";
|
||||
DROP TABLE "REP_DEMO_JIANPIAO";
|
||||
DROP TABLE "SYS_APP_VERSION_QH";
|
||||
DROP TABLE "SYS_DEPART_COPY1";
|
||||
DROP TABLE "SYS_DEPART_GPS_QH";
|
||||
DROP TABLE "SYS_DEPART_QH";
|
||||
DROP TABLE "SYS_LOG_QH";
|
||||
DROP TABLE "SYS_PERMISSION_20241224";
|
||||
DROP TABLE "SYS_PERMISSION_DATA_RULE_QH";
|
||||
DROP TABLE "SYS_PERMISSION_QH";
|
||||
DROP TABLE "SYS_ROLE_INDEX_QH";
|
||||
DROP TABLE "SYS_ROLE_PERMISSION_QH";
|
||||
DROP TABLE "SYS_ROLE_QH";
|
||||
DROP TABLE "SYS_USER_DEPART_CHANGE_APPLY_QH";
|
||||
DROP TABLE "SYS_USER_DEPART_QH";
|
||||
DROP TABLE "SYS_USER_QH";
|
||||
DROP TABLE "SYS_USER_ROLE_QH";
|
||||
DROP TABLE "TEST_DEMO";
|
||||
DROP TABLE "TEST_ENHANCE_SELECT";
|
||||
DROP TABLE "TEST_NOTE";
|
||||
DROP TABLE "TEST_ORDER_CUSTOMER";
|
||||
DROP TABLE "TEST_ORDER_MAIN";
|
||||
DROP TABLE "TEST_ORDER_PRODUCT";
|
||||
DROP TABLE "TEST_SHOPTYPE_TREE";
|
||||
DROP TABLE "TEST_V3_HELLO";
|
||||
DROP TABLE "TMP_REPORT_DATA_1";
|
||||
DROP TABLE "TMP_REPORT_DATA_INCOME";
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_INBODY";
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_LEFU";
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_ONE";
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_TWO";
|
||||
DROP TABLE "REMOTE_WEIGHT_NORMATIVE_DATA";
|
||||
DROP TABLE "HEALTH_USER_DOCTOR_BASE_EX";
|
||||
DROP TABLE "HOSPITAL_DEPARTMENT";
|
||||
DROP TABLE "STATION_HOSPITAL";
|
||||
DROP TABLE "SYS_APP_VERSION";
|
||||
DROP TABLE "USER_INFORMATION";
|
||||
@@ -0,0 +1,92 @@
|
||||
-- ============================================================
|
||||
-- System 服务数据库表名修改脚本(达梦 DM8)
|
||||
-- 规则:统一以 QH_ 开头,第二级三字母业务模块前缀,总长度 ≤ 25 位
|
||||
-- 生成日期:2026-03-10
|
||||
-- 涉及表数:76 张
|
||||
-- ============================================================
|
||||
|
||||
-- ===== COM 公共模块(4 张)=====
|
||||
ALTER TABLE "COMMON_EXPORTS_INFO" RENAME TO "QH_COM_EXPORTS_INFO";
|
||||
ALTER TABLE "COMMON_EXPORTS_ITEM" RENAME TO "QH_COM_EXPORTS_ITEM";
|
||||
ALTER TABLE "COMMON_IMPORTS" RENAME TO "QH_COM_IMPORTS";
|
||||
ALTER TABLE "COMMON_IMPORTS_DETAIL" RENAME TO "QH_COM_IMPORTS_DETAIL";
|
||||
|
||||
-- ===== HLT 健康模块(6 张)=====
|
||||
ALTER TABLE "HEALTH_CONSULT_RESOURCE" RENAME TO "QH_HLT_CONSULT_RESOURCE";
|
||||
ALTER TABLE "HEALTH_HOLIDAY" RENAME TO "QH_HLT_HOLIDAY";
|
||||
ALTER TABLE "HEALTH_USER_DOCTOR_EX" RENAME TO "QH_HLT_DOCTOR_EX";
|
||||
ALTER TABLE "HEALTH_USER_EMPLOYEE_EX" RENAME TO "QH_HLT_USER_EMPLOYEE_EX";
|
||||
ALTER TABLE "HEALTH_USER_OPERATOR_EX" RENAME TO "QH_HLT_USER_OPERATOR_EX";
|
||||
ALTER TABLE "HEALTH_USER_STATION_EX" RENAME TO "QH_HLT_USER_STATION_EX";
|
||||
|
||||
-- ===== SCL 体测模块(2 张)=====
|
||||
ALTER TABLE "SCALE_HEIGHT" RENAME TO "QH_SCL_HEIGHT";
|
||||
ALTER TABLE "SCALE_PERSONAL" RENAME TO "QH_SCL_PERSONAL";
|
||||
|
||||
-- ===== SYS 系统模块(52 张)=====
|
||||
ALTER TABLE "SYS_ANNOUNCEMENT" RENAME TO "QH_SYS_ANNOUNCEMENT";
|
||||
ALTER TABLE "SYS_ANNOUNCEMENT_SEND" RENAME TO "QH_SYS_ANNOUNCEMENT_SEND";
|
||||
ALTER TABLE "SYS_BANNER" RENAME TO "QH_SYS_BANNER";
|
||||
ALTER TABLE "SYS_CATEGORY" RENAME TO "QH_SYS_CATEGORY";
|
||||
ALTER TABLE "SYS_CHECK_RULE" RENAME TO "QH_SYS_CHECK_RULE";
|
||||
ALTER TABLE "SYS_COMMENT" RENAME TO "QH_SYS_COMMENT";
|
||||
ALTER TABLE "SYS_CONFIG" RENAME TO "QH_SYS_CONFIG";
|
||||
ALTER TABLE "SYS_DATA_LOG" RENAME TO "QH_SYS_DATA_LOG";
|
||||
ALTER TABLE "SYS_DATA_SOURCE" RENAME TO "QH_SYS_DATA_SOURCE";
|
||||
ALTER TABLE "SYS_DEPART" RENAME TO "QH_SYS_DEPART";
|
||||
ALTER TABLE "SYS_DEPART_GPS" RENAME TO "QH_SYS_DEPART_GPS";
|
||||
ALTER TABLE "SYS_DEPART_PERMISSION" RENAME TO "QH_SYS_DEPART_PERMISSION";
|
||||
ALTER TABLE "SYS_DEPART_ROLE" RENAME TO "QH_SYS_DEPART_ROLE";
|
||||
ALTER TABLE "SYS_DEPART_ROLE_PERMISSION" RENAME TO "QH_SYS_DEPT_ROLE_PERM";
|
||||
ALTER TABLE "SYS_DEPART_ROLE_USER" RENAME TO "QH_SYS_DEPART_ROLE_USER";
|
||||
ALTER TABLE "SYS_DICT" RENAME TO "QH_SYS_DICT";
|
||||
ALTER TABLE "SYS_DICT_ITEM" RENAME TO "QH_SYS_DICT_ITEM";
|
||||
ALTER TABLE "SYS_FILES" RENAME TO "QH_SYS_FILES";
|
||||
ALTER TABLE "SYS_FILL_RULE" RENAME TO "QH_SYS_FILL_RULE";
|
||||
ALTER TABLE "SYS_FORM_FILE" RENAME TO "QH_SYS_FORM_FILE";
|
||||
ALTER TABLE "SYS_GATEWAY_ROUTE" RENAME TO "QH_SYS_GATEWAY_ROUTE";
|
||||
ALTER TABLE "SYS_IOS_REDEEM" RENAME TO "QH_SYS_IOS_REDEEM";
|
||||
ALTER TABLE "SYS_LOG" RENAME TO "QH_SYS_LOG";
|
||||
ALTER TABLE "SYS_MESSAGE_NOTICE" RENAME TO "QH_SYS_MSG_NOTICE";
|
||||
ALTER TABLE "SYS_MESSAGE_NOTICE_SCOPE" RENAME TO "QH_SYS_MSG_NOTICE_SCOPE";
|
||||
ALTER TABLE "SYS_MESSAGE_REMIND" RENAME TO "QH_SYS_MSG_REMIND";
|
||||
ALTER TABLE "SYS_NOTICE" RENAME TO "QH_SYS_NOTICE";
|
||||
ALTER TABLE "SYS_NOTICE_READ_RECORD" RENAME TO "QH_SYS_NOTICE_READ_RECORD";
|
||||
ALTER TABLE "SYS_PACK_PERMISSION" RENAME TO "QH_SYS_PACK_PERMISSION";
|
||||
ALTER TABLE "SYS_PERMISSION" RENAME TO "QH_SYS_PERMISSION";
|
||||
ALTER TABLE "SYS_PERMISSION_DATA_RULE" RENAME TO "QH_SYS_PERM_DATA_RULE";
|
||||
ALTER TABLE "SYS_PERMISSION_V2" RENAME TO "QH_SYS_PERMISSION_V2";
|
||||
ALTER TABLE "SYS_POSITION" RENAME TO "QH_SYS_POSITION";
|
||||
ALTER TABLE "SYS_POSITION_CLASSIFY" RENAME TO "QH_SYS_POSITION_CLASSIFY";
|
||||
ALTER TABLE "SYS_QUARTZ_JOB" RENAME TO "QH_SYS_QUARTZ_JOB";
|
||||
ALTER TABLE "SYS_ROLE" RENAME TO "QH_SYS_ROLE";
|
||||
ALTER TABLE "SYS_ROLE_INDEX" RENAME TO "QH_SYS_ROLE_INDEX";
|
||||
ALTER TABLE "SYS_ROLE_PERMISSION" RENAME TO "QH_SYS_ROLE_PERMISSION";
|
||||
ALTER TABLE "SYS_SMS" RENAME TO "QH_SYS_SMS";
|
||||
ALTER TABLE "SYS_SMS_TEMPLATE" RENAME TO "QH_SYS_SMS_TEMPLATE";
|
||||
ALTER TABLE "SYS_TENANT" RENAME TO "QH_SYS_TENANT";
|
||||
ALTER TABLE "SYS_TENANT_PACK" RENAME TO "QH_SYS_TENANT_PACK";
|
||||
ALTER TABLE "SYS_TENANT_PACK_PERMS" RENAME TO "QH_SYS_TENANT_PACK_PERMS";
|
||||
ALTER TABLE "SYS_TENANT_PACK_USER" RENAME TO "QH_SYS_TENANT_PACK_USER";
|
||||
ALTER TABLE "SYS_THIRD_ACCOUNT" RENAME TO "QH_SYS_THIRD_ACCOUNT";
|
||||
ALTER TABLE "SYS_USER" RENAME TO "QH_SYS_USER";
|
||||
ALTER TABLE "SYS_USER_AGENT" RENAME TO "QH_SYS_USER_AGENT";
|
||||
ALTER TABLE "SYS_USER_DEPART" RENAME TO "QH_SYS_USER_DEPART";
|
||||
ALTER TABLE "SYS_USER_DEPART_CHANGE_APPLY" RENAME TO "QH_SYS_DEPT_CHG_APPLY";
|
||||
ALTER TABLE "SYS_USER_DEVICE" RENAME TO "QH_SYS_USER_DEVICE";
|
||||
ALTER TABLE "SYS_USER_EMERGENCY_CONTACT" RENAME TO "QH_SYS_USR_EMERG_CONTACT";
|
||||
ALTER TABLE "SYS_USER_FAMILY_MEMBERS" RENAME TO "QH_SYS_USR_FAMILY_MBR";
|
||||
ALTER TABLE "SYS_USER_FAMILY_MEMBERS_REQUEST" RENAME TO "QH_SYS_USR_FAM_MBR_REQ";
|
||||
ALTER TABLE "SYS_USER_POST" RENAME TO "QH_SYS_USER_POST";
|
||||
ALTER TABLE "SYS_USER_ROLE" RENAME TO "QH_SYS_USER_ROLE";
|
||||
ALTER TABLE "SYS_USER_TENANT" RENAME TO "QH_SYS_USER_TENANT";
|
||||
ALTER TABLE "SYS_VERSION_APP" RENAME TO "QH_SYS_VERSION_APP";
|
||||
ALTER TABLE "SYS_VERSION_INFO" RENAME TO "QH_SYS_VERSION_INFO";
|
||||
|
||||
-- ===== USR 用户模块(12 张)=====
|
||||
ALTER TABLE "TBL_USER_WX_RELATION" RENAME TO "QH_USR_WX_RELATION";
|
||||
ALTER TABLE "USER_DATA_RECORD_BLOOD_ABO" RENAME TO "QH_USR_DATA_RCD_BLOOD_ABO";
|
||||
ALTER TABLE "USER_DATA_RECORD_BLOOD_PRESSURE" RENAME TO "QH_USR_DATA_RCD_BLD_PRS";
|
||||
ALTER TABLE "USER_DATA_RECORD_BMI" RENAME TO "QH_USR_DATA_RCD_BMI";
|
||||
ALTER TABLE "USER_DATA_RECORD_BWH" RENAME TO "QH_USR_DATA_RCD_BWH";
|
||||
ALTER TABLE "USER_WEIGHT_BIND" RENAME TO "QH_USR_WEIGHT_BIND";
|
||||
@@ -0,0 +1,69 @@
|
||||
-- ============================================================
|
||||
-- System 服务无用表删除脚本
|
||||
-- 说明:以下表在当前业务中已无实际使用,从原项目迁移而来
|
||||
-- 注意:QH_SYS_QUARTZ_JOB 和 QH_SYS_TENANT 谨慎处理,暂不删除
|
||||
-- 生成日期:2026-03-11
|
||||
-- 涉及表数:18 张
|
||||
-- ============================================================
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- 第一份:原表名(迁移前)
|
||||
-- ============================================================
|
||||
|
||||
-- HLT 健康模块
|
||||
DROP TABLE "HEALTH_USER_STATION_EX";
|
||||
|
||||
-- SCL 体测模块
|
||||
DROP TABLE "SCALE_HEIGHT";
|
||||
DROP TABLE "SCALE_PERSONAL";
|
||||
|
||||
-- SYS 系统模块
|
||||
DROP TABLE "SYS_FORM_FILE";
|
||||
DROP TABLE "SYS_IOS_REDEEM";
|
||||
DROP TABLE "SYS_PACK_PERMISSION";
|
||||
DROP TABLE "SYS_TENANT_PACK";
|
||||
DROP TABLE "SYS_TENANT_PACK_PERMS";
|
||||
DROP TABLE "SYS_TENANT_PACK_USER";
|
||||
DROP TABLE "SYS_THIRD_ACCOUNT";
|
||||
DROP TABLE "SYS_USER_FAMILY_MEMBERS";
|
||||
DROP TABLE "SYS_USER_FAMILY_MEMBERS_REQUEST";
|
||||
|
||||
-- USR 用户模块
|
||||
DROP TABLE "TBL_USER_WX_RELATION";
|
||||
DROP TABLE "USER_DATA_RECORD_BLOOD_PRESSURE";
|
||||
DROP TABLE "USER_DATA_RECORD_BLOOD_ABO";
|
||||
DROP TABLE "USER_DATA_RECORD_BMI";
|
||||
DROP TABLE "USER_DATA_RECORD_BWH";
|
||||
DROP TABLE "USER_WEIGHT_BIND";
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- 第二份:新表名(迁移后,QH_ 命名规范)
|
||||
-- ============================================================
|
||||
|
||||
-- HLT 健康模块
|
||||
DROP TABLE "QH_HLT_USER_STATION_EX";
|
||||
|
||||
-- SCL 体测模块
|
||||
DROP TABLE "QH_SCL_HEIGHT";
|
||||
DROP TABLE "QH_SCL_PERSONAL";
|
||||
|
||||
-- SYS 系统模块
|
||||
DROP TABLE "QH_SYS_FORM_FILE";
|
||||
DROP TABLE "QH_SYS_IOS_REDEEM";
|
||||
DROP TABLE "QH_SYS_PACK_PERMISSION";
|
||||
DROP TABLE "QH_SYS_TENANT_PACK";
|
||||
DROP TABLE "QH_SYS_TENANT_PACK_PERMS";
|
||||
DROP TABLE "QH_SYS_TENANT_PACK_USER";
|
||||
DROP TABLE "QH_SYS_THIRD_ACCOUNT";
|
||||
DROP TABLE "QH_SYS_USR_FAMILY_MBR";
|
||||
DROP TABLE "QH_SYS_USR_FAM_MBR_REQ";
|
||||
|
||||
-- USR 用户模块
|
||||
DROP TABLE "QH_USR_WX_RELATION";
|
||||
DROP TABLE "QH_USR_DATA_RCD_BLD_PRS";
|
||||
DROP TABLE "QH_USR_DATA_RCD_BLOOD_ABO";
|
||||
DROP TABLE "QH_USR_DATA_RCD_BMI";
|
||||
DROP TABLE "QH_USR_DATA_RCD_BWH";
|
||||
DROP TABLE "QH_USR_WEIGHT_BIND";
|
||||
@@ -0,0 +1,66 @@
|
||||
-- 删除青海相关库
|
||||
DROP TABLE IF EXISTS CON_DOCTOR_FOLLOW_QH;
|
||||
DROP TABLE IF EXISTS CON_DOCTOR_SATISFY_QH;
|
||||
DROP TABLE IF EXISTS CON_EVALUATE_QH;
|
||||
DROP TABLE IF EXISTS CON_FAMILY_MEMBERS_QH;
|
||||
DROP TABLE IF EXISTS CON_HEALTH_INFO_ANSWER_QH;
|
||||
DROP TABLE IF EXISTS CON_HEALTH_INFO_CHILD_QH;
|
||||
DROP TABLE IF EXISTS CON_HEALTH_INFO_QH;
|
||||
DROP TABLE IF EXISTS CON_HELPER_ONLINE_QH;
|
||||
DROP TABLE IF EXISTS CON_HELPER_QH;
|
||||
DROP TABLE IF EXISTS CON_HELPER_SCHEDULING_HISTORY_QH;
|
||||
DROP TABLE IF EXISTS CON_HELPER_SCHEDULING_QH;
|
||||
DROP TABLE IF EXISTS CON_HOSPITAL_FOLLOW_QH;
|
||||
DROP TABLE IF EXISTS CON_MEDICAL_RECORDS_QH;
|
||||
DROP TABLE IF EXISTS CON_SESSION_QH;
|
||||
|
||||
-- 修改表名
|
||||
ALTER TABLE CON_COST_LOG RENAME TO QH_CON_COST_LOG;
|
||||
ALTER TABLE CON_COST_STATISTICS RENAME TO QH_CON_COST_STAT;
|
||||
ALTER TABLE CON_DEPARTMENT RENAME TO QH_CON_DEPT;
|
||||
ALTER TABLE CON_DOCTOR RENAME TO QH_CON_DOCTOR;
|
||||
ALTER TABLE CON_DOCTOR_CARD RENAME TO QH_CON_DOC_CARD;
|
||||
ALTER TABLE CON_DOCTOR_CHANGE_LOG RENAME TO QH_CON_DOC_CHG_LOG;
|
||||
ALTER TABLE CON_DOCTOR_FOLLOW RENAME TO QH_CON_DOC_FOLLOW;
|
||||
ALTER TABLE CON_DOCTOR_SATISFY RENAME TO QH_CON_DOC_SATISFY;
|
||||
ALTER TABLE CON_DOCTOR_SCHEDULING RENAME TO QH_CON_DOC_SCHD;
|
||||
ALTER TABLE CON_DOCTOR_SCHEDULING_DATE RENAME TO QH_CON_DOC_SCHD_DT;
|
||||
ALTER TABLE CON_EVALUATE RENAME TO QH_CON_EVALUATE;
|
||||
ALTER TABLE CON_FAMILY_MEMBERS RENAME TO QH_CON_FAMMEM;
|
||||
ALTER TABLE CON_HABIT_PARAM RENAME TO QH_CON_HABIT_PARM;
|
||||
ALTER TABLE CON_HEALTH_INFO RENAME TO QH_CON_HEALTH;
|
||||
ALTER TABLE CON_HEALTH_INFO_ANSWER RENAME TO QH_CON_HEALTH_ANS;
|
||||
ALTER TABLE CON_HEALTH_INFO_CHILD RENAME TO QH_CON_HEALTH_CHD;
|
||||
ALTER TABLE CON_HELPER RENAME TO QH_CON_HELPER;
|
||||
ALTER TABLE CON_HELPER_ONLINE RENAME TO QH_CON_HELPER_ONLN;
|
||||
ALTER TABLE CON_HELPER_REST RENAME TO QH_CON_HELPER_REST;
|
||||
ALTER TABLE CON_HELPER_SCHEDULING RENAME TO QH_CON_HELPER_SCHD;
|
||||
ALTER TABLE CON_HELPER_SCHEDULING_HISTORY RENAME TO QH_CON_HELPER_SCHD_HIS;
|
||||
ALTER TABLE CON_HOSPITAL_FOLLOW RENAME TO QH_CON_HOSP_FOLLOW;
|
||||
ALTER TABLE CON_KNOWLEDGE RENAME TO QH_CON_KNOW;
|
||||
ALTER TABLE CON_KNOWLEDGE_CATEGORY RENAME TO QH_CON_KNOW_CATE;
|
||||
ALTER TABLE CON_MEDICAL_RECORDS RENAME TO QH_CON_MEDREC;
|
||||
ALTER TABLE CON_NOTICE RENAME TO QH_CON_NOTICE;
|
||||
ALTER TABLE CON_PAUSE_SERVICE RENAME TO QH_CON_PAUSE_SRVC;
|
||||
ALTER TABLE CON_PHRASES RENAME TO QH_CON_PHRASES;
|
||||
ALTER TABLE CON_PROPOSE RENAME TO QH_CON_PROPOSE;
|
||||
ALTER TABLE CON_RESOURCE RENAME TO QH_CON_RESOURCE;
|
||||
ALTER TABLE CON_SCHEDULING RENAME TO QH_CON_SCHD;
|
||||
ALTER TABLE CON_SERVICE RENAME TO QH_CON_SRVC;
|
||||
ALTER TABLE CON_SESSION RENAME TO QH_CON_SESSION;
|
||||
ALTER TABLE CON_SESSION_RESERVATION_DATE RENAME TO QH_CON_SESS_RESV_DT;
|
||||
ALTER TABLE CON_SESSION_VIDEO_INFO RENAME TO QH_CON_SESS_VID;
|
||||
ALTER TABLE CON_SETTLE_CONFIG_COST RENAME TO QH_CON_STL_CFG_COST;
|
||||
ALTER TABLE CON_SETTLE_CONFIG_PERIOD RENAME TO QH_CON_STL_CFG_PRD;
|
||||
ALTER TABLE CON_SETTLE_MAIN RENAME TO QH_CON_STL_MAIN;
|
||||
ALTER TABLE CON_SETTLE_RESULT RENAME TO QH_CON_STL_RSLT;
|
||||
ALTER TABLE CON_SETTLE_RESULT_ITEM RENAME TO QH_CON_STL_RSLT_ITM;
|
||||
ALTER TABLE CON_SETTLE_RESULT_PERIOD RENAME TO QH_CON_STL_RSLT_PRD;
|
||||
ALTER TABLE CON_SICKS RENAME TO QH_CON_SICKS;
|
||||
ALTER TABLE HOSPITAL_DEPARTMENT RENAME TO QH_CON_HOSP_DEPT;
|
||||
ALTER TABLE IM_GROUP_SYNC_RECORD RENAME TO QH_CON_IM_GRP_SYNC;
|
||||
ALTER TABLE IM_MSG_READ_LOG RENAME TO QH_CON_IM_MSG_RDLOG;
|
||||
ALTER TABLE IM_MSG_RECORD_ALL RENAME TO QH_CON_IM_MSG_ALL;
|
||||
|
||||
-- 修改表字段(触发关键字了)
|
||||
ALTER TABLE QH_CON_EVALUATE RENAME COLUMN "CONTEXT" TO EVA_CONTEXT;
|
||||
@@ -0,0 +1,98 @@
|
||||
-- 应急模块sql整理
|
||||
|
||||
|
||||
-- 以下所有sql均包含"AYGC_JKYWK".前缀, 后续部署, 如果不需要, 可以批量删除前缀
|
||||
|
||||
-- 更新达梦数据库保留字段名
|
||||
ALTER TABLE "AYGC_JKYWK"."TBL_QIMO_NOTICE" ALTER COLUMN "BEGIN" RENAME TO "BEGIN_TIME";
|
||||
ALTER TABLE "AYGC_JKYWK"."TBL_QIMO_NOTICE" ALTER COLUMN "END" RENAME TO "END_TIME";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_EQUIPMENT_MANGER" ALTER COLUMN "MODEL" RENAME TO "MODEL_NUMBER";
|
||||
|
||||
|
||||
-- 更新表名(36张)
|
||||
ALTER TABLE "AYGC_JKYWK"."AED" RENAME TO "QH_EME_AED";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_EQUIPMENT_MAINTAIN" RENAME TO "QH_EME_AED_EQUIP_MAINTAIN";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_EQUIPMENT_MANGER" RENAME TO "QH_EME_AED_EQUIP_MANGER";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_EQUIPMENT_RETRAIN" RENAME TO "QH_EME_AED_EQUIP_RETRAIN";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_EQUIPMENT_TRAIN" RENAME TO "QH_EME_AED_EQUIP_TRAIN";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_LATEST" RENAME TO "QH_EME_AED_LATEST";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_LOCATION_EQUIPMENT" RENAME TO "QH_EME_AED_LOC_EQUIP";
|
||||
-- ALTER TABLE "AYGC_JKYWK"."AED_USE_RECORD" RENAME TO "QH_EME_AED_USE_RECORD";
|
||||
ALTER TABLE "AYGC_JKYWK"."AED_WARN_INFO" RENAME TO "QH_EME_AED_WARN_INFO";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_CENTER" RENAME TO "QH_EME_CENTER";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_CENTER_ADMIN" RENAME TO "QH_EME_CENTER_ADMIN";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_CENTER_OPEN_TIME" RENAME TO "QH_EME_CENTER_OPEN_TIME";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_CENTER_RESOURCE" RENAME TO "QH_EME_CENTER_RESOUR";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_GROUPED" RENAME TO "QH_EME_GROUPED";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_HEALTH_ROOM" RENAME TO "QH_EME_HEALTH_ROOM";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_NEW_SCHEDULES" RENAME TO "QH_EME_NEW_SCHEDULES";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_SCHEDULES_NEW_ITEM" RENAME TO "QH_EME_SCHED_NEW_ITEM";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_ORDER" RENAME TO "QH_EME_ORDER";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_ORDER_DETAIL" RENAME TO "QH_EME_ORDER_DETAIL";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_ORDER_INTERVENE" RENAME TO "QH_EME_ORDER_INTERVENE";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_ORDER_OPERATOR" RENAME TO "QH_EME_ORDER_OPERATOR";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_ORDER_SEND_RECORD" RENAME TO "QH_EME_ORDER_SEND_REC";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_PROFESSION_USER" RENAME TO "QH_EME_PROFESS_USER";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_RESOURCE" RENAME TO "QH_EME_RESOURCE";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_SCHEDULE_CUSTOM" RENAME TO "QH_EME_SCHED_CUSTOM";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_SCHEDULE_DEFAULT" RENAME TO "QH_EME_SCHED_DEFAULT";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_SCHEDULE_RECORD" RENAME TO "QH_EME_SCHED_RECORD";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_SCREEN_ANIMATION" RENAME TO "QH_EME_SCRN_ANIMAT";
|
||||
ALTER TABLE "AYGC_JKYWK"."EMERGENCY_SERIOUS_DISEASE" RENAME TO "QH_EME_SERIOUS_DIS";
|
||||
ALTER TABLE "AYGC_JKYWK"."LARGE_SCREEN_DATA" RENAME TO "QH_EME_SCRN_DATA";
|
||||
ALTER TABLE "AYGC_JKYWK"."SYS_NOTIFY_SMS_PHONE" RENAME TO "QH_EME_NOTIF_SMS_PHONE";
|
||||
ALTER TABLE "AYGC_JKYWK"."TBL_QIMO_NOTICE" RENAME TO "QH_EME_QIMO_NOTICE";
|
||||
ALTER TABLE "AYGC_JKYWK"."TBL_USER_HELP" RENAME TO "QH_EME_USER_HELP";
|
||||
-- QH_EME_VIDEO_MAC 此表数据库已被删除
|
||||
ALTER TABLE "AYGC_JKYWK"."TBL_VIDEO_MAC" RENAME TO "QH_EME_VIDEO_MAC";
|
||||
ALTER TABLE "AYGC_JKYWK"."XJ_AED" RENAME TO "QH_EME_XJ_AED";
|
||||
ALTER TABLE "AYGC_JKYWK"."ZY_AMBULANCE_DATA" RENAME TO "QH_EME_AMBUL_DATA";
|
||||
|
||||
DROP TABLE "AYGC_JKYWK"."QH_EME_VIDEO_MAC";
|
||||
DROP TABLE "AYGC_JKYWK"."AED_EQUIPMENT_CERTIFICATE";
|
||||
DROP TABLE "AYGC_JKYWK"."AED_EQUIPMENT_MANGER_20251202";
|
||||
DROP TABLE "AYGC_JKYWK"."AED_EQUIPMENT_MANGER_20251213";
|
||||
DROP TABLE "AYGC_JKYWK"."AED_EQUIPMENT_MANGER_20251224";
|
||||
DROP TABLE "AYGC_JKYWK"."EMERGENCY_RESOURCE_20251202";
|
||||
DROP TABLE "AYGC_JKYWK"."XJ_AED_20251128";
|
||||
|
||||
-- 缺失表新建
|
||||
CREATE TABLE "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"
|
||||
(
|
||||
"ID" BIGINT NOT NULL,
|
||||
"EQUIPMENT_ID" BIGINT,
|
||||
"USED_TIME" TIMESTAMP(0),
|
||||
"SALVED_PERSON" VARCHAR(255 CHAR),
|
||||
"HEART_FLAG" INT,
|
||||
"CONSCIOUSNESS_FLAG" INT,
|
||||
"USE_USER" VARCHAR(255 CHAR),
|
||||
"USE_INSTRUCTION" VARCHAR(255 CHAR),
|
||||
"START_NUMS" INT,
|
||||
"SUCCESS_RATE" NUMBER(10,2),
|
||||
"FAIL_RATE" NUMBER(10,2),
|
||||
"USE_RESULT" INT,
|
||||
"DEL_FLAG" TINYINT DEFAULT 0 NOT NULL,
|
||||
"CREATE_BY" VARCHAR(32 CHAR),
|
||||
"CREATE_TIME" TIMESTAMP(0),
|
||||
"UPDATE_BY" VARCHAR(32 CHAR),
|
||||
"UPDATE_TIME" TIMESTAMP(0),
|
||||
CONSTRAINT "AED_USE_RECORD_PRIMARY" NOT CLUSTER PRIMARY KEY("ID")) STORAGE(ON "MAIN", CLUSTERBTR) ;
|
||||
|
||||
COMMENT ON TABLE "AYGC_JKYWK"."QH_EME_AED_USE_RECORD" IS 'aed应用记录表';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."ID" IS '主键';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."EQUIPMENT_ID" IS '设备id';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."USED_TIME" IS '使用时间';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."SALVED_PERSON" IS '被救助人';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."HEART_FLAG" IS '症状1 来源字典(1:有呼吸,2:无呼吸)';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."CONSCIOUSNESS_FLAG" IS '症状2来源字典(1:有意识,2:无意识)';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."USE_USER" IS '使用人';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."USE_INSTRUCTION" IS '使用过程说明';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."START_NUMS" IS '启动次数';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."SUCCESS_RATE" IS '成功除颤率';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."FAIL_RATE" IS '故障率';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."USE_RESULT" IS '应用结果(1:救治成功,2:救治失败)';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."DEL_FLAG" IS '删除状态(0-正常,1-已删除)';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."CREATE_BY" IS '创建人';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."CREATE_TIME" IS '创建时间';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."UPDATE_BY" IS '更新人';
|
||||
COMMENT ON COLUMN "AYGC_JKYWK"."QH_EME_AED_USE_RECORD"."UPDATE_TIME" IS '更新时间';
|
||||
@@ -0,0 +1,2 @@
|
||||
-- 修改QH_HLT_CONSULT_RESOURCE表字段名
|
||||
ALTER TABLE "QH_HLT_CONSULT_RESOURCE" ALTER COLUMN "DESC" RENAME TO "INTRODUCTION";
|
||||
@@ -0,0 +1,263 @@
|
||||
-- ============================================================
|
||||
-- System 服务数据库信创整理脚本(达梦 DM8)
|
||||
-- 生成日期:2026-03-13
|
||||
-- 说明:生产环境执行脚本,表名为原表名
|
||||
-- 执行顺序:
|
||||
-- 第一步:删除所有不需要的表(使用原表名)
|
||||
-- 第二步:修改剩余表的表名(原表名 → QH_ 前缀新表名)
|
||||
-- ============================================================
|
||||
|
||||
-- ============================================================
|
||||
-- 第一步:删除不需要的表(使用原表名)
|
||||
-- 说明:整合 20260306 和 20260311 中要删除的表
|
||||
-- 涉及表数:130 张
|
||||
-- ============================================================
|
||||
|
||||
-- ===== ARC 类(归档/历史数据,共 5 张)=====
|
||||
DROP TABLE "20250917_CARE";
|
||||
DROP TABLE "ARC_ASSESS_VALUE";
|
||||
DROP TABLE "ARC_FOOD_ATLAS";
|
||||
DROP TABLE "ARC_QUESTIONNAIRE";
|
||||
DROP TABLE "ARC_QUESTIONNAIRE_CHILD";
|
||||
|
||||
-- ===== _QH 后缀类(青海旧库历史备份,共 18 张)=====
|
||||
DROP TABLE "COMMON_EXPORTS_INFO_QH";
|
||||
DROP TABLE "COMMON_EXPORTS_ITEM_QH";
|
||||
DROP TABLE "COMMON_IMPORTS_DETAIL_QH";
|
||||
DROP TABLE "COMMON_IMPORTS_QH";
|
||||
DROP TABLE "HEALTH_USER_EMPLOYEE_EX_QH";
|
||||
DROP TABLE "SYS_APP_VERSION_QH";
|
||||
DROP TABLE "SYS_DEPART_GPS_QH";
|
||||
DROP TABLE "SYS_DEPART_QH";
|
||||
DROP TABLE "SYS_LOG_QH";
|
||||
DROP TABLE "SYS_PERMISSION_DATA_RULE_QH";
|
||||
DROP TABLE "SYS_PERMISSION_QH";
|
||||
DROP TABLE "SYS_ROLE_INDEX_QH";
|
||||
DROP TABLE "SYS_ROLE_PERMISSION_QH";
|
||||
DROP TABLE "SYS_ROLE_QH";
|
||||
DROP TABLE "SYS_USER_DEPART_CHANGE_APPLY_QH";
|
||||
DROP TABLE "SYS_USER_DEPART_QH";
|
||||
DROP TABLE "SYS_USER_QH";
|
||||
DROP TABLE "SYS_USER_ROLE_QH";
|
||||
|
||||
-- ===== CON 类(咨询模块,已迁移,共 14 张)=====
|
||||
DROP TABLE "CON_COST_STATISTICS";
|
||||
DROP TABLE "CON_DEPARTMENT";
|
||||
DROP TABLE "CON_DOCTOR_FOLLOW";
|
||||
DROP TABLE "CON_DOCTOR_SCHEDULING";
|
||||
DROP TABLE "CON_DOCTOR_SCHEDULING_DATE";
|
||||
DROP TABLE "CON_EVALUATE";
|
||||
DROP TABLE "CON_FAMILY_MEMBERS";
|
||||
DROP TABLE "CON_HEALTH_INFO";
|
||||
DROP TABLE "CON_HEALTH_INFO_ANSWER";
|
||||
DROP TABLE "CON_HOSPITAL_FOLLOW";
|
||||
DROP TABLE "CON_KNOWLEDGE";
|
||||
DROP TABLE "CON_KNOWLEDGE_CATEGORY";
|
||||
DROP TABLE "CON_MEDICAL_RECORDS";
|
||||
DROP TABLE "CON_SESSION_RESERVATION_DATE";
|
||||
|
||||
-- ===== DEMO / TEST / TMP 类(演示/测试/临时,共 14 张)=====
|
||||
DROP TABLE "DEMO";
|
||||
DROP TABLE "DEMO_FIELD_DEF_VAL_MAIN";
|
||||
DROP TABLE "DEMO_FIELD_DEF_VAL_SUB";
|
||||
DROP TABLE "JOA_DEMO";
|
||||
DROP TABLE "TEST_DEMO";
|
||||
DROP TABLE "TEST_ENHANCE_SELECT";
|
||||
DROP TABLE "TEST_NOTE";
|
||||
DROP TABLE "TEST_ORDER_CUSTOMER";
|
||||
DROP TABLE "TEST_ORDER_MAIN";
|
||||
DROP TABLE "TEST_ORDER_PRODUCT";
|
||||
DROP TABLE "TEST_SHOPTYPE_TREE";
|
||||
DROP TABLE "TEST_V3_HELLO";
|
||||
DROP TABLE "TMP_REPORT_DATA_1";
|
||||
DROP TABLE "TMP_REPORT_DATA_INCOME";
|
||||
|
||||
-- ===== JEECG 类(框架示例表,共 5 张)=====
|
||||
DROP TABLE "JEECG_MONTHLY_GROWTH_ANALYSIS";
|
||||
DROP TABLE "JEECG_ORDER_CUSTOMER";
|
||||
DROP TABLE "JEECG_ORDER_MAIN";
|
||||
DROP TABLE "JEECG_ORDER_TICKET";
|
||||
DROP TABLE "JEECG_PROJECT_NATURE_INCOME";
|
||||
|
||||
-- ===== JIMU 类(积木报表内部表,共 10 张)=====
|
||||
DROP TABLE "JIMU_DICT";
|
||||
DROP TABLE "JIMU_DICT_ITEM";
|
||||
DROP TABLE "JIMU_REPORT";
|
||||
DROP TABLE "JIMU_REPORT_DATA_SOURCE";
|
||||
DROP TABLE "JIMU_REPORT_DB";
|
||||
DROP TABLE "JIMU_REPORT_DB_FIELD";
|
||||
DROP TABLE "JIMU_REPORT_DB_PARAM";
|
||||
DROP TABLE "JIMU_REPORT_LINK";
|
||||
DROP TABLE "JIMU_REPORT_MAP";
|
||||
DROP TABLE "JIMU_REPORT_SHARE";
|
||||
|
||||
-- ===== ONL 类(Online 代码生成器内部表,共 13 张)=====
|
||||
DROP TABLE "ONL_AUTH_DATA";
|
||||
DROP TABLE "ONL_AUTH_PAGE";
|
||||
DROP TABLE "ONL_AUTH_RELATION";
|
||||
DROP TABLE "ONL_CGFORM_BUTTON";
|
||||
DROP TABLE "ONL_CGFORM_ENHANCE_JAVA";
|
||||
DROP TABLE "ONL_CGFORM_ENHANCE_JS";
|
||||
DROP TABLE "ONL_CGFORM_ENHANCE_SQL";
|
||||
DROP TABLE "ONL_CGFORM_FIELD";
|
||||
DROP TABLE "ONL_CGFORM_HEAD";
|
||||
DROP TABLE "ONL_CGFORM_INDEX";
|
||||
DROP TABLE "ONL_CGREPORT_HEAD";
|
||||
DROP TABLE "ONL_CGREPORT_ITEM";
|
||||
DROP TABLE "ONL_CGREPORT_PARAM";
|
||||
|
||||
-- ===== QRTZ 类(Quartz 调度框架内部表,共 11 张)=====
|
||||
DROP TABLE "QRTZ_BLOB_TRIGGERS";
|
||||
DROP TABLE "QRTZ_CALENDARS";
|
||||
DROP TABLE "QRTZ_CRON_TRIGGERS";
|
||||
DROP TABLE "QRTZ_FIRED_TRIGGERS";
|
||||
DROP TABLE "QRTZ_JOB_DETAILS" CASCADE;
|
||||
DROP TABLE "QRTZ_LOCKS";
|
||||
DROP TABLE "QRTZ_PAUSED_TRIGGER_GRPS";
|
||||
DROP TABLE "QRTZ_SCHEDULER_STATE";
|
||||
DROP TABLE "QRTZ_SIMPLE_TRIGGERS";
|
||||
DROP TABLE "QRTZ_SIMPROP_TRIGGERS";
|
||||
DROP TABLE "QRTZ_TRIGGERS";
|
||||
|
||||
-- ===== REP_DEMO 类(报表演示,共 4 张)=====
|
||||
DROP TABLE "REP_DEMO_DXTJ";
|
||||
DROP TABLE "REP_DEMO_EMPLOYEE";
|
||||
DROP TABLE "REP_DEMO_GONGSI";
|
||||
DROP TABLE "REP_DEMO_JIANPIAO";
|
||||
|
||||
-- ===== SYS 历史备份类(共 2 张)=====
|
||||
DROP TABLE "SYS_DEPART_COPY1";
|
||||
DROP TABLE "SYS_PERMISSION_20241224";
|
||||
|
||||
-- ===== 其他(未知来源或项目未使用,共 6 张)=====
|
||||
DROP TABLE "CESHI_NOTE";
|
||||
DROP TABLE "EMERGENCY_SERIOUS_DISEASE";
|
||||
DROP TABLE "HEALTH_CLASSIFICATION";
|
||||
DROP TABLE "LORE_CHECK_SUBJECT";
|
||||
DROP TABLE "OSS_FILE";
|
||||
DROP TABLE "USER_INFORMATION";
|
||||
|
||||
-- ===== REMOTE_WEIGHT 类(远程体重设备,已废弃,共 5 张)=====
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_INBODY";
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_LEFU";
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_ONE";
|
||||
DROP TABLE "REMOTE_WEIGHT_MANUFACTURER_TWO";
|
||||
DROP TABLE "REMOTE_WEIGHT_NORMATIVE_DATA";
|
||||
|
||||
-- ===== 历史遗留 / 已废弃功能表(共 5 张)=====
|
||||
DROP TABLE "HEALTH_USER_DOCTOR_BASE_EX";
|
||||
DROP TABLE "HOSPITAL_DEPARTMENT";
|
||||
DROP TABLE "STATION_HOSPITAL";
|
||||
DROP TABLE "SYS_APP_VERSION";
|
||||
|
||||
-- ===== System 服务无业务遗留表(共 18 张)=====
|
||||
-- HLT 健康模块(1 张)
|
||||
DROP TABLE "HEALTH_USER_STATION_EX";
|
||||
|
||||
-- SCL 体测模块(2 张)
|
||||
DROP TABLE "SCALE_HEIGHT";
|
||||
DROP TABLE "SCALE_PERSONAL";
|
||||
|
||||
-- SYS 系统模块(10 张)
|
||||
DROP TABLE "SYS_FORM_FILE";
|
||||
DROP TABLE "SYS_IOS_REDEEM";
|
||||
DROP TABLE "SYS_PACK_PERMISSION";
|
||||
DROP TABLE "SYS_TENANT_PACK";
|
||||
DROP TABLE "SYS_TENANT_PACK_PERMS";
|
||||
DROP TABLE "SYS_TENANT_PACK_USER";
|
||||
DROP TABLE "SYS_THIRD_ACCOUNT";
|
||||
DROP TABLE "SYS_USER_FAMILY_MEMBERS_REQUEST";
|
||||
|
||||
-- USR 用户模块(6 张)
|
||||
DROP TABLE "TBL_USER_WX_RELATION";
|
||||
DROP TABLE "USER_DATA_RECORD_BLOOD_PRESSURE";
|
||||
DROP TABLE "USER_DATA_RECORD_BLOOD_ABO";
|
||||
DROP TABLE "USER_DATA_RECORD_BMI";
|
||||
DROP TABLE "USER_DATA_RECORD_BWH";
|
||||
DROP TABLE "USER_WEIGHT_BIND";
|
||||
|
||||
DROP TABLE "QH_SYS_PERMISSION_V2";
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- 第二步:修改剩余表的表名(原表名 → QH_ 前缀新表名)
|
||||
-- 规则:统一以 QH_ 开头,第二级三字母业务模块前缀,总长度 ≤ 25 位
|
||||
-- 涉及表数:76 张(删除后剩余的表)
|
||||
-- ============================================================
|
||||
|
||||
-- ===== COM 公共模块(4 张)=====
|
||||
ALTER TABLE "COMMON_EXPORTS_INFO" RENAME TO "QH_COM_EXPORTS_INFO";
|
||||
ALTER TABLE "COMMON_EXPORTS_ITEM" RENAME TO "QH_COM_EXPORTS_ITEM";
|
||||
ALTER TABLE "COMMON_IMPORTS" RENAME TO "QH_COM_IMPORTS";
|
||||
ALTER TABLE "COMMON_IMPORTS_DETAIL" RENAME TO "QH_COM_IMPORTS_DETAIL";
|
||||
|
||||
-- ===== HLT 健康模块(5 张)=====
|
||||
ALTER TABLE "HEALTH_CONSULT_RESOURCE" RENAME TO "QH_HLT_CONSULT_RESOURCE";
|
||||
ALTER TABLE "HEALTH_HOLIDAY" RENAME TO "QH_HLT_HOLIDAY";
|
||||
ALTER TABLE "HEALTH_USER_DOCTOR_EX" RENAME TO "QH_HLT_DOCTOR_EX";
|
||||
ALTER TABLE "HEALTH_USER_EMPLOYEE_EX" RENAME TO "QH_HLT_USER_EMPLOYEE_EX";
|
||||
ALTER TABLE "HEALTH_USER_OPERATOR_EX" RENAME TO "QH_HLT_USER_OPERATOR_EX";
|
||||
|
||||
-- ===== SYS 系统模块(52 张)=====
|
||||
ALTER TABLE "SYS_ANNOUNCEMENT" RENAME TO "QH_SYS_ANNOUNCEMENT";
|
||||
ALTER TABLE "SYS_ANNOUNCEMENT_SEND" RENAME TO "QH_SYS_ANNOUNCEMENT_SEND";
|
||||
ALTER TABLE "SYS_BANNER" RENAME TO "QH_SYS_BANNER";
|
||||
ALTER TABLE "SYS_CATEGORY" RENAME TO "QH_SYS_CATEGORY";
|
||||
ALTER TABLE "SYS_CHECK_RULE" RENAME TO "QH_SYS_CHECK_RULE";
|
||||
ALTER TABLE "SYS_COMMENT" RENAME TO "QH_SYS_COMMENT";
|
||||
ALTER TABLE "SYS_CONFIG" RENAME TO "QH_SYS_CONFIG";
|
||||
ALTER TABLE "SYS_DATA_LOG" RENAME TO "QH_SYS_DATA_LOG";
|
||||
ALTER TABLE "SYS_DATA_SOURCE" RENAME TO "QH_SYS_DATA_SOURCE";
|
||||
ALTER TABLE "SYS_DEPART" RENAME TO "QH_SYS_DEPART";
|
||||
ALTER TABLE "SYS_DEPART_GPS" RENAME TO "QH_SYS_DEPART_GPS";
|
||||
ALTER TABLE "SYS_DEPART_PERMISSION" RENAME TO "QH_SYS_DEPART_PERMISSION";
|
||||
ALTER TABLE "SYS_DEPART_ROLE" RENAME TO "QH_SYS_DEPART_ROLE";
|
||||
ALTER TABLE "SYS_DEPART_ROLE_PERMISSION" RENAME TO "QH_SYS_DEPT_ROLE_PERM";
|
||||
ALTER TABLE "SYS_DEPART_ROLE_USER" RENAME TO "QH_SYS_DEPART_ROLE_USER";
|
||||
ALTER TABLE "SYS_DICT" RENAME TO "QH_SYS_DICT";
|
||||
ALTER TABLE "SYS_DICT_ITEM" RENAME TO "QH_SYS_DICT_ITEM";
|
||||
ALTER TABLE "SYS_FILES" RENAME TO "QH_SYS_FILES";
|
||||
ALTER TABLE "SYS_FILL_RULE" RENAME TO "QH_SYS_FILL_RULE";
|
||||
ALTER TABLE "SYS_GATEWAY_ROUTE" RENAME TO "QH_SYS_GATEWAY_ROUTE";
|
||||
ALTER TABLE "SYS_LOG" RENAME TO "QH_SYS_LOG";
|
||||
ALTER TABLE "SYS_MESSAGE_NOTICE" RENAME TO "QH_SYS_MSG_NOTICE";
|
||||
ALTER TABLE "SYS_MESSAGE_NOTICE_SCOPE" RENAME TO "QH_SYS_MSG_NOTICE_SCOPE";
|
||||
ALTER TABLE "SYS_MESSAGE_REMIND" RENAME TO "QH_SYS_MSG_REMIND";
|
||||
ALTER TABLE "SYS_NOTICE" RENAME TO "QH_SYS_NOTICE";
|
||||
ALTER TABLE "SYS_NOTICE_READ_RECORD" RENAME TO "QH_SYS_NOTICE_READ_RECORD";
|
||||
ALTER TABLE "SYS_PERMISSION" RENAME TO "QH_SYS_PERMISSION";
|
||||
ALTER TABLE "SYS_PERMISSION_DATA_RULE" RENAME TO "QH_SYS_PERM_DATA_RULE";
|
||||
ALTER TABLE "SYS_PERMISSION_V2" RENAME TO "QH_SYS_PERMISSION_V2";
|
||||
ALTER TABLE "SYS_POSITION" RENAME TO "QH_SYS_POSITION";
|
||||
ALTER TABLE "SYS_POSITION_CLASSIFY" RENAME TO "QH_SYS_POSITION_CLASSIFY";
|
||||
ALTER TABLE "SYS_QUARTZ_JOB" RENAME TO "QH_SYS_QUARTZ_JOB";
|
||||
ALTER TABLE "SYS_ROLE" RENAME TO "QH_SYS_ROLE";
|
||||
ALTER TABLE "SYS_ROLE_INDEX" RENAME TO "QH_SYS_ROLE_INDEX";
|
||||
ALTER TABLE "SYS_ROLE_PERMISSION" RENAME TO "QH_SYS_ROLE_PERMISSION";
|
||||
ALTER TABLE "SYS_SMS" RENAME TO "QH_SYS_SMS";
|
||||
ALTER TABLE "SYS_SMS_TEMPLATE" RENAME TO "QH_SYS_SMS_TEMPLATE";
|
||||
ALTER TABLE "SYS_TENANT" RENAME TO "QH_SYS_TENANT";
|
||||
ALTER TABLE "SYS_USER" RENAME TO "QH_SYS_USER";
|
||||
ALTER TABLE "SYS_USER_AGENT" RENAME TO "QH_SYS_USER_AGENT";
|
||||
ALTER TABLE "SYS_USER_DEPART" RENAME TO "QH_SYS_USER_DEPART";
|
||||
ALTER TABLE "SYS_USER_DEPART_CHANGE_APPLY" RENAME TO "QH_SYS_DEPT_CHG_APPLY";
|
||||
ALTER TABLE "SYS_USER_DEVICE" RENAME TO "QH_SYS_USER_DEVICE";
|
||||
ALTER TABLE "SYS_USER_EMERGENCY_CONTACT" RENAME TO "QH_SYS_USR_EMERG_CONTACT";
|
||||
ALTER TABLE "SYS_USER_FAMILY_MEMBERS" RENAME TO "QH_SYS_USR_FAMILY_MBR";
|
||||
ALTER TABLE "SYS_USER_POST" RENAME TO "QH_SYS_USER_POST";
|
||||
ALTER TABLE "SYS_USER_ROLE" RENAME TO "QH_SYS_USER_ROLE";
|
||||
ALTER TABLE "SYS_USER_TENANT" RENAME TO "QH_SYS_USER_TENANT";
|
||||
ALTER TABLE "SYS_VERSION_APP" RENAME TO "QH_SYS_VERSION_APP";
|
||||
ALTER TABLE "SYS_VERSION_INFO" RENAME TO "QH_SYS_VERSION_INFO";
|
||||
|
||||
-- ===== USR 用户模块(15 张)=====
|
||||
ALTER TABLE "USER_DATA_RECORD_BLOOD_PRESSURE" RENAME TO "QH_USR_DATA_RCD_BLD_PRS";
|
||||
|
||||
|
||||
|
||||
-- ============================================================
|
||||
-- 脚本执行完成
|
||||
-- 总计:
|
||||
-- 第一步:删除 129 张不需要的表(使用原表名)
|
||||
-- 第二步:修改 77 张表的表名(原表名 → QH_ 前缀新表名)
|
||||
-- ============================================================
|
||||
@@ -0,0 +1,30 @@
|
||||
-- ============================================================
|
||||
-- 权限规则表更新脚本(仅更新有用的三条规则)
|
||||
-- 表名:QH_SYS_PERM_DATA_RULE
|
||||
-- 说明:
|
||||
-- 1. 更新手表设备表的权限规则(wd.dept_id → QH_WAT_DEVICE.DEPT_ID)
|
||||
-- 2. 更新手表数据表的权限规则(orgcode → QH_WAT_DATA.ORGCODE)
|
||||
-- ============================================================
|
||||
|
||||
-- 1. 更新手表设备权限规则 - 规则1
|
||||
UPDATE "QH_SYS_PERM_DATA_RULE"
|
||||
SET "RULE_VALUE" = 'FIND_IN_SET(wd.DEPT_ID, ''#{sys_manager_depart_ids}'')'
|
||||
WHERE "ID" = '2027688332771315713';
|
||||
|
||||
-- 2. 插入手表数据权限规则 - 规则2
|
||||
INSERT INTO "QH_SYS_PERM_DATA_RULE"
|
||||
(ID, PERMISSION_ID, RULE_NAME, RULE_COLUMN, RULE_CONDITIONS, RULE_VALUE, STATUS, CREATE_TIME, CREATE_BY, UPDATE_TIME, UPDATE_BY)
|
||||
VALUES
|
||||
('1737389275796287489', '1940304391331950594', '二级管理员', NULL, 'USE_SQL_RULES', 'FIND_IN_SET(wd.dept_id, ''#{sys_manager_depart_ids}'')', 1, '2023-12-20 16:27:37', 'admin', NULL, NULL);
|
||||
|
||||
-- 3. 插入手表数据权限规则 - 规则2
|
||||
INSERT INTO "QH_SYS_PERM_DATA_RULE"
|
||||
(ID, PERMISSION_ID, RULE_NAME, RULE_COLUMN, RULE_CONDITIONS, RULE_VALUE, STATUS, CREATE_TIME, CREATE_BY, UPDATE_TIME, UPDATE_BY)
|
||||
VALUES
|
||||
('1737404792707821569', '1940304653446590466', '二级管理员', NULL, 'USE_SQL_RULES', 'FIND_IN_SET(wd.dept_id, ''#{sys_manager_depart_ids}'')', 1, '2023-12-20 17:29:17', 'admin', NULL, NULL);
|
||||
|
||||
|
||||
-- 3. 更新手表数据权限规则 - 部门代码规则
|
||||
UPDATE "QH_SYS_PERM_DATA_RULE"
|
||||
SET "RULE_VALUE" = '( REGEXP_LIKE(ORGCODE, ''^('' || replace(''#'' || {sys_manager_depart_codes}, '',''|'') || '')'') ) = 1'
|
||||
WHERE "ID" = '2027689402627584002';
|
||||
@@ -0,0 +1,52 @@
|
||||
-- 手表模块sql整理
|
||||
|
||||
-- 以下所有sql均包含"AYGC_JKYWK".前缀, 后续部署, 如果不需要, 可以批量删除前缀
|
||||
|
||||
-- 更新表名(47张)
|
||||
ALTER TABLE "AYGC_JKYWK"."ARCHIVES_BODY_TYPE" RENAME TO "QH_WAT_ARCHIVES_BODY_TYPE";
|
||||
ALTER TABLE "AYGC_JKYWK"."DEPT_STATISTIC_DATA" RENAME TO "QH_WAT_DEPT_STAT_DATA";
|
||||
ALTER TABLE "AYGC_JKYWK"."USER_RECORD_SPORTS_DAY" RENAME TO "QH_WAT_USER_REC_SPORT_DAY";
|
||||
ALTER TABLE "AYGC_JKYWK"."USER_RECORD_SPORTS_INFO" RENAME TO "QH_WAT_USER_REC_SPORT_INF";
|
||||
ALTER TABLE "AYGC_JKYWK"."USER_WE_CHAT_SPORTS_DAY" RENAME TO "QH_WAT_USER_WECH_SPO_DAY";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_ABNORMAL_RECORD" RENAME TO "QH_WAT_ABNORMAL_RECORD";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_BIND_HIS" RENAME TO "QH_WAT_BIND_HIS";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_BIND_HIS_BAK" RENAME TO "QH_WAT_BIND_HIS_BAK";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_BIND_HIS_COPY1" RENAME TO "QH_WAT_BIND_HIS_COPY1";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_BIND_HIS_COPY2" RENAME TO "QH_WAT_BIND_HIS_COPY2";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA" RENAME TO "QH_WAT_DATA";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_CALORIE" RENAME TO "QH_WAT_DATA_CALORIE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_DAY" RENAME TO "QH_WAT_DATA_DAY";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_DETAIL" RENAME TO "QH_WAT_DATA_DETAIL";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_DISTANCE" RENAME TO "QH_WAT_DATA_DISTANCE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_ECG" RENAME TO "QH_WAT_DATA_ECG";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_EXERCISE" RENAME TO "QH_WAT_DATA_EXERCISE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_GPS" RENAME TO "QH_WAT_DATA_GPS";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_HEART_RATE" RENAME TO "QH_WAT_DATA_HEART_RATE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_SLEEP" RENAME TO "QH_WAT_DATA_SLEEP";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_SLEEP_NEW" RENAME TO "QH_WAT_DATA_SLEEP_NEW";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_SLEEP_NEW_DAY" RENAME TO "QH_WAT_DATA_SLEEP_NEW_DAY";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_SLEEP_NEW_ERR" RENAME TO "QH_WAT_DATA_SLEEP_NEW_ERR";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_SLEEP_NEW_MINUTE" RENAME TO "QH_WAT_DATA_SLEEP_NEW_MIN";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_SPO2" RENAME TO "QH_WAT_DATA_SPO2";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_STEPS" RENAME TO "QH_WAT_DATA_STEPS";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_STEPS_HF" RENAME TO "QH_WAT_DATA_STEPS_HF";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_STRESS" RENAME TO "QH_WAT_DATA_STRESS";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_TEMPERATURE" RENAME TO "QH_WAT_DATA_TEMP";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_WORKOUT" RENAME TO "QH_WAT_DATA_WORKOUT";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DATA_WORKOUT_TRACE" RENAME TO "QH_WAT_DATA_WORKOUT_TRACE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DEPART_REPORT" RENAME TO "QH_WAT_DEPART_REPORT";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DEVICE" RENAME TO "QH_WAT_DEVICE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_DEVICE_SWITCH" RENAME TO "QH_WAT_DEVICE_SWITCH";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_KEY_USER" RENAME TO "QH_WAT_KEY_USER";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_MONITOR_DATA" RENAME TO "QH_WAT_MONITOR_DATA";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_MONITOR_MOBILE" RENAME TO "QH_WAT_MONITOR_MOBILE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_MQTT_NOTICE" RENAME TO "QH_WAT_MQTT_NOTICE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_STAT_USER_INFO_DAY_HEART_RATE" RENAME TO "QH_WAT_STAT_USER_DAY_HR";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_STAT_USER_INFO_DAY_SDC" RENAME TO "QH_WAT_STAT_USER_DAY_SDC";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_STAT_USER_INFO_DAY_SLEEP" RENAME TO "QH_WAT_STAT_USER_DAY_SLE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_STAT_USER_INFO_DAY_SPO2" RENAME TO "QH_WAT_STAT_USER_DAY_SPO2";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_STAT_USER_INFO_DAY_STRESS" RENAME TO "QH_WAT_STAT_USER_DAY_STRE";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_STAT_USER_INFO_DAY_TEMP" RENAME TO "QH_WAT_STAT_USER_DAY_TEMP";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_STAT_USER_INFO_DAY_WORKOUT" RENAME TO "QH_WAT_STAT_USER_DAY_WORK";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_SYN_MAX_ID" RENAME TO "QH_WAT_SYN_MAX_ID";
|
||||
ALTER TABLE "AYGC_JKYWK"."WATCH_USER_DATA" RENAME TO "QH_WAT_USER_DATA";
|
||||
@@ -1,146 +0,0 @@
|
||||
spring:
|
||||
datasource:
|
||||
druid:
|
||||
stat-view-servlet:
|
||||
enabled: true
|
||||
loginUsername: admin
|
||||
loginPassword: 123456
|
||||
allow:
|
||||
web-stat-filter:
|
||||
enabled: true
|
||||
dynamic:
|
||||
druid:
|
||||
initial-size: 5
|
||||
min-idle: 5
|
||||
maxActive: 20
|
||||
maxWait: 60000
|
||||
timeBetweenEvictionRunsMillis: 60000
|
||||
minEvictableIdleTimeMillis: 300000
|
||||
validationQuery: SELECT 1 FROM DUAL
|
||||
testWhileIdle: true
|
||||
testOnBorrow: false
|
||||
testOnReturn: false
|
||||
poolPreparedStatements: true
|
||||
maxPoolPreparedStatementPerConnectionSize: 20
|
||||
filters: stat,wall,slf4j
|
||||
connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://jeecg-boot-mysql:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: root
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
redis:
|
||||
database: 0
|
||||
host: jeecg-boot-redis
|
||||
password:
|
||||
port: 6379
|
||||
rabbitmq:
|
||||
host: jeecg-boot-rabbitmq
|
||||
username: guest
|
||||
password: guest
|
||||
port: 5672
|
||||
publisher-confirms: true
|
||||
publisher-returns: true
|
||||
virtual-host: /
|
||||
listener:
|
||||
simple:
|
||||
acknowledge-mode: manual
|
||||
concurrency: 1
|
||||
max-concurrency: 1
|
||||
retry:
|
||||
enabled: true
|
||||
minidao:
|
||||
base-package: org.jeecg.modules.jmreport.*,org.jeecg.modules.drag.*
|
||||
jeecg:
|
||||
signatureSecret: dd05f1c54d63749eda95f9fa6d49v442a
|
||||
signUrls: /sys/dict/getDictItems/*,/sys/dict/loadDict/*,/sys/dict/loadDictOrderByValue/*,/sys/dict/loadDictItem/*,/sys/dict/loadTreeData,/sys/api/queryTableDictItemsByCode,/sys/api/queryFilterTableDictInfo,/sys/api/queryTableDictByKeys,/sys/api/translateDictFromTable,/sys/api/translateDictFromTableByKeys
|
||||
uploadType: local
|
||||
domainUrl:
|
||||
pc: http://localhost:3100
|
||||
app: http://localhost:8051
|
||||
path:
|
||||
upload: /opt/upFiles
|
||||
webapp: /opt/webapp
|
||||
shiro:
|
||||
excludeUrls: /test/jeecgDemo/demo3,/test/jeecgDemo/redisDemo/**,/category/**,/visual/**,/map/**,/jmreport/bigscreen2/**
|
||||
oss:
|
||||
endpoint: oss-cn-beijing.aliyuncs.com
|
||||
accessKey: ??
|
||||
secretKey: ??
|
||||
bucketName: jeecgdev
|
||||
staticDomain: ??
|
||||
elasticsearch:
|
||||
cluster-name: jeecg-ES
|
||||
cluster-nodes: jeecg-boot-es:9200
|
||||
check-enabled: false
|
||||
file-view-domain: 127.0.0.1:8012
|
||||
minio:
|
||||
minio_url: http://minio.jeecg.com
|
||||
minio_name: ??
|
||||
minio_pass: ??
|
||||
bucketName: otatest
|
||||
jmreport:
|
||||
mode: dev
|
||||
is_verify_token: false
|
||||
verify_methods: remove,delete,save,add,update
|
||||
wps:
|
||||
domain: https://wwo.wps.cn/office/
|
||||
appid: ??
|
||||
appsecret: ??
|
||||
xxljob:
|
||||
enabled: false
|
||||
adminAddresses: http://jeecg-boot-xxljob:9080/xxl-job-admin
|
||||
appname: ${spring.application.name}
|
||||
accessToken: ''
|
||||
logPath: logs/jeecg/job/jobhandler/
|
||||
logRetentionDays: 30
|
||||
redisson:
|
||||
address: jeecg-boot-redis:6379
|
||||
password:
|
||||
type: STANDALONE
|
||||
enabled: true
|
||||
logging:
|
||||
level:
|
||||
org.jeecg.modules.system.mapper: info
|
||||
cas:
|
||||
prefixUrl: http://localhost:8888/cas
|
||||
knife4j:
|
||||
production: false
|
||||
basic:
|
||||
enable: false
|
||||
username: jeecg
|
||||
password: jeecg1314
|
||||
justauth:
|
||||
enabled: true
|
||||
type:
|
||||
GITHUB:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/thirdLogin/github/callback
|
||||
WECHAT_ENTERPRISE:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/thirdLogin/wechat_enterprise/callback
|
||||
agent-id: ??
|
||||
DINGTALK:
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
redirect-uri: http://sso.test.com:8080/jeecg-boot/thirdLogin/dingtalk/callback
|
||||
cache:
|
||||
type: default
|
||||
prefix: 'demo::'
|
||||
timeout: 1h
|
||||
third-app:
|
||||
enabled: false
|
||||
type:
|
||||
WECHAT_ENTERPRISE:
|
||||
enabled: false
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
agent-id: ??
|
||||
DINGTALK:
|
||||
enabled: false
|
||||
client-id: ??
|
||||
client-secret: ??
|
||||
agent-id: ??
|
||||
@@ -1,13 +0,0 @@
|
||||
jeecg:
|
||||
route:
|
||||
config:
|
||||
#type:database nacos yml
|
||||
data-type: database
|
||||
group: DEFAULT_GROUP
|
||||
data-id: jeecg-gateway-router
|
||||
spring:
|
||||
redis:
|
||||
database: 0
|
||||
host: jeecg-boot-redis
|
||||
port: 6379
|
||||
password:
|
||||
@@ -1,65 +0,0 @@
|
||||
[
|
||||
{
|
||||
"id": "jeecg-system",
|
||||
"order": 0,
|
||||
"predicates": [
|
||||
{
|
||||
"name": "Path",
|
||||
"args": {
|
||||
"_genkey_0": "/sys/**",
|
||||
"_genkey_1": "/jmreport/**",
|
||||
"_genkey_3": "/online/**",
|
||||
"_genkey_4": "/generic/**"
|
||||
}
|
||||
}
|
||||
],
|
||||
"filters": [],
|
||||
"uri": "lb://jeecg-system"
|
||||
},
|
||||
{
|
||||
"id": "jeecg-demo",
|
||||
"order": 1,
|
||||
"predicates": [
|
||||
{
|
||||
"name": "Path",
|
||||
"args": {
|
||||
"_genkey_0": "/mock/**",
|
||||
"_genkey_1": "/test/**",
|
||||
"_genkey_2": "/bigscreen/template1/**",
|
||||
"_genkey_3": "/bigscreen/template2/**"
|
||||
}
|
||||
}
|
||||
],
|
||||
"filters": [],
|
||||
"uri": "lb://jeecg-demo"
|
||||
},
|
||||
{
|
||||
"id": "jeecg-system-websocket",
|
||||
"order": 2,
|
||||
"predicates": [
|
||||
{
|
||||
"name": "Path",
|
||||
"args": {
|
||||
"_genkey_0": "/websocket/**",
|
||||
"_genkey_1": "/newsWebsocket/**"
|
||||
}
|
||||
}
|
||||
],
|
||||
"filters": [],
|
||||
"uri": "lb:ws://jeecg-system"
|
||||
},
|
||||
{
|
||||
"id": "jeecg-demo-websocket",
|
||||
"order": 3,
|
||||
"predicates": [
|
||||
{
|
||||
"name": "Path",
|
||||
"args": {
|
||||
"_genkey_0": "/vxeSocket/**"
|
||||
}
|
||||
}
|
||||
],
|
||||
"filters": [],
|
||||
"uri": "lb:ws://jeecg-demo"
|
||||
}
|
||||
]
|
||||
@@ -1,100 +0,0 @@
|
||||
server:
|
||||
tomcat:
|
||||
max-swallow-size: -1
|
||||
error:
|
||||
include-exception: true
|
||||
include-stacktrace: ALWAYS
|
||||
include-message: ALWAYS
|
||||
compression:
|
||||
enabled: true
|
||||
min-response-size: 1024
|
||||
mime-types: application/javascript,application/json,application/xml,text/html,text/xml,text/plain,text/css,image/*
|
||||
management:
|
||||
health:
|
||||
mail:
|
||||
enabled: false
|
||||
endpoints:
|
||||
web:
|
||||
exposure:
|
||||
include: "*"
|
||||
health:
|
||||
sensitive: true
|
||||
endpoint:
|
||||
health:
|
||||
show-details: ALWAYS
|
||||
spring:
|
||||
servlet:
|
||||
multipart:
|
||||
max-file-size: 10MB
|
||||
max-request-size: 10MB
|
||||
mail:
|
||||
host: smtp.163.com
|
||||
username: jeecgos@163.com
|
||||
password: ??
|
||||
properties:
|
||||
mail:
|
||||
smtp:
|
||||
auth: true
|
||||
starttls:
|
||||
enable: true
|
||||
required: true
|
||||
quartz:
|
||||
job-store-type: jdbc
|
||||
initialize-schema: embedded
|
||||
auto-startup: false
|
||||
startup-delay: 1s
|
||||
overwrite-existing-jobs: true
|
||||
properties:
|
||||
org:
|
||||
quartz:
|
||||
scheduler:
|
||||
instanceName: MyScheduler
|
||||
instanceId: AUTO
|
||||
jobStore:
|
||||
class: org.springframework.scheduling.quartz.LocalDataSourceJobStore
|
||||
driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate
|
||||
tablePrefix: QRTZ_
|
||||
isClustered: true
|
||||
misfireThreshold: 12000
|
||||
clusterCheckinInterval: 15000
|
||||
threadPool:
|
||||
class: org.quartz.simpl.SimpleThreadPool
|
||||
threadCount: 10
|
||||
threadPriority: 5
|
||||
threadsInheritContextClassLoaderOfInitializingThread: true
|
||||
jackson:
|
||||
date-format: yyyy-MM-dd HH:mm:ss
|
||||
time-zone: GMT+8
|
||||
aop:
|
||||
proxy-target-class: true
|
||||
activiti:
|
||||
check-process-definitions: false
|
||||
async-executor-activate: false
|
||||
job-executor-activate: false
|
||||
jpa:
|
||||
open-in-view: false
|
||||
freemarker:
|
||||
suffix: .ftl
|
||||
content-type: text/html
|
||||
charset: UTF-8
|
||||
cache: false
|
||||
prefer-file-system-access: false
|
||||
template-loader-path:
|
||||
- classpath:/templates
|
||||
mvc:
|
||||
static-path-pattern: /**
|
||||
pathmatch:
|
||||
matching-strategy: ant_path_matcher
|
||||
resource:
|
||||
static-locations: classpath:/static/,classpath:/public/
|
||||
autoconfigure:
|
||||
exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:org/jeecg/modules/**/xml/*Mapper.xml
|
||||
global-config:
|
||||
banner: false
|
||||
db-config:
|
||||
id-type: ASSIGN_ID
|
||||
table-underline: true
|
||||
configuration:
|
||||
call-setters-on-nulls: true
|
||||
@@ -1,59 +0,0 @@
|
||||
spring:
|
||||
shardingsphere:
|
||||
datasource:
|
||||
names: ds0,ds1
|
||||
ds0:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://jeecg-boot-mysql:3306/jeecg-boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
username: root
|
||||
password: root
|
||||
ds1:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://jeecg-boot-mysql:3306/jeecg-boot2?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
username: root
|
||||
password: root
|
||||
props:
|
||||
sql-show: true
|
||||
rules:
|
||||
replica-query:
|
||||
load-balancers:
|
||||
round-robin:
|
||||
type: ROUND_ROBIN
|
||||
props:
|
||||
default: 0
|
||||
data-sources:
|
||||
prds:
|
||||
primary-data-source-name: ds0
|
||||
replica-data-source-names: ds1
|
||||
load-balancer-name: round_robin
|
||||
sharding:
|
||||
binding-tables:
|
||||
- sys_log
|
||||
key-generators:
|
||||
snowflake:
|
||||
type: SNOWFLAKE
|
||||
props:
|
||||
worker-id: 123
|
||||
sharding-algorithms:
|
||||
table-classbased:
|
||||
props:
|
||||
strategy: standard
|
||||
algorithmClassName: org.jeecg.modules.test.sharding.algorithm.StandardModTableShardAlgorithm
|
||||
type: CLASS_BASED
|
||||
database-inline:
|
||||
type: INLINE
|
||||
props:
|
||||
algorithm-expression: ds$->{operate_type % 2}
|
||||
tables:
|
||||
sys_log:
|
||||
actual-data-nodes: ds$->{0..1}.sys_log$->{0..1}
|
||||
database-strategy:
|
||||
standard:
|
||||
sharding-column: operate_type
|
||||
sharding-algorithm-name: database-inline
|
||||
table-strategy:
|
||||
standard:
|
||||
sharding-algorithm-name: table-classbased
|
||||
sharding-column: log_type
|
||||
@@ -1,33 +0,0 @@
|
||||
spring:
|
||||
shardingsphere:
|
||||
datasource:
|
||||
names: ds0
|
||||
ds0:
|
||||
driverClassName: com.mysql.cj.jdbc.Driver
|
||||
url: jdbc:mysql://jeecg-boot-mysql:3306/jeecg-boot?useSSL=false&useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: root
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
props:
|
||||
sql-show: true
|
||||
rules:
|
||||
sharding:
|
||||
binding-tables: sys_log
|
||||
key-generators:
|
||||
snowflake:
|
||||
type: SNOWFLAKE
|
||||
props:
|
||||
worker-id: 123
|
||||
sharding-algorithms:
|
||||
table-classbased:
|
||||
props:
|
||||
strategy: standard
|
||||
algorithmClassName: org.jeecg.modules.test.sharding.algorithm.StandardModTableShardAlgorithm
|
||||
type: CLASS_BASED
|
||||
tables:
|
||||
sys_log:
|
||||
actual-data-nodes: ds0.sys_log$->{0..1}
|
||||
table-strategy:
|
||||
standard:
|
||||
sharding-algorithm-name: table-classbased
|
||||
sharding-column: log_type
|
||||
@@ -30,10 +30,6 @@
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-validation</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mysql</groupId>
|
||||
<artifactId>mysql-connector-j</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||
|
||||
+16
-2
@@ -25,6 +25,7 @@ import org.springframework.core.task.TaskExecutor;
|
||||
import org.springframework.jdbc.support.JdbcTransactionManager;
|
||||
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
|
||||
import org.springframework.transaction.PlatformTransactionManager;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
import javax.sql.DataSource;
|
||||
import java.util.List;
|
||||
@@ -125,8 +126,21 @@ public class BatchAutoConfiguration {
|
||||
@BatchDataSource ObjectProvider<DataSource> batchDataSource,
|
||||
BatchProperties properties
|
||||
) {
|
||||
return new BatchDataSourceScriptDatabaseInitializer(batchDataSource.getIfAvailable(() -> dataSource),
|
||||
properties.getJdbc());
|
||||
DataSource dataSourceToUse = batchDataSource.getIfAvailable(() -> dataSource);
|
||||
BatchProperties.Jdbc jdbc = properties.getJdbc();
|
||||
// 达梦数据库兼容处理:设置platform绕过构造器中的自动类型检测
|
||||
if (!StringUtils.hasText(jdbc.getPlatform())) {
|
||||
jdbc.setPlatform("dm");
|
||||
}
|
||||
// 重写afterPropertiesSet()跳过SQL脚本初始化:
|
||||
// 父类会先断言SQL文件存在再检查initializeSchema mode,导致找不到schema-dm.sql时报错
|
||||
// Batch元数据表已通过数据迁移创建,无需自动建表
|
||||
return new BatchDataSourceScriptDatabaseInitializer(dataSourceToUse, jdbc) {
|
||||
@Override
|
||||
public void afterPropertiesSet() {
|
||||
// 跳过Batch元数据表的自动建表,防止找不到schema-dm.sql文件报错
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
+6
@@ -34,6 +34,12 @@ public class CustomBatchConfigurer extends BasicBatchConfigurer {
|
||||
this.taskExecutor = taskExecutor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initialize() {
|
||||
// 调用父类的 initialize() 方法来初始化 JobRepository 等
|
||||
super.initialize();
|
||||
}
|
||||
|
||||
@Override
|
||||
protected JobLauncher createJobLauncher() throws Exception {
|
||||
SimpleJobLauncher jobLauncher = new SimpleJobLauncher();
|
||||
|
||||
+12
-13
@@ -11,19 +11,18 @@
|
||||
a.icon,
|
||||
a.points,
|
||||
CASE
|
||||
WHEN a.frequency = 1 THEN -- 单次
|
||||
IF(COUNT(b.id) > 0, 1, 0)
|
||||
WHEN a.frequency = 2 THEN -- 日/次
|
||||
IF(COUNT(CASE WHEN DATE(b.create_time) = CURDATE() THEN 1 END) > 0, 1, 0)
|
||||
WHEN a.frequency = 3 THEN -- 周/次
|
||||
IF(COUNT(CASE WHEN YEARWEEK(b.create_time, 1) = YEARWEEK(CURDATE(), 1) THEN 1 END) > 0, 1, 0)
|
||||
WHEN a.frequency = 4 THEN -- 月/次
|
||||
IF(COUNT(CASE WHEN DATE_FORMAT(b.create_time, '%Y-%m') = DATE_FORMAT(CURDATE(), '%Y-%m') THEN 1 END) > 0, 1, 0)
|
||||
WHEN a.frequency = 5 THEN -- 季度/次
|
||||
IF(COUNT(CASE WHEN QUARTER(b.create_time) = QUARTER(CURDATE()) AND YEAR(b.create_time) = YEAR(CURDATE()) THEN 1
|
||||
END) > 0, 1, 0)
|
||||
WHEN a.frequency = 6 THEN -- 年/次
|
||||
IF(COUNT(CASE WHEN YEAR(b.create_time) = YEAR(CURDATE()) THEN 1 END) > 0, 1, 0)
|
||||
WHEN a.frequency = 1 THEN
|
||||
CASE WHEN COUNT(b.id) > 0 THEN 1 ELSE 0 END
|
||||
WHEN a.frequency = 2 THEN
|
||||
CASE WHEN COUNT(CASE WHEN TRUNC(b.create_time) = TRUNC(SYSDATE) THEN 1 END) > 0 THEN 1 ELSE 0 END
|
||||
WHEN a.frequency = 3 THEN
|
||||
CASE WHEN COUNT(CASE WHEN TO_CHAR(b.create_time, 'IYYY-IW') = TO_CHAR(SYSDATE, 'IYYY-IW') THEN 1 END) > 0 THEN 1 ELSE 0 END
|
||||
WHEN a.frequency = 4 THEN
|
||||
CASE WHEN COUNT(CASE WHEN TO_CHAR(b.create_time, 'YYYY-MM') = TO_CHAR(SYSDATE, 'YYYY-MM') THEN 1 END) > 0 THEN 1 ELSE 0 END
|
||||
WHEN a.frequency = 5 THEN
|
||||
CASE WHEN COUNT(CASE WHEN TO_CHAR(b.create_time, 'Q') = TO_CHAR(SYSDATE, 'Q') AND EXTRACT(YEAR FROM b.create_time) = EXTRACT(YEAR FROM SYSDATE) THEN 1 END) > 0 THEN 1 ELSE 0 END
|
||||
WHEN a.frequency = 6 THEN
|
||||
CASE WHEN COUNT(CASE WHEN EXTRACT(YEAR FROM b.create_time) = EXTRACT(YEAR FROM SYSDATE) THEN 1 END) > 0 THEN 1 ELSE 0 END
|
||||
ELSE 0
|
||||
END AS clockInStatus
|
||||
FROM
|
||||
|
||||
+1
-1
@@ -459,7 +459,7 @@ public class UserPointsServiceImpl extends ServiceImpl<UserPointsMapper, UserPoi
|
||||
List<UserPointsDetails> details = userPointsDetailsMapper.selectList(new LambdaQueryWrapper<UserPointsDetails>()
|
||||
.eq(UserPointsDetails::getUserId, userId)
|
||||
.eq(UserPointsDetails::getChangeType, HealthBankConstants.CHANGE_TYPE_ADD)
|
||||
.apply("DATE_FORMAT(create_time, '%Y-%m-%d') = {0}", DateUtil.today())
|
||||
.apply("TO_CHAR(create_time, 'YYYY-MM-DD') = {0}", DateUtil.today())
|
||||
);
|
||||
double sum = details.stream().map(UserPointsDetails::getPoints).mapToDouble(BigDecimal::doubleValue).sum();
|
||||
userPoints.setLatestAddDaySum(BigDecimal.valueOf(sum).add(pointsRule.getPoints()));
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("con_cost_log")
|
||||
@TableName("qh_con_cost_log")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_cost_log对象", description = "con_cost_log")
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_cost_statistics")
|
||||
@TableName("qh_con_cost_stat")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_cost_statistics对象", description = "con_cost_statistics")
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import java.util.List;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_department")
|
||||
@TableName("qh_con_dept")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_department对象", description = "con_department")
|
||||
|
||||
+1
-1
@@ -28,7 +28,7 @@ import java.util.Map;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_doctor")
|
||||
@TableName("qh_con_doctor")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_doctor对象", description = "con_doctor")
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ import java.io.Serializable;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_doctor_card")
|
||||
@TableName("qh_con_doc_card")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_doctor_card对象", description = "con_doctor_card")
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_doctor_change_log")
|
||||
@TableName("qh_con_doc_chg_log")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title="con_doctor_change_log对象", description="专家信息修改日志")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_doctor_follow")
|
||||
@TableName("qh_con_doc_follow")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_doctor_follow对象", description = "医生关注")
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import lombok.Data;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@TableName("con_doctor_satisfy")
|
||||
@TableName("qh_con_doc_satisfy")
|
||||
public class ConDoctorSatisfy implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_doctor_scheduling")
|
||||
@TableName("qh_con_doc_schd")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_doctor_scheduling对象", description = "专家排班")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_doctor_scheduling_date")
|
||||
@TableName("qh_con_doc_schd_dt")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_doctor_scheduling_date对象", description = "排班时间")
|
||||
|
||||
+2
-1
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_evaluate")
|
||||
@TableName("qh_con_evaluate")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_evaluate对象", description = "医生评分")
|
||||
@@ -68,6 +68,7 @@ public class ConEvaluate implements Serializable {
|
||||
*/
|
||||
@Excel(name = "评价", width = 15)
|
||||
@Schema(title = "评价")
|
||||
@TableField("EVA_CONTEXT")
|
||||
private String context;
|
||||
/**
|
||||
* 会话id
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_family_members")
|
||||
@TableName("qh_con_fammem")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_family_members对象", description = "家庭成员")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_health_info")
|
||||
@TableName("qh_con_health")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_health_info对象", description = "健康信息")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_health_info_answer")
|
||||
@TableName("qh_con_health_ans")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_health_info_answer对象", description = "健康信息答案")
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_helper")
|
||||
@TableName("qh_con_helper")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_helper对象", description = "con_helper")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_helper_online")
|
||||
@TableName("qh_con_helper_onln")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_helper_online对象", description = "con_helper_online")
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import lombok.experimental.Accessors;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_helper_rest")
|
||||
@TableName("qh_con_helper_rest")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title="con_helper_rest对象", description="全科医生休息")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_helper_scheduling")
|
||||
@TableName("qh_con_helper_schd")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_helper_scheduling对象", description = "con_helper_scheduling")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.io.Serializable;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_helper_scheduling_history")
|
||||
@TableName("qh_con_helper_schd_his")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_helper_scheduling_history对象", description = "con_helper_scheduling_history")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_hospital_follow")
|
||||
@TableName("qh_con_hosp_follow")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_hospital_follow对象", description = "医院关注")
|
||||
|
||||
+1
-1
@@ -21,7 +21,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_knowledge")
|
||||
@TableName("qh_con_know")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_knowledge对象", description = "知识库")
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_knowledge_category")
|
||||
@TableName("qh_con_know_cate")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_knowledge_category对象", description = "知识库分类")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Map;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_medical_records")
|
||||
@TableName("qh_con_medrec")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_medical_records对象", description = "疾病档案")
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_notice")
|
||||
@TableName("qh_con_notice")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_notice对象", description = "咨询须知")
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("con_phrases")
|
||||
@TableName("qh_con_phrases")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_phrases对象", description = "常用语")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_propose")
|
||||
@TableName("qh_con_propose")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_propose对象", description = "con_propose")
|
||||
|
||||
+1
-1
@@ -26,7 +26,7 @@ import java.util.List;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_resource")
|
||||
@TableName("qh_con_resource")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_resource对象", description = "con_resource")
|
||||
|
||||
+1
-1
@@ -23,7 +23,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_service")
|
||||
@TableName("qh_con_srvc")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_service对象", description = "con_service")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.List;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_session")
|
||||
@TableName("qh_con_session")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_session对象", description = "con_session")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_session_reservation_date")
|
||||
@TableName("qh_con_sess_resv_dt")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_session_reservation_date对象", description = "咨询预约时间")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_session_video_info")
|
||||
@TableName("qh_con_sess_vid")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_session_video_info对象", description = "con_session_video_info")
|
||||
|
||||
+2
-5
@@ -20,7 +20,7 @@ import java.util.Date;
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "con_session_view")
|
||||
@TableName(value = "qh_con_session")
|
||||
public class ConSessionView implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
@TableField(value = "id")
|
||||
@@ -77,7 +77,7 @@ public class ConSessionView implements Serializable {
|
||||
@TableField(value = "medical_records_id")
|
||||
@Schema(description = "")
|
||||
private String medicalRecordsId;
|
||||
@TableField(value = "`status`")
|
||||
@TableField(value = "status")
|
||||
@Schema(description = "")
|
||||
private Integer status;
|
||||
@TableField(value = "del_flag")
|
||||
@@ -159,7 +159,4 @@ public class ConSessionView implements Serializable {
|
||||
@TableField(value = "user_first_reply_time")
|
||||
@Schema(description = "")
|
||||
private Date userFirstReplyTime;
|
||||
@TableField(value = "tf_qh")
|
||||
@Schema(description = "")
|
||||
private Boolean tfQh;
|
||||
}
|
||||
+1
-1
@@ -25,7 +25,7 @@ import java.util.Date;
|
||||
@Accessors(chain = true)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "con_settle_config_cost")
|
||||
@TableName(value = "qh_con_stl_cfg_cost")
|
||||
public class ConSettleConfigCost implements Serializable {
|
||||
public static final String COL_ID = "id";
|
||||
public static final String COL_SETTLE_ID = "settle_id";
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import java.util.Date;
|
||||
@Accessors(chain = true)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "con_settle_config_period")
|
||||
@TableName(value = "qh_con_stl_cfg_prd")
|
||||
public class ConSettleConfigPeriod implements Serializable {
|
||||
public static final String COL_ID = "id";
|
||||
public static final String COL_SETTLE_ID = "settle_id";
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
@Accessors(chain = true)
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@TableName(value = "con_settle_main")
|
||||
@TableName(value = "qh_con_stl_main")
|
||||
public class ConSettleMain implements Serializable {
|
||||
public static final String COL_ID = "id";
|
||||
public static final String COL_SETTLE_NAME = "settle_name";
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import java.util.Date;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ColumnWidth(25)
|
||||
@TableName(value = "con_settle_result")
|
||||
@TableName(value = "qh_con_stl_rslt")
|
||||
public class ConSettleResult implements Serializable {
|
||||
public static final String COL_ID = "id";
|
||||
public static final String COL_SETTLE_ID = "settle_id";
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import java.util.Date;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ColumnWidth(25)
|
||||
@TableName(value = "con_settle_result_item")
|
||||
@TableName(value = "qh_con_stl_rslt_itm")
|
||||
public class ConSettleResultItem implements Serializable {
|
||||
public static final String COL_ID = "id";
|
||||
public static final String COL_SETTLE_ID = "settle_id";
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@ import java.util.Date;
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@ColumnWidth(25)
|
||||
@TableName(value = "con_settle_result_period")
|
||||
@TableName(value = "qh_con_stl_rslt_prd")
|
||||
public class ConSettleResultPeriod implements Serializable {
|
||||
public static final String COL_ID = "id";
|
||||
public static final String COL_SETTLE_ID = "settle_id";
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("con_sicks")
|
||||
@TableName("qh_con_sicks")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_sicks对象", description = "con_sicks")
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("hospital_department")
|
||||
@TableName("qh_con_hosp_dept")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "hospital_department对象", description = "医院部门")
|
||||
|
||||
+1
-1
@@ -19,7 +19,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("im_msg_read_log")
|
||||
@TableName("qh_con_im_msg_rdlog")
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "Im消息已读日志", description = "Im消息已读日志")
|
||||
public class ImMsgReadLog implements Serializable {
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ import java.util.Date;
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("im_msg_record_all")
|
||||
@TableName("qh_con_im_msg_all")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "im_msg_record_all对象", description = "im_msg_record_all")
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
@TableName("im_msg_record_all")
|
||||
@TableName("qh_con_im_msg_all")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "im_msg_record_all对象", description = "im_msg_record_all")
|
||||
|
||||
+1
-1
@@ -12,7 +12,7 @@ import org.springframework.format.annotation.DateTimeFormat;
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
@TableName("con_helper")
|
||||
@TableName("qh_con_helper")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "con_helper对象", description = "con_helper")
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ import lombok.experimental.Accessors;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
|
||||
@Data
|
||||
@TableName("con_resource")
|
||||
@TableName("qh_con_resource")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@Schema(title = "医院列表", description = "医院列表")
|
||||
|
||||
+1
-1
@@ -253,7 +253,7 @@ public class ConDepartmentApiServiceImpl implements ConDepartmentApiService {
|
||||
String allChildKey = "consulation:departmentHaveDoctor:AllLevelTwo";
|
||||
|
||||
|
||||
if(!CollectionUtils.isEmpty(list)){
|
||||
if(!CollectionUtils.isEmpty(list)){
|
||||
redisUtil.del(key);
|
||||
redisUtil.del(allChildKey);
|
||||
for (ConDepartmentDO conDepartmentDO : list) {
|
||||
|
||||
+2
-2
@@ -165,7 +165,7 @@ public class AsyncExportService {
|
||||
}
|
||||
|
||||
if (ObjectUtils.isNotEmpty(dto.getStartDate()) && ObjectUtils.isNotEmpty(dto.getEndDate())) {
|
||||
sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate());
|
||||
sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate() + " 23:59:59");
|
||||
}
|
||||
|
||||
//医院筛选
|
||||
@@ -395,7 +395,7 @@ public class AsyncExportService {
|
||||
}
|
||||
|
||||
if (ObjectUtils.isNotEmpty(dto.getStartDate()) && ObjectUtils.isNotEmpty(dto.getEndDate())) {
|
||||
sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate());
|
||||
sessionWrapper.between(ConSession::getCreateTime, dto.getStartDate(), dto.getEndDate() + " 23:59:59");
|
||||
}
|
||||
|
||||
// 人员筛选
|
||||
|
||||
+1
-1
@@ -171,7 +171,7 @@ public class ConCostStatisticsController extends JeecgController<ConCostStatisti
|
||||
*/
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConCostStatistics conCostStatistics) {
|
||||
return super.exportXls(request, conCostStatistics, ConCostStatistics.class, "con_cost_statistics");
|
||||
return super.exportXls(request, conCostStatistics, ConCostStatistics.class, "qh_con_cost_stat");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -199,7 +199,7 @@ public class ConDepartmentController extends JeecgController<ConDepartment, ICon
|
||||
@RequiresPermissions("consultation:con_department:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConDepartment conDepartment) {
|
||||
return super.exportXls(request, conDepartment, ConDepartment.class, "con_department");
|
||||
return super.exportXls(request, conDepartment, ConDepartment.class, "qh_con_dept");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -175,7 +175,7 @@ public class ConDoctorCardController extends JeecgController<ConDoctorCard, ICon
|
||||
@RequestMapping(value = "/exportXls")
|
||||
@Operation(summary = "导出", description = "导出")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConDoctorCard conDoctorCard) {
|
||||
return super.exportXls(request, conDoctorCard, ConDoctorCard.class, "con_doctor_card");
|
||||
return super.exportXls(request, conDoctorCard, ConDoctorCard.class, "qh_con_doc_card");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -163,7 +163,7 @@ public class ConHelperController extends JeecgController<ConHelper, IConHelperSe
|
||||
@Operation(summary = "导出")
|
||||
@AutoLog(value = "导出全科医生信息")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConHelper conHelper) {
|
||||
return super.exportXls(request, conHelper, ConHelper.class, "con_helper");
|
||||
return super.exportXls(request, conHelper, ConHelper.class, "qh_con_helper");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -143,7 +143,7 @@ public class ConHelperOnlineController extends JeecgController<ConHelperOnline,
|
||||
@RequiresPermissions("com.renkang.consultation:con_helper_online:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConHelperOnline conHelperOnline) {
|
||||
return super.exportXls(request, conHelperOnline, ConHelperOnline.class, "con_helper_online");
|
||||
return super.exportXls(request, conHelperOnline, ConHelperOnline.class, "qh_con_helper_onln");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -149,7 +149,7 @@ public class ConHelperSchedulingController extends JeecgController<ConHelperSche
|
||||
@RequiresPermissions("consultation:con_helper_scheduling:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConHelperScheduling conHelperScheduling) {
|
||||
return super.exportXls(request, conHelperScheduling, ConHelperScheduling.class, "con_helper_scheduling");
|
||||
return super.exportXls(request, conHelperScheduling, ConHelperScheduling.class, "qh_con_helper_schd");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -133,7 +133,7 @@ public class ConHelperSchedulingHistoryController extends JeecgController<ConHel
|
||||
@RequiresPermissions("consultation:con_helper_scheduling:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConHelperSchedulingHistory conHelperSchedulingHistory) {
|
||||
return super.exportXls(request, conHelperSchedulingHistory, ConHelperSchedulingHistory.class, "con_helper_scheduling_history");
|
||||
return super.exportXls(request, conHelperSchedulingHistory, ConHelperSchedulingHistory.class, "qh_con_helper_schd_his");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -142,7 +142,7 @@ public class ConProposeController extends JeecgController<ConPropose, IConPropos
|
||||
@RequiresPermissions("com.renkang.consultation:con_propose:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConPropose conPropose) {
|
||||
return super.exportXls(request, conPropose, ConPropose.class, "con_propose");
|
||||
return super.exportXls(request, conPropose, ConPropose.class, "qh_con_propose");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -164,7 +164,7 @@ public class ConResourceController extends JeecgController<ConResource, IConReso
|
||||
@Operation(summary = "导出医院信息")
|
||||
@AutoLog(value = "导出医院信息")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConResource conResource) {
|
||||
return super.exportXls(request, conResource, ConResource.class, "con_resource");
|
||||
return super.exportXls(request, conResource, ConResource.class, "qh_con_resource");
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
+1
-1
@@ -238,7 +238,7 @@ public class ConServiceController extends JeecgController<ConService, IConServic
|
||||
*/
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConService conService) {
|
||||
return super.exportXls(request, conService, ConService.class, "con_service");
|
||||
return super.exportXls(request, conService, ConService.class, "qh_con_srvc");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -143,7 +143,7 @@ public class ConSessionVideoInfoController extends JeecgController<ConSessionVid
|
||||
@RequiresPermissions("com.renkang:con_session_video_info:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConSessionVideoInfo conSessionVideoInfo) {
|
||||
return super.exportXls(request, conSessionVideoInfo, ConSessionVideoInfo.class, "con_session_video_info");
|
||||
return super.exportXls(request, conSessionVideoInfo, ConSessionVideoInfo.class, "qh_con_sess_vid");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -160,7 +160,7 @@ public class ConSicksController extends JeecgController<ConSicks, IConSicksServi
|
||||
@Operation(summary = "导出")
|
||||
@AutoLog(value = "导出疾病信息")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ConSicks conSicks) {
|
||||
return super.exportXls(request, conSicks, ConSicks.class, "con_sicks");
|
||||
return super.exportXls(request, conSicks, ConSicks.class, "qh_con_sicks");
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+1
-1
@@ -37,7 +37,7 @@ public class ConsultationDataServiceImpl implements ConsultationDataService {
|
||||
@Override
|
||||
public TableInfo tableStructure() {
|
||||
return new TableInfo(new TableCreateInfo(TableInfoEnum.DEFAULT),
|
||||
analyzeTableManager.columnInfo(Arrays.asList("con_session","con_doctor"), ConsultationDataPageVO.class));
|
||||
analyzeTableManager.columnInfo(Arrays.asList("qh_con_session","qh_con_doctor"), ConsultationDataPageVO.class));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ public class SpecialistDataServiceImpl implements SpecialistDataService {
|
||||
@Override
|
||||
public TableInfo tableStructure() {
|
||||
return new TableInfo(new TableCreateInfo(TableInfoEnum.DEFAULT),
|
||||
analyzeTableManager.columnInfo(Collections.singletonList("con_doctor"), SpecialistDataPageVO.class));
|
||||
analyzeTableManager.columnInfo(Collections.singletonList("qh_con_doctor"), SpecialistDataPageVO.class));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+1
-1
@@ -87,7 +87,7 @@ public class SpecialistHospitalServiceImpl implements SpecialistHospitalService
|
||||
|
||||
@Override
|
||||
public TableInfo tableStructure() {
|
||||
List<String> tableNames = Collections.singletonList("con_resource");
|
||||
List<String> tableNames = Collections.singletonList("qh_con_resource");
|
||||
Map<String, ColumnMetaData> columnInfo = analyzeTableManager.columnInfo(tableNames, HospitalData.class);
|
||||
TableCreateInfo createInfo = getTableCreateInfo();
|
||||
|
||||
|
||||
+13
-13
@@ -16,7 +16,7 @@ import org.jeecg.common.system.vo.SelectTreeModel;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: con_department
|
||||
* @Description: qh_con_dept
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-09
|
||||
* @Version: V1.0
|
||||
@@ -24,34 +24,34 @@ import java.util.List;
|
||||
@Mapper
|
||||
public interface ConDepartmentMapper extends BaseMapper<ConDepartment> , MPJBaseMapper<ConDepartment> {
|
||||
|
||||
@Select("SELECT * FROM con_department WHERE status = '1' and del_flag = '0' and id = #{departmentId} order by tf_top desc,sort")
|
||||
@Select("SELECT * FROM qh_con_dept WHERE status = '1' and del_flag = '0' and id = #{departmentId} order by tf_top desc,sort")
|
||||
public ConDepartment selectDepartmentNameById(String departmentId);
|
||||
|
||||
@Select("SELECT GROUP_CONCAT(id) FROM con_department WHERE status = '1' and del_flag = '0' and officeparid = #{departmentId}")
|
||||
@Select("SELECT LISTAGG(id, ',') WITHIN GROUP (ORDER BY id) FROM qh_con_dept WHERE status = '1' and del_flag = '0' and officeparid = #{departmentId}")
|
||||
public String selectDepartmentIdByLevelOneId(String departmentId);
|
||||
|
||||
@Select("SELECT count(1) FROM con_department WHERE status = '1' and del_flag = '0' and office_level = 1")
|
||||
@Select("SELECT count(1) FROM qh_con_dept WHERE status = '1' and del_flag = '0' and office_level = 1")
|
||||
public String selectDepartmentNum();
|
||||
|
||||
public List<ConDepartmentDO> selectDepartmentNameByParentId(@Param("officeparid") String officeparid, @Param("name") String name);
|
||||
|
||||
@Select("select * from con_department where status = 1 and del_flag = 0")
|
||||
@Select("select * from qh_con_dept where status = 1 and del_flag = 0")
|
||||
List<ConDepartment> selectList();
|
||||
|
||||
|
||||
List<ConDepartment> selectListAll(ConDepartment conDepartment);
|
||||
|
||||
|
||||
@Select("select * from con_department where status = 1 and del_flag = 0 and office_level = 1 limit 30")
|
||||
@Select("select * from qh_con_dept where status = 1 and del_flag = 0 and office_level = 1 limit 30")
|
||||
List<ConDepartment> selectListLeval();
|
||||
|
||||
@Select("select count(1) from con_department where status = 1 and del_flag = 0 and officeparid = #{id}")
|
||||
@Select("select count(1) from qh_con_dept where status = 1 and del_flag = 0 and officeparid = #{id}")
|
||||
int selectSecondDepartMentNum(String id);
|
||||
|
||||
@Select("SELECT * FROM con_department WHERE status = '1' and del_flag = '0' and department_name = #{departmentName}")
|
||||
@Select("SELECT * FROM qh_con_dept WHERE status = '1' and del_flag = '0' and department_name = #{departmentName}")
|
||||
List<ConDepartment> selectListByName(String departmentName);
|
||||
|
||||
@Select("SELECT * FROM con_department WHERE status = '1' and del_flag = '0' and office_level = 1 order by tf_top desc,sort")
|
||||
@Select("SELECT * FROM qh_con_dept WHERE status = '1' and del_flag = '0' and office_level = 1 order by tf_top desc,sort")
|
||||
List<ConDepartment> selectDepartmentNameByParentIdisNull();
|
||||
|
||||
/**
|
||||
@@ -79,7 +79,7 @@ public interface ConDepartmentMapper extends BaseMapper<ConDepartment> , MPJBase
|
||||
|
||||
Boolean updateTop(@Param("id") String id, @Param("type") Boolean type);
|
||||
|
||||
@Select("select * from con_department where del_flag = 0 and status = 1 and office_level = 1 order by tf_top desc,sort")
|
||||
@Select("select * from qh_con_dept where del_flag = 0 and status = 1 and office_level = 1 order by tf_top desc,sort")
|
||||
List<ConDepartmentVO> selectDepartmentListLevelOne();
|
||||
|
||||
List<ConDoctor> getOneTwoDepartDoctorList();
|
||||
@@ -93,14 +93,14 @@ public interface ConDepartmentMapper extends BaseMapper<ConDepartment> , MPJBase
|
||||
List<ConDepartmentDO> selectHospitalDepartmentId(String hospitalId);
|
||||
|
||||
|
||||
@Select("SELECT id, department_name as departmentName FROM con_department WHERE status = '1' and del_flag = '0' and officeparid = #{departmentId} order by tf_top desc,sort")
|
||||
@Select("SELECT id, department_name as departmentName FROM qh_con_dept WHERE status = '1' and del_flag = '0' and officeparid = #{departmentId} order by tf_top desc,sort")
|
||||
public List<ConDepartmentDO> selectDepartmentIdByLevelOneIdList(String departmentId);
|
||||
|
||||
@Select("select * from con_department WHERE status = '1' and del_flag = '0' and office_level = 1")
|
||||
@Select("select * from qh_con_dept WHERE status = '1' and del_flag = '0' and office_level = 1")
|
||||
List<ConDepartment> selectDepartmentListAll();
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_department WHERE status = '1' and del_flag = '0' and department_name = #{departmentName}")
|
||||
@Select("SELECT * FROM qh_con_dept WHERE status = '1' and del_flag = '0' and department_name = #{departmentName}")
|
||||
public ConDepartment selectDepartmentNameByName(String departmentName);
|
||||
|
||||
List<MedicalDepartmentVO> getMedicalDepartmentList(@Param("deptIds") List<String> deptIds);
|
||||
|
||||
+2
-2
@@ -17,11 +17,11 @@ import java.util.List;
|
||||
public interface ConDoctorFollowMapper extends BaseMapper<ConDoctorFollow> {
|
||||
|
||||
|
||||
@Select("SELECT count(1) FROM con_doctor_follow WHERE status = '1' and del_flag = '0' and user_id = #{userId} and doctor_id = #{doctorId}")
|
||||
@Select("SELECT count(1) FROM qh_con_doc_follow WHERE status = '1' and del_flag = '0' and user_id = #{userId} and doctor_id = #{doctorId}")
|
||||
public int selectFollowDoctorExist(String userId, String doctorId);
|
||||
|
||||
|
||||
@Update("update con_doctor_follow set del_flag = '1' where user_id = #{userId} and doctor_id = #{doctorId}")
|
||||
@Update("update qh_con_doc_follow set del_flag = '1' where user_id = #{userId} and doctor_id = #{doctorId}")
|
||||
public int cancelDoctorFollow(String userId, String doctorId);
|
||||
|
||||
|
||||
|
||||
+55
-55
@@ -15,7 +15,7 @@ import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
* @Description: con_doctor
|
||||
* @Description: qh_con_doctor
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-09
|
||||
* @Version: V1.0
|
||||
@@ -69,24 +69,24 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
*/
|
||||
IPage<ConDoctor> queryPageList(IPage<ConDoctor> page, ConDoctor conDoctor);
|
||||
|
||||
@Select("SELECT * FROM con_doctor WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
@Select("SELECT * FROM qh_con_doctor WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
public ConDoctorDO selectDoctorInfoById(String doctorId);
|
||||
|
||||
public List<ConDoctorDO> selectDoctorInfoByIds(@Param("doctorIds") Set<String> doctorIds);
|
||||
|
||||
@Select("SELECT * FROM con_doctor WHERE status = '1' and del_flag = '0' and id = #{doctorId} and is_accept = '1'")
|
||||
@Select("SELECT * FROM qh_con_doctor WHERE status = '1' and del_flag = '0' and id = #{doctorId} and is_accept = '1'")
|
||||
public ConDoctorDO selectDoctorInfoByIdNew(String doctorId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
@Select("SELECT * FROM qh_con_doctor WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
public ConDoctor selectDoctorDetailById(String doctorId);
|
||||
|
||||
|
||||
@Update("update con_doctor set user_score_num = user_score_num +1 ,user_score = user_score + #{userScore} WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
@Update("update qh_con_doctor set user_score_num = user_score_num +1 ,user_score = user_score + #{userScore} WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
public int updateDoctorScoreAnfNum(String userScore, String doctorId);
|
||||
|
||||
|
||||
@Update("update con_doctor set show_score = show_score + #{showScore} WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
@Update("update qh_con_doctor set show_score = show_score + #{showScore} WHERE status = '1' and del_flag = '0' and id = #{doctorId}")
|
||||
public int updateDoctorShowScoreAnfNum(String showScore, String doctorId);
|
||||
|
||||
public List<ConDoctor> selectDoctorListByHospitalId(IPage<ConDoctor> page, @Param("hospitalId") String hospitalId);
|
||||
@@ -94,7 +94,7 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
|
||||
public List<String> selectRecommendDoctor(@Param("limit") int limit);
|
||||
|
||||
@Select("select count(1) from con_doctor where status = 1 and del_flag = 0 and doctor_status != 3 and department_id = #{departmentId}")
|
||||
@Select("select count(1) from qh_con_doctor where status = 1 and del_flag = 0 and doctor_status != 3 and department_id = #{departmentId}")
|
||||
public int selectDoctorByDepartmentId(String departmentId);
|
||||
|
||||
|
||||
@@ -106,7 +106,7 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
|
||||
String selectDictNuMBySickIds(@Param("goodAtSickness") List<String> goodAtSickness);
|
||||
|
||||
@Select("SELECT count(1) FROM con_doctor WHERE status = '1' and del_flag = '0' and resource_id = #{resourceId}")
|
||||
@Select("SELECT count(1) FROM qh_con_doctor WHERE status = '1' and del_flag = '0' and resource_id = #{resourceId}")
|
||||
public int selectDoctorNum(String resourceId);
|
||||
|
||||
/**
|
||||
@@ -117,46 +117,46 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
*/
|
||||
List<ConDoctor> getFreeDoctor(CondepartmentId departmentId);
|
||||
|
||||
@Select("select id,sicks_name as sicksName from con_sicks where status = 1 and del_flag = 0 and FIND_IN_SET(id,#{sickIds})")
|
||||
@Select("select id,sicks_name as sicksName from qh_con_sicks where status = 1 and del_flag = 0 and INSTR(',' || #{sickIds} || ',', ',' || id || ',') > 0")
|
||||
List<Map<String, String>> selectSickName(String sickIds);
|
||||
|
||||
@Select("SELECT * FROM con_doctor WHERE status = '1' AND del_flag = '0'")
|
||||
@Select("SELECT * FROM qh_con_doctor WHERE status = '1' AND del_flag = '0'")
|
||||
List<ConDoctor> selectListAll();
|
||||
|
||||
@Select("SELECT * FROM con_doctor WHERE status = '1' AND del_flag = '0' and doctor_status != 3")
|
||||
@Select("SELECT * FROM qh_con_doctor WHERE status = '1' AND del_flag = '0' and doctor_status != 3")
|
||||
List<ConDoctor> selectListNew();
|
||||
|
||||
|
||||
@Update("update con_doctor set message_num = message_num + 1 WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Update("update qh_con_doctor set message_num = message_num + 1 WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
int addDoctorMessageNum(String id);
|
||||
|
||||
@Update("update con_doctor set reply_num = reply_num + 1 WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Update("update qh_con_doctor set reply_num = reply_num + 1 WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
int addDoctorReplyNum(String id);
|
||||
|
||||
@Update("update con_doctor set audio_status = #{audioStatus},tf_jump_holiday= #{tfJumpHoliday} WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Update("update qh_con_doctor set audio_status = #{audioStatus},tf_jump_holiday= #{tfJumpHoliday} WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
int updateAudioStatus(String id, String audioStatus, String tfJumpHoliday);
|
||||
|
||||
@Select("select count(1) from con_doctor where del_flag = '0' AND status = 1 and doctor_status != 3 AND FIND_IN_SET(#{sickId},good_at_sickness)")
|
||||
@Select("select count(1) from qh_con_doctor where del_flag = '0' AND status = 1 and doctor_status != 3 AND INSTR(',' || #{sickId} || ',', ',' || good_at_sickness || ',') > 0")
|
||||
int selectDoctorNumBySickId(String sickId);
|
||||
|
||||
|
||||
@Select("select count(1) from con_doctor where del_flag = '0' AND status = 1 AND doctor_status != 3 AND FIND_IN_SET(department_id,#{departmentId})")
|
||||
@Select("select count(1) from qh_con_doctor where del_flag = '0' AND status = 1 AND doctor_status != 3 AND INSTR(',' || #{departmentId} || ',', ',' || department_id || ',') > 0")
|
||||
int selectDoctorNumByDepartmentId(String departmentId);
|
||||
|
||||
List<ConDoctor> selectListByQuery(@Param("conDoctor") ConDoctor conDoctor);
|
||||
|
||||
@Select("SELECT id FROM con_doctor WHERE status = '1' AND del_flag = '0' AND resource_name LIKE CONCAT('%', #{hospitalName}, '%')")
|
||||
@Select("SELECT id FROM qh_con_doctor WHERE status = '1' AND del_flag = '0' AND resource_name LIKE CONCAT('%', #{hospitalName}, '%')")
|
||||
List<ConDoctor> selectDoctorInfoByHospitalName(String hospitalName);
|
||||
|
||||
@Update("update con_doctor set doctor_status = 3 where id = #{id}")
|
||||
@Update("update qh_con_doctor set doctor_status = 3 where id = #{id}")
|
||||
int changeDoctorStatus(String id);
|
||||
|
||||
List<ConDoctor> selectByHospitalIds(@Param("hospitalIds") List<String> hospitalIds);
|
||||
|
||||
@Select("SELECT * FROM con_doctor WHERE status = '1' AND del_flag = '0' AND resource_name LIKE CONCAT('%', #{resourceName}, '%')")
|
||||
@Select("SELECT * FROM qh_con_doctor WHERE status = '1' AND del_flag = '0' AND resource_name LIKE CONCAT('%', #{resourceName}, '%')")
|
||||
List<ConDoctor> selectByResourceName(@Param("resourceName") String resourceName);
|
||||
|
||||
@Select("SELECT * FROM con_doctor WHERE status = '1' AND del_flag = '0' AND doctor_name LIKE CONCAT('%', #{doctorName}, '%')")
|
||||
@Select("SELECT * FROM qh_con_doctor WHERE status = '1' AND del_flag = '0' AND doctor_name LIKE CONCAT('%', #{doctorName}, '%')")
|
||||
List<ConDoctor> selectByDoctorName(@Param("doctorName") String doctorName);
|
||||
|
||||
List<ConDoctor> selectDoctorByIds(@Param("doctorIds") List<String> doctorIds);
|
||||
@@ -165,20 +165,20 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
|
||||
List<ConDoctor> selectDoctorByResourceId(@Param("resourceId") String resourceId);
|
||||
|
||||
@Update("update con_doctor set is_accept = '1',doctor_status = '1',audio_status = 1,tf_jump_holiday = 0 where id = #{id}")
|
||||
@Update("update qh_con_doctor set is_accept = '1',doctor_status = '1',audio_status = 1,tf_jump_holiday = 0 where id = #{id}")
|
||||
int updateDoctorStatusDouble(String id);
|
||||
|
||||
|
||||
|
||||
@Select("select count(1) from con_doctor where del_flag = '0' AND status = 1 AND FIND_IN_SET(department_id,#{departmentId}) and resource_id = #{resourceId} and doctor_status != 3")
|
||||
@Select("select count(1) from qh_con_doctor where del_flag = '0' AND status = 1 AND INSTR(',' || #{departmentId} || ',', ',' || department_id || ',') > 0 and resource_id = #{resourceId} and doctor_status != 3")
|
||||
int selectDoctorNumByDepartmentIdAndResourceId(String departmentId,String resourceId);
|
||||
|
||||
|
||||
@Select("select count(1) from con_doctor where status = 1 and del_flag = 0 and department_id = #{departmentId} and resource_id = #{resourceId} and doctor_status != 3")
|
||||
@Select("select count(1) from qh_con_doctor where status = 1 and del_flag = 0 and department_id = #{departmentId} and resource_id = #{resourceId} and doctor_status != 3")
|
||||
public int selectDoctorByDepartmentIdAndResourceId(String departmentId,String resourceId);
|
||||
|
||||
|
||||
@Select("select a.* from con_doctor a left join con_department b on a.department_id = b.id where b.office_level = 1")
|
||||
@Select("select a.* from qh_con_doctor a left join qh_con_dept b on a.department_id = b.id where b.office_level = 1")
|
||||
List<ConDoctor> selectDoctorByResourceIdAll();
|
||||
|
||||
|
||||
@@ -195,21 +195,21 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
Boolean insertConDoctorSatisfyQhByDoctorNew(ConDoctorSatisfy conDoctorSatisfy);
|
||||
|
||||
|
||||
@Update("update con_doctor_satisfy set reply_num = reply_num + 1 WHERE id = #{id}")
|
||||
@Update("update qh_con_doctor_satisfy set reply_num = reply_num + 1 WHERE id = #{id}")
|
||||
int addDoctorReplyNumBackUp(String id);
|
||||
|
||||
|
||||
@Update("update ${tableName} set reply_num = reply_num + 1 WHERE id = #{id}")
|
||||
int addDoctorReplyNumNotQh(String id,String tableName);
|
||||
|
||||
@Update("update con_doctor_satisfy set user_score_num = user_score_num +1 ,user_score = user_score + #{userScore} WHERE id = #{doctorId}")
|
||||
@Update("update qh_con_doctor_satisfy set user_score_num = user_score_num +1 ,user_score = user_score + #{userScore} WHERE id = #{doctorId}")
|
||||
public int updateDoctorScoreAnfNumQh(String userScore, String doctorId);
|
||||
|
||||
|
||||
@Update("update con_doctor_satisfy set show_score = show_score + #{showScore} WHERE id = #{doctorId}")
|
||||
@Update("update qh_con_doctor_satisfy set show_score = show_score + #{showScore} WHERE id = #{doctorId}")
|
||||
public int updateDoctorShowScoreAnfNumQh(String showScore, String doctorId);
|
||||
|
||||
@Update("update con_doctor_satisfy set message_num = message_num + 1 WHERE id = #{id}")
|
||||
@Update("update qh_con_doctor_satisfy set message_num = message_num + 1 WHERE id = #{id}")
|
||||
int addDoctorMessageNumQh(String id);
|
||||
|
||||
List<ConDoctor> selectRecommendDoctorNewAnother(IPage<ConDoctor> page);
|
||||
@@ -222,15 +222,15 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
"FROM\n" +
|
||||
" (\n" +
|
||||
" SELECT\n" +
|
||||
" conr.resource_name hospitalName,\n" +
|
||||
" count(doct.resource_id) docCount \n" +
|
||||
" conr.resource_name \"hospitalName\",\n" +
|
||||
" count(doct.resource_id) \"docCount\" \n" +
|
||||
" FROM\n" +
|
||||
" con_resource conr\n" +
|
||||
" LEFT JOIN con_doctor doct ON conr.id = doct.resource_id \n" +
|
||||
" qh_con_resource conr\n" +
|
||||
" LEFT JOIN qh_con_doctor doct ON conr.id = doct.resource_id \n" +
|
||||
" WHERE conr.del_flag = 0 and doct.del_flag = 0 and doct.doctor_status = '1' \n" +
|
||||
" GROUP BY conr.id) a\n" +
|
||||
" GROUP BY conr.resource_name) a\n" +
|
||||
"ORDER BY\n" +
|
||||
" docCount DESC")
|
||||
" \"docCount\" DESC")
|
||||
List<Map<String, Object>> getDocCountStatList();
|
||||
|
||||
@Select("SELECT\n" +
|
||||
@@ -238,11 +238,11 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
"FROM\n" +
|
||||
" (\n" +
|
||||
" SELECT\n" +
|
||||
" LEFT(org_code, 6) orgCode,\n" +
|
||||
" SUM(CASE WHEN c.session_type = '2' THEN 1 ELSE 0 END) AS consultHelperCount,\n" +
|
||||
" SUM(CASE WHEN c.session_type = '1' THEN 1 ELSE 0 END) AS consultDocCount\n" +
|
||||
" LEFT(org_code, 6) \"orgCode\",\n" +
|
||||
" SUM(CASE WHEN c.session_type = '2' THEN 1 ELSE 0 END) AS \"consultHelperCount\",\n" +
|
||||
" SUM(CASE WHEN c.session_type = '1' THEN 1 ELSE 0 END) AS \"consultDocCount\"\n" +
|
||||
" FROM\n" +
|
||||
" con_session c \n" +
|
||||
" qh_con_session c \n" +
|
||||
" WHERE\n" +
|
||||
" c.del_flag = 0 \n" +
|
||||
" AND c.STATUS = '1' \n" +
|
||||
@@ -252,7 +252,7 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
" GROUP BY\n" +
|
||||
" LEFT(org_code, 6)) a \n" +
|
||||
"ORDER BY\n" +
|
||||
" consultHelperCount DESC")
|
||||
" \"consultHelperCount\" DESC")
|
||||
List<Map<String, Object>> getDeptCountStatList();
|
||||
|
||||
@Select("SELECT\n" +
|
||||
@@ -260,13 +260,13 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
"FROM\n" +
|
||||
" (\n" +
|
||||
" SELECT\n" +
|
||||
" cre.department_name departmentName,\n" +
|
||||
" SUM(CASE WHEN c.content_type = '1' THEN 1 ELSE 0 END) AS consultImCount,\n" +
|
||||
" SUM(CASE WHEN c.content_type = '2' THEN 1 ELSE 0 END) AS consultVedioCount\n" +
|
||||
" cre.department_name \"departmentName\",\n" +
|
||||
" SUM(CASE WHEN c.content_type = '1' THEN 1 ELSE 0 END) AS \"consultImCount\",\n" +
|
||||
" SUM(CASE WHEN c.content_type = '2' THEN 1 ELSE 0 END) AS \"consultVedioCount\"\n" +
|
||||
" FROM\n" +
|
||||
" con_session c\n" +
|
||||
" LEFT JOIN con_doctor d ON c.to_account = d.id\n" +
|
||||
" LEFT JOIN con_department cre ON d.department_id = cre.id \n" +
|
||||
" qh_con_session c\n" +
|
||||
" LEFT JOIN qh_con_doctor d ON c.to_account = d.id\n" +
|
||||
" LEFT JOIN qh_con_dept cre ON d.department_id = cre.id \n" +
|
||||
" WHERE\n" +
|
||||
" c.del_flag = 0 \n" +
|
||||
" AND c.STATUS = '1' \n" +
|
||||
@@ -274,9 +274,9 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
" AND c.session_type = '1' \n" +
|
||||
" AND cre.id IS NOT NULL \n" +
|
||||
" GROUP BY\n" +
|
||||
" cre.id) a \n" +
|
||||
" cre.department_name) a \n" +
|
||||
"ORDER BY\n" +
|
||||
" consultImCount DESC")
|
||||
" \"consultImCount\" DESC")
|
||||
List<Map<String, Object>> getDepartmentCountStatList();
|
||||
|
||||
@Select("SELECT\n" +
|
||||
@@ -284,13 +284,13 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
"FROM\n" +
|
||||
" (\n" +
|
||||
" SELECT\n" +
|
||||
" cre.resource_name hospitalName,\n" +
|
||||
" SUM(CASE WHEN c.content_type = '1' THEN 1 ELSE 0 END) AS consultImCount,\n" +
|
||||
" SUM(CASE WHEN c.content_type = '2' THEN 1 ELSE 0 END) AS consultVedioCount\n" +
|
||||
" cre.resource_name \"hospitalName\",\n" +
|
||||
" SUM(CASE WHEN c.content_type = '1' THEN 1 ELSE 0 END) AS \"consultImCount\",\n" +
|
||||
" SUM(CASE WHEN c.content_type = '2' THEN 1 ELSE 0 END) AS \"consultVedioCount\"\n" +
|
||||
" FROM\n" +
|
||||
" con_session c\n" +
|
||||
" LEFT JOIN con_doctor d ON c.to_account = d.id\n" +
|
||||
" LEFT JOIN con_resource cre ON d.resource_id = cre.id \n" +
|
||||
" qh_con_session c\n" +
|
||||
" LEFT JOIN qh_con_doctor d ON c.to_account = d.id\n" +
|
||||
" LEFT JOIN qh_con_resource cre ON d.resource_id = cre.id \n" +
|
||||
" WHERE\n" +
|
||||
" c.del_flag = 0 \n" +
|
||||
" AND c.STATUS = '1' \n" +
|
||||
@@ -298,8 +298,8 @@ public interface ConDoctorMapper extends BaseMapper<ConDoctor> , MPJBaseMapper<C
|
||||
" AND c.session_type = '1' \n" +
|
||||
" AND cre.id IS NOT NULL \n" +
|
||||
" GROUP BY\n" +
|
||||
" cre.id) a \n" +
|
||||
" cre.resource_name) a \n" +
|
||||
"ORDER BY\n" +
|
||||
" consultImCount DESC")
|
||||
" \"consultImCount\" DESC")
|
||||
List<Map<String, Object>> getHospitalCountStatList();
|
||||
}
|
||||
|
||||
+10
-10
@@ -20,42 +20,42 @@ public interface ConDoctorSchedulingDateMapper extends BaseMapper<ConDoctorSched
|
||||
|
||||
IPage<ConDoctorSchedulingDate> queryPageList(IPage<ConDoctorSchedulingDate> page, @Param("conDoctorSchedulingDate") ConDoctorSchedulingDate conDoctorSchedulingDate);
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling_date WHERE status = '1' and del_flag = '0' and user_id = #{doctorId} and scheduling_date >= DATE_FORMAT(SYSDATE(),'%Y-%m-%d') order by scheduling_date")
|
||||
@Select("SELECT * FROM qh_con_doc_schd_dt WHERE status = '1' and del_flag = '0' and user_id = #{doctorId} and scheduling_date >= TO_CHAR(SYSDATE,'YYYY-MM-DD') order by scheduling_date")
|
||||
public List<ConDoctorSchedulingDateListDO> selectDoctorById(String doctorId);
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling_date WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Select("SELECT * FROM qh_con_doc_schd_dt WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
ConDoctorSchedulingDate selectDoctorScheduleById(String id);
|
||||
|
||||
|
||||
@Update("update con_doctor_scheduling_date set ready_scheduling_num = ready_scheduling_num - 1 WHERE id = #{id}")
|
||||
@Update("update qh_con_doc_schd_dt set ready_scheduling_num = ready_scheduling_num - 1 WHERE id = #{id}")
|
||||
public int updateScheduleAddNum(String id);
|
||||
|
||||
@Update("update con_doctor_scheduling_date set ready_scheduling_num = ready_scheduling_num + 1 WHERE id = #{id}")
|
||||
@Update("update qh_con_doc_schd_dt set ready_scheduling_num = ready_scheduling_num + 1 WHERE id = #{id}")
|
||||
public int updateScheduleAddMinus(String id);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling_date WHERE status = '1' and del_flag = '0' and user_id = #{doctorId} and scheduling_date >= DATE_FORMAT(#{schedulingDate},'%Y-%m-%d')")
|
||||
@Select("SELECT * FROM qh_con_doc_schd_dt WHERE status = '1' and del_flag = '0' and user_id = #{doctorId} and scheduling_date >= TO_CHAR(#{schedulingDate},'YYYY-MM-DD')")
|
||||
public List<ConDoctorSchedulingDateListDO> selectDoctorScheduleDateById(String doctorId, Date schedulingDate);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling_date WHERE status = '1' and del_flag = '0' and user_id = #{userId} and scheduling_date >= DATE(NOW()) and week = #{week}")
|
||||
@Select("SELECT * FROM qh_con_doc_schd_dt WHERE status = '1' and del_flag = '0' and user_id = #{userId} and scheduling_date >= TRUNC(SYSDATE) and week = #{week}")
|
||||
public List<ConDoctorSchedulingDateListDO> selectDoctorSchedulingByWeekAndUserId(String userId, String week);
|
||||
|
||||
|
||||
@Update("update con_doctor_scheduling_date set scheduling_num = #{schedulingNum} WHERE id = #{id}")
|
||||
@Update("update qh_con_doc_schd_dt set scheduling_num = #{schedulingNum} WHERE id = #{id}")
|
||||
public int updateScheduleNum(String schedulingNum, String id);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling_date WHERE status = '1' and del_flag = '0' and user_id = #{doctorId} and scheduling_date = DATE_FORMAT(#{schedulingDate},'%Y-%m-%d') and type = #{type}")
|
||||
@Select("SELECT * FROM qh_con_doc_schd_dt WHERE status = '1' and del_flag = '0' and user_id = #{doctorId} and scheduling_date = TO_CHAR(#{schedulingDate},'YYYY-MM-DD') and type = #{type}")
|
||||
public List<ConDoctorSchedulingDateListDO> selectDoctorScheduleDate(String doctorId, Date schedulingDate, String type);
|
||||
|
||||
Boolean insertBatchSomeColumn(@Param("list") List<ConDoctorSchedulingDate> list);
|
||||
|
||||
@Delete("delete from con_doctor_scheduling_date where user_id = #{userId} and scheduling_date > #{date}")
|
||||
@Delete("delete from qh_con_doc_schd_dt where user_id = #{userId} and scheduling_date > #{date}")
|
||||
Boolean deleteDoctorSchedulingDateByUserId(String userId,String date);
|
||||
|
||||
|
||||
@Delete("delete from con_doctor_scheduling_date")
|
||||
@Delete("delete from qh_con_doc_schd_dt")
|
||||
Boolean deleteDoctorSchedulingDateAll();
|
||||
|
||||
Boolean batchInsert(@Param("list") List<ConDoctorSchedulingDate> list);
|
||||
|
||||
+8
-8
@@ -20,32 +20,32 @@ import java.util.List;
|
||||
public interface ConDoctorSchedulingMapper extends BaseMapper<ConDoctorScheduling> {
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling WHERE status = '1' and del_flag = '0' and user_id = #{userId} order by week")
|
||||
@Select("SELECT * FROM qh_con_doc_schd WHERE status = '1' and del_flag = '0' and user_id = #{userId} order by week")
|
||||
public List<ConDoctorSchedulingDO> selectDoctorScheduling(String userId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling WHERE status = '1' and del_flag = '0' and user_id = #{userId} and week = #{week}")
|
||||
@Select("SELECT * FROM qh_con_doc_schd WHERE status = '1' and del_flag = '0' and user_id = #{userId} and week = #{week}")
|
||||
public ConDoctorSchedulingDO selectDoctorSchedulingByWeek(String userId, String week);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling WHERE status = '1' and del_flag = '0' and week = #{week}")
|
||||
@Select("SELECT * FROM qh_con_doc_schd WHERE status = '1' and del_flag = '0' and week = #{week}")
|
||||
public List<ConDoctorScheduling> selectDoctorSchedulingByWeekList(int week);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling WHERE status = '1' and del_flag = '0' and week = #{week} and user_id = #{userId}")
|
||||
@Select("SELECT * FROM qh_con_doc_schd WHERE status = '1' and del_flag = '0' and week = #{week} and user_id = #{userId}")
|
||||
public ConDoctorScheduling selectDoctorSchedulingByWeekListByDoctorId(int week, String userId);
|
||||
|
||||
@Update("update con_doctor_scheduling set del_flag = 1 WHERE status = '1' and del_flag = '0' and user_id = #{userId}")
|
||||
@Update("update qh_con_doc_schd set del_flag = 1 WHERE status = '1' and del_flag = '0' and user_id = #{userId}")
|
||||
public int deleteDoctorSchedule(String userId);
|
||||
|
||||
@Select("SELECT * FROM con_doctor_scheduling WHERE status = '1' and del_flag = '0' and user_id = #{userId} and scheduling_date >= DATE(NOW()) and week = #{week}")
|
||||
@Select("SELECT * FROM qh_con_doc_schd WHERE status = '1' and del_flag = '0' and user_id = #{userId} and scheduling_date >= TRUNC(SYSDATE) and week = #{week}")
|
||||
public List<ConDoctorSchedulingDO> selectDoctorSchedulingByWeekAndUserId(String userId, String week);
|
||||
|
||||
Boolean updateBatchById(@Param("list") List<ConDoctorScheduling> schedulingList);
|
||||
|
||||
@Select("select count(1) from con_doctor_scheduling where status = '1' and del_flag = '0' and user_id = #{userId}")
|
||||
@Select("select count(1) from qh_con_doc_schd where status = '1' and del_flag = '0' and user_id = #{userId}")
|
||||
int selectExistSchedule(String userId);
|
||||
|
||||
@Select("delete from con_doctor_scheduling ")
|
||||
@Select("delete from qh_con_doc_schd ")
|
||||
int deleteDoctorScheduleAll();
|
||||
}
|
||||
|
||||
+5
-5
@@ -23,26 +23,26 @@ public interface ConEvaluateMapper extends BaseMapper<ConEvaluate> {
|
||||
|
||||
IPage<ConEvaluate> queryPageList(Page<ConEvaluate> page, @Param("conEvaluate") ConEvaluate conEvaluate);
|
||||
|
||||
@Select("SELECT * FROM con_evaluate WHERE status = '1' and del_flag = '0' and expert = #{expert} order by create_time desc limit 5")
|
||||
@Select("SELECT * FROM qh_con_evaluate WHERE status = '1' and del_flag = '0' and expert = #{expert} order by create_time desc limit 5")
|
||||
public List<ConEvaluateDO> selectDoctorJudgmentById(String expert);
|
||||
|
||||
|
||||
public List<ConEvaluateDO> selectDoctorJudgmentList(IPage<ConEvaluateDO> page, @Param("expert") String expert, @Param("hospitalId") String hospitalId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_evaluate WHERE status = '1' and del_flag = '0' and session_id = #{sessionId}")
|
||||
@Select("SELECT * FROM qh_con_evaluate WHERE status = '1' and del_flag = '0' and session_id = #{sessionId}")
|
||||
public ConEvaluateDO selectDoctorJudgmentBySessionId(String sessionId);
|
||||
|
||||
|
||||
@Select("SELECT COUNT(1) FROM con_evaluate WHERE status = '1' and del_flag = '0' and expert = #{expert} and score >= 3")
|
||||
@Select("SELECT COUNT(1) FROM qh_con_evaluate WHERE status = '1' and del_flag = '0' and expert = #{expert} and score >= 3")
|
||||
public String selectDoctorSumScore(String expert);
|
||||
|
||||
|
||||
@Select("SELECT COUNT(1) FROM con_evaluate WHERE status = '1' and del_flag = '0' and expert = #{expert}")
|
||||
@Select("SELECT COUNT(1) FROM qh_con_evaluate WHERE status = '1' and del_flag = '0' and expert = #{expert}")
|
||||
public String selectDoctorEvNum(String expert);
|
||||
|
||||
|
||||
@Select("SELECT COUNT(1) FROM con_evaluate WHERE status = '1' and del_flag = '0' and hospital_id = #{hospitalId}")
|
||||
@Select("SELECT COUNT(1) FROM qh_con_evaluate WHERE status = '1' and del_flag = '0' and hospital_id = #{hospitalId}")
|
||||
public String selectHospitalEvNum(String hospitalId);
|
||||
|
||||
List<ConEvaluate> selectListByDoctorIds(@Param("doctorIds") List<String> doctorIds);
|
||||
|
||||
+5
-5
@@ -25,14 +25,14 @@ public interface ConFamilyMembersMapper extends BaseMapper<ConFamilyMembers> {
|
||||
|
||||
public List<ConFamilyMembersAndMedicalRecordsDO> selectMenberList(IPage<ConFamilyMembersAndMedicalRecordsDO> page, @Param("userId") String userId);
|
||||
|
||||
@Select("SELECT * FROM con_family_members WHERE status = '1' and del_flag = '0' and id = #{memberId}")
|
||||
@Select("SELECT * FROM qh_con_fammem WHERE status = '1' and del_flag = '0' and id = #{memberId}")
|
||||
ConFamilyMembersDO selectConFamilyMembersDOById(String memberId);
|
||||
|
||||
@Select("SELECT * FROM con_family_members WHERE status = '1' and del_flag = '0' and id = #{memberId}")
|
||||
@Select("SELECT * FROM qh_con_fammem WHERE status = '1' and del_flag = '0' and id = #{memberId}")
|
||||
ConFamilyMembers selectConFamilyMembersById(String memberId);
|
||||
|
||||
|
||||
@Update("update con_family_members set del_flag = '1' where id = #{memberId}")
|
||||
@Update("update qh_con_fammem set del_flag = '1' where id = #{memberId}")
|
||||
int removeMenberById(String memberId);
|
||||
|
||||
List<ConFamilyNumVO> selectFamilyNum(@Param("familyIds") List<String> familyIds);
|
||||
@@ -42,11 +42,11 @@ public interface ConFamilyMembersMapper extends BaseMapper<ConFamilyMembers> {
|
||||
ConFamilyNumVO selectFamilyUserId(@Param("userId") String userId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_family_members WHERE status = '1' and del_flag = '0' and group_id = #{userId} and family_relation = 1 order by create_time desc limit 1")
|
||||
@Select("SELECT * FROM qh_con_fammem WHERE status = '1' and del_flag = '0' and group_id = #{userId} and family_relation = 1 order by create_time desc limit 1")
|
||||
ConFamilyMembers selectConFamilyMembersByUserId(String userId);
|
||||
|
||||
List<ConFamilyMembers> selectConFamilyMembersByUserIds(@Param("userIds") List<String> userIds);
|
||||
|
||||
@Select("select count(1) from con_family_members where status = '1' and del_flag = '0' and group_id = #{userId} and family_relation = 1")
|
||||
@Select("select count(1) from qh_con_fammem where status = '1' and del_flag = '0' and group_id = #{userId} and family_relation = 1")
|
||||
int selectOwnFanilyExist(String userId);
|
||||
}
|
||||
|
||||
+4
-4
@@ -18,19 +18,19 @@ import java.util.List;
|
||||
@Mapper
|
||||
public interface ConHealthInfoAnswerMapper extends BaseMapper<ConHealthInfoAnswer> {
|
||||
|
||||
@Select("SELECT * FROM con_health_info_answer WHERE status = '1' and del_flag = '0' and base_health_id = #{baseHealthId} and member_id = #{memberId}")
|
||||
@Select("SELECT * FROM qh_con_health_ans WHERE status = '1' and del_flag = '0' and base_health_id = #{baseHealthId} and member_id = #{memberId}")
|
||||
public ConHealthInfoAnswer selectHealthAnswerByUserIdAndQuestionId(@Param("baseHealthId") String baseHealthId, @Param("memberId") String memberId);
|
||||
|
||||
|
||||
@Update("update con_health_info_answer set del_flag = '1' where user_id = #{userId} and member_id = #{memberId}")
|
||||
@Update("update qh_con_health_ans set del_flag = '1' where user_id = #{userId} and member_id = #{memberId}")
|
||||
public int deleteHealthAnswerByUserId(@Param("userId") String userId, @Param("memberId") String memberId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_health_info_answer WHERE status = '1' and del_flag = '0' and user_id = #{userId} and member_id = #{memberId} order by create_time")
|
||||
@Select("SELECT * FROM qh_con_health_ans WHERE status = '1' and del_flag = '0' and user_id = #{userId} and member_id = #{memberId} order by create_time")
|
||||
public List<ConHealthInfoAnswer> selectHealthAnswerByUserId(@Param("userId") String userId, @Param("memberId") String memberId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_health_info_answer WHERE status = '1' and del_flag = '0' and member_id = #{memberId} order by create_time")
|
||||
@Select("SELECT * FROM qh_con_health_ans WHERE status = '1' and del_flag = '0' and member_id = #{memberId} order by create_time")
|
||||
public List<ConHealthInfoAnswer> selectHealthAnswerByMemberId(@Param("memberId") String memberId);
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -18,6 +18,6 @@ public interface ConHealthInfoMapper extends BaseMapper<ConHealthInfo> {
|
||||
|
||||
List<ConHealthInfo> getAllHealthInfo();
|
||||
|
||||
@Select("SELECT * FROM con_health_info WHERE status = '1' and del_flag = '0' and item_area = #{itemArea} order by sort asc")
|
||||
@Select("SELECT * FROM qh_con_health WHERE status = '1' and del_flag = '0' and item_area = #{itemArea} order by sort asc")
|
||||
public List<ConHealthInfo> selectHealthInfoListByItemArea(String itemArea);
|
||||
}
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@ import org.apache.ibatis.annotations.Select;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: con_helper
|
||||
* @Description: qh_con_helper
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-24
|
||||
* @Version: V1.0
|
||||
@@ -30,6 +30,6 @@ public interface ConHelperMapper extends BaseMapper<ConHelper> {
|
||||
int updateHelperOrgCode(@Param("tableName")String tableName,@Param("orgCode")String orgCode,
|
||||
@Param("userId")String userId);
|
||||
|
||||
@Select("select * from con_helper where del_flag = 0 and id = #{id}")
|
||||
@Select("select * from qh_con_helper where del_flag = 0 and id = #{id}")
|
||||
ConHelper selectConHelperbyId(String id);
|
||||
}
|
||||
|
||||
+5
-7
@@ -7,7 +7,7 @@ import org.apache.ibatis.annotations.*;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: con_helper_scheduling
|
||||
* @Description: qh_con_helper_schd
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-23
|
||||
* @Version: V1.0
|
||||
@@ -16,20 +16,18 @@ import java.util.List;
|
||||
public interface ConHelperSchedulingMapper extends BaseMapper<ConHelperScheduling> {
|
||||
|
||||
|
||||
@Select("SELECT user_id FROM con_helper_scheduling WHERE status = '1' and del_flag = '0' and week = #{week} and type = #{type}")
|
||||
@Select("SELECT user_id FROM qh_con_helper_schd WHERE status = '1' and del_flag = '0' and week = #{week} and type = #{type}")
|
||||
public List<String> selectHelperInfo(int week, int type);
|
||||
|
||||
@Update("UPDATE con_helper_scheduling SET del_flag = '1' WHERE user_id = #{userId}")
|
||||
@Update("UPDATE qh_con_helper_schd SET del_flag = '1' WHERE user_id = #{userId}")
|
||||
public Boolean deleteByUserId(String userId);
|
||||
|
||||
@Delete("DELETE FROM con_helper_scheduling WHERE week = #{week} and type = #{type}")
|
||||
@Delete("DELETE FROM qh_con_helper_schd WHERE week = #{week} and type = #{type}")
|
||||
public Boolean deleteByWeekAndType(String week, String type);
|
||||
|
||||
public Integer insertBatch(@Param("list") List<ConHelperScheduling> list);
|
||||
|
||||
@Select("SELECT * FROM con_helper_scheduling WHERE week = #{week} and del_flag = '0' and status = '1'")
|
||||
@Select("SELECT * FROM qh_con_helper_schd WHERE week = #{week} and del_flag = '0' and status = '1'")
|
||||
public List<ConHelperScheduling> getYesterDayScheduling(Integer week);
|
||||
|
||||
@Select("SELECT * FROM con_helper_scheduling_qh WHERE week = #{week} and del_flag = '0' and status = '1'")
|
||||
public List<ConHelperScheduling> getYesterDaySchedulingQh(Integer week);
|
||||
}
|
||||
|
||||
+2
-2
@@ -14,11 +14,11 @@ import org.apache.ibatis.annotations.Update;
|
||||
public interface ConHospitalFollowMapper extends BaseMapper<ConHospitalFollow> {
|
||||
|
||||
|
||||
@Select("SELECT count(1) FROM con_hospital_follow WHERE status = '1' and del_flag = '0' and user_id = #{userId} and hospital_id = #{hospitalId}")
|
||||
@Select("SELECT count(1) FROM qh_con_hosp_follow WHERE status = '1' and del_flag = '0' and user_id = #{userId} and hospital_id = #{hospitalId}")
|
||||
public int selectFollowHospitalExist(String userId, String hospitalId);
|
||||
|
||||
|
||||
@Update("update con_hospital_follow set del_flag = '1' where user_id = #{userId} and hospital_id = #{hospitalId}")
|
||||
@Update("update qh_con_hosp_follow set del_flag = '1' where user_id = #{userId} and hospital_id = #{hospitalId}")
|
||||
public int cancelHospitalFollow(String userId, String hospitalId);
|
||||
|
||||
}
|
||||
|
||||
+1
-1
@@ -25,6 +25,6 @@ public interface ConKnowledgeMapper extends BaseMapper<ConKnowledge> {
|
||||
|
||||
IPage<String> selectKnowledgeList(IPage<ConKnowledge> page, @Param("classId") String classId, @Param("tfRecommend") String tfRecommend, @Param("knowTitle") String knowTitle);
|
||||
|
||||
@Select("select * from con_knowledge where status = 1 and del_flag = 0 and id = #{id}")
|
||||
@Select("select * from qh_con_know where status = 1 and del_flag = 0 and id = #{id}")
|
||||
ConKnowledge selectConKnowledgeById(String id);
|
||||
}
|
||||
|
||||
+6
-6
@@ -18,24 +18,24 @@ import java.util.List;
|
||||
@Mapper
|
||||
public interface ConMedicalRecordsMapper extends BaseMapper<ConMedicalRecords> {
|
||||
|
||||
@Select("SELECT * FROM con_medical_records WHERE status = '1' and del_flag = '0' and member_id = #{memberId} order by create_time desc")
|
||||
@Select("SELECT * FROM qh_con_medrec WHERE status = '1' and del_flag = '0' and member_id = #{memberId} order by create_time desc")
|
||||
public List<ConMedicalRecordsListDO> selectConMedicalRecordsListByMemberId(String memberId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_medical_records WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Select("SELECT * FROM qh_con_medrec WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
public ConMedicalRecordsListDO selectConMedicalRecordsListById(String id);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_medical_records WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Select("SELECT * FROM qh_con_medrec WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
public ConMedicalRecordsDO selectConMedicalRecordsInfoById(String id);
|
||||
|
||||
@Select("SELECT * FROM con_medical_records WHERE status = '1' and del_flag = '0' and member_id = #{memberId} order by create_time desc")
|
||||
@Select("SELECT * FROM qh_con_medrec WHERE status = '1' and del_flag = '0' and member_id = #{memberId} order by create_time desc")
|
||||
List<ConMedicalRecordsListDO> selectConMedicalRecordsByMemberId(String memberId);
|
||||
|
||||
@Select("SELECT * FROM con_medical_records WHERE status = '1' and del_flag = '0' and member_id = #{memberId} and user_id = #{userId}")
|
||||
@Select("SELECT * FROM qh_con_medrec WHERE status = '1' and del_flag = '0' and member_id = #{memberId} and user_id = #{userId}")
|
||||
ConMedicalRecords selectByMemberIdAndUserId(String memberId, String userId);
|
||||
|
||||
|
||||
@Select("SELECT * FROM con_medical_records_view WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Select("SELECT * FROM qh_con_medrec WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
public ConMedicalRecordsDO selectConMedicalRecordsViewInfoById(String id);
|
||||
}
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ public interface ConNoticeMapper extends BaseMapper<ConNotice> {
|
||||
*/
|
||||
IPage<ConNotice> queryPageList(IPage<ConNotice> page, @Param("conNotice") ConNotice conNotice);
|
||||
|
||||
@Select("SELECT * FROM con_notice WHERE status = '1' and del_flag = '0' and notice_type = #{type} order by create_time desc limit 1")
|
||||
@Select("SELECT * FROM qh_con_notice WHERE status = '1' and del_flag = '0' and notice_type = #{type} order by create_time desc limit 1")
|
||||
public ConNotice selectNoticeByType(String type);
|
||||
|
||||
}
|
||||
|
||||
+8
-8
@@ -14,7 +14,7 @@ import org.apache.ibatis.annotations.Update;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @Description: con_resource
|
||||
* @Description: qh_con_resource
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-09
|
||||
* @Version: V1.0
|
||||
@@ -30,18 +30,18 @@ public interface ConResourceMapper extends BaseMapper<ConResource> {
|
||||
*/
|
||||
IPage<ConResource> queryPageList(IPage<ConResource> page, ConResource conResource);
|
||||
|
||||
@Update("update con_resource set user_score_num = user_score_num +1 ,user_score = user_score + #{userScore} WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Update("update qh_con_resource set user_score_num = user_score_num +1 ,user_score = user_score + #{userScore} WHERE status = '1' and del_flag = '0' and id = #{id}")
|
||||
public int updateHospitalScoreAnfNum(String userScore, String id);
|
||||
|
||||
|
||||
@Select("select id,resource_name as resourceName from con_resource WHERE status = '1' and del_flag = '0' order by tf_top desc,sort")
|
||||
@Select("select id,resource_name as resourceName from qh_con_resource WHERE status = '1' and del_flag = '0' order by tf_top desc,sort")
|
||||
public List<ConResourceDO> selectHospitalList();
|
||||
|
||||
|
||||
@Select("select * from con_resource WHERE status = '1' and del_flag = '0'")
|
||||
@Select("select * from qh_con_resource WHERE status = '1' and del_flag = '0'")
|
||||
public List<ConResource> selectResourceList();
|
||||
|
||||
@Select("select * from con_resource where status = '1' and del_flag = '0' and id = #{id}")
|
||||
@Select("select * from qh_con_resource where status = '1' and del_flag = '0' and id = #{id}")
|
||||
ConResource selectConResourceById(String id);
|
||||
|
||||
List<ConResource> selectBatchIds(@Param("ids") List<String> ids);
|
||||
@@ -50,14 +50,14 @@ public interface ConResourceMapper extends BaseMapper<ConResource> {
|
||||
|
||||
Boolean updateTop(@Param("id") String id, @Param("type") Boolean type);
|
||||
|
||||
@Select("SELECT * FROM con_resource WHERE status = '1' AND del_flag = '0' AND resource_name LIKE CONCAT('%', #{name}, '%')")
|
||||
@Select("SELECT * FROM qh_con_resource WHERE status = '1' AND del_flag = '0' AND resource_name LIKE CONCAT('%', #{name}, '%')")
|
||||
List<ConResource> selectByResourceName(@Param("name") String name);
|
||||
|
||||
List<HospitalDepartment> selectResourceInfoByDepartId(@Param("idList") List<String> idList);
|
||||
|
||||
|
||||
@Select("SELECT c.id,c.resource_name as resourceName FROM con_resource c WHERE EXISTS (SELECT 1 FROM con_doctor d WHERE c.id = d.resource_id and d.del_flag = 0 and d.`status` = 1)" +
|
||||
"and c.del_flag = 0 and c.`status` = 1 ORDER BY c.tf_top DESC,c.sort")
|
||||
@Select("SELECT c.id,c.resource_name as resourceName FROM qh_con_resource c WHERE EXISTS (SELECT 1 FROM qh_con_doctor d WHERE c.id = d.resource_id and d.del_flag = 0 and d.status = 1)" +
|
||||
"and c.del_flag = 0 and c.status = 1 ORDER BY c.tf_top DESC,c.sort")
|
||||
public List<ConResourceDO> selectHospitalListVersionTwo();
|
||||
|
||||
|
||||
|
||||
+3
-3
@@ -8,7 +8,7 @@ import org.apache.ibatis.annotations.Select;
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: con_service
|
||||
* @Description: qh_con_srvc
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2023-05-31
|
||||
* @Version: V1.0
|
||||
@@ -16,11 +16,11 @@ import java.util.Date;
|
||||
@Mapper
|
||||
public interface ConServiceMapper extends BaseMapper<ConService> {
|
||||
|
||||
@Select("select * from con_service where service_status = 0 and doctor_id = #{doctorId} and del_flag = 0 and status = 1 order by create_time desc limit 1")
|
||||
@Select("select * from qh_con_srvc where service_status = 0 and doctor_id = #{doctorId} and del_flag = 0 and status = 1 order by create_time desc limit 1")
|
||||
ConService selectConServiceByDoctrId(String doctorId);
|
||||
|
||||
|
||||
@Select("select count(1) from con_service where service_status = 0 and doctor_id = #{doctorId} and del_flag = 0 and status = 1 and DATE_FORMAT(#{scheduleDate}, '%Y-%m-%d') >= DATE_FORMAT(start_day, '%Y-%m-%d') and DATE_FORMAT(#{scheduleDate}, '%Y-%m-%d') <= DATE_FORMAT(end_day, '%Y-%m-%d')")
|
||||
@Select("select count(1) from qh_con_srvc where service_status = 0 and doctor_id = #{doctorId} and del_flag = 0 and status = 1 and TO_CHAR(#{scheduleDate}, 'YYYY-MM-DD') >= TO_CHAR(start_day, 'YYYY-MM-DD') and TO_CHAR(#{scheduleDate}, 'YYYY-MM-DD') <= TO_CHAR(end_day, 'YYYY-MM-DD')")
|
||||
int selectConServiceByDoctrIdExist(String doctorId, Date scheduleDate);
|
||||
|
||||
}
|
||||
|
||||
+30
-38
@@ -47,7 +47,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
*/
|
||||
IPage<ConSession> listByHelper(com.baomidou.mybatisplus.core.metadata.IPage<ConSession> page, @Param("conSession") ConSession conSession);
|
||||
|
||||
@Update("update con_session set content_status = #{contentStatus},reject_reason = #{rejectReason} where id = #{id}")
|
||||
@Update("update qh_con_session set content_status = #{contentStatus},reject_reason = #{rejectReason} where id = #{id}")
|
||||
public int updateContentStatus(String id, String contentStatus, String rejectReason);
|
||||
|
||||
|
||||
@@ -72,7 +72,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
|
||||
String selectSessioningDoctorExist(@Param("fromAccount") String fromAccount, @Param("toAccount") String toAccount);
|
||||
|
||||
@Select("select count(1) from con_session where to_account = #{doctorId} and content_type = 2 and session_type = 1 and session_date >= #{startTime} and session_date <= #{endTime} and (content_status = 1 or content_status = 2 or content_status = 3)")
|
||||
@Select("select count(1) from qh_con_session where to_account = #{doctorId} and content_type = 2 and session_type = 1 and session_date >= #{startTime} and session_date <= #{endTime} and (content_status = 1 or content_status = 2 or content_status = 3)")
|
||||
String selectSessionVideoUnByDoctorId(@Param("doctorId") String doctorId, @Param("startTime") Date startTime, @Param("endTime") Date endTime);
|
||||
|
||||
/**
|
||||
@@ -83,62 +83,62 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
*/
|
||||
List<ImMsgRecordAll> selectMsg(@Param("id") String id);
|
||||
|
||||
@Select("select * from con_session where id = #{id} and del_flag = 0 and status = 1")
|
||||
@Select("select * from qh_con_session where id = #{id} and del_flag = 0 and status = 1")
|
||||
ConSession selectConSessionById(String id);
|
||||
|
||||
|
||||
@Update("update con_session set content_status = #{contentStatus},im_id=#{imId} where id = #{id}")
|
||||
@Update("update qh_con_session set content_status = #{contentStatus},im_id=#{imId} where id = #{id}")
|
||||
int updateSessionStatusById(String id, String contentStatus, String imId);
|
||||
|
||||
|
||||
@Select("select * from con_session where from_account = #{userId} and content_status = 3 and to_account = #{toAccount} order by create_time desc limit 1")
|
||||
@Select("select * from qh_con_session where from_account = #{userId} and content_status = 3 and to_account = #{toAccount} order by create_time desc limit 1")
|
||||
ConSession selectSessioning(String userId, String toAccount);
|
||||
|
||||
|
||||
@Select("select * from con_session where member_id = #{memberId} and content_status = 3 and to_account = #{toAccount} order by create_time desc limit 1")
|
||||
@Select("select * from qh_con_session where member_id = #{memberId} and content_status = 3 and to_account = #{toAccount} order by create_time desc limit 1")
|
||||
ConSession selectSessioningByMember(String memberId, String toAccount);
|
||||
|
||||
|
||||
@Select("select * from con_session where from_account = #{fromAccount} and content_status = 3 and to_account = #{toAccount} and content_type = #{contentType} order by create_time desc limit 1")
|
||||
@Select("select * from qh_con_session where from_account = #{fromAccount} and content_status = 3 and to_account = #{toAccount} and content_type = #{contentType} order by create_time desc limit 1")
|
||||
ConSession selectSessioningByFromAccount(String fromAccount, String toAccount, String contentType);
|
||||
|
||||
|
||||
@Select("select count(1) from con_session where from_account = #{userId} and (content_status = 1 or content_status = 3 or content_status = 2) and session_type = 1")
|
||||
@Select("select count(1) from qh_con_session where from_account = #{userId} and (content_status = 1 or content_status = 3 or content_status = 2) and session_type = 1")
|
||||
String selectSessioningNum(String userId);
|
||||
|
||||
|
||||
@Update("update con_session set content_status = #{contentStatus},tf_reply = 1,im_id=#{imId} where id = #{id}")
|
||||
@Update("update qh_con_session set content_status = #{contentStatus},tf_reply = 1,im_id=#{imId} where id = #{id}")
|
||||
int updateSessionStatusByIdOnly(String id, String contentStatus, String imId);
|
||||
|
||||
|
||||
@Select("select * from con_session where im_id = #{imId} and to_account = #{toAccount} and del_flag = 0 and status = 1")
|
||||
@Select("select * from qh_con_session where im_id = #{imId} and to_account = #{toAccount} and del_flag = 0 and status = 1")
|
||||
ConSession selectConSessionByImId(String imId, String toAccount);
|
||||
|
||||
@Update("update con_session set reply_time = NOW() where im_id = #{imId}")
|
||||
@Update("update qh_con_session set reply_time = SYSDATE where im_id = #{imId}")
|
||||
int updateSessionReplyTime(String imId);
|
||||
|
||||
|
||||
@Select("select * from con_session where im_id = #{imId} and del_flag = 0 and status = 1")
|
||||
@Select("select * from qh_con_session where im_id = #{imId} and del_flag = 0 and status = 1")
|
||||
ConSession selectConSessionByImIdOnly(String imId);
|
||||
|
||||
@Update("update con_session set content_status = 4 where TIMESTAMPDIFF(HOUR,reply_time,now()) >= 4 and content_status = 3 and content_type = 1")
|
||||
@Update("update qh_con_session set content_status = 4 where (SYSDATE - CAST(reply_time AS DATE)) * 24 >= 4 and content_status = 3 and content_type = 1")
|
||||
int sessionSendMessageExpire();
|
||||
|
||||
|
||||
@Update("update con_session set content_status = 8 where TIMESTAMPDIFF(HOUR,create_time,now()) >= 24 and content_type = 1 and (content_status = 1 or content_status = 2)")
|
||||
@Update("update qh_con_session set content_status = 8 where (SYSDATE - CAST(create_time AS DATE)) * 24 >= 24 and content_type = 1 and (content_status = 1 or content_status = 2)")
|
||||
int sessionSendMessageExpireAnother();
|
||||
|
||||
@Update("update con_session set content_status = 8 where DATE(NOW()) > session_date and content_type = 2 and (content_status = 1 or content_status = 2)")
|
||||
@Update("update qh_con_session set content_status = 8 where TRUNC(SYSDATE) > session_date and content_type = 2 and (content_status = 1 or content_status = 2)")
|
||||
int sessionSendMessageExpireVideo();
|
||||
|
||||
@Update("update con_session set content_status = 4 where DATE(NOW()) > session_date and content_type = 2 and content_status = 3 ")
|
||||
@Update("update qh_con_session set content_status = 4 where TRUNC(SYSDATE) > session_date and content_type = 2 and content_status = 3 ")
|
||||
int sessionSendMessageExpireVideoAnother();
|
||||
|
||||
@Select("select * from con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and session_type = #{sessionType} and content_status = 3 limit 1")
|
||||
@Select("select * from qh_con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and session_type = #{sessionType} and content_status = 3 limit 1")
|
||||
ConSession selectSessioningByProfessorId(String fromAccount, String sessionType);
|
||||
|
||||
|
||||
@Select("select * from con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and session_type = #{sessionType} and content_status = 3 order by create_time desc limit 1")
|
||||
@Select("select * from qh_con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and session_type = #{sessionType} and content_status = 3 order by create_time desc limit 1")
|
||||
ConSession selectSessioningByProfessorIdNew(String fromAccount, String sessionType);
|
||||
|
||||
List<ConSession> companySessionList(@Param("imId") String imId);
|
||||
@@ -158,7 +158,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
List<ConSessionDO> selectSessionListPictureByUserId(@Param("imIds") String imIds);
|
||||
|
||||
|
||||
@Select("select * from con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and to_account = #{toAccount} and session_type != 1 order by create_time limit 1")
|
||||
@Select("select * from qh_con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and to_account = #{toAccount} and session_type != 1 order by create_time limit 1")
|
||||
ConSession selectSessioningByFromAndTo(String fromAccount, String toAccount);
|
||||
|
||||
List<ConSessionDO> selectSessionListByUserIdVersionTwo(IPage<ConSessionDO> page, @Param("contentType") String contentType, @Param("state") String state, @Param("userId") String userId);
|
||||
@@ -169,7 +169,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
@Param("contentStatus") String contentStatus);
|
||||
|
||||
|
||||
@Select("select * from con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and to_account = #{toAccount} and member_id = #{memberId} and session_type = 1 and content_type = 2 and (content_status = 1 or content_status = 2 or content_status = 3 ) order by create_time desc limit 1")
|
||||
@Select("select * from qh_con_session where del_flag = 0 and status = 1 and from_account = #{fromAccount} and to_account = #{toAccount} and member_id = #{memberId} and session_type = 1 and content_type = 2 and (content_status = 1 or content_status = 2 or content_status = 3 ) order by create_time desc limit 1")
|
||||
ConSession selectSessioningVideoByFromAndTo(String fromAccount, String toAccount, String memberId);
|
||||
|
||||
|
||||
@@ -178,7 +178,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Update("update con_session set content_status = 5 where session_type != 1 and content_status = 3 and timestampdiff(HOUR,reply_time,NOW()) >= #{expireHour} and tf_reply = 1")
|
||||
@Update("update qh_con_session set content_status = 5 where session_type != 1 and content_status = 3 and (SYSDATE - CAST(reply_time AS DATE)) * 24 >= #{expireHour} and tf_reply = 1")
|
||||
int changeEndUserAndProfessiorHelper(String expireHour);
|
||||
|
||||
/**
|
||||
@@ -186,7 +186,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Update("update con_session set content_status = 4 where session_type = 1 and content_type = 1 and content_status = 3 and timestampdiff(HOUR,reply_time,NOW()) >= #{expireHour} and tf_reply = 1")
|
||||
@Update("update qh_con_session set content_status = 4 where session_type = 1 and content_type = 1 and content_status = 3 and (SYSDATE - CAST(reply_time AS DATE)) * 24 >= #{expireHour} and tf_reply = 1")
|
||||
int endSession(String expireHour);
|
||||
|
||||
/**
|
||||
@@ -194,7 +194,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@Update("update con_session set content_status = 8 where content_type != 2 and timestampdiff(HOUR,create_time,NOW()) >= #{expireHour} and tf_reply = 0")
|
||||
@Update("update qh_con_session set content_status = 8 where content_type != 2 and (SYSDATE - CAST(create_time AS DATE)) * 24 >= #{expireHour} and tf_reply = 0")
|
||||
int expireMeaaage(String expireHour);
|
||||
|
||||
|
||||
@@ -208,7 +208,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
String selectSessionProfessorIngNew(@Param("toAccount") String toAccount, @Param("contentType") String contentType,
|
||||
@Param("contentStatus") String contentStatus,@Param("tfReply") String tfReply);
|
||||
|
||||
// @Update("update con_session set content_status = 5 where im_id = #{id}")
|
||||
// @Update("update qh_con_session set content_status = 5 where im_id = #{id}")
|
||||
// String selectSessionVideoUnByDoctorId();
|
||||
|
||||
|
||||
@@ -240,28 +240,20 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
@Param("fromAccount")String fromAccount);
|
||||
|
||||
|
||||
@Select("select * from con_session_view where im_id = #{imId} and del_flag = 0 and status = 1")
|
||||
@Select("select * from qh_con_session where im_id = #{imId} and del_flag = 0 and status = 1")
|
||||
ConSession selectConSessionByImIdOnlyBackUp(String imId);
|
||||
|
||||
|
||||
@Update("update con_session_qh set reply_time = NOW() where im_id = #{imId}")
|
||||
int updateSessionReplyTimeBackUp(String imId);
|
||||
|
||||
@Update("update con_session_qh set tf_reply = 1 where id = #{id}")
|
||||
int updateConSessionTfReplyBackUp(String id);
|
||||
|
||||
|
||||
@Select("select * from con_session_view where id = #{id} and del_flag = 0 and status = 1")
|
||||
@Select("select * from qh_con_session where id = #{id} and del_flag = 0 and status = 1")
|
||||
ConSession selectConSessionByIdView(String id);
|
||||
|
||||
@Select("select * from con_session_view where im_id = #{id} and del_flag = 0 and status = 1")
|
||||
@Select("select * from qh_con_session where im_id = #{id} and del_flag = 0 and status = 1")
|
||||
ConSession selectConSessionByIdViewAndImId(String imId);
|
||||
|
||||
@Update("update con_session set user_tf_reply = 1 where id = #{id}")
|
||||
@Update("update qh_con_session set user_tf_reply = 1 where id = #{id}")
|
||||
int updateSessionUserReplyState(String id);
|
||||
|
||||
|
||||
@Update("update con_session set user_tf_reply = 1,user_first_reply_time = #{replyTime} where id = #{id}")
|
||||
@Update("update qh_con_session set user_tf_reply = 1,user_first_reply_time = #{replyTime} where id = #{id}")
|
||||
int updateSessionUserReplyAndTimeState(String id,Date replyTime);
|
||||
|
||||
List<ConSessionDO> selectSessionListByDoctorIdNewAnother(IPage<ConSessionDO> page, @Param("contentType") String contentType, @Param("state") String state, @Param("doctorId") String doctorId,
|
||||
@@ -282,7 +274,7 @@ public interface ConSessionMapper extends BaseMapper<ConSession> , MPJBaseMapper
|
||||
List<ConSessionDO> selectSessionListByUserIdHelperAnother(IPage<ConSessionDO> page, @Param("contentType") String contentType, @Param("state") String state, @Param("userId") String userId);
|
||||
|
||||
|
||||
@Select("select * from con_session where session_type = 1 and content_type = 1 and content_status = 3 and timestampdiff(HOUR,reply_time,NOW()) >= #{expireHour} and tf_reply = 1")
|
||||
@Select("select * from qh_con_session where session_type = 1 and content_type = 1 and content_status = 3 and (SYSDATE - CAST(reply_time AS DATE)) * 24 >= #{expireHour} and tf_reply = 1")
|
||||
List<ConSession> selectEndSession(String expireHour);
|
||||
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user