From 7ac236b0e3e94281f0b5a2918d1650c0707806fc Mon Sep 17 00:00:00 2001 From: wulin Date: Thu, 10 Dec 2020 13:53:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E9=80=81=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/controller/ResultRecordController.java | 3 --- .../lz/modules/job/business/DingtalkBusiness.java | 13 ++++++------- 2 files changed, 6 insertions(+), 10 deletions(-) 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 878206c1..46587ba6 100644 --- a/src/main/java/com/lz/modules/app/controller/ResultRecordController.java +++ b/src/main/java/com/lz/modules/app/controller/ResultRecordController.java @@ -633,9 +633,6 @@ public class ResultRecordController extends AbstractController { resultRecordDetailDto.setRecortModelDtos(resultRecortModelDtos); return R.ok().put("data", resultRecordDetailDto); - - - } //目前支持已生成对象的。不支持当前非对象表中的数据,如果要使用请用常量值 diff --git a/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java b/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java index a1b63bef..3fc77f65 100644 --- a/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java +++ b/src/main/java/com/lz/modules/job/business/DingtalkBusiness.java @@ -679,12 +679,10 @@ public class DingtalkBusiness { "&container_type=work_platform&app_id=0_" + appid + "&redirect_type=jump&redirect_url=" + url; - for (StaffEntity staff:staffs - ) { - - if(m < 100){ - userIds += (staff.getEmployeeId() + ","); - }else{ + for (int i = 0; i < staffs.size(); i++) { + StaffEntity staff = staffs.get(i); + userIds += (staff.getEmployeeId() + ","); + if(m >= 99 || i == staffs.size() - 1){ //发送消息 StaffEntity info = new StaffEntity(); info.setId(0L); @@ -692,7 +690,8 @@ public class DingtalkBusiness { dingTalkUtil.sendSingleActionCardMSG(appid, info, WorkMsgTypeEnum.TASK_UPDATE.getTitle(), WorkMsgTypeEnum.TASK_UPDATE.getContent(), WorkMsgTypeEnum.TASK_UPDATE.getBtnText(), url, token); m = 0; - userIds = staff.getEmployeeId() + ","; + userIds = ""; + continue; } m++; }