|
|
@@ -3,11 +3,15 @@
|
|
|
<mapper namespace="com.usoftchina.smartschool.device.mapper.StudentInfoMapper" >
|
|
|
<select id="selectInfoByCardNo" parameterType="string" resultMap="studentInfo">
|
|
|
select school_appid,school_secret,sys_parents.openid,sys_student.stu_name,sys_student.stu_id,sys_school.school_id,
|
|
|
- stu_number,sys_student.clazz_id,stu_class,stu_grade,stu_classnickname,stu_sex from sys_student left join sys_school on sys_student.school_id=sys_school.school_id
|
|
|
+ stu_number,sys_student.clazz_id,stu_class,stu_grade,stu_classnickname,stu_sex,stu_photo from sys_student left join sys_school on sys_student.school_id=sys_school.school_id
|
|
|
left join sys_parents_stu on sys_student.stu_id=sys_parents_stu.stu_id left join sys_parents on sys_parents.parent_id =
|
|
|
sys_parents_stu.parent_id where stu_cardNo = #{cardNo} and ifnull(openid,'') != ''
|
|
|
</select>
|
|
|
|
|
|
+ <update id="updatePhoto">
|
|
|
+ update sys_student set stu_photo = #{photo} where stu_id = #{stuId}
|
|
|
+ </update>
|
|
|
+
|
|
|
<resultMap id="studentInfo" type="com.usoftchina.smartschool.device.po.StudentInfo" >
|
|
|
<result column="school_appid" property="appId" jdbcType="VARCHAR" />
|
|
|
<result column="school_secret" property="secret" jdbcType="VARCHAR" />
|
|
|
@@ -21,5 +25,6 @@
|
|
|
<result column="stu_grade" property="stuGrade" jdbcType="VARCHAR" />
|
|
|
<result column="stu_classnickname" property="stuClassnickname" jdbcType="VARCHAR"/>
|
|
|
<result column="stu_sex" property="stuSex" jdbcType="INTEGER"/>
|
|
|
+ <result column="stu_photo" property="stuPhoto" jdbcType="VARCHAR"/>
|
|
|
</resultMap>
|
|
|
</mapper>
|