| | |
| | | List<KeyValVo> vos = new ArrayList<>(); |
| | | LambdaQueryWrapper<QlyInspect> wrapper = new LambdaQueryWrapper<>(); |
| | | if (!Cools.isEmpty(condition)) { |
| | | wrapper.like(QlyInspect::getName, condition); |
| | | wrapper.like(QlyInspect::getCode, condition); |
| | | } |
| | | qlyInspectService.page(new Page<>(1, 30), wrapper).getRecords().forEach( |
| | | item -> vos.add(new KeyValVo(item.getId(), item.getName())) |
| | | item -> vos.add(new KeyValVo(item.getId(), item.getCode())) |
| | | ); |
| | | return R.ok().add(vos); |
| | | } |
| | |
| | | ExcelUtil.build(ExcelUtil.create(qlyInspectService.list(), QlyInspect.class), response); |
| | | } |
| | | |
| | | |
| | | } |