正在显示
2 个修改的文件
包含
3 行增加
和
1 行删除
@@ -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 |
-
请 注册 或 登录 后发表评论