Commit 65f1c84b authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 16766615 ba36094b
......@@ -351,7 +351,10 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
Rest<String> mobileRest = getPersonById(result.getOriginatorUserId());
if (mobileRest.getCode() == Rest.SUCCESS) {
String mobile = mobileRest.getData();
StaffEntity staffEntity = staffService.selectOne(new StaffQuery().phoneNumber(mobile));
StaffQuery staffQuery = new StaffQuery();
staffQuery.setStatusList(Arrays.asList(1,2,3));
staffQuery.setPhoneNumber(mobile);
StaffEntity staffEntity = staffService.selectOne(staffQuery);
if (!ObjectUtils.isEmpty(staffEntity)) {
leaveRecordEntity.setLeavePersonId(staffEntity.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment