Commit 3501adb7 authored by wp's avatar wp

优化

parent f82c52bd
...@@ -86,6 +86,7 @@ public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements ISkuS ...@@ -86,6 +86,7 @@ public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements ISkuS
} }
if (salesType == null) { if (salesType == null) {
sku.setCirculation(kDTO.getStock()); sku.setCirculation(kDTO.getStock());
sku.setPrice(kDTO.getOriginalPrice());
} }
if (salesType != null && salesType.equals(SalesTypeEnum.ORDINARY.getType())) { if (salesType != null && salesType.equals(SalesTypeEnum.ORDINARY.getType())) {
sku.setCirculation(kDTO.getStock()); sku.setCirculation(kDTO.getStock());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment