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