|
@@ -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);
|
|
|
}
|