insert into t_big_inspect
big_inspect_id,
big_device_id,
inspect_time,
inspect_result,
create_time,
create_user,
is_use,
#{bigInspectId,jdbcType=VARCHAR},
#{bigDeviceId,jdbcType=VARCHAR},
#{inspectTime,jdbcType=TIMESTAMP},
#{inspectResult,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{isUse,jdbcType=INTEGER},
insert into t_big_inspect_type
inspect_type_id,
big_inspect_id,
type_id,
#{inspectTypeId,jdbcType=VARCHAR},
#{bigInspectId,jdbcType=VARCHAR},
#{typeId,jdbcType=VARCHAR},
delete from t_big_inspect_type where big_inspect_id=#{bigInspectId}
update t_big_inspect set
is_use=2
where big_inspect_id=#{bigInspectId}
update t_big_inspect
big_device_id = #{bigDeviceId,jdbcType=VARCHAR},
inspect_time = #{inspectTime,jdbcType=TIMESTAMP},
inspect_result = #{inspectResult,jdbcType=VARCHAR},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=VARCHAR},
is_use = #{isUse,jdbcType=INTEGER},
where big_inspect_id = #{bigInspectId,jdbcType=VARCHAR}