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();