insert into t_region_warranty
id,
region_hazard_inform_id,
risk_source_situation,
countermeasures,
create_time,
create_user,
company_id,
#{id,jdbcType=VARCHAR},
#{regionHazardInformId,jdbcType=VARCHAR},
#{riskSourceSituation,jdbcType=VARCHAR},
#{countermeasures,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{companyId,jdbcType=VARCHAR},
update t_region_warranty
#{regionHazardInformId,jdbcType=VARCHAR},
#{riskSourceSituation,jdbcType=VARCHAR},
#{countermeasures,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}
update t_region_warranty set is_use = 2 where id = #{id,jdbcType=VARCHAR}
insert into t_region_warranty_user
id,
region_warranty_id,
user_type,
user_id,
#{id},
#{regionWarrantyId},
#{userType},
#{userId},
delete from t_region_warranty_user where region_warranty_id = #{id,jdbcType=VARCHAR}