Explorar el Código

1、配方库存同步定时间异常处理
2、批量处理参数增加字段
3、处方分析(新都)- 根据药房ID搜索

guowei hace 2 años
padre
commit
768407f4ae

BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/common/exception/ExceptionUtils.java


BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/common/scheduler/FormulaScheduler.java


BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/controller/statistics/vo/PrescriptionStatisticsVO.java


BIN
cbkj_web_api/src/main/java/com/jiuzhekan/cbkj/service/formula/center/TFormulaInterface.java


+ 5 - 0
cbkj_web_api/src/main/resources/mappers/statistics/PrescriptionStatisticsMapper.xml

@@ -26,6 +26,7 @@
         <result column="PRE_ORIGIN" jdbcType="VARCHAR" property="preOrigin"/>
         <result column="PRE_TYPE" jdbcType="VARCHAR" property="preType"/>
         <result column="PRE_MAT_TYPE" jdbcType="VARCHAR" property="preMatType"/>
+        <result column="STORE_ID" jdbcType="VARCHAR" property="storeId"/>
         <result column="STORE_NAME" jdbcType="VARCHAR" property="storeName"/>
         <result column="REC_TRE_TYPE" jdbcType="VARCHAR" property="recTreType"/>
         <result column="PRE_DESCRIPTION" jdbcType="VARCHAR" property="preDescription"/>
@@ -94,6 +95,7 @@
             when '5' then '制剂'
             end PRE_TYPE,
 <!--        p.PRE_MAT_TYPE,-->
+        p.STORE_ID,
         (select DISPLAY_NAME from t_display d where d.STORE_ID = p.STORE_ID limit 1) STORE_NAME,
         case r.REC_TRE_TYPE when '1' then '门诊' when '2' then '住院' end REC_TRE_TYPE,
         CASE p.PRE_TYPE
@@ -186,6 +188,9 @@
             <if test="recTreType != null and recTreType != ''">
                 and r.REC_TRE_TYPE = #{recTreType}
             </if>
+            <if test="storeId != null and storeId != ''">
+                and p.STORE_ID = #{storeId}
+            </if>
             <if test="preDescription != null and preDescription != ''">
                 and p.PRE_DESCRIPTION like CONCAT('%', #{preDescription}, '%')
             </if>

+ 108 - 2
cbkj_web_api/src/main/resources/sqlRecord/pre_api_v5.12.6.sql

@@ -1,8 +1,114 @@
 -- 2022-01-14 zjh CONNECT_ID字段长度改为65,因为临床诊疗指南需要
-ALTER TABLE t_doctor_collect`
+ALTER TABLE `t_doctor_collect`
     CHANGE `CONNECT_ID` `CONNECT_ID` VARCHAR (65) CHARSET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '关联id:例如 药品id,方剂id';
 -- 2022-01-14 zjh 增加两个字段:参数分类、参数编号
 ALTER TABLE `t_sys_param` ADD COLUMN `PAR_CLASSIFY` VARCHAR (256) NULL COMMENT '参数分类' AFTER `SEQN`,ADD COLUMN `PAR_NUMBER` VARCHAR (256) NULL COMMENT '参数编号' AFTER `PAR_CLASSIFY`;
 
 
-
+#2022-.1-19 guowei 批量处理‘参数分类’‘参数编号’
+update t_sys_param set PAR_NUMBER = 'A001', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'FIRST_DIAGNOSIS_FUNCTION';
+update t_sys_param set PAR_NUMBER = 'A002', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'DIALECTICAL_TAB';
+update t_sys_param set PAR_NUMBER = 'A003', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'MASTER_DISEASE';
+update t_sys_param set PAR_NUMBER = 'A004', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'DEFAULT_VERIFY_TYPE';
+update t_sys_param set PAR_NUMBER = 'A005', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'HISTORY_PRESCRIPTION_DEL';
+update t_sys_param set PAR_NUMBER = 'A006', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'INPATIENT_ADVICE_DISPLAY';
+update t_sys_param set PAR_NUMBER = 'A007', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'ISOLATED_POINTS_ADDRESS';
+update t_sys_param set PAR_NUMBER = 'A008', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'ISOLATED_POINTS_SEND_PHARMACY';
+update t_sys_param set PAR_NUMBER = 'A009', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'MAT_SPECIAL_USAGE_SOURCE';
+update t_sys_param set PAR_NUMBER = 'A010', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PATIENT_VISIT_RANGE';
+update t_sys_param set PAR_NUMBER = 'A011', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRES_COMPUTE_MODE';
+update t_sys_param set PAR_NUMBER = 'A012', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_ACUPOINT_COLUMN';
+update t_sys_param set PAR_NUMBER = 'A013', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_AVG_AMOUNT';
+update t_sys_param set PAR_NUMBER = 'A014', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_CHECK_LIMIT';
+update t_sys_param set PAR_NUMBER = 'A015', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_CHECK_MODE';
+update t_sys_param set PAR_NUMBER = 'A016', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_CONSIGNEE_DISABLED';
+update t_sys_param set PAR_NUMBER = 'A017', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'DC_MOBILE_BAK';
+update t_sys_param set PAR_NUMBER = 'A018', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_DECOCT_SHOW';
+update t_sys_param set PAR_NUMBER = 'A019', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_DEL_TIME';
+update t_sys_param set PAR_NUMBER = 'A020', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_COLUMN';
+update t_sys_param set PAR_NUMBER = 'A021', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_DEFAULT_NUMBER';
+update t_sys_param set PAR_NUMBER = 'A022', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_HIGHEST_MATS';
+update t_sys_param set PAR_NUMBER = 'A023', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_HIGHEST_MONEY';
+update t_sys_param set PAR_NUMBER = 'A024', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_HIGHEST_NUMBER';
+update t_sys_param set PAR_NUMBER = 'A025', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_LOWEST_MATS';
+update t_sys_param set PAR_NUMBER = 'A026', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_LOWEST_MONEY';
+update t_sys_param set PAR_NUMBER = 'A027', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_LOWEST_NUMBER';
+update t_sys_param set PAR_NUMBER = 'A028', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_MAXIMUM_AMOUNT';
+update t_sys_param set PAR_NUMBER = 'A029', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_EXTERNAL_TREATMENT_FEE';
+update t_sys_param set PAR_NUMBER = 'A030', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_GRANULE_SAME_PLACE';
+update t_sys_param set PAR_NUMBER = 'A031', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_ICD_DISABLED';
+update t_sys_param set PAR_NUMBER = 'A032', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INSURANCE';
+update t_sys_param set PAR_NUMBER = 'A033', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_COLUMN';
+update t_sys_param set PAR_NUMBER = 'A034', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_DEFAULT_NUMBER';
+update t_sys_param set PAR_NUMBER = 'A035', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_HIGHEST_MATS';
+update t_sys_param set PAR_NUMBER = 'A036', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_HIGHEST_MONEY';
+update t_sys_param set PAR_NUMBER = 'A037', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_HIGHEST_NUMBER';
+update t_sys_param set PAR_NUMBER = 'A038', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_LOWEST_MATS';
+update t_sys_param set PAR_NUMBER = 'A039', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_LOWEST_MONEY';
+update t_sys_param set PAR_NUMBER = 'A040', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_LOWEST_NUMBER';
+update t_sys_param set PAR_NUMBER = 'A041', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_MAXIMUM_AMOUNT';
+update t_sys_param set PAR_NUMBER = 'A042', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_ML';
+update t_sys_param set PAR_NUMBER = 'A043', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_PRODUCTION_CONTROL_NUM';
+update t_sys_param set PAR_NUMBER = 'A044', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_INTERNAL_PRODUCTION_TYPE_SHOW';
+update t_sys_param set PAR_NUMBER = 'A045', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_MEDICAL_INSURANCE_SOURCE';
+update t_sys_param set PAR_NUMBER = 'A046', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_MEDICINE_COMPARE_RULE';
+update t_sys_param set PAR_NUMBER = 'A047', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_PATENT_COLUMN';
+update t_sys_param set PAR_NUMBER = 'A048', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_PREPARATION_COLUMN';
+update t_sys_param set PAR_NUMBER = 'A049', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_SAVE_DOSAGE_STANDARD';
+update t_sys_param set PAR_NUMBER = 'A050', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_SAVE_DOSAGE_STANDARD_REPLACE';
+update t_sys_param set PAR_NUMBER = 'A051', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_SEARCH_RECIPE_MODE';
+update t_sys_param set PAR_NUMBER = 'A052', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_SEARCH_RECIPE_OPTIONS';
+update t_sys_param set PAR_NUMBER = 'A053', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_SEARCH_RECIPE_SORT';
+update t_sys_param set PAR_NUMBER = 'A054', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_SEARCH_RECIPE_TYPE';
+update t_sys_param set PAR_NUMBER = 'A055', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'APPOINT_AS_FORMULA';
+update t_sys_param set PAR_NUMBER = 'A056', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'APPOINT_RECIPE_LEVEL';
+update t_sys_param set PAR_NUMBER = 'A057', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'AUTO_UPDATE_PERSONAL_RULE_AUTH';
+update t_sys_param set PAR_NUMBER = 'A058', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PERSONAL_PRESCRIPTION_FILTER_DEPT';
+update t_sys_param set PAR_NUMBER = 'A059', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PERSONAL_PRESCRIPTION_FILTER_SELF_BY_INS';
+update t_sys_param set PAR_NUMBER = 'A060', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PERSONAL_PRESCRIPTION_MZ_ZY';
+update t_sys_param set PAR_NUMBER = 'A061', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'OPEN_APPOINT_RECIPE';
+update t_sys_param set PAR_NUMBER = 'A062', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRESCRIPTION_TRANSFER_ILLNESS_OPTIONS';
+update t_sys_param set PAR_NUMBER = 'A063', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRINT_PRESCRIPTION_SHOW';
+update t_sys_param set PAR_NUMBER = 'A064', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'PRINT_PRESCRIPTION_SHOW_QRCODE';
+update t_sys_param set PAR_NUMBER = 'A065', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'SAVE_PRESCRIPTION_NO';
+update t_sys_param set PAR_NUMBER = 'A066', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'SAVE_REGISTER_ID';
+update t_sys_param set PAR_NUMBER = 'A067', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'SYS_CHECK_DAILY_MAX_DOSE';
+update t_sys_param set PAR_NUMBER = 'A068', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'UPDATE_PRE_DEL_OLD';
+update t_sys_param set PAR_NUMBER = 'A069', PAR_CLASSIFY = '智能开方' where PAR_CODE = 'VALID_PRESCRIPTION_TYPE';
+update t_sys_param set PAR_NUMBER = 'B001', PAR_CLASSIFY = '药品目录' where PAR_CODE = 'CENTER_DRUG_MAPPING_STRATEGY';
+update t_sys_param set PAR_NUMBER = 'C001', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'CHECK_OR_NOT';
+update t_sys_param set PAR_NUMBER = 'C002', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'CHECK_OR_NOT_BY_SYS';
+update t_sys_param set PAR_NUMBER = 'C003', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'CHECK_PRESCRIPTION_TYPE';
+update t_sys_param set PAR_NUMBER = 'C004', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'PRESCRIPTION_CHECK_AUDITOR';
+update t_sys_param set PAR_NUMBER = 'C005', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'PRESCRIPTION_CHECK_FORCE';
+update t_sys_param set PAR_NUMBER = 'C006', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'PRESCRIPTION_CHECK_FRONT';
+update t_sys_param set PAR_NUMBER = 'C007', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'SAFETY_EVALUATION_SIGN';
+update t_sys_param set PAR_NUMBER = 'C008', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'SAFETY_EVALUATION_TIP';
+update t_sys_param set PAR_NUMBER = 'C009', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'SPECIAL_DRUGS_QUALIFICATIONS';
+update t_sys_param set PAR_NUMBER = 'C010', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'SYS_CHECK_FORMULA';
+update t_sys_param set PAR_NUMBER = 'C011', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'SYS_CHECK_PERSONAL_PRE';
+update t_sys_param set PAR_NUMBER = 'C012', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'SYS_CHECK_USER_NAME';
+update t_sys_param set PAR_NUMBER = 'C013', PAR_CLASSIFY = '安全合理用药' where PAR_CODE = 'SYS_CHECK_WORK_TIME';
+update t_sys_param set PAR_NUMBER = 'D001', PAR_CLASSIFY = '中医知识库' where PAR_CODE = 'KNOWLEDGE_NUMBER_HIDE';
+update t_sys_param set PAR_NUMBER = 'D002', PAR_CLASSIFY = '中医知识库' where PAR_CODE = 'KNOWLEDGE_SHOW_TYPE';
+update t_sys_param set PAR_NUMBER = 'D003', PAR_CLASSIFY = '中医知识库' where PAR_CODE = 'SYS_CHECK_KNOW_PRE';
+update t_sys_param set PAR_NUMBER = 'E001', PAR_CLASSIFY = '第三方对接' where PAR_CODE = 'CHECK_PATIENT_INFO';
+update t_sys_param set PAR_NUMBER = 'E002', PAR_CLASSIFY = '第三方对接' where PAR_CODE = 'PRE_INTERFACE';
+update t_sys_param set PAR_NUMBER = 'H001', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'PRESCRIPTION_SAVE_DOSAGE_ULTRALIMIT_TIPS';
+update t_sys_param set PAR_NUMBER = 'H002', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'PRESCRIPTION_SPECIAL_HIGHEST_MATS';
+update t_sys_param set PAR_NUMBER = 'H003', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'PRESCRIPTION_SPECIAL_LOWEST_MATS';
+update t_sys_param set PAR_NUMBER = 'H004', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'INSURANCE_LIMIT_TIP';
+update t_sys_param set PAR_NUMBER = 'H005', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'PRESCRIPTION_YB_SHOW_UNGUENT';
+update t_sys_param set PAR_NUMBER = 'H006', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'SPECIAL_DIS_MODIFY_COLUMN';
+update t_sys_param set PAR_NUMBER = 'H007', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'INSURANCE_LIMIT_OBJECT';
+update t_sys_param set PAR_NUMBER = 'H008', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'PRESCRIPTION_SPECIAL_DISEASE_RANGE_PICKER_DISABLED';
+update t_sys_param set PAR_NUMBER = 'H009', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'SPECIAL_DIS_CAN_CHOOSE';
+update t_sys_param set PAR_NUMBER = 'H010', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'SPECIAL_DIS_FROM_HIS';
+update t_sys_param set PAR_NUMBER = 'H011', PAR_CLASSIFY = '医保控制' where PAR_CODE = 'SPECIAL_DIS_PRES_SOURCE';
+update t_sys_param set PAR_NUMBER = 'I001', PAR_CLASSIFY = '监管平台' where PAR_CODE = 'GUOKAO_INDICATOR_ANALYSIS';
+update t_sys_param set PAR_NUMBER = 'I002', PAR_CLASSIFY = '监管平台' where PAR_CODE = 'PRESCRIPTION_COVERAGE';
+update t_sys_param set PAR_NUMBER = 'J001', PAR_CLASSIFY = '电子病历' where PAR_CODE = 'DIAGNOSIS_FUNCTION_AFTER_RECORD';
+update t_sys_param set PAR_NUMBER = 'J002', PAR_CLASSIFY = '电子病历' where PAR_CODE = 'PRINT_RECORD_SHOW';
+update t_sys_param set PAR_NUMBER = 'J003', PAR_CLASSIFY = '电子病历' where PAR_CODE = 'RECORD_MUST_SAVE';
+update t_sys_param set PAR_NUMBER = 'J004', PAR_CLASSIFY = '电子病历' where PAR_CODE = 'REC_PDF_TEMPLATE';
+update t_sys_param set PAR_NUMBER = 'J005', PAR_CLASSIFY = '电子病历' where PAR_CODE = 'TRANSFER_RECORD_SHOW';