合并时 名称问题

This commit is contained in:
2025-11-24 16:52:34 +08:00
parent f8eae8d1dd
commit 47ffe15255

View File

@@ -170,8 +170,9 @@ public class ShopProdStatisticServiceImpl extends ServiceImpl<ShopProdStatisticM
// 创建合并后的对象
ShopProdStatistic merged = new ShopProdStatistic();
merged.setId(stat1.getId());
merged.setProdId(stat1.getProdId());
merged.setShopId(stat1.getShopId());
merged.setProdId(stat1.getProdId());
merged.setProductName(stat1.getProductName());
// 安全处理BigDecimal相加处理null值
merged.setSaleCount(safeAdd(stat1.getSaleCount(), stat2.getSaleCount()));