Merge remote-tracking branch 'origin/master'
# Conflicts: # cash-api/account-server/src/main/java/com/czg/controller/admin/ShopUserController.java
This commit is contained in:
@@ -39,7 +39,7 @@ public class ShopUserMoneyEditDTO {
|
|||||||
@DecimalMax("9999")
|
@DecimalMax("9999")
|
||||||
private BigDecimal money;
|
private BigDecimal money;
|
||||||
|
|
||||||
private ShopUserFlowBizEnum bizEnum;
|
private String bizEnum;
|
||||||
/**
|
/**
|
||||||
* 备注
|
* 备注
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
|
|||||||
userFlow.setShopId(userInfo.getShopId());
|
userFlow.setShopId(userInfo.getShopId());
|
||||||
userFlow.setAmount(shopUserEditDTO.getMoney());
|
userFlow.setAmount(shopUserEditDTO.getMoney());
|
||||||
userFlow.setBalance(shopUserEditDTO.getType() == 0 ? userInfo.getAmount().subtract(shopUserEditDTO.getMoney()) : userInfo.getAmount().add(shopUserEditDTO.getMoney()));
|
userFlow.setBalance(shopUserEditDTO.getType() == 0 ? userInfo.getAmount().subtract(shopUserEditDTO.getMoney()) : userInfo.getAmount().add(shopUserEditDTO.getMoney()));
|
||||||
userFlow.setBizCode(shopUserEditDTO.getBizEnum().getCode());
|
userFlow.setBizCode(shopUserEditDTO.getBizEnum());
|
||||||
userFlow.setType(shopUserEditDTO.getType() == 0 ? "-" : "+");
|
userFlow.setType(shopUserEditDTO.getType() == 0 ? "-" : "+");
|
||||||
userFlow.setRemark(shopUserEditDTO.getRemark());
|
userFlow.setRemark(shopUserEditDTO.getRemark());
|
||||||
userFlow.setRelationId(shopUserEditDTO.getRelationId());
|
userFlow.setRelationId(shopUserEditDTO.getRelationId());
|
||||||
|
|||||||
Reference in New Issue
Block a user