合并时 名称问题
This commit is contained in:
@@ -170,8 +170,9 @@ public class ShopProdStatisticServiceImpl extends ServiceImpl<ShopProdStatisticM
|
|||||||
// 创建合并后的对象
|
// 创建合并后的对象
|
||||||
ShopProdStatistic merged = new ShopProdStatistic();
|
ShopProdStatistic merged = new ShopProdStatistic();
|
||||||
merged.setId(stat1.getId());
|
merged.setId(stat1.getId());
|
||||||
merged.setProdId(stat1.getProdId());
|
|
||||||
merged.setShopId(stat1.getShopId());
|
merged.setShopId(stat1.getShopId());
|
||||||
|
merged.setProdId(stat1.getProdId());
|
||||||
|
merged.setProductName(stat1.getProductName());
|
||||||
|
|
||||||
// 安全处理BigDecimal相加,处理null值
|
// 安全处理BigDecimal相加,处理null值
|
||||||
merged.setSaleCount(safeAdd(stat1.getSaleCount(), stat2.getSaleCount()));
|
merged.setSaleCount(safeAdd(stat1.getSaleCount(), stat2.getSaleCount()));
|
||||||
|
|||||||
Reference in New Issue
Block a user