修改发送通知代码
This commit is contained in:
parent
08da061ee7
commit
7ac236b0e3
@ -633,9 +633,6 @@ public class ResultRecordController extends AbstractController {
|
||||
resultRecordDetailDto.setRecortModelDtos(resultRecortModelDtos);
|
||||
|
||||
return R.ok().put("data", resultRecordDetailDto);
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//目前支持已生成对象的。不支持当前非对象表中的数据,如果要使用请用常量值
|
||||
|
||||
@ -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++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user