|
@@ -5,6 +5,7 @@ import cn.hutool.core.bean.BeanUtil;
|
|
|
import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
import com.github.yulichang.toolkit.MPJWrappers;
|
|
|
import com.xjrsoft.common.model.result.RT;
|
|
|
import com.xjrsoft.common.page.ConventPage;
|
|
@@ -12,11 +13,14 @@ import com.xjrsoft.common.page.PageOutput;
|
|
|
import com.xjrsoft.common.utils.VoToColumnUtil;
|
|
|
import com.xjrsoft.module.base.entity.BaseSemester;
|
|
|
import com.xjrsoft.module.student.dto.AddBaseStudentScholarshipApplicantDto;
|
|
|
+import com.xjrsoft.module.student.dto.BaseStudentScholarshipApplicantCategoryPageDto;
|
|
|
import com.xjrsoft.module.student.dto.BaseStudentScholarshipApplicantPageDto;
|
|
|
import com.xjrsoft.module.student.dto.UpdateBaseStudentScholarshipApplicantDto;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentScholarshipApplicant;
|
|
|
import com.xjrsoft.module.student.entity.BaseStudentScholarshipCategory;
|
|
|
import com.xjrsoft.module.student.service.IBaseStudentScholarshipApplicantService;
|
|
|
+import com.xjrsoft.module.student.service.IBaseStudentScholarshipCategoryService;
|
|
|
+import com.xjrsoft.module.student.vo.BaseStudentScholarshipApplicantCategoryPageVo;
|
|
|
import com.xjrsoft.module.student.vo.BaseStudentScholarshipApplicantPageVo;
|
|
|
import com.xjrsoft.module.student.vo.BaseStudentScholarshipApplicantVo;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -48,6 +52,7 @@ public class BaseStudentScholarshipApplicantController {
|
|
|
|
|
|
|
|
|
private final IBaseStudentScholarshipApplicantService baseStudentScholarshipApplicantService;
|
|
|
+ private final IBaseStudentScholarshipCategoryService baseStudentScholarshipCategoryService;
|
|
|
|
|
|
@GetMapping(value = "/page")
|
|
|
@ApiOperation(value="奖学金申请列表(分页)")
|
|
@@ -71,6 +76,15 @@ public class BaseStudentScholarshipApplicantController {
|
|
|
return RT.ok(pageOutput);
|
|
|
}
|
|
|
|
|
|
+ @GetMapping(value = "/scholarship-page")
|
|
|
+ @ApiOperation(value="奖学金名称表(分页)")
|
|
|
+ @SaCheckPermission("basestudentscholarshipapplicant:detail")
|
|
|
+ public RT<PageOutput<BaseStudentScholarshipApplicantCategoryPageVo>> scholarshiPage(@Valid BaseStudentScholarshipApplicantCategoryPageDto dto){
|
|
|
+ IPage<BaseStudentScholarshipApplicantCategoryPageVo> page = baseStudentScholarshipApplicantService.getScholarshiPage(new Page<>(dto.getLimit(), dto.getSize()), dto);
|
|
|
+ PageOutput<BaseStudentScholarshipApplicantCategoryPageVo> pageOutput = ConventPage.getPageOutput(page, BaseStudentScholarshipApplicantCategoryPageVo.class);
|
|
|
+ return RT.ok(pageOutput);
|
|
|
+ }
|
|
|
+
|
|
|
@GetMapping(value = "/info")
|
|
|
@ApiOperation(value="根据id查询奖学金申请信息")
|
|
|
@SaCheckPermission("basestudentscholarshipapplicant:detail")
|