```更改外出申请的外勤打卡权限设置方法
更新了外出申请逻辑,使用新的`updateFieldworkType`方法替代`updateFieldwork`以设置外勤打卡权限。这旨在更好地管理外出类型的打卡权限。 ```
This commit is contained in:
parent
c459f0d0d5
commit
6fd61c63db
@ -84,7 +84,7 @@ public class BpmOAGoOutServiceImpl extends BpmOABaseService implements BpmOAGoOu
|
||||
// 发起外出申请后,判断是否是当天的外出
|
||||
if (goOut.getStartTime().toLocalDate().isEqual(LocalDate.now())) {
|
||||
// 设置外勤打卡权限
|
||||
userApi.updateFieldwork(getLoginUserId(), 1);
|
||||
userApi.updateFieldworkType(getLoginUserId(), 1);
|
||||
}
|
||||
|
||||
return goOut.getId();
|
||||
@ -103,7 +103,7 @@ public class BpmOAGoOutServiceImpl extends BpmOABaseService implements BpmOAGoOu
|
||||
|| BpmProcessInstanceResultEnum.BACK.getResult().equals(result)) {
|
||||
|
||||
// 发起外出申请后,设置关闭外勤打卡权限
|
||||
userApi.updateFieldwork(getLoginUserId(), 0);
|
||||
userApi.updateFieldworkType(getLoginUserId(), 0);
|
||||
}
|
||||
|
||||
goOutMapper.updateById(new BpmOAGoOutDO().setId(id).setResult(result));
|
||||
|
Loading…
Reference in New Issue
Block a user