diff --git a/src/main/java/com/msdw/tms/controller/UserInfoController.java b/src/main/java/com/msdw/tms/controller/UserInfoController.java index f5bac50..b859d1a 100644 --- a/src/main/java/com/msdw/tms/controller/UserInfoController.java +++ b/src/main/java/com/msdw/tms/controller/UserInfoController.java @@ -69,7 +69,7 @@ public class UserInfoController implements UserInfoControllerApi { //新增学生 StudentVo studentVo = new StudentVo(); - studentVo.setUserId(userInfoEntity.getUserId()); + studentVo.setRoleId(Integer.valueOf(userInfoEntity.getRoleId())); studentVo.setSchoolId(schoolId); studentVo.setIsdel(0); @@ -92,7 +92,7 @@ public class UserInfoController implements UserInfoControllerApi { return R.error(400,"添加用户信息失败"); } // userInfoEntity.setUserId(userId); - + studentVo.setUserId(userInfoEntity.getUserId()); return studentService.addStudentInfo(studentVo); } diff --git a/src/main/resources/mapper/tms/ProjectRecordDao.xml b/src/main/resources/mapper/tms/ProjectRecordDao.xml index 8495e51..fd6d0cd 100644 --- a/src/main/resources/mapper/tms/ProjectRecordDao.xml +++ b/src/main/resources/mapper/tms/ProjectRecordDao.xml @@ -132,7 +132,7 @@ sum(timeSum) AS totalTime, avg(score) avgScore FROM tms_project_record pr - LEFT JOIN hr_user_info u ON pr.userId = u.userId + INNER JOIN hr_user_info u ON pr.userId = u.userId WHERE pr.userId = #{userid}