|
@@ -5,6 +5,7 @@
|
|
|
<result column="id_" jdbcType="INTEGER" property="id"/>
|
|
|
<result column="trans_no_" jdbcType="VARCHAR" property="transNo"/>
|
|
|
<result column="organ_id_" jdbcType="INTEGER" property="organId"/>
|
|
|
+ <result column="name_" jdbcType="INTEGER" property="organName"/>
|
|
|
<result column="student_id_" jdbcType="INTEGER" property="studentId"/>
|
|
|
<result column="student_name_" jdbcType="VARCHAR" property="studentName"/>
|
|
|
<result column="student_school_" jdbcType="VARCHAR" property="studentSchool"/>
|
|
@@ -157,7 +158,8 @@
|
|
|
</select>
|
|
|
|
|
|
<select id="queryPage" resultMap="StudentRepair">
|
|
|
- SELECT * FROM student_repair sr
|
|
|
+ SELECT sr.*,o.name_ FROM student_repair sr
|
|
|
+ LEFT JOIN organization o ON o.id_ = sr.organ_id_
|
|
|
<include refid="queryPageSql"/>
|
|
|
<include refid="global.limit"/>
|
|
|
</select>
|