|
|
|
@ -2,7 +2,6 @@
|
|
|
|
|
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
|
|
|
|
|
|
|
|
|
<mapper namespace="com.glxp.api.dao.auth.InvBusUserDao">
|
|
|
|
|
|
|
|
|
|
<select id="filterInvBusUser" parameterType="com.glxp.api.req.auth.FilterInvBusUserRequest"
|
|
|
|
|
resultType="com.glxp.api.entity.auth.InvBusUserEntity">
|
|
|
|
|
select *
|
|
|
|
@ -23,9 +22,7 @@
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -47,16 +44,15 @@
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
|
|
|
|
|
</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
|
|
|
|
|
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}
|
|
|
|
@ -67,10 +63,8 @@
|
|
|
|
|
<if test="scAction != '' and scAction != null">
|
|
|
|
|
AND scAction = #{scAction}
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
|
|
</where>
|
|
|
|
|
group by auth_user_bustype.id
|
|
|
|
|
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -79,12 +73,10 @@
|
|
|
|
|
replace
|
|
|
|
|
INTO auth_user_bustype
|
|
|
|
|
(userId, `subInvCode`, scAction, remark, updateTime)
|
|
|
|
|
values (
|
|
|
|
|
#{userId},
|
|
|
|
|
values (#{userId},
|
|
|
|
|
#{subInvCode},
|
|
|
|
|
#{scAction},
|
|
|
|
|
#{remark},now()
|
|
|
|
|
)
|
|
|
|
|
#{remark}, now())
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -118,13 +110,20 @@
|
|
|
|
|
<update id="updateInvBusUser" parameterType="com.glxp.api.entity.auth.InvBusUserEntity">
|
|
|
|
|
UPDATE auth_user_bustype
|
|
|
|
|
<trim prefix="set" suffixOverrides=",">
|
|
|
|
|
<if test="userId != null">
|
|
|
|
|
userId=#{userId},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="subInvCode != null">
|
|
|
|
|
subInvCode=#{subInvCode},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="scAction != null">
|
|
|
|
|
scAction=#{scAction},
|
|
|
|
|
</if>
|
|
|
|
|
<if test="remark != null">
|
|
|
|
|
remark=#{remark},
|
|
|
|
|
</if>
|
|
|
|
|
updateTime=now()
|
|
|
|
|
<if test="userId != null">userId=#{userId},</if>
|
|
|
|
|
<if test="subInvCode != null">subInvCode=#{subInvCode},</if>
|
|
|
|
|
<if test="scAction != null">scAction=#{scAction},</if>
|
|
|
|
|
<if test="remark != null">remark=#{remark},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|
</update>
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|