提交 d8c1a3f8 作者: 925993793@qq.com

sql优化

上级 92bb7099
......@@ -69,7 +69,14 @@
s.time_disable as end_time
from subject s
where
<choose>
<when test="sql != null and sql != ''">
((s.face_public = #{facePublic} and s.create_by = #{username}) or (s.face_public = #{facePublic} and ${sql}))
</when>
<otherwise>
(s.create_by = #{username} or s.face_public = #{facePublic})
</otherwise>
</choose>
<if test="subjectType!=null">
and s.subject_type = #{subjectType}
</if>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论