浏览代码

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}