|
|
|
@ -19,25 +19,6 @@
|
|
|
|
|
isDirector,
|
|
|
|
|
locSubInvCode
|
|
|
|
|
</sql>
|
|
|
|
|
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
select
|
|
|
|
|
<include refid="Base_Column_List"/>
|
|
|
|
|
from auth_warehouse_user
|
|
|
|
|
where id = #{id,jdbcType=INTEGER}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="selectNotSelectUserid" resultMap="BaseResultMap">
|
|
|
|
|
select *
|
|
|
|
|
from auth_warehouse_user
|
|
|
|
|
<where>
|
|
|
|
|
<if test="userIds != null and userIds.size() != 0">
|
|
|
|
|
and id in
|
|
|
|
|
<foreach collection="userIds" item="item" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
<delete id="deleteByCodeAndId">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
delete
|
|
|
|
@ -84,62 +65,7 @@
|
|
|
|
|
userName = #{username,jdbcType=VARCHAR},
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
<insert id="insertOrUpdateSelective" keyColumn="id" keyProperty="id"
|
|
|
|
|
parameterType="com.glxp.api.entity.auth.WarehouseUserEntity" useGeneratedKeys="true">
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
insert into auth_warehouse_user
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="code != null">
|
|
|
|
|
code,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userid != null">
|
|
|
|
|
userId,
|
|
|
|
|
</if>
|
|
|
|
|
<if test="username != null">
|
|
|
|
|
userName,
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
values
|
|
|
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
#{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="code != null">
|
|
|
|
|
#{code,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userid != null">
|
|
|
|
|
#{userid,jdbcType=BIGINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="username != null">
|
|
|
|
|
#{username,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
on duplicate key update
|
|
|
|
|
<trim suffixOverrides=",">
|
|
|
|
|
<if test="id != null">
|
|
|
|
|
id = #{id,jdbcType=INTEGER},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="code != null">
|
|
|
|
|
code = #{code,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="userid != null">
|
|
|
|
|
userId = #{userid,jdbcType=BIGINT},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="username != null">
|
|
|
|
|
userName = #{username,jdbcType=VARCHAR},
|
|
|
|
|
</if>
|
|
|
|
|
</trim>
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
<select id="selectListByCode" resultMap="BaseResultMap">
|
|
|
|
|
select auth_warehouse_user.*, auth_user.employeeName
|
|
|
|
|
from auth_warehouse_user
|
|
|
|
|
inner join auth_user on auth_user.id = auth_warehouse_user.userId
|
|
|
|
|
where code = #{code}
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectListkey" resultType="com.glxp.api.entity.auth.WarehouseUserEntity"
|
|
|
|
|
parameterType="com.glxp.api.req.auth.FilterInvLinkDataRequest">
|
|
|
|
@ -204,15 +130,4 @@
|
|
|
|
|
where code = #{code}
|
|
|
|
|
</delete>
|
|
|
|
|
|
|
|
|
|
<update id="updateDirector">
|
|
|
|
|
update auth_warehouse_user
|
|
|
|
|
set isDirector = #{isDirector}
|
|
|
|
|
where code = #{code}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
<update id="updateDirectorById">
|
|
|
|
|
update auth_warehouse_user
|
|
|
|
|
set isDirector = #{isDirector}
|
|
|
|
|
where id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
</mapper>
|
|
|
|
|