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