zouxuan 5 năm trước cách đây
mục cha
commit
1f79daf6b9

+ 14 - 0
mec-biz/src/main/java/com/ym/mec/biz/dal/entity/StudentRepair.java

@@ -16,6 +16,12 @@ public class StudentRepair {
     */
     */
     private Integer organId;
     private Integer organId;
 
 
+
+    /**
+    * 分部id
+    */
+    private String organName;
+
     /**
     /**
     * 学生id
     * 学生id
     */
     */
@@ -116,6 +122,14 @@ public class StudentRepair {
     */
     */
     private Date updateTime;
     private Date updateTime;
 
 
+    public String getOrganName() {
+        return organName;
+    }
+
+    public void setOrganName(String organName) {
+        this.organName = organName;
+    }
+
     public Integer getRepairStatus() {
     public Integer getRepairStatus() {
         return repairStatus;
         return repairStatus;
     }
     }

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

@@ -5,6 +5,7 @@
         <result column="id_" jdbcType="INTEGER" property="id"/>
         <result column="id_" jdbcType="INTEGER" property="id"/>
         <result column="trans_no_" jdbcType="VARCHAR" property="transNo"/>
         <result column="trans_no_" jdbcType="VARCHAR" property="transNo"/>
         <result column="organ_id_" jdbcType="INTEGER" property="organId"/>
         <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_id_" jdbcType="INTEGER" property="studentId"/>
         <result column="student_name_" jdbcType="VARCHAR" property="studentName"/>
         <result column="student_name_" jdbcType="VARCHAR" property="studentName"/>
         <result column="student_school_" jdbcType="VARCHAR" property="studentSchool"/>
         <result column="student_school_" jdbcType="VARCHAR" property="studentSchool"/>
@@ -157,7 +158,8 @@
     </select>
     </select>
 
 
     <select id="queryPage" resultMap="StudentRepair">
     <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="queryPageSql"/>
         <include refid="global.limit"/>
         <include refid="global.limit"/>
     </select>
     </select>