insert into sys_steel steel_id, steel_name, steel_model, unit, stock, create_time, create_user, is_use, company_id, #{steelId,jdbcType=VARCHAR}, #{steelName,jdbcType=VARCHAR}, #{steelModel,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{stock,jdbcType=DOUBLE}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=VARCHAR}, #{isUse,jdbcType=INTEGER}, #{companyId,jdbcType=VARCHAR}, update sys_steel set is_use=2 where steel_id=#{steelId} update sys_steel steel_name = #{steelName,jdbcType=VARCHAR}, steel_model = #{steelModel,jdbcType=VARCHAR}, unit = #{unit,jdbcType=VARCHAR}, stock = #{stock,jdbcType=DOUBLE}, create_time = #{createTime,jdbcType=TIMESTAMP}, create_user = #{createUser,jdbcType=VARCHAR}, is_use = #{isUse,jdbcType=INTEGER}, where steel_id = #{steelId,jdbcType=VARCHAR} update sys_steel set stock=#{correctionAfter} where steel_id=#{steelId} insert into sys_steel_correction id, steel_id, correction_before, correction_num, correction_after, remark, create_time, create_user, #{ids,jdbcType=VARCHAR}, #{steelId,jdbcType=VARCHAR}, #{correctionBefore,jdbcType=VARCHAR}, #{correctionNum,jdbcType=VARCHAR}, #{correctionAfter,jdbcType=VARCHAR}, #{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{createUser,jdbcType=VARCHAR}, update sys_steel set alarm_count=#{alarmCount} where steel_id=#{steelId}