zouxuan месяцев назад: 3
Родитель
Сommit
da10f893f4
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

+ 3 - 0
mec-biz/src/main/resources/config/mybatis/StudentMapper.xml

@@ -151,6 +151,9 @@
     <update id="update" parameterType="com.ym.mec.biz.dal.entity.Student">
         UPDATE student
         <set>
+            <if test="username != null and username != ''">
+                username_ = #{username},
+            </if>
             <if test="courseTeacher != null">
                 course_teacher_ = #{courseTeacher},
             </if>