Преглед на файлове

fengji 修复sql 错误

yanite преди 3 години
родител
ревизия
9b747a3b92
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      mec-biz/src/main/resources/config/mybatis/StudentGoodsSellMapper.xml

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

@@ -119,7 +119,7 @@
 		<where>
 			sgs.tenant_id_ = #{tenantId}
 			<if test="teacherId != null">
-				sgs.teacher_id_ = #{teacherId}
+				AND sgs.teacher_id_ = #{teacherId}
 			</if>
 			<if test="studentId != null">
 				AND sgs.user_id_ = #{studentId}