Browse Source

学生提交申请信息V5.1

平常心 6 months ago
parent
commit
a2615ccd38

+ 2 - 2
yudao-module-as/yudao-module-as-biz/src/main/java/cn/iocoder/yudao/module/as/dal/mysql/aidingstudentspersonmanage/AidingStudentsPersonManageMapper.java

@@ -23,9 +23,9 @@ public interface AidingStudentsPersonManageMapper extends BaseMapperX<AidingStud
 
     default PageResult<AidingStudentsPersonManageDO> selectPage(AidingStudentsPersonManageClassPageReqVO reqVO) {
         return selectPage(reqVO, new LambdaQueryWrapper<AidingStudentsPersonManageDO>()
-                .eq(StringUtils.isNotBlank(reqVO.getClassName()),AidingStudentsPersonManageDO::getDifficultType, reqVO.getClassName())
+                .eq(StringUtils.isNotBlank(reqVO.getClassName()),AidingStudentsPersonManageDO::getClassName, reqVO.getClassName())
                 .eq(reqVO.getCollegeManageId() != null,AidingStudentsPersonManageDO::getDifficultType, reqVO.getCollegeManageId())
-                .eq(reqVO.getManageId() != null,AidingStudentsPersonManageDO::getDifficultType, reqVO.getManageId())
+                .eq(reqVO.getManageId() != null,AidingStudentsPersonManageDO::getManageId, reqVO.getManageId())
                 .like(StringUtils.isNotBlank(reqVO.getNickname()),AidingStudentsPersonManageDO::getNickname, reqVO.getNickname())
                 .like(StringUtils.isNotBlank(reqVO.getStudentSno()),AidingStudentsPersonManageDO::getStudentSno, reqVO.getStudentSno())
                 .eq(reqVO.getDifficultType() != null,AidingStudentsPersonManageDO::getDifficultType, reqVO.getDifficultType())

+ 5 - 4
yudao-module-as/yudao-module-as-biz/src/main/java/cn/iocoder/yudao/module/as/service/aidingstudentspersonmanage/AidingStudentsPersonManageServiceImpl.java

@@ -102,6 +102,7 @@ public class AidingStudentsPersonManageServiceImpl extends ServiceImpl<AidingStu
         aDo.setNickname(user.getNickname());
         // 状态
         aDo.setStatus(0);
+        // 用户ID
         aidingStudentsPersonManageMapper.insert(aDo);
     }
 
@@ -110,9 +111,10 @@ public class AidingStudentsPersonManageServiceImpl extends ServiceImpl<AidingStu
      */
     @Override
     public AidingStudentsPersonManageUploadRespVO checkAidingStudentsManage() {
-        AdminUserRespDTO user =  adminUserApi.getUser(getLoginUser().getId());
-        AidingStudentsPersonManageDO me = this.getById(user.getStudentId());
-        return BeanUtils.toBean(me, AidingStudentsPersonManageUploadRespVO.class);
+        AdminUserRespDTO Loginuser =  adminUserApi.getUser(getLoginUser().getId());
+        AidingStudentsPersonManageDO user = aidingStudentsPersonManageMapper
+                .selectOne(AidingStudentsPersonManageDO::getStudentSno, Loginuser.getStudentId());
+        return BeanUtils.toBean(user, AidingStudentsPersonManageUploadRespVO.class);
     }
 
     /**
@@ -123,7 +125,6 @@ public class AidingStudentsPersonManageServiceImpl extends ServiceImpl<AidingStu
     public void editAidingStudentsManage(AidingStudentsPersonManageUploadRespVO uploadVO) {
         AidingStudentsPersonManageDO aDo = new AidingStudentsPersonManageDO();
          aDo = BeanUtils.toBean(uploadVO, AidingStudentsPersonManageDO.class);
-         log.info("aDo 信息如下{}" , aDo);
          aDo.setRejectNotes("");
          aidingStudentsPersonManageMapper.updateById(aDo);
     }