|
|
|
@ -25,32 +25,6 @@
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="filterInvBusUserEnable" parameterType="com.glxp.api.req.auth.FilterInvBusUserRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.auth.InvBusUserEntity">
|
|
|
|
|
select *
|
|
|
|
|
FROM auth_user_bustype aub
|
|
|
|
|
inner join basic_bussiness_type bbt on aub.scAction = bbt.action
|
|
|
|
|
<where>
|
|
|
|
|
<if test="userId != '' and userId != null">
|
|
|
|
|
AND userId = #{userId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="subInvCode != '' and subInvCode != null">
|
|
|
|
|
AND subInvCode = #{subInvCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="scAction != '' and scAction != null">
|
|
|
|
|
AND scAction = #{scAction}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="enable != '' and enable != null">
|
|
|
|
|
AND enable = #{enable}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="selectedCodes != null and selectedCodes.size() != 0">
|
|
|
|
|
and scAction not in
|
|
|
|
|
<foreach collection="selectedCodes" item="item" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterUnSelect" parameterType="com.glxp.api.req.auth.FilterInvBusUserRequest"
|
|
|
|
@ -75,24 +49,6 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select id="filterJoinInvBusUser" parameterType="com.glxp.api.req.auth.FilterInvBusUserRequest"
|
|
|
|
|
resultType="com.glxp.api.res.auth.InvBusUserResponse">
|
|
|
|
|
select auth_user_bustype.*, basic_bussiness_type.name billTypeName
|
|
|
|
|
FROM auth_user_bustype
|
|
|
|
|
left join basic_bussiness_type on auth_user_bustype.scAction = basic_bussiness_type.action
|
|
|
|
|
<where>
|
|
|
|
|
<if test="userId != '' and userId != null">
|
|
|
|
|
AND userId = #{userId}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="subInvCode != '' and subInvCode != null">
|
|
|
|
|
AND subInvCode = #{subInvCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="scAction != '' and scAction != null">
|
|
|
|
|
AND scAction = #{scAction}
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
group by auth_user_bustype.id
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<insert id="insertInvBusUser"
|
|
|
|
@ -119,21 +75,6 @@
|
|
|
|
|
WHERE subInvCode = #{subInvCode}
|
|
|
|
|
and userId = #{userId}
|
|
|
|
|
</delete>
|
|
|
|
|
<delete id="deleteByscAction" parameterType="Map">
|
|
|
|
|
DELETE
|
|
|
|
|
FROM auth_user_bustype
|
|
|
|
|
<where>
|
|
|
|
|
<if test="subInvCode != '' and subInvCode != null">
|
|
|
|
|
AND subInvCode = #{subInvCode}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="selectedCodes != null and selectedCodes.size() != 0">
|
|
|
|
|
and scAction in
|
|
|
|
|
<foreach collection="selectedCodes" item="item" open="(" separator="," close=")">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
</where>
|
|
|
|
|
</delete>
|
|
|
|
|
<update id="updateInvBusUser" parameterType="com.glxp.api.entity.auth.InvBusUserEntity">
|
|
|
|
|
UPDATE auth_user_bustype
|
|
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
|
|