insert into IotWarnlog wlBid, wlName, wlType, wlContent, wlLevel, devtypeBid, devBid, status, wlDealuserid, wlDealresult, wlDealtime, wlCreateddate, wlData, tid, wcBid, wlSendmsgstatus, #{wlBid}, #{wlName}, #{wlType}, #{wlContent}, #{wlLevel}, #{devtypeBid}, #{devBid}, #{status}, #{wlDealuserid}, #{wlDealresult}, #{wlDealtime}, #{wlCreateddate}, #{wlData}, #{tid}, #{wcBid}, #{wlSendmsgstatus}, insert into IotWarncount wctBid, wcBid, devBid, wctCount, lastUpdateTime, tid, #{wctBid}, #{wcBid}, #{devBid}, #{wctCount}, #{lastUpdateTime}, #{tid}, update IotWarncount set wctCount=wctCount+1 where devBid=#{devBid} and wcBid=#{wcBid}; update IotWarncount set wctCount=0; update IotWarncount set wctCount=wctCount+1 where devBid=#{devBid} and wcBid=#{wcBid}; update IotWarncount set wctCount=0 where devBid=#{devBid} and wcBid=#{wcBid}; insert into IotWarnconfig wcBid, wcName, wcDesc, wcStatus, wcLevel, wcTouchtype, wcCondition, devtypeBid, wcRepeatnum, wcCreator, wcCreateddate, wcModifieddate, wcModifier, tid, #{wcBid}, #{wcName}, #{wcDesc}, #{wcStatus}, #{wcLevel}, #{wcTouchtype}, #{wcCondition}, #{devtypeBid}, #{wcRepeatnum}, #{wcCreator}, #{wcCreateddate}, #{wcModifieddate}, #{wcModifier}, #{tid}, update IotWarnlog status = #{status}, wlDealresult = #{wlDealresult}, wlDealtime = #{wlDealtime}, where devBid = #{devBid} and wlType='1' and status='0' update IotWarnlog set wlSendmsgstatus=#{status},wlSendmsgtime=#{time} where wlBid=#{wlBid}