Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -66,7 +66,7 @@ public class ShopTableServiceImpl extends ServiceImpl<ShopTableMapper, ShopTable
|
||||
ShopTable shopTable = new ShopTable();
|
||||
shopTable.setShopId(shopId);
|
||||
shopTable.setName(name);
|
||||
shopTable.setMaxCapacity(shopTableAddDTO.getCapacity());
|
||||
shopTable.setMaxCapacity(shopTableAddDTO.getMaxCapacity());
|
||||
shopTable.setAreaId(shopTableAddDTO.getAreaId());
|
||||
shopTable.setStatus(ShopTableStatusEnum.CLOSED.getValue());
|
||||
tableArrayList.add(shopTable);
|
||||
|
||||
@@ -91,12 +91,13 @@ 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());
|
||||
userFlow.setBalance(shopUserEditDTO.getType() == 0 ? userInfo.getAmount().subtract(shopUserEditDTO.getMoney()) : userInfo.getAmount().add(shopUserEditDTO.getMoney()));
|
||||
userFlow.setBizCode(shopUserEditDTO.getBizEnum().getCode());
|
||||
userFlow.setType(shopUserEditDTO.getType() == 0 ? "-" : "+");
|
||||
// userFlow.setType(shopUserEditDTO.getType() == 0 ? "-" : "+");
|
||||
userFlow.setRemark(shopUserEditDTO.getRemark());
|
||||
userFlow.setRelationId(shopUserEditDTO.getRelationId());
|
||||
shopUserFlowService.save(userFlow);
|
||||
|
||||
Reference in New Issue
Block a user