|
@@ -2,7 +2,9 @@ package cn.iocoder.yudao.module.as.controller.admin.aidingstudentscollegemanage;
|
|
|
|
|
|
import cn.iocoder.yudao.module.system.api.user.dto.AdminUserRespDTO;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
import javax.annotation.Resource;
|
|
|
+
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
@@ -18,11 +20,13 @@ import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
|
|
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
|
|
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
|
|
+
|
|
|
import static cn.iocoder.yudao.framework.common.pojo.CommonResult.success;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
|
|
|
|
|
|
import cn.iocoder.yudao.framework.apilog.core.annotation.ApiAccessLog;
|
|
|
+
|
|
|
import static cn.iocoder.yudao.framework.apilog.core.enums.OperateTypeEnum.*;
|
|
|
|
|
|
import cn.iocoder.yudao.module.as.controller.admin.aidingstudentscollegemanage.vo.*;
|
|
@@ -100,6 +104,7 @@ public class AidingStudentsCollegeManageController {
|
|
|
PageResult<AidingStudentsCollegeManageDO> pageResult = aidingStudentsCollegeManageService.getAidingStudentsCollegeManagePage(pageReqVO);
|
|
|
return success(BeanUtils.toBean(pageResult, AidingStudentsCollegeManageRespVO.class));
|
|
|
}
|
|
|
+
|
|
|
@GetMapping("/projectInfo")
|
|
|
@Operation(summary = "获得家庭困难认定项目学院管理项目详细信息分页")
|
|
|
@PreAuthorize("@ss.hasPermission('as:aiding-students-college-manage:query')")
|
|
@@ -110,19 +115,24 @@ public class AidingStudentsCollegeManageController {
|
|
|
}
|
|
|
|
|
|
|
|
|
-
|
|
|
-
|
|
|
@GetMapping("/export-excel")
|
|
|
@Operation(summary = "导出家庭困难认定项目学院管理 Excel")
|
|
|
@PreAuthorize("@ss.hasPermission('as:aiding-students-college-manage:export')")
|
|
|
@ApiAccessLog(operateType = EXPORT)
|
|
|
public void exportAidingStudentsCollegeManageExcel(@Valid AidingStudentsCollegeManagePageReqVO pageReqVO,
|
|
|
- HttpServletResponse response) throws IOException {
|
|
|
+ HttpServletResponse response) throws IOException {
|
|
|
pageReqVO.setPageSize(PageParam.PAGE_SIZE_NONE);
|
|
|
List<AidingStudentsCollegeManageDO> list = aidingStudentsCollegeManageService.getAidingStudentsCollegeManagePage(pageReqVO).getList();
|
|
|
// 导出 Excel
|
|
|
ExcelUtils.write(response, "家庭困难认定项目学院管理.xls", "数据", AidingStudentsCollegeManageRespVO.class,
|
|
|
- BeanUtils.toBean(list, AidingStudentsCollegeManageRespVO.class));
|
|
|
+ BeanUtils.toBean(list, AidingStudentsCollegeManageRespVO.class));
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/getStudentCollegeManageInfo")
|
|
|
+ @Operation(summary = "获得学生家庭困难认定项目学院管理信息")
|
|
|
+ @PreAuthorize("@ss.hasPermission('as:aiding-students-college-manage:student-query')")
|
|
|
+ public CommonResult<List<AidingStudentsCollegeManageStudentRespVO>> getStudentCollegeManageInfo() {
|
|
|
+ List<AidingStudentsCollegeManageStudentRespVO> aidingStudentsCollegeManageStudentRespVOS = aidingStudentsCollegeManageService.getStudentCollegeManageInfo();
|
|
|
+ return success(aidingStudentsCollegeManageStudentRespVOS);
|
|
|
+ }
|
|
|
}
|