diff --git a/src/main/java/com/msdw/tms/api/UserControllerApi.java b/src/main/java/com/msdw/tms/api/UserControllerApi.java index 2cd9ee9..51130d1 100644 --- a/src/main/java/com/msdw/tms/api/UserControllerApi.java +++ b/src/main/java/com/msdw/tms/api/UserControllerApi.java @@ -13,7 +13,7 @@ import java.util.List; public interface UserControllerApi { @ApiOperation(value = "个人中心信息展示",notes = "个人中心信息展示") - R userInfo(Integer id, List personalFileId); + R userInfo(Integer id); @ApiOperation(value = "个人中心信息修改",notes = "个人中心信息修改") R update(UserProsonalEntityVo userProsonalEntityVo); diff --git a/src/main/java/com/msdw/tms/controller/UserController.java b/src/main/java/com/msdw/tms/controller/UserController.java index 107fead..097438e 100644 --- a/src/main/java/com/msdw/tms/controller/UserController.java +++ b/src/main/java/com/msdw/tms/controller/UserController.java @@ -46,10 +46,10 @@ public class UserController implements UserControllerApi { } @Override - @PostMapping("/userinfo/{id}") - public R userInfo(@PathVariable("id") Integer id,@RequestBody List personalFileId){ + @GetMapping("/userinfo/{id}") + public R userInfo(@PathVariable("id") Integer id){ - HashMap userEntityVoList = userService.queryUserInfo(id,personalFileId); + HashMap userEntityVoList = userService.queryUserInfo(id); // UserEntityVo userEntityVo = userService.queryUserId(id); return R.ok().put("data",userEntityVoList); } diff --git a/src/main/java/com/msdw/tms/dao/UserDao.java b/src/main/java/com/msdw/tms/dao/UserDao.java index ed50495..b0f20ef 100644 --- a/src/main/java/com/msdw/tms/dao/UserDao.java +++ b/src/main/java/com/msdw/tms/dao/UserDao.java @@ -15,6 +15,6 @@ public interface UserDao extends BaseMapper { void updateUserPersonal(UserEntityVo vo); - List queryPersonalFile(Integer userid,List personalFileId); + List queryPersonalFile(Integer userid); List queryUserInfo(Integer userid); } diff --git a/src/main/java/com/msdw/tms/entity/EvaluationQuestionEntity.java b/src/main/java/com/msdw/tms/entity/EvaluationQuestionEntity.java index 7e2bb12..e69c1ee 100644 --- a/src/main/java/com/msdw/tms/entity/EvaluationQuestionEntity.java +++ b/src/main/java/com/msdw/tms/entity/EvaluationQuestionEntity.java @@ -55,9 +55,5 @@ public class EvaluationQuestionEntity implements Serializable { * 试题得分 */ private Integer questionScore; - /** - * 测评类型(0虚拟仿真实验,1教学实验) - */ - private Integer type; } diff --git a/src/main/java/com/msdw/tms/service/UserService.java b/src/main/java/com/msdw/tms/service/UserService.java index bb5ec21..1f1541e 100644 --- a/src/main/java/com/msdw/tms/service/UserService.java +++ b/src/main/java/com/msdw/tms/service/UserService.java @@ -18,5 +18,5 @@ public interface UserService extends IService { void updateUserPersonal(UserEntityVo personalFile); - HashMap queryUserInfo(Integer id, List personalFileId); + HashMap queryUserInfo(Integer id); } diff --git a/src/main/java/com/msdw/tms/service/impl/UserServiceImpl.java b/src/main/java/com/msdw/tms/service/impl/UserServiceImpl.java index 10ca945..92385ca 100644 --- a/src/main/java/com/msdw/tms/service/impl/UserServiceImpl.java +++ b/src/main/java/com/msdw/tms/service/impl/UserServiceImpl.java @@ -49,13 +49,13 @@ public class UserServiceImpl extends ServiceImpl implements } @Override - public HashMap queryUserInfo(Integer id,List personalIds) { + public HashMap queryUserInfo(Integer id) { HashMap map = new HashMap(); //用户sql user List userInfo = userMapper.queryUserInfo(id); map.put("userInfo",userInfo); //个人档案sql - List userEntityVos = userMapper.queryPersonalFile(id, personalIds); + List userEntityVos = userMapper.queryPersonalFile(id); map.put("userPersonalFile",userEntityVos); return map; } diff --git a/src/main/resources/mapper/tms/EvaluationQuestionDao.xml b/src/main/resources/mapper/tms/EvaluationQuestionDao.xml index e506f11..eab21eb 100644 --- a/src/main/resources/mapper/tms/EvaluationQuestionDao.xml +++ b/src/main/resources/mapper/tms/EvaluationQuestionDao.xml @@ -19,8 +19,6 @@ UPDATE tms_evaluation_question - set - type = 0, question_status=#{questionStatus, jdbcType=INTEGER}, diff --git a/src/main/resources/mapper/tms/UserDao.xml b/src/main/resources/mapper/tms/UserDao.xml index fe45dc0..e1436fb 100644 --- a/src/main/resources/mapper/tms/UserDao.xml +++ b/src/main/resources/mapper/tms/UserDao.xml @@ -30,7 +30,7 @@ u.provinceId = pro.provinceId AND u.schoolId = s.schoolId AND u.cityId = c.cityId - AND u.isdel = #{pro.isdel} + AND u.isdel = 0 AND u.provinceId = c.provinceId AND u.userId = #{userid} AND pro.isdel = 0 @@ -58,11 +58,6 @@ per.schoolId = s.schoolId AND per.userId = #{userid} AND s.isdel = 0 - AND per.personalFileId IN - - #{personalFileId} - -