Commit 46d6b1ef by 陶光胜

取数平台调整

parent dee84d1f
...@@ -54,15 +54,16 @@ ...@@ -54,15 +54,16 @@
FROM FROM
<include refid="queryTables"/> <include refid="queryTables"/>
<include refid="queryJoins"/> <include refid="queryJoins"/>
where 1=1
<if test="fuzzy != '' "> <if test="fuzzy != '' ">
<bind name="pattern" value="'%' + fuzzy + '%'" /> <bind name="pattern" value="'%' + fuzzy + '%'" />
WHERE and
q.table_id LIKE #{pattern} (q.table_id LIKE #{pattern}
OR q.name LIKE #{pattern} OR q.name LIKE #{pattern}
OR q.description LIKE #{pattern} OR q.description LIKE #{pattern})
</if> </if>
<if test="authTables != null and authTables.size()>0"> <if test="authTables != null and authTables.size()>0">
where q.table_id in and q.table_id in
<foreach close=")" collection="authTables" index="index" item="item" open="(" separator=","> <foreach close=")" collection="authTables" index="index" item="item" open="(" separator=",">
#{item} #{item}
</foreach> </foreach>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment