|  |  | 
 |  |  |     @PostMapping("/matnr/group/bind") | 
 |  |  |     public R bindMatnrToGroup(@RequestBody MatnrToGroupParams params) { | 
 |  |  |         if (Objects.isNull(params)) { | 
 |  |  |             throw new CoolException("参数不能为空!!"); | 
 |  |  |             return  R.error("参数不能为空!!"); | 
 |  |  |         } | 
 |  |  |         if (matnrService.bindMatnrs(params)) { | 
 |  |  |             return R.ok(); | 
 |  |  | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreAuthorize("hasAuthority('manager:matnr:update')") | 
 |  |  |     @ApiOperation("批量修改") | 
 |  |  |     @PostMapping("/matnr/batch/update") | 
 |  |  |     public R batchUpdate(@RequestBody MatnrToGroupParams params) { | 
 |  |  |         if (Objects.isNull(params)) { | 
 |  |  |             return  R.error("参数不能为空!!"); | 
 |  |  |         } | 
 |  |  |         if (Objects.isNull(params.getMatnr())) { | 
 |  |  |             return R.error("物料属性不能为空!!"); | 
 |  |  |         } | 
 |  |  |         if (matnrService.batchUpdate(params)) { | 
 |  |  |             return R.ok(); | 
 |  |  |         }else { | 
 |  |  |             return R.error("操作失败!!"); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     @PreAuthorize("hasAuthority('manager:matnr:list')") | 
 |  |  |     @ApiOperation("导出物料信息") | 
 |  |  |     @PostMapping("/matnr/export") |