Commit a5757709 authored by maoying's avatar maoying

修改sql where写法

parent e9b75c08
......@@ -256,8 +256,7 @@
frs.name riskSourceName
from f_fire_equipment fe
left join f_risk_source frs on frs.id = fe.risk_source_id
where
1=1
<where>
<if test="equipClassify!=null">
and fe.equip_classify in ( ${equipClassify} )
</if>
......@@ -268,6 +267,7 @@
<if test="name!=null">
and (fe.`name` like '%${name}%' or fe.`code` like '%${name}%')
</if>
</where>
LIMIT ${start},${length}
</select>
......@@ -301,8 +301,9 @@
FROM
f_equipment eq
LEFT JOIN f_fire_station fs ON fs.id = eq.fire_station_id
WHERE 1=1
<where>
<if test="id!=null">AND eq.id = #{id}</if>
</where>
</select>
<select id="findAllEquipPointInfo" resultType="com.yeejoin.amos.fas.business.vo.EquipCommunicationData">
......
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