insert into sys_embedment_goods
id,
embedment_name,
embedment_type,
embedment_model,
unit,
stock,
`position`,
alarm_count,
is_use,
create_time,
create_user,
remark,
company_id,
#{id,jdbcType=VARCHAR},
#{embedmentName,jdbcType=VARCHAR},
#{embedmentType,jdbcType=VARCHAR},
#{embedmentModel,jdbcType=VARCHAR},
#{unit,jdbcType=VARCHAR},
#{stock,jdbcType=INTEGER},
#{position,jdbcType=VARCHAR},
#{alarmCount,jdbcType=INTEGER},
#{isUse,jdbcType=INTEGER},
#{createTime,jdbcType=TIMESTAMP},
#{createUser,jdbcType=VARCHAR},
#{remark,jdbcType=VARCHAR},
#{companyId,jdbcType=VARCHAR},
update sys_embedment_goods set
is_use=2
where id=#{id}
update sys_embedment_goods set alarm_count = #{alarmCount}
where id=#{id}
update sys_embedment_goods
embedment_name = #{embedmentName,jdbcType=VARCHAR},
embedment_type = #{embedmentType,jdbcType=VARCHAR},
embedment_model = #{embedmentModel,jdbcType=VARCHAR},
unit = #{unit,jdbcType=VARCHAR},
stock = #{stock,jdbcType=INTEGER},
position = #{position,jdbcType=VARCHAR},
alarm_count = #{alarmCount,jdbcType=INTEGER},
is_use = #{isUse,jdbcType=INTEGER},
create_time = #{createTime,jdbcType=TIMESTAMP},
create_user = #{createUser,jdbcType=VARCHAR},
remark = #{remark,jdbcType=VARCHAR},
where id = #{id,jdbcType=VARCHAR}