id, code, userId, userName, isDirector,locSubInvCode
delete from auth_warehouse_user
where id = #{id,jdbcType=INTEGER}
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
code,
userId,
userName,
isDirector
#{code,jdbcType=VARCHAR},
#{userid,jdbcType=BIGINT},
#{username,jdbcType=VARCHAR},
#{isDirector}
update auth_warehouse_user
code = #{code,jdbcType=VARCHAR},
userId = #{userid,jdbcType=BIGINT},
userName = #{username,jdbcType=VARCHAR},
isDirector = #{isDirector}
where id = #{id,jdbcType=INTEGER}
update auth_warehouse_user
set code = #{code,jdbcType=VARCHAR},
userId = #{userid,jdbcType=BIGINT},
userName = #{username,jdbcType=VARCHAR}
isDirector = #{isDirector}
where id = #{id,jdbcType=INTEGER}
update auth_warehouse_user
when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.userid,jdbcType=BIGINT}
when id = #{item.id,jdbcType=INTEGER} then #{item.username,jdbcType=VARCHAR}
where id in
#{item.id,jdbcType=INTEGER}
update auth_warehouse_user
when id = #{item.id,jdbcType=INTEGER} then #{item.code,jdbcType=VARCHAR}
when id = #{item.id,jdbcType=INTEGER} then #{item.userid,jdbcType=BIGINT}
when id = #{item.id,jdbcType=INTEGER} then #{item.username,jdbcType=VARCHAR}
where id in
#{item.id,jdbcType=INTEGER}
insert into auth_warehouse_user
(code, userId, userName, isDirector)
values
(#{item.code,jdbcType=VARCHAR}, #{item.userid,jdbcType=BIGINT}, #{item.username,jdbcType=VARCHAR},
#{item.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},
insert into auth_warehouse_user
id,
code,
userId,
userName,
values
#{id,jdbcType=INTEGER},
#{code,jdbcType=VARCHAR},
#{userid,jdbcType=BIGINT},
#{username,jdbcType=VARCHAR},
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}
update auth_warehouse_user
set isDirector = #{isDirector}
where code = #{code}
update auth_warehouse_user
set isDirector = #{isDirector}
where id = #{id}