Commit 43316bc7 authored by maoying's avatar maoying

修改三维搜索接口查询

parent 15902deb
...@@ -608,8 +608,7 @@ ...@@ -608,8 +608,7 @@
WHERE WHERE
s.instanceId = r.source_id s.instanceId = r.source_id
) AS tmp ) AS tmp
HAVING <where>
1 = 1
<if test="inputText!=null and inputText != ''"> <if test="inputText!=null and inputText != ''">
( (
tmp.code LIKE '%${inputText}%' tmp.code LIKE '%${inputText}%'
...@@ -622,6 +621,7 @@ ...@@ -622,6 +621,7 @@
<if test="riskSourceId != null and riskSourceId!=''"> <if test="riskSourceId != null and riskSourceId!=''">
AND tmp.riskSourceId = #{riskSourceId} AND tmp.riskSourceId = #{riskSourceId}
</if> </if>
</where>
) t ) t
</select> </select>
<select id="retrieveAll" resultType="java.util.HashMap"> <select id="retrieveAll" resultType="java.util.HashMap">
...@@ -1066,8 +1066,7 @@ ...@@ -1066,8 +1066,7 @@
f_risk_source r f_risk_source r
where s.instanceId = r.source_id where s.instanceId = r.source_id
) as tmp ) as tmp
HAVING <where>
1 = 1
<if test="inputText!=null and inputText != ''"> <if test="inputText!=null and inputText != ''">
AND ( AND (
tmp.code LIKE '%${inputText}%' tmp.code LIKE '%${inputText}%'
...@@ -1080,6 +1079,7 @@ ...@@ -1080,6 +1079,7 @@
<if test="riskSourceId != null and riskSourceId!=''"> <if test="riskSourceId != null and riskSourceId!=''">
AND tmp.riskSourceId = #{riskSourceId} AND tmp.riskSourceId = #{riskSourceId}
</if> </if>
</where>
LIMIT ${start},${length} LIMIT ${start},${length}
</select> </select>
<select id="retrieve3AllCount" resultType="long"> <select id="retrieve3AllCount" resultType="long">
......
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