Merge branch 'refs/heads/hph' into dev
This commit is contained in:
commit
7daa596d31
|
|
@ -112,7 +112,7 @@ public class ConsMsgConsumer {
|
|||
|
||||
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()));
|
||||
|
||||
if (Objects.isNull(key)) {
|
||||
|
|
|
|||
|
|
@ -880,7 +880,7 @@ public class PayService {
|
|||
flow.setBizCode("accountReturnPay");
|
||||
flow.setBizName("会员储值卡退款");
|
||||
flow.setType("+");
|
||||
flow.setAmount(orderInfo.getOrderAmount());
|
||||
flow.setAmount(newOrderInfo.getOrderAmount());
|
||||
flow.setBalance(user.getAmount());
|
||||
flow.setCreateTime(new Date());
|
||||
tbShopUserFlowMapper.insert(flow);
|
||||
|
|
|
|||
Loading…
Reference in New Issue