Forráskód Böngészése

获得单个学院管理项目详细信息

houlai 9 hónapja
szülő
commit
4339b3c20d

+ 10 - 0
yudao-module-as/yudao-module-as-biz/src/main/java/cn/iocoder/yudao/module/as/controller/admin/aidingstudentscollegemanage/AidingStudentsCollegeManageController.java

@@ -122,6 +122,16 @@ public class AidingStudentsCollegeManageController {
     }
 
 
+    @GetMapping("/getOneProjectInfo")
+    @Operation(summary = "获得一个家庭困难认定项目学院管理项目详细信息")
+    @PreAuthorize("@ss.hasPermission('as:aiding-students-college-manage:query')")
+    public CommonResult<AidingStudentsCollegeManageProjectInfoRespVO> getOneProjectInfoPage(@RequestParam("id") Long id) {
+
+        AidingStudentsCollegeManageProjectInfoRespVO aidingStudentsCollegeManageProjectInfoRespVO = aidingStudentsCollegeManageService.getOneProjectInfoPage(id);
+        return success(aidingStudentsCollegeManageProjectInfoRespVO);
+    }
+
+
     @GetMapping("/export-excel")
     @Operation(summary = "导出家庭困难认定项目学院管理 Excel")
     @PreAuthorize("@ss.hasPermission('as:aiding-students-college-manage:export')")

+ 6 - 0
yudao-module-as/yudao-module-as-biz/src/main/java/cn/iocoder/yudao/module/as/dal/mysql/aidingstudentscollegemanage/AidingStudentsCollegeManageMapper.java

@@ -43,4 +43,10 @@ public interface AidingStudentsCollegeManageMapper extends BaseMapperX<AidingStu
     @Select("SELECT count(1) FROM as_aiding_students_manage left join as_aiding_students_college_manage on  as_aiding_students_manage.id= as_aiding_students_college_manage.manage_id and as_aiding_students_college_manage.deleted=false " +
             "where as_aiding_students_manage.deleted=false")
     Long selectProjectInfoPageCount();
+
+    @Select("SELECT as_aiding_students_manage.id,di_name,di_status,di_notice,di_notice_file,di_notice_file_name,di_end_time, " +
+            "submit_start_time,submit_end_time,evaluation_start_time,evaluation_end_time,audit_start_time,audit_end_time,publicity_time,com_status,manage_id,college_id,college_notice_file,college_notice_file_name,reporting_time,as_aiding_students_manage.create_time ,as_aiding_students_manage.creator " +
+            "FROM as_aiding_students_manage left join as_aiding_students_college_manage on  as_aiding_students_manage.id= as_aiding_students_college_manage.manage_id and as_aiding_students_college_manage.deleted=false " +
+            "where as_aiding_students_manage.deleted=false and as_aiding_students_manage.di_status!=0 and as_aiding_students_manage.id=#{id}")
+    AidingStudentsCollegeManageProjectInfoPageRespDO selectOneProjectInfo(@Param("id") Long id);
 }

+ 2 - 0
yudao-module-as/yudao-module-as-biz/src/main/java/cn/iocoder/yudao/module/as/service/aidingstudentscollegemanage/AidingStudentsCollegeManageService.java

@@ -61,4 +61,6 @@ public interface AidingStudentsCollegeManageService {
     List<AidingStudentsCollegeManageStudentRespVO> getStudentCollegeManageInfo();
 
     Boolean publishAidingStudentsCollegeManage(Long id);
+
+    AidingStudentsCollegeManageProjectInfoRespVO getOneProjectInfoPage(Long manageId);
 }

+ 11 - 0
yudao-module-as/yudao-module-as-biz/src/main/java/cn/iocoder/yudao/module/as/service/aidingstudentscollegemanage/AidingStudentsCollegeManageServiceImpl.java

@@ -160,6 +160,17 @@ public class AidingStudentsCollegeManageServiceImpl implements AidingStudentsCol
 
     }
 
+    @Override
+    public AidingStudentsCollegeManageProjectInfoRespVO getOneProjectInfoPage(Long id) {
+        //获得项目信息
+        AidingStudentsCollegeManageProjectInfoPageRespDO aidingStudentsCollegeManageProjectInfoRespDO = aidingStudentsCollegeManageMapper.selectOneProjectInfo(id);
+        //转换
+        AidingStudentsCollegeManageProjectInfoRespVO aidingStudentsCollegeManageProjectInfoRespVO = BeanUtils.toBean(aidingStudentsCollegeManageProjectInfoRespDO, AidingStudentsCollegeManageProjectInfoRespVO.class);
+        //获得学校项目创建人
+        aidingStudentsCollegeManageProjectInfoRespVO.setCreator(adminUserApi.getUser(Long.valueOf(aidingStudentsManageMapper.selectById(aidingStudentsCollegeManageProjectInfoRespVO.getId()).getCreator())).getNickname());
+        return aidingStudentsCollegeManageProjectInfoRespVO;
+    }
+
     @Override
     public List<AidingStudentsCollegeManageStudentRespVO> getStudentCollegeManageInfo() {
         // 获得学院id

+ 1 - 0
yudao-module-as/yudao-module-as-biz/src/main/java/cn/iocoder/yudao/module/as/service/aidingstudentsmanage/AidingStudentsManageServiceImpl.java

@@ -1,5 +1,6 @@
 package cn.iocoder.yudao.module.as.service.aidingstudentsmanage;
 import cn.iocoder.yudao.framework.common.util.io.FileUtils;
+import cn.iocoder.yudao.framework.datapermission.core.annotation.DataPermission;
 import cn.iocoder.yudao.framework.excel.core.util.ExcelUtils;
 import cn.iocoder.yudao.module.as.controller.admin.aidingstudentsimportlist.vo.AidingStudentsImportExcelRespVO;
 import cn.iocoder.yudao.module.as.controller.admin.aidingstudentsimportlist.vo.AidingStudentsImportExcelVO;