| | |
| | | */ |
| | | @PostMapping("/addBatch") |
| | | @ApiOperation(value = "新增白名单故障类型", notes = "新增白名单故障类型") |
| | | public Result addBatch(WorkOrderWhite workOrderWhite) { |
| | | return ywThresholdService.addBatch(workOrderWhite); |
| | | public Result addBatch(@RequestBody WorkOrderWhite addErrorForm) { |
| | | return ywThresholdService.addBatch(addErrorForm); |
| | | } |
| | | } |
| | |
| | | List<String> errorTypeListAdd = workOrderWhite.getErrorTypeList(); |
| | | List<WorkOrderWhite> whites = workOrderWhiteMapper.selectList(); |
| | | for (WorkOrderWhite white : whites) { |
| | | List<String> errorTypeList = Arrays.asList(white.getErrorType().split(",")); |
| | | List<String> errorTypeList = new ArrayList<>(Arrays.asList(white.getErrorType().split(","))); |
| | | for (String newError : errorTypeListAdd) { |
| | | if (errorTypeList.contains(newError)) { |
| | | continue; |