id,
code,
userId,
userName,
isDirector,
locSubInvCode
delete
from auth_warehouse_user
where userid = #{id}
and code = #{code}
insert into auth_warehouse_user (code, userId, userName, isDirector)
values (#{code,jdbcType=VARCHAR}, #{userid,jdbcType=BIGINT}, #{username,jdbcType=VARCHAR}, #{isDirector})
insert into auth_warehouse_user
id,
code,
userId,
userName,
isDirector,
values
#{id,jdbcType=INTEGER},
#{code,jdbcType=VARCHAR},
#{userid,jdbcType=BIGINT},
#{username,jdbcType=VARCHAR},
#{isDirector}
on duplicate key update
id = #{id,jdbcType=INTEGER},
code = #{code,jdbcType=VARCHAR},
userId = #{userid,jdbcType=BIGINT},
userName = #{username,jdbcType=VARCHAR},
delete
from auth_warehouse_user
where code = #{code}