| | |
| | | PageParam<ViewLocDetl, BaseParam> result = viewLocDetlMapper.selectPage(pageParam, buildWrapper);
|
| | |
|
| | | //解析动态字段
|
| | | JSONObject data = JSON.parseObject(JSON.toJSONString(result));
|
| | | List<ViewLocDetl> records = result.getRecords();
|
| | | data.put("records", records);
|
| | | for (ViewLocDetl locDetl : records) {
|
| | | Map<String, Object> resultMap = viewLocDetlMapper.getById(locDetl.getId());
|
| | | locDetl.syncFieldMap(resultMap);
|
| | | }
|
| | | // JSONObject data = JSON.parseObject(JSON.toJSONString(result));
|
| | | // List<ViewLocDetl> records = result.getRecords();
|
| | | // data.put("records", records);
|
| | | // for (ViewLocDetl locDetl : records) {
|
| | | // Map<String, Object> resultMap = viewLocDetlMapper.getById(locDetl.getId());
|
| | | // locDetl.syncFieldMap(resultMap);
|
| | | // }
|
| | | return result;
|
| | | }
|
| | |
|