| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.admin.entity.RecoveryClassify; |
| | | import com.ruoyi.admin.service.RecoveryClassifyService; |
| | | import com.ruoyi.admin.service.SiteService; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.annotation.RequiresPermissions; |
| | | import io.swagger.annotations.Api; |
| | |
| | | @Resource |
| | | private RecoveryClassifyService recoveryClassifyService; |
| | | |
| | | |
| | | /** |
| | | * 回收分类分页列表 |
| | | * |
| | |
| | | .page(Page.of(pageNum, pageSize))); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "分类下拉框", tags = {"后台-下拉框"}) |
| | | @GetMapping(value = "/select") |
| | | |
| | | public R<List<RecoveryClassify>> select(String className) { |
| | | return R.ok(recoveryClassifyService.lambdaQuery().eq(RecoveryClassify::getIsDelete, 0) |
| | | .orderByDesc(RecoveryClassify::getSupClassify).like(className!=null&&className!="", RecoveryClassify::getSubClassify,className) |
| | | .orderByAsc(RecoveryClassify::getSort) |
| | | .orderByDesc(RecoveryClassify::getCreateTime) |
| | | .list()); |
| | | } |
| | | |
| | | /** |
| | | * 回收分类详情 |
| | | * |