Commit 62c4ae79 by 张新旗

前进前进,继续上代码

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