修改待办实现发送

This commit is contained in:
wulin 2020-11-23 11:24:32 +08:00
parent 0124793b11
commit dd39148874

View File

@ -270,8 +270,8 @@ public class DingtalkBusiness {
public String sendWorkMSGWithAsyn(StaffSimpleInfo fromStaff, List<StaffSimpleInfo> toStaffids, int type) { public String sendWorkMSGWithAsyn(StaffSimpleInfo fromStaff, List<StaffSimpleInfo> toStaffids, int type) {
if(toStaffids != null && toStaffids.size() > 0){
if (toStaffids.get(0).getEmployeeId() == null || toStaffids.get(0).getEmployeeId().length() == 0) { if (toStaffids != null && toStaffids.size() > 0 && (toStaffids.get(0).getEmployeeId() == null || toStaffids.get(0).getEmployeeId().length() == 0)) {
//查询第三方id //查询第三方id
List<Long> ids = toStaffids.stream().map(new Function<StaffSimpleInfo, Long>() { List<Long> ids = toStaffids.stream().map(new Function<StaffSimpleInfo, Long>() {
@Override @Override
@ -294,8 +294,7 @@ public class DingtalkBusiness {
thread.start(); thread.start();
return "OK"; return "OK";
}
return "error";
} }