| | |
| | | @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); |
| | | } |
| | | |
| | |
| | | if (record.getPtype().equals("2")){ |
| | | Long i = 1425366663452196865L; |
| | | dept.setParentId(i); |
| | | dept.setAncestors("0,1425366663452196865"); |
| | | } |
| | | //培训公司 |
| | | else { |
| | | Long i = 1420222768149966850L; |
| | | dept.setParentId(i); |
| | | dept.setAncestors("0,1420222768149966850"); |
| | | } |
| | | dept.setTenantId("000000"); |
| | | dept.setDeptName(information.getEnterprisename()); |
| | | dept.setAncestors("0,1413470343230877697"); |
| | | dept.setDeptCategory(1); |
| | | if (iDeptService.submit(dept)) { |
| | | CacheUtil.clear(SYS_CACHE); |