CGrowthsMapper.xml
1.1 KB
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.bronet.admin.demo.mapper.CGrowthsMapper">
<resultMap type="cn.bronet.admin.demo.domain.CGrowths" id="CGrowthsResult">
<result property="id" column="id"/>
<result property="title" column="title"/>
<result property="otherTitle" column="other_title"/>
<result property="userId" column="user_id"/>
<result property="gradeParentId" column="grade_parent_id"/>
<result property="gradeId" column="grade_id"/>
<result property="type" column="type"/>
<result property="createTime" column="create_time"/>
<result property="updateTime" column="update_time"/>
</resultMap>
<select id="studentList" resultType="long" >
SELECT user_id FROM c_relationship_student_sgc WHERE gerde_id =#{gid} AND school_id=#{sid}
</select>
<select id="growth" resultMap="CGrowthsResult">
SELECT * From c_growths WHERE user_id =#{uid} And grade_parent_id= #{gpid}
</select>
</mapper>