diff --git a/src/main/java/digital/laboratory/platform/entrustment/dto/EntrustAlterApplyDTO.java b/src/main/java/digital/laboratory/platform/entrustment/dto/EntrustAlterApplyDTO.java index e8f5012..df9397c 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/dto/EntrustAlterApplyDTO.java +++ b/src/main/java/digital/laboratory/platform/entrustment/dto/EntrustAlterApplyDTO.java @@ -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; } \ No newline at end of file diff --git a/src/main/java/digital/laboratory/platform/entrustment/entity/EntrustAlterApply.java b/src/main/java/digital/laboratory/platform/entrustment/entity/EntrustAlterApply.java index ca799da..a619718 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/entity/EntrustAlterApply.java +++ b/src/main/java/digital/laboratory/platform/entrustment/entity/EntrustAlterApply.java @@ -37,6 +37,11 @@ public class EntrustAlterApply extends BaseEntity { */ private LocalDate applyDate; + /** + * 申请原因 + */ + private String applyReason; + /** * 申请单位 */ diff --git a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java index 5d4110b..60df118 100644 --- a/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java +++ b/src/main/java/digital/laboratory/platform/entrustment/service/impl/EntrustAlterApplyServiceImpl.java @@ -58,6 +58,7 @@ public class EntrustAlterApplyServiceImpl extends ServiceImpllambdaUpdate().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())); }