瀏覽代碼

修改sql

hgw 3 年之前
父節點
當前提交
92c0078966
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      mec-biz/src/main/resources/config/mybatis/MusicGroupPerformanceMapper.xml

+ 2 - 0
mec-biz/src/main/resources/config/mybatis/MusicGroupPerformanceMapper.xml

@@ -97,7 +97,9 @@
 		SELECT mgp.* FROM music_group_performance mgp
 		LEFT JOIN music_group mg ON mg.id_ = mgp.music_group_id_
 		WHERE DATEDIFF(DATE_FORMAT(start_time_, '%Y-%m-%d'),DATE_FORMAT(NOW(), '%Y-%m-%d')) >= 0
+        <if test="educationUserId != null">
 			AND mg.educational_teacher_id_ = #{educationUserId}
+		</if>
 		<if test="organIds != null and organIds != ''">
 			AND FIND_IN_SET(mg.organ_id_,#{organIds})
 		</if>