insert into t_region_inspection id, task, standard, createUser, createTime, updateUser, updateTime, companyId, #{id,jdbcType=VARCHAR}, #{task,jdbcType=VARCHAR}, #{standard,jdbcType=VARCHAR}, #{createUser,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateUser,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{companyId,jdbcType=VARCHAR}, on duplicate key update task = #{task,jdbcType=VARCHAR}, standard = #{standard,jdbcType=VARCHAR}, createUser = #{createUser,jdbcType=VARCHAR}, createTime = #{createTime,jdbcType=TIMESTAMP}, updateUser = #{updateUser,jdbcType=VARCHAR}, updateTime = #{updateTime,jdbcType=TIMESTAMP}, companyId = #{companyId,jdbcType=VARCHAR}, update t_region_inspection set isUse = 0 where id = #{id,jdbcType=VARCHAR} insert into t_region_inspection_user id, regionInspectionId, userId, #{id,jdbcType=VARCHAR}, #{regionInspectionId,jdbcType=VARCHAR}, #{userId,jdbcType=VARCHAR}, delete from t_region_inspection_user where regionInspectionId = #{regionInspectionId,jdbcType=VARCHAR} insert into t_region_inspection_hazard_inform id, regionInspectionId, regionHazardInformId, sort, #{id,jdbcType=VARCHAR}, #{regionInspectionId,jdbcType=VARCHAR}, #{regionHazardInformId,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, delete from t_region_inspection_hazard_inform where regionInspectionId = #{regionInspectionId,jdbcType=VARCHAR}