导入增加成本价
This commit is contained in:
1 parent
08890883c4
commit
5c480b5932
1 file changed
+4
+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);
|
||||
// 合并两种错误检查
|
||||
|
||||
Reference in new issue
Block a user