Commit 73987abe by guojx

自定义模板查询调整:如果没有userId,则查询全部

parent 5b55e0a4
......@@ -65,7 +65,10 @@
<include refid="queryTables"/>
<include refid="queryJoins"/>
WHERE
q.user_id = #{userId}
1=1
<if test="userId != null and userId != ''">
and q.user_id = #{userId}
</if>
<if test="fuzzy != '' ">
<bind name="pattern" value="'%' + fuzzy + '%'" />
AND (
......
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