id,reason,disabled,
deleted,pro_id,sort
${alias}.id,
${alias}.reason,
${alias}.pro_id,
${alias}.sort,
${alias}.deleted,
${alias}.disabled
delete from plt_product_scrapping_reason
where id = #{id,jdbcType=BIGINT}
insert into plt_product_scrapping_reason
id,
reason,
pro_id,
sort,
deleted,
#{id,jdbcType=BIGINT},
#{reason,jdbcType=VARCHAR},
#{proId,jdbcType=VARCHAR},
#{sort,jdbcType=INTEGER},
#{deleted,jdbcType=TINYINT},
update plt_product_scrapping_reason
reason = #{reason,jdbcType=VARCHAR},
pro_id = #{proId,jdbcType=VARCHAR},
sort = #{sort,jdbcType=INTEGER},
disabled = #{disabled,jdbcType=TINYINT},
deleted = #{deleted,jdbcType=TINYINT},
where id = #{id,jdbcType=BIGINT}
update plt_product_scrapping_reason set deleted = 1
where id = #{id}