|
@@ -211,6 +211,9 @@ public class SelfSizeServiceImpl implements ISelfSizeService { |
|
@@ -211,6 +211,9 @@ public class SelfSizeServiceImpl implements ISelfSizeService { |
211
|
if(null == selfSize) {
|
211
|
if(null == selfSize) {
|
212
|
throw new PlatformException("记录不存在", 400);
|
212
|
throw new PlatformException("记录不存在", 400);
|
213
|
}
|
213
|
}
|
|
|
214
|
+ if (storageMapper.selectBySize(selfSize.getProductId(), selfSize.getSizeId()) != null) {
|
|
|
215
|
+ throw new PlatformException("该尺码已存在", 400);
|
|
|
216
|
+ }
|
214
|
UserHelper userInfo = new UserHelper();
|
217
|
UserHelper userInfo = new UserHelper();
|
215
|
int num = selfSizeMapper.upadteAuditResult(req.getId(), req.getStatus(), userInfo.getUserId());
|
218
|
int num = selfSizeMapper.upadteAuditResult(req.getId(), req.getStatus(), userInfo.getUserId());
|
216
|
//清商品详情缓存
|
219
|
//清商品详情缓存
|
|
@@ -243,7 +246,7 @@ public class SelfSizeServiceImpl implements ISelfSizeService { |
|
@@ -243,7 +246,7 @@ public class SelfSizeServiceImpl implements ISelfSizeService { |
243
|
}
|
246
|
}
|
244
|
|
247
|
|
245
|
private int saveStorage(SelfSize selfSize) {
|
248
|
private int saveStorage(SelfSize selfSize) {
|
246
|
- Storage record = new Storage();
|
249
|
+ Storage record = new Storage();
|
247
|
record.setProductId(selfSize.getProductId());
|
250
|
record.setProductId(selfSize.getProductId());
|
248
|
record.setGoodsId(selfSize.getGoodsId());
|
251
|
record.setGoodsId(selfSize.getGoodsId());
|
249
|
record.setSizeId(selfSize.getSizeId());
|
252
|
record.setSizeId(selfSize.getSizeId());
|