zouxuan há 5 anos atrás
pai
commit
14ce5e0b60

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

@@ -276,6 +276,7 @@
     </select>
     </select>
     
     
     <update id="updateViPSignOutStatus" parameterType="string">
     <update id="updateViPSignOutStatus" parameterType="string">
-    	update teacher_attendance set sign_out_status_ = 1,sign_out_time_= now() where course_schedule_id_ in (#{courseScheduleIdList}) and sign_in_status_ = 1
+    	update teacher_attendance set sign_out_status_ = 1,sign_out_time_= now()
+    	where FIND_IN_SET(course_schedule_id_,#{courseScheduleIdList}) and sign_in_status_ = 1
     </update>
     </update>
 </mapper>
 </mapper>

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

@@ -169,6 +169,9 @@
             <if test="username != null">
             <if test="username != null">
                 username_ = #{username},
                 username_ = #{username},
             </if>
             </if>
+            <if test="realName != null">
+                real_name_ = #{realName},
+            </if>
             <if test="userType != null">
             <if test="userType != null">
                 user_type_ = #{userType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
                 user_type_ = #{userType, typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler},
             </if>
             </if>