Commit e26568e8 authored by suhuiguang's avatar suhuiguang

1.消防系统编辑数据同步sql报错

parent 3b96edd7
...@@ -753,6 +753,7 @@ ...@@ -753,6 +753,7 @@
<select id="getFireFightingSystemDetail" <select id="getFireFightingSystemDetail"
resultType="com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem"> resultType="com.yeejoin.equipmanage.common.datasync.entity.FireFightingSystem">
SELECT SELECT
fs.id, fs.id,
f.`name` AS stationname, f.`name` AS stationname,
f.`code` AS stationcode, f.`code` AS stationcode,
...@@ -760,7 +761,7 @@ ...@@ -760,7 +761,7 @@
fs.`name` AS aliasname, fs.`name` AS aliasname,
fs.`code`, fs.`code`,
fg.group_name AS systemtype, fg.group_name AS systemtype,
IFNULL(fs.install_date,'') AS installdate, fs.install_date AS installdate,
IFNULL(p.`name`,'') AS chargeperson, IFNULL(p.`name`,'') AS chargeperson,
IFNULL(fs.charge_person_phone,'') AS chargepersonphone, IFNULL(fs.charge_person_phone,'') AS chargepersonphone,
IFNULL(mi.`name`,'') AS constructionunit, IFNULL(mi.`name`,'') AS constructionunit,
...@@ -780,8 +781,8 @@ ...@@ -780,8 +781,8 @@
LEFT JOIN rpm_person p ON p.id = fs.charge_person, LEFT JOIN rpm_person p ON p.id = fs.charge_person,
f_station_info f f_station_info f
<where> <where>
<if test="id != null and id !=''"> <if test="fireFightingSystemVo != null and fireFightingSystemVo.id != null and fireFightingSystemVo.id !=''">
fs.id = #{id} fs.id = #{fireFightingSystemVo.id}
</if> </if>
</where> </where>
</select> </select>
......
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