Merge branch 'refs/heads/hph' into dev

This commit is contained in:
GYJ
2024-07-06 20:20:33 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -112,7 +112,7 @@ public class ConsMsgConsumer {
if (Objects.nonNull(tbConsInfo)) { if (Objects.nonNull(tbConsInfo)) {
if (N.gt(tbConsInfo.getConWarning(), tbConsInfo.getStockNumber())) { if (N.gt(tbConsInfo.getConWarning(), tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).abs())) {
String key = redisUtil.getMessage(RedisCst.ORDER_MESSAGE.concat(tbConsInfo.getShopId().toString()).concat("#").concat(tbConsInfo.getId().toString())); String key = redisUtil.getMessage(RedisCst.ORDER_MESSAGE.concat(tbConsInfo.getShopId().toString()).concat("#").concat(tbConsInfo.getId().toString()));
if (Objects.isNull(key)) { if (Objects.isNull(key)) {

View File

@@ -880,7 +880,7 @@ public class PayService {
flow.setBizCode("accountReturnPay"); flow.setBizCode("accountReturnPay");
flow.setBizName("会员储值卡退款"); flow.setBizName("会员储值卡退款");
flow.setType("+"); flow.setType("+");
flow.setAmount(orderInfo.getOrderAmount()); flow.setAmount(newOrderInfo.getOrderAmount());
flow.setBalance(user.getAmount()); flow.setBalance(user.getAmount());
flow.setCreateTime(new Date()); flow.setCreateTime(new Date());
tbShopUserFlowMapper.insert(flow); tbShopUserFlowMapper.insert(flow);