Browse Source

专家请假之后修改名单确认状态

master
WendyYang 1 year ago
parent
commit
59561e1875
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      pmapi/src/main/java/com/ningdatech/pmapi/leave/manage/LeaveManage.java

+ 6
- 0
pmapi/src/main/java/com/ningdatech/pmapi/leave/manage/LeaveManage.java View File

@@ -215,6 +215,12 @@ public class LeaveManage {
if (ExpertInviteTypeEnum.RANDOM.eq(meeting.getInviteType())) {
inviteTask.notifyInviteTask(meeting.getId(), Boolean.FALSE);
}
if (meeting.getConfirmedRoster()) {
LambdaUpdateWrapper<Meeting> mUpdate = Wrappers.lambdaUpdate(Meeting.class)
.set(Meeting::getConfirmedRoster, Boolean.FALSE)
.eq(Meeting::getId, meeting.getId());
meetingService.update(mUpdate);
}
// 临时请假无需审核
leave.setAuditId(0L);
leave.setStatus(LeaveStatusEnum.PASSED.getCode());


Loading…
Cancel
Save