|
|
|
@ -58,6 +58,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM |
|
|
|
|
DLPUser user = SecurityUtils.getUser(); |
|
|
|
|
entrustAlterApply.setApplicant(user.getId()); |
|
|
|
|
entrustAlterApply.setApplyOrgId(user.getOrgId()); |
|
|
|
|
entrustAlterApply.setApplyReason(dto.getApplyReason()); |
|
|
|
|
if (dto.getOpCode() == 0) { |
|
|
|
|
entrustAlterApply.setStatus(EntrustAlterApplyStatus.WAIT_SUBMIT_APPLY.getStatus()); |
|
|
|
|
} else if (dto.getOpCode() == 1) { |
|
|
|
@ -109,6 +110,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpl<EntrustAlterApplyM |
|
|
|
|
} |
|
|
|
|
return super.update(Wrappers.<EntrustAlterApply>lambdaUpdate().eq(EntrustAlterApply::getId, dto.getId()) |
|
|
|
|
.set(EntrustAlterApply::getEntrustId, dto.getEntrustId()) |
|
|
|
|
.set(StrUtil.isNotBlank(dto.getApplyReason()), EntrustAlterApply::getApplyReason, dto.getApplyReason()) |
|
|
|
|
.set(dto.getOpCode() == 1, |
|
|
|
|
EntrustAlterApply::getStatus, EntrustAlterApplyStatus.WAIT_SUBMIT_APPLY.getStatus())); |
|
|
|
|
} |
|
|
|
|