导入增加成本价

This commit is contained in:
zjf committed 2025-06-13 13:46:41 +08:00
1 parent 08890883c4
commit 5c480b5932
1 file changed
+4
@@ -630,6 +630,10 @@ public class SmErpSpuServiceImpl extends ServiceImpl<SmErpSpuMapper, SmErpSpuEnt
spu.setCategoryId(categoryId);
spu.setSupplierId(supplierId);
spu.setDeptId(deptId);
spu.setCostPrice(BigDecimal.valueOf(dto.getCostPrice())
.multiply(BigDecimal.valueOf(100))
.setScale(0, RoundingMode.HALF_UP)
.doubleValue());
SmErpSpuEntity existingSpu = existingSpuMap.get(productCode);
// 合并两种错误检查