From c8ea133efb7e8f709ec6e0ffc80af639cd5d8317 Mon Sep 17 00:00:00 2001 From: wulin Date: Wed, 26 Aug 2020 11:31:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=B9=E9=87=8F=E6=8E=A8?= =?UTF-8?q?=E9=80=81=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/app/controller/ResultRecordController.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/lz/modules/app/controller/ResultRecordController.java b/src/main/java/com/lz/modules/app/controller/ResultRecordController.java index 6e4056f4..79fb5774 100644 --- a/src/main/java/com/lz/modules/app/controller/ResultRecordController.java +++ b/src/main/java/com/lz/modules/app/controller/ResultRecordController.java @@ -438,8 +438,15 @@ public class ResultRecordController extends AbstractController { new Thread(new Runnable() { @Override public void run() { + R r = null; for (ResultRecord resultRecord : resultRecords) { - resultRecordService.approval(resultRecord.getId(), getUserId()); + r = resultRecordService.approval(resultRecord.getId(), getUserId()); + } + if(r != null && r.isSuccess()){//批量提交 + StaffEntity mySelf = (StaffEntity)r.get("from"); + StaffEntity toSelf = (StaffEntity)r.get("to"); + WorkMsgTypeEnum workMsgTypeEnum = (WorkMsgTypeEnum)r.get("type"); + sendWorkMSG(mySelf, toSelf, workMsgTypeEnum, 0L, 2); } } }).start();