修改参数

This commit is contained in:
haozq 2024-09-23 16:06:46 +08:00
parent 8e0da57ba1
commit 36dee732c0
1 changed files with 4 additions and 3 deletions

View File

@ -8,7 +8,7 @@
dev_type, dev_code, dev_name, dev_type, dev_code, dev_name,
dev_status,dev_warn, del_flag, dev_status,dev_warn, del_flag,
dev_err, dev_factory, remark, pro_name, dev_err, dev_factory, remark, pro_name,
pro_code, rel_id,bd_id,rel_type pro_code, rel_id,bd_id,rel_type
)values )values
(#{deviceType},#{deviceCode},#{deviceName}, (#{deviceType},#{deviceCode},#{deviceName},
#{deviceOnlineState},#{deviceAlarmState},0, #{deviceOnlineState},#{deviceAlarmState},0,
@ -43,7 +43,8 @@
dev_status= #{deviceOnlineState},dev_warn=#{deviceAlarmState}, dev_status= #{deviceOnlineState},dev_warn=#{deviceAlarmState},
dev_err= #{deviceFailureState}, dev_factory=#{deviceFactory}, remark=#{remark}, dev_err= #{deviceFailureState}, dev_factory=#{deviceFactory}, remark=#{remark},
pro_name=#{deviceProjectCode}, pro_name=#{deviceProjectCode},
pro_code=#{deviceProjectCode},rel_type=#{relType} pro_code=#{deviceProjectCode},
rel_type=#{relType}
where rel_id=#{id} and bd_id=#{bdId} where rel_id=#{id} and bd_id=#{bdId}
</update> </update>
<!--数据采集同步--> <!--数据采集同步-->
@ -97,6 +98,6 @@
FROM sys_dict_data FROM sys_dict_data
WHERE dict_type='dev_type' WHERE dict_type='dev_type'
and status=0 and status=0
and dict_value LIKE CONCAT("%",#{},',',"%") and dict_value LIKE CONCAT("%",#{relType},',',"%")
</select> </select>
</mapper> </mapper>