| | |
| | | page.setRecords(records); |
| | | |
| | | return R.ok(page); |
| | | } |
| | | |
| | | |
| | | @PreAuthorize("hasAuthority('manager:qlyIsptItem:list')") |
| | | @PostMapping("/qlyIsptItem/ispt/result/page") |
| | | public R getIsptResultList(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<QlyIsptItem, BaseParam> pageParam = new PageParam<>(baseParam, QlyIsptItem.class); |
| | | QueryWrapper<QlyIsptItem> queryWrapper = pageParam.buildWrapper(true); |
| | | IPage<QlyIsptItem> page = qlyIsptItemService.pageByIsptResult(pageParam, queryWrapper); |
| | | List<QlyIsptItem> records = page.getRecords(); |
| | | for (QlyIsptItem record : records) { |
| | | if (!Objects.isNull(record.getFieldsIndex())) { |
| | | Map<String, String> fields = FieldsUtils.getFields(record.getFieldsIndex()); |
| | | record.setExtendFields(fields); |
| | | } |
| | | } |
| | | page.setRecords(records); |
| | | |
| | | return R.ok(page); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:qlyIsptItem:list')") |