修改待办实现发送
This commit is contained in:
parent
0124793b11
commit
dd39148874
@ -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";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user