|
|
@ -246,6 +246,15 @@ public class GoodsSpuService extends MybatisBaseService<GoodsSpuMapper, GoodsSpu |
|
|
|
} |
|
|
|
return rb.success().setMsg("成功"); |
|
|
|
} |
|
|
|
public ResultBean updateIsEnableSku(String sid, String isEnable) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
GoodsSku s=goodsSkuService.getOne(new QueryWrapper<GoodsSku>().eq("sid",sid)); |
|
|
|
if (null != s) { |
|
|
|
s.setIsEnable(Integer.parseInt(isEnable)); |
|
|
|
goodsSkuService.updateById(s); |
|
|
|
} |
|
|
|
return rb.success().setMsg("成功"); |
|
|
|
} |
|
|
|
public ResultBean importExcel(MultipartFile file) throws IOException { |
|
|
|
ResultBean rb=new ResultBean().fail(); |
|
|
|
//檢查excel
|
|
|
|