Commit 62c4ae79 by 张新旗

前进前进,继续上代码

parent cb21d696
......@@ -50,7 +50,7 @@ public class GoodsController extends BaseController
try{
return AjaxResult.success(goodsService.putShop(goodsId,boo));
}catch (ServiceException serviceException){
return AjaxResult.error(99,serviceException.getMessage());
return AjaxResult.error(99,null);
}
}
......
......@@ -149,6 +149,7 @@ public class SpecServiceImpl implements ISpecService
spec.setIsDeleted(0);
spec.setUpdatedAt(new Date());
int i = specMapper.updateSpec(spec);
deleteGoodsSku(String.valueOf(spec.getId()));
List<SpecRule> specRules = spec.getSpecRules();
if(specRules ==null || specRules.isEmpty()){
return i;
......@@ -160,7 +161,6 @@ public class SpecServiceImpl implements ISpecService
}else{
spec.setIsShow(0L);
}
deleteGoodsSku(String.valueOf(spec.getId()));
long specId = spec.getId();
if(spec.getIsShow()==1L){
for (SpecRule specRule : specRules) {
......
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