| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.Func; |
| | | import org.springblade.modules.information.service.IInformationService; |
| | | import org.springblade.modules.recordk.entity.Recordk; |
| | | import org.springblade.modules.revoke.entity.Revoke; |
| | | import org.springblade.modules.revoke.service.IRevokeService; |
| | |
| | | public class RevokeController extends BladeController { |
| | | |
| | | private final IRevokeService revokeService; |
| | | |
| | | private final IInformationService informationService; |
| | | /** |
| | | * 详情 |
| | | */ |
| | |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "分页", notes = "传入revoke") |
| | | public R<IPage<RevokeVO>> page(RevokeVO revoke, Query query) { |
| | | IPage<RevokeVO> pages = revokeService.selectRevokePage(Condition.getPage(query), revoke); |
| | | IPage<RevokeVO> pages; |
| | | if (revoke.getUsetype().equals("0")) { |
| | | pages = revokeService.selectRevokePage(Condition.getPage(query), revoke,null); |
| | | } else if (revoke.getUsetype().equals("1")) { |
| | | String childer = informationService.selJurchilder(revoke.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 =revokeService.selectRevokePage(Condition.getPage(query), revoke,jurisdiction); |
| | | } else { |
| | | pages =revokeService.selectRevokePage(Condition.getPage(query), revoke,null); |
| | | } |
| | | |
| | | return R.data(pages); |
| | | } |
| | | |