更新
1.申请修改委托信息模块代码
This commit is contained in:
@@ -26,6 +26,9 @@ public class EntrustAlterApplyDTO {
|
||||
@NotBlank(message = "关联的委托id不能为空!")
|
||||
private String entrustId;
|
||||
|
||||
@ApiModelProperty(value = "申请原因")
|
||||
private String applyReason;
|
||||
|
||||
@ApiModelProperty(value = " 0 保存 | 1 提交 (如果调用的是修改接口 1则是撤销操作)")
|
||||
private Integer opCode;
|
||||
}
|
||||
@@ -37,6 +37,11 @@ public class EntrustAlterApply extends BaseEntity {
|
||||
*/
|
||||
private LocalDate applyDate;
|
||||
|
||||
/**
|
||||
* 申请原因
|
||||
*/
|
||||
private String applyReason;
|
||||
|
||||
/**
|
||||
* 申请单位
|
||||
*/
|
||||
|
||||
@@ -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()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user