Parcourir la source

fix记录查询问题

周箭河 il y a 5 ans
Parent
commit
01b7f2d8ea

+ 2 - 1
mec-biz/src/main/resources/config/mybatis/StudentRepairMapper.xml

@@ -29,6 +29,7 @@
         <result column="repair_status_" jdbcType="INTEGER" property="repairStatus"/>
         <result column="repair_status_" jdbcType="INTEGER" property="repairStatus"/>
         <result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
         <result column="create_time_" jdbcType="TIMESTAMP" property="createTime"/>
         <result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
         <result column="update_time_" jdbcType="TIMESTAMP" property="updateTime"/>
+        <result column="username_" jdbcType="VARCHAR" property="studentName"/>
     </resultMap>
     </resultMap>
     <!-- 根据主键查询一条记录 -->
     <!-- 根据主键查询一条记录 -->
     <select id="get" resultMap="StudentRepair">
     <select id="get" resultMap="StudentRepair">
@@ -151,7 +152,7 @@
     </select>
     </select>
 
 
     <select id="queryPage" resultMap="StudentRepair">
     <select id="queryPage" resultMap="StudentRepair">
-        SELECT sr.*,o.name_,su.username_ student_name_ FROM student_repair sr
+        SELECT sr.*,o.name_,su.username_ FROM student_repair sr
         LEFT JOIN organization o ON o.id_ = sr.organ_id_
         LEFT JOIN organization o ON o.id_ = sr.organ_id_
         LEFT JOIN sys_user su on sr.student_id_ = su.id_
         LEFT JOIN sys_user su on sr.student_id_ = su.id_
         <include refid="queryPageSql"/>
         <include refid="queryPageSql"/>