insert into t_steel_consumption consumption_id, size_id, reinforcement_id, block_id, pro_id, create_time, create_user, is_use, #{consumptionId,jdbcType=VARCHAR}, #{sizeId,jdbcType=VARCHAR}, #{reinforcementId,jdbcType=VARCHAR}, #{blockId,jdbcType=VARCHAR}, #{proId,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=VARCHAR}, #{isUse,jdbcType=INTEGER}, insert into t_steel_need id, consumption_id, steel_id, need_num, coefficient, #{id}, #{consumptionId,jdbcType=VARCHAR}, #{steelId,jdbcType=VARCHAR}, #{needNum,jdbcType=VARCHAR}, #{coefficient,jdbcType=VARCHAR}, update t_steel_consumption set is_use=2 where consumption_id=#{consumptionId} delete from t_steel_need where consumption_id=#{consumptionId} update t_steel_consumption size_id = #{sizeId,jdbcType=VARCHAR}, reinforcement_id = #{reinforcementId,jdbcType=VARCHAR}, block_id = #{blockId,jdbcType=VARCHAR}, pro_id = #{proId,jdbcType=VARCHAR}, create_time = #{createTime,jdbcType=TIMESTAMP}, create_user = #{createUser,jdbcType=VARCHAR}, is_use = #{isUse,jdbcType=INTEGER}, where consumption_id = #{consumptionId,jdbcType=VARCHAR}