From 7e52f375aea9e6315625d0ac0f7b69de199f433b Mon Sep 17 00:00:00 2001 From: fhx <308050795@qq.com> Date: 星期四, 01 八月 2024 16:14:50 +0800 Subject: [PATCH] 1.新增处理治疗单项目模式数据逻辑代码 --- phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 deletions(-) diff --git a/phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java b/phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java index aaac92d..83262d8 100644 --- a/phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java +++ b/phi_platform_user/src/main/java/com/hx/phip/controller/treat/TreatController.java @@ -122,9 +122,14 @@ //寮�鍚绾跨▼澶勭悊鐢ㄦ埛绉戝鍏崇郴 ExecutorServiceTool fixedThreadPool = new ExecutorServiceTool(1, 1); try { - fixedThreadPool.getThreadPool().execute(() -> treatV3Service.doctorRoomHandler(treatSingle.getId())); + fixedThreadPool.getThreadPool().execute(() ->{ + //澶勭悊鐢ㄦ埛绉戝鍏崇郴 + treatV3Service.doctorRoomHandler(treatSingle.getId()); + //澶勭悊娌荤枟鍗曢」鐩ā寮忔暟鎹� + treatV3Service.handleModeData(projectList); + }); }catch (Exception e){ - logger.error("寮�鍚绾跨▼澶勭悊鐢ㄦ埛绉戝鍏崇郴澶辫触"+ ExceptionTool.getExceptionInfo(e)); + logger.error("鏂板娌荤枟鍗�-寮�鍚绾跨▼澶勭悊澶辫触锛�"+ ExceptionTool.getExceptionInfo(e)); }finally { fixedThreadPool.shutdown(); } @@ -204,6 +209,19 @@ editSendMsg(treatSingle.getId(), visitOrder.getUserId()); } + //寮�鍚绾跨▼澶勭悊 + ExecutorServiceTool fixedThreadPool = new ExecutorServiceTool(1, 1); + try { + fixedThreadPool.getThreadPool().execute(() ->{ + //澶勭悊娌荤枟鍗曢」鐩ā寮忔暟鎹� + treatV3Service.handleModeData(projectList); + }); + }catch (Exception e){ + logger.error("缂栬緫娌荤枟鍗�-寮�鍚绾跨▼澶勭悊澶辫触锛�"+ ExceptionTool.getExceptionInfo(e)); + }finally { + fixedThreadPool.shutdown(); + } + //杩斿洖id JSONObject data = new JSONObject(); data.put("treatSingleId", treatSingle.getId()); -- Gitblit v1.8.0