Prechádzať zdrojové kódy

定时任务的时间设置错误了

xiaochan 3 rokov pred
rodič
commit
87422bb0b4

+ 3 - 3
src/main/java/thyyxxk/webserver/dao/his/medicalinsurance/UpIdCollectionDao.java

@@ -157,9 +157,9 @@ public interface UpIdCollectionDao {
             "       ssrq as oprn_oprt_date, " +
             "       (select rtrim(isnull(yb_code,9)) from zd_anaesthesia where code = mzff ) as anst_way, " +
             "       (select top(1) rtrim(name) from a_employee_mi where code = ssys) as oper_dr_name, " +
-            "       (select isnull(yb_code,code)  from a_employee_mi where code = ssys) as oper_dr_code, " +
-            "       (select top(1) rtrim(name) from a_employee_mi where code = mzys) as  anst_dr_name, " +
-            "       (select isnull(yb_code,code) from a_employee_mi where code = mzys)  as anst_dr_code " +
+            "       (select yb_code from a_employee_mi where code = ssys) as oper_dr_code, " +
+            "       (select rtrim(name) from a_employee_mi where code = mzys) as  anst_dr_name, " +
+            "       (select yb_code from a_employee_mi where code = mzys)  as anst_dr_code " +
             "       from ${tableName} " +
             "where zyh = #{patNo} and zycs = #{times} and isnull(ssbm,'-') <> '-' ")
     List<OprninfoUpld> oprninfoUplds(@Param("patNo") String patNo,

+ 2 - 2
src/main/java/thyyxxk/webserver/scheduled/FeiYongJieShouChongSuan.java

@@ -33,9 +33,9 @@ public class FeiYongJieShouChongSuan {
         this.patientService = patientService;
     }
 
-    @Scheduled(cron = "0 30 11 * * ?")
+    @Scheduled(cron = "0 30 23 * * ?")
     public void jieShouFeiYong() {
-        // 每天凌晨 1 点 执行
+        // 每天 23 点 执行
         if (feiYongJieShou) {
             List<Patient> xuYaoJieShouDeFeiYong = dao.xuYaoJieShouFeiYong();
             for (Patient item : xuYaoJieShouDeFeiYong) {

+ 9 - 1
src/main/java/thyyxxk/webserver/service/medicalinsurance/SetlListUpldService.java

@@ -83,6 +83,14 @@ public class SetlListUpldService {
         if (upldCollection.getCode() != 200) {
             return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, upldCollection.getMessage());
         }
+        for (OprninfoUpld item : upldCollection.getData().getOprninfo()) {
+            if (StringUtil.isBlank(item.getOperDrCode())) {
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("医生:【%s】,没有医保编码请去职工字典数据维护中添加", item.getOperDrName()));
+            }
+            if (StringUtil.isBlank(item.getAnstDrCode())) {
+                return ResultVoUtil.fail(ExceptionEnum.LOGICAL_ERROR, String.format("医生:【%s】,没有医保编码请去职工字典数据维护中添加", item.getAnstDrName()));
+            }
+        }
         JSONObject input = new JSONObject();
         input.put("setlinfo", JSONObject.parseObject(JSONObject.toJSONStringWithDateFormat(upldCollection.getData().getSetlinfo(), "yyyy-MM-dd HH:mm:ss")));
         input.put("payinfo", JSONArray.parseArray(JSONArray.toJSONString(upldCollection.getData().getPayinfo())));
@@ -380,7 +388,7 @@ public class SetlListUpldService {
             temp.getSetlinfo().setRespNursName(zeRenHuShi.getName());
         }
 
-        // TODO: 2021/12/16 新生儿入院类型 没有
+        // TODO: 2021/12/16 新生儿入院类型 没有 门诊慢特病也没有
         return ResultVoUtil.success(temp);
     }