|
@@ -1,5 +1,6 @@
|
|
|
package thyyxxk.webserver.service.zhuyuanyisheng;
|
|
|
|
|
|
+import cn.hutool.core.thread.ThreadUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import cn.hutool.extra.spring.SpringUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
@@ -306,7 +307,11 @@ public class YiZhuLuRuServer {
|
|
|
sqlSession.close();
|
|
|
}
|
|
|
|
|
|
- getThis().drgOrderUpdate(patInfo.getInpatientNo() + "_" + patInfo.getAdmissTimes() + "_" + patInfo.getLedgerSn());
|
|
|
+
|
|
|
+ ThreadUtil.execAsync(() -> {
|
|
|
+ drgOrderUpdate(patInfo.getInpatientNo() + "_" + patInfo.getAdmissTimes() + "_" + patInfo.getLedgerSn());
|
|
|
+ });
|
|
|
+
|
|
|
sendAMessageToTheNurse(param, userCode, patInfo, "新增医嘱");
|
|
|
return ResultVoUtil.success(ExceptionEnum.SUCCESS_AND_NOTIFICATION);
|
|
|
}
|
|
@@ -337,21 +342,18 @@ public class YiZhuLuRuServer {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* 在开医嘱时 drg 需要调用一下这个接口
|
|
|
*
|
|
|
* @param patientNo 患者id
|
|
|
*/
|
|
|
- @Async
|
|
|
public void drgOrderUpdate(String patientNo) {
|
|
|
try {
|
|
|
JSONObject jsonDrg = new JSONObject();
|
|
|
jsonDrg.put("visit_id", Collections.singletonList(patientNo));
|
|
|
jsonDrg.put("scene_type", 1);
|
|
|
- JSONObject js = drgWebServices.etlClient(jsonDrg);
|
|
|
- } catch (Exception e) {
|
|
|
- e.printStackTrace();
|
|
|
+ drgWebServices.etlClient(jsonDrg);
|
|
|
+ } catch (Exception ignored) {
|
|
|
}
|
|
|
}
|
|
|
|