Commit ba36094b authored by 周亚武's avatar 周亚武

钉钉请假数据关联离职状态

parent 3b2867e7
...@@ -351,7 +351,10 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID ...@@ -351,7 +351,10 @@ public class DingPersonServiceImpl extends AbstractDingTalkService implements ID
Rest<String> mobileRest = getPersonById(result.getOriginatorUserId()); Rest<String> mobileRest = getPersonById(result.getOriginatorUserId());
if (mobileRest.getCode() == Rest.SUCCESS) { if (mobileRest.getCode() == Rest.SUCCESS) {
String mobile = mobileRest.getData(); 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)) { if (!ObjectUtils.isEmpty(staffEntity)) {
leaveRecordEntity.setLeavePersonId(staffEntity.getId()); 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