insert into allocation_user_storehouse(
res_name,start_user_id,accept_user_id,accept_user_name,start_user_name,aus_id,remark,store_id,stock,res_id,give_quantity
) values (
#{resName},#{startUserId},#{acceptUserId},#{acceptUserName},#{startUserName},#{ausId},#{remark},#{storeId},#{stock},#{resId},#{giveQuantity}
)
update allocation_user_storehouse t set t.status_cd = #{statusCd}
,t.b_id = #{newBId}
, t.res_name= #{resName}
, t.start_user_id= #{startUserId}
, t.accept_user_id= #{acceptUserId}
, t.accept_user_name= #{acceptUserName}
, t.start_user_name= #{startUserName}
, t.remark= #{remark}
, t.store_id= #{storeId}
, t.stock= #{stock}
, t.res_id= #{resId}
, t.give_quantity= #{giveQuantity}
where 1=1
and t.aus_id= #{ausId}