|
|
@ -79,11 +79,13 @@ public class ProductInformationRest implements ProductInformationFeign { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
@ApiOperation("根据sid批量删除") |
|
|
|
@PostMapping("/delBySids") |
|
|
|
public ResultBean delBySids(@RequestBody String[] sids) { |
|
|
|
public ResultBean delBySid(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
productInformationService.delBySids(sids); |
|
|
|
ProductInformation productInformation = productInformationService.fetchBySid(sid); |
|
|
|
if(productInformation == null){ |
|
|
|
return rb.setMsg("该商品档案不存在"); |
|
|
|
} |
|
|
|
productInformationService.deleteBySid(sid); |
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|