diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenantbalance/vo/TenantBalanceAddReqVO.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenantbalance/vo/TenantBalanceAddReqVO.java index 31ee213..9b8eb29 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenantbalance/vo/TenantBalanceAddReqVO.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/controller/admin/tenantbalance/vo/TenantBalanceAddReqVO.java @@ -21,7 +21,6 @@ public class TenantBalanceAddReqVO { @NotNull(message = "增加的余额不能为空") private Integer amount; - @Schema(description = "变动描述", example = "充值") - @NotNull(message = "变动描述不能为空") - private String description; + @Schema(description = "备注", example = "备注") + private String remark; } diff --git a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/tenantbalance/TenantBalanceServiceImpl.java b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/tenantbalance/TenantBalanceServiceImpl.java index 3ee1644..07b8e98 100644 --- a/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/tenantbalance/TenantBalanceServiceImpl.java +++ b/yudao-module-system/src/main/java/cn/iocoder/yudao/module/system/service/tenantbalance/TenantBalanceServiceImpl.java @@ -141,7 +141,8 @@ public class TenantBalanceServiceImpl implements TenantBalanceService { tenantPointsDO.setBalance(newBalance); tenantPointsDO.setOperatorId(loginUser.getId()); tenantPointsDO.setType(RECHARGE.getDesc()); // RECHARGE / BONUS / ... - tenantPointsDO.setDescription(addReqVO.getDescription()); + tenantPointsDO.setDescription("总后台充值,金额:"+addReqVO.getAmount()); + tenantPointsDO.setRemark(addReqVO.getRemark()); tenantPointsDO.setBizNo(recharge); tenantPointsMapper.insert(tenantPointsDO); }