Selaa lähdekoodia

Merge remote-tracking branch 'origin/master'

Joburgess 5 vuotta sitten
vanhempi
commit
0701f64c03

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

@@ -34,7 +34,8 @@
         WHERE id_ = #{id}
     </select>
 
-    <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.StudentRepair">
+    <insert id="insert" parameterType="com.ym.mec.biz.dal.entity.StudentRepair" useGeneratedKeys="true" keyColumn="id"
+            keyProperty="id">
         <!--@mbg.generated-->
         insert into student_repair (id_, trans_no_, organ_id_,
         student_id_, student_name_, student_school_,
@@ -175,7 +176,7 @@
             <if test="studentId != null">
                 AND sr.student_id_ = #{studentId}
             </if>
-            <if test="organIdList != null">
+            <if test="organIdList != null and organIdList != ''">
                 AND FIND_IN_SET(sr.organ_id_,#{organIdList})
             </if>
             <if test="subjectId != null">