Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mall.oytour.com
Project
Project
Details
Activity
Releases
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
黄奎
mall.oytour.com
Commits
9df04dde
Commit
9df04dde
authored
Jun 26, 2025
by
liudong1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
dbd6425f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
MemberUserModule.cs
Mall.Module.User/MemberUserModule.cs
+13
-0
RB_Customer_IntegralRepository.cs
Mall.Repository/Customer/RB_Customer_IntegralRepository.cs
+10
-0
No files found.
Mall.Module.User/MemberUserModule.cs
View file @
9df04dde
...
...
@@ -89,6 +89,19 @@ namespace Mall.Module.User
//根据OpenID 反查询 CustomerId
var
CustomerModel
=
customer_IntegralRepository
.
GetCustomerToOpenId
(
extModel
.
CustomerOpenId
);
if
(!
string
.
IsNullOrEmpty
(
extModel
.
CustomerOpenId
)
&&
extModel
.
CustomerOpenId
.
Length
>
3
&&
extModel
.
CustomerOpenId
.
Substring
(
0
,
3
)
==
"lxy"
)
{
//根据 ID查询
try
{
int
ChildId
=
Convert
.
ToInt32
(
extModel
.
CustomerOpenId
.
Replace
(
"lxy"
,
""
));
CustomerModel
=
customer_IntegralRepository
.
GetCustomerToChildId
(
ChildId
);
}
catch
(
Exception
e
)
{
LogHelper
.
Write
(
e
,
"抓取旅小友ID失败"
);
}
}
if
(
CustomerModel
==
null
)
{
return
false
;
}
Dictionary
<
string
,
object
>
fileds
=
new
Dictionary
<
string
,
object
>()
{
...
...
Mall.Repository/Customer/RB_Customer_IntegralRepository.cs
View file @
9df04dde
...
...
@@ -116,6 +116,16 @@ namespace Mall.Repository.Customer
string
sql
=
$@" SELECT InfoID CustomerId,ID as CustomerChildrenId FROM rb_customer_infochildren WHERE OpenId ='
{
OpenId
}
'"
;
return
Get
<
RB_Customer_Integral_Extend
>(
sql
).
FirstOrDefault
();
}
/// <summary>
/// 获取同业客户ID 通过联系人ID
/// </summary>
/// <param name="Id"></param>
/// <returns></returns>
public
RB_Customer_Integral_Extend
GetCustomerToChildId
(
int
Id
)
{
string
sql
=
$@" SELECT InfoID CustomerId,ID as CustomerChildrenId FROM rb_customer_infochildren WHERE ID =
{
Id
}
"
;
return
Get
<
RB_Customer_Integral_Extend
>(
sql
).
FirstOrDefault
();
}
/// <summary>
/// 获取同行员工信息
...
...
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