作者 王兆博

修改我的学校

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