1.库存返还问题修复

This commit is contained in:
SongZhang 2024-07-25 16:12:08 +08:00
parent 1bf12d880c
commit f66829f69a
2 changed files with 4 additions and 3 deletions

View File

@ -126,6 +126,7 @@ public class ConsMsgConsumer {
String key=RedisCst.ORDER_MESSAGE.concat(tbConsInfo.getShopId().toString()).concat("#").concat(tbConsInfo.getId().toString()).concat("#").concat(tbUserShopMsg.getOpenId());
String value = redisUtil.getMessage(key);
log.info("redis_key:{}",value);
log.info("开始推送耗材模板消息rediskey{}", value);
if (Objects.isNull(value)) {
JSONObject jsonObject = wxAccountUtil.sendStockWarnMsg("耗材库存不足", tbConsInfo.getConName(),
tbConsInfo.getStockNumber().subtract(tbConsInfo.getStockConsume()).setScale(2, BigDecimal.ROUND_DOWN).toPlainString(), tbUserShopMsg.getOpenId());

View File

@ -863,9 +863,9 @@ public class OrderService {
cashierCartMapper.deleteBymasterId(cartVo.getMasterId(), Integer.valueOf(cartVo.getShopId()), day, "create", cartVo.getUuid());
if(ObjectUtil.isNotEmpty(productSkuPos)&&productSkuPos.size()>0){
tbProductSkuMapper.batchStockNum(productSkuPos);
}
// if(ObjectUtil.isNotEmpty(productSkuPos)&&productSkuPos.size()>0){
// tbProductSkuMapper.batchStockNum(productSkuPos);
// }