会员增余额修改

This commit is contained in:
张松 2025-02-19 14:17:45 +08:00
parent bac894dfbc
commit 869dc9bb5d
3 changed files with 9 additions and 2 deletions

View File

@ -54,6 +54,11 @@ public class ShopUserFlow implements Serializable {
private String remark;
/**
* 是否可退款
*/
private Integer isCanRefund;
/**
* 关联id
* 订单支付/订单退款/霸王餐时 订单id

View File

@ -25,11 +25,12 @@ public enum ShopUserFlowBizEnum {
// 管理员手动增减余额
ADMIN_IN("adminIn"),
//管理员退款充值
ADMIN_REFUND("adminRefund"),
// ADMIN_REFUND("adminRefund"),
//adminOut
ADMIN_OUT("adminOut"),
//adminInOut
ADMIN_IN_OUT("adminInOut"),;
// ADMIN_IN_OUT("adminInOut"),
;
private final String code;
ShopUserFlowBizEnum(String code) {

View File

@ -91,6 +91,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
throw new ApiNotPrintException("增减用户余额操作失败");
}
userFlow.setIsCanRefund(0);
userFlow.setUserId(userInfo.getUserId());
userFlow.setShopId(userInfo.getShopId());
userFlow.setAmount(shopUserEditDTO.getMoney());