Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haoban3.0
haoban-manage3.0
Commits
629b935c
Commit
629b935c
authored
Oct 27, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql
parent
c1aac7bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
MemberUnionidRelatedMapper.xml
.../src/main/resources/mapper/MemberUnionidRelatedMapper.xml
+10
-9
No files found.
haoban-manage3-service/src/main/resources/mapper/MemberUnionidRelatedMapper.xml
View file @
629b935c
...
...
@@ -34,22 +34,23 @@
</insert>
<select
id=
"getBySelfExternalUserId"
resultMap=
"BaseResultMap"
>
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_member_unionid_related
where wx_enterprise_id = #{wxEnterpriseId}
and status_flag = 1
<if
test=
"staffId == null"
>
and ( self_external_userid = #{selfExternalUserId} or external_userid = #{selfExternalUserId} )
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_member_unionid_related where wx_enterprise_id = #{wxEnterpriseId} and status_flag = 1
and self_external_userid = #{selfExternalUserId}
<if
test=
"staffId != null"
>
and staff_id = #{staffId}
</if>
union
select
<include
refid=
"Base_Column_List"
/>
from tab_haoban_member_unionid_related where wx_enterprise_id = #{wxEnterpriseId} and status_flag = 1
and external_userid = #{selfExternalUserId}
<if
test=
"staffId != null"
>
and ( self_external_userid = #{selfExternalUserId})
and staff_id = #{staffId}
</if>
order by create_time desc limit 1
</select>
<select
id=
"listByWxEnterpriseIdAndExternalUserId"
resultMap=
"BaseResultMap"
>
select
external_userid, self_external_userid from tab_haoban_member_unionid_related
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment