1.模板消息负值不推送问题修复

This commit is contained in:
2024-07-25 17:02:14 +08:00
parent 14f9f36ef5
commit 839a7fe3a6
3 changed files with 6 additions and 4 deletions

View File

@@ -281,7 +281,7 @@ public class OrderService {
List<TbShopOpenId> shopOpenIds = shopOpenIdMapper.selectByShopId(Integer.valueOf(product.getShopId()));
shopOpenIds.forEach(item -> {
wxAccountUtil.sendStockWarnMsg("商品库存不足", product.getName(),
product.getIsDistribute() == 1 ? String.valueOf(product.getStockNumber()-num) : String.valueOf(productSku.getStockNumber() - num), item.getOpenId());
product.getIsDistribute() == 1 ? product.getStockNumber()-num : (int) (productSku.getStockNumber() - num), item.getOpenId());
});
}
}