Commit 1846daa5 authored by maoying's avatar maoying

修改脚本文件

parent a89e1576
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
<select id="queryForFireEquipmentHistoryCount" resultType="long"> <select id="queryForFireEquipmentHistoryCount" resultType="long">
<!-- SELECT SELECT
count(1) count(1)
FROM FROM
( (
...@@ -159,12 +159,12 @@ ...@@ -159,12 +159,12 @@
</if> </if>
<if test="startTime!=null"> <if test="startTime!=null">
AND d.create_date BETWEEN '${startTime}' AND '${endTime}' AND d.create_date BETWEEN '${startTime}' AND '${endTime}'
</if> --> </if>
</select> </select>
<select id="queryForFireEquipmentHistory" resultType="map"> <select id="queryForFireEquipmentHistory" resultType="map">
<!-- SELECT SELECT
d.* d.*
FROM FROM
( (
...@@ -220,7 +220,6 @@ ...@@ -220,7 +220,6 @@
</if> </if>
ORDER BY d.create_date desc ORDER BY d.create_date desc
LIMIT ${start},${length} LIMIT ${start},${length}
-->
</select> </select>
...@@ -326,7 +325,7 @@ ...@@ -326,7 +325,7 @@
</select> </select>
<select id="findAllEquipPointInfo" resultType="com.yeejoin.amos.fas.business.vo.EquipCommunicationData"> <select id="findAllEquipPointInfo" resultType="com.yeejoin.amos.fas.business.vo.EquipCommunicationData">
<!-- SELECT SELECT
p.`code` pointCode, p.`code` pointCode,
p.`name` pointName, p.`name` pointName,
f.`name` equimentName, f.`name` equimentName,
...@@ -342,11 +341,11 @@ ...@@ -342,11 +341,11 @@
LEFT JOIN f_fire_equipment e ON e.id = p.fire_equipment_id LEFT JOIN f_fire_equipment e ON e.id = p.fire_equipment_id
LEFT JOIN f_equipment_fire_equipment fe ON fe.fire_equipment_id = e.id LEFT JOIN f_equipment_fire_equipment fe ON fe.fire_equipment_id = e.id
LEFT JOIN f_equipment f ON f.id = fe.equipment_id LEFT JOIN f_equipment f ON f.id = fe.equipment_id
LEFT JOIN f_dict d on d.id = p.alarm_type --> LEFT JOIN f_dict d on d.id = p.alarm_type
</select> </select>
<select id="findOneByPointCode" resultType="com.yeejoin.amos.fas.business.vo.EquipCommunicationData"> <select id="findOneByPointCode" resultType="com.yeejoin.amos.fas.business.vo.EquipCommunicationData">
<!-- SELECT SELECT
p.`code` pointCode, p.`code` pointCode,
p.`name` pointName, p.`name` pointName,
e.id fireEquipmentId, e.id fireEquipmentId,
...@@ -359,7 +358,7 @@ ...@@ -359,7 +358,7 @@
f_fire_equipment_point p f_fire_equipment_point p
LEFT JOIN f_fire_equipment e ON e.id = p.fire_equipment_id LEFT JOIN f_fire_equipment e ON e.id = p.fire_equipment_id
LEFT JOIN f_dict d on d.id = p.alarm_type LEFT JOIN f_dict d on d.id = p.alarm_type
where p.`code` = #{code} --> where p.`code` = #{code}
</select> </select>
<select id="listByCodes" resultType="com.yeejoin.amos.fas.business.entity.mybatis.FireEquipmentEntity"> <select id="listByCodes" resultType="com.yeejoin.amos.fas.business.entity.mybatis.FireEquipmentEntity">
...@@ -393,7 +392,7 @@ ...@@ -393,7 +392,7 @@
<insert id="saveBatch" keyColumn="id" keyProperty="id" <insert id="saveBatch" keyColumn="id" keyProperty="id"
parameterType="com.yeejoin.amos.fas.business.param.FireEquipmentParam" parameterType="com.yeejoin.amos.fas.business.param.FireEquipmentParam"
useGeneratedKeys="true"> useGeneratedKeys="true">
<!-- insert into f_fire_equipment insert into f_fire_equipment
( (
org_code, org_code,
code, code,
...@@ -432,7 +431,7 @@ ...@@ -432,7 +431,7 @@
#{item.weight}, #{item.weight},
#{item.riskSourceId} #{item.riskSourceId}
) )
</foreach> --> </foreach>
</insert> </insert>
<update id="updateBatch"> <update id="updateBatch">
......
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