| | |
| | | } |
| | | |
| | | @PostMapping("/qlyInspect/reports") |
| | | @ApiOperation("获取已上报单据明细") |
| | | @ApiOperation("获取可质检单据明细") |
| | | @PreAuthorize("hasAuthority('manager:qlyInspect:list')") |
| | | public R listByAsnCode(@RequestBody Map<String, Object> map) { |
| | | if (Objects.isNull(map)) { |
| | |
| | | if (Objects.isNull(ids) || ids.length < 1) { |
| | | return R.error("能数不能为空!!"); |
| | | } |
| | | List<QlyInspect> qlyInspects = qlyInspectService.list(new LambdaQueryWrapper<QlyInspect>().in(QlyInspect::getId, ids)); |
| | | List<QlyInspect> qlyInspects = qlyInspectService.list(new LambdaQueryWrapper<QlyInspect>() |
| | | .in(QlyInspect::getId, ids) |
| | | .gt(QlyInspect::getIsptQty, 0) |
| | | ); |
| | | if (!qlyInspects.isEmpty()) { |
| | | return R.error("有明细列表存在!!"); |
| | | return R.error("有明细单据已在质检中!!"); |
| | | } |
| | | if (!qlyInspectService.removeByIds(Arrays.asList(ids))) { |
| | | return R.error("Delete Fail"); |