Commit 7ad712ae authored by wangpeng's avatar wangpeng

Merge branch 'dev' into 'test'

Dev See merge request !37
parents 744cc9fb 3501adb7
......@@ -84,7 +84,11 @@ public class SkuServiceImpl extends ServiceImpl<SkuMapper, Sku> implements ISkuS
if (StringUtils.isBlank(kDTO.getImage())) {
sku.setThumb(thumb);
}
if (salesType == null || salesType.equals(SalesTypeEnum.ORDINARY.getType())) {
if (salesType == null) {
sku.setCirculation(kDTO.getStock());
sku.setPrice(kDTO.getOriginalPrice());
}
if (salesType != null && salesType.equals(SalesTypeEnum.ORDINARY.getType())) {
sku.setCirculation(kDTO.getStock());
sku.setOriginalPrice(price);
sku.setPrice(price);
......
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