...
|
...
|
@@ -417,6 +417,11 @@ public class ProductServiceImpl implements ProductService { |
|
|
if (storagePriceMapper.updateStatus(skup, status, 0) == 0) {
|
|
|
throw new ServiceException(400, "商品(skup)状态已变更");
|
|
|
}
|
|
|
if (status == 10) {
|
|
|
if (secondhandInfoMapper.updateStatus(skup, 10) == 0) {
|
|
|
throw new ServiceException(400, "商品(skup)改成待审核失败,状态已变更");
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
if (storagePriceMapper.updateStatus(skup, status, 1) == 0) {
|
|
|
throw new ServiceException(400, "商品(skup)状态已变更");
|
...
|
...
|
@@ -1228,6 +1233,7 @@ public class ProductServiceImpl implements ProductService { |
|
|
bean.setSkup(sp.getSkup());
|
|
|
bean.setPrice(sp.getPrice().toString());
|
|
|
bean.setSechondHandTypeName(sp.getPreSaleFlag() == 5 ? "全新瑕疵" : "二手");
|
|
|
bean.setStatus(sp.getStatus());
|
|
|
Storage storage = storageMap.get(sp.getStorageId());
|
|
|
if (storage != null) {
|
|
|
Size size = sizeMap.get(storage.getSizeId());
|
...
|
...
|
|