| | |
| | | import org.springblade.modules.application.service.IApplicationService; |
| | | import org.springblade.core.boot.ctrl.BladeController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 申请表 控制器 |
| | | * |
| | |
| | | public R<IPage<ApplicationVO>> list(ApplicationEntity application, Query query) { |
| | | IPage<ApplicationEntity> pages = applicationService.page(Condition.getPage(query), Condition.getQueryWrapper(application)); |
| | | return R.data(ApplicationWrapper.build().pageVO(pages)); |
| | | } |
| | | |
| | | /** |
| | | * 申请表 查询全部 |
| | | */ |
| | | @GetMapping("/getAll") |
| | | @ApiOperationSupport(order = 2) |
| | | @ApiOperation(value = "分页", notes = "传入application") |
| | | public R<List<ApplicationVO>> getAll(ApplicationVO applicationVO) { |
| | | return R.data(applicationService.getAll(applicationVO)); |
| | | } |
| | | |
| | | /** |
| | |
| | | public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { |
| | | return R.status(applicationService.deleteLogic(Func.toLongList(ids))); |
| | | } |
| | | //================================工作流======================================== |
| | | |
| | | //================================工作流======================================== |
| | | /** |
| | | * 申请表 工作流开始 |
| | | */ |