Przeglądaj źródła

fengji 修复sql 错误

yanite 3 lat temu
rodzic
commit
9b747a3b92

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

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