| | |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入record") |
| | | public R<IPage<RecordVO>> page(RecordVO record, Query query) { |
| | | IPage<RecordVO> pages = recordService.selectRecordPage(Condition.getPage(query), record); |
| | | IPage<RecordVO> pages; |
| | | if (record.getUsetype().equals("0")) { |
| | | pages = recordService.selectRecordPage(Condition.getPage(query), record, null); |
| | | } else if (record.getUsetype().equals("1")) { |
| | | String childer = informationService.selJurchilder(record.getJurisdiction()); |
| | | String[] split = childer.split(","); |
| | | String strArrays = ""; |
| | | for (int j = 0; j < split.length; j++) { |
| | | strArrays += "'" + split[j] + "',"; |
| | | } |
| | | String jurisdiction = strArrays.substring(0, strArrays.length() - 1); |
| | | pages = recordService.selectRecordPage(Condition.getPage(query), record, jurisdiction); |
| | | } else { |
| | | pages = recordService.selectRecordPage(Condition.getPage(query), record, null); |
| | | } |
| | | |
| | | return R.data(pages); |
| | | } |
| | | |