select id, wcBid, wcName, wcDesc, wcStatus, wcLevel, wcTouchtype, wcCondition,wcRepeatnum, wcCreator, wcCreateddate, wcModifieddate, wcModifier, tid from IotWarnconfig insert into IotWarnconfig wcBid, wcName, wcDesc, wcStatus, wcLevel, wcTouchtype, wcCondition, wcRepeatnum, wcCreator, wcCreateddate, wcModifieddate, wcModifier, tid, #{wcBid}, #{wcName}, #{wcDesc}, #{wcStatus}, #{wcLevel}, #{wcTouchtype}, #{wcCondition}, #{wcRepeatnum}, #{wcCreator}, #{wcCreateddate}, #{wcModifieddate}, #{wcModifier}, #{tid}, update IotWarnconfig wcBid = #{wcBid}, wcName = #{wcName}, wcDesc = #{wcDesc}, wcStatus = #{wcStatus}, wcLevel = #{wcLevel}, wcTouchtype = #{wcTouchtype}, wcCondition = #{wcCondition}, wcRepeatnum = #{wcRepeatnum}, wcCreator = #{wcCreator}, wcCreateddate = #{wcCreateddate}, wcModifieddate = #{wcModifieddate}, wcModifier = #{wcModifier}, tid = #{tid}, where wcBid = #{wcBid} delete from IotWarnconfig where wcBid = #{wcBid} and tid = #{tid} delete from IotWarnconfig where tid = #{tid} and wcBid in #{wcBid}