作者 王兆博

修改我的学校

@@ -718,6 +718,8 @@ public class MineServiceImpl implements MineService { @@ -718,6 +718,8 @@ public class MineServiceImpl implements MineService {
718 */ 718 */
719 private AjaxResult getMySchool(Long userId) { 719 private AjaxResult getMySchool(Long userId) {
720 CRelationshipStudentSgcBo cRelationshipStudentSgcBo = new CRelationshipStudentSgcBo(); 720 CRelationshipStudentSgcBo cRelationshipStudentSgcBo = new CRelationshipStudentSgcBo();
  721 + System.out.println(userId);
  722 +
721 cRelationshipStudentSgcBo.setUserId(userId); 723 cRelationshipStudentSgcBo.setUserId(userId);
722 List<MySchoolVo> school = cRegisterSchoolMapper.getSchool(cRelationshipStudentSgcBo); 724 List<MySchoolVo> school = cRegisterSchoolMapper.getSchool(cRelationshipStudentSgcBo);
723 return AjaxResult.success(school); 725 return AjaxResult.success(school);
@@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" @@ -20,7 +20,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
20 20
21 <select id="getSchool" parameterType="com.example.client.domain.bo.CRelationshipStudentSgcBo" resultType="com.example.client.domain.vo.MySchoolVo"> 21 <select id="getSchool" parameterType="com.example.client.domain.bo.CRelationshipStudentSgcBo" resultType="com.example.client.domain.vo.MySchoolVo">
22 SELECT r.start_date,r.end_date,s.school_name FROM c_relationship_student_sgc r 22 SELECT r.start_date,r.end_date,s.school_name FROM c_relationship_student_sgc r
23 - LEFT JOIN c_register_school s on r.school_id = r.school_id 23 + LEFT JOIN c_register_school s on s.school_id = r.school_id
24 <where> 24 <where>
25 r.user_id = #{userId} 25 r.user_id = #{userId}
26 26