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
d54a9c70
Commit
d54a9c70
authored
Mar 30, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
61ece750
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
RB_Miai_DatingRepository.cs
Mall.Repository/Miai/RB_Miai_DatingRepository.cs
+2
-4
No files found.
Mall.Repository/Miai/RB_Miai_DatingRepository.cs
View file @
d54a9c70
...
...
@@ -37,14 +37,12 @@ namespace Mall.Repository.Miai
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
UserName
))
{
where
+=
$@" and (
b1.RealName like '%
{
dmodel
.
UserName
}
%' or b2.RealName
like '%
{
dmodel
.
UserName
}
%')"
;
where
+=
$@" and (
u1.`Name` like '%
{
dmodel
.
UserName
}
%' or u2..`Name`
like '%
{
dmodel
.
UserName
}
%')"
;
}
string
sql
=
$@"select d.*,
b1.RealName as ManName,u1.Photo as ManPhoto,b2.RealName
as WoManName,u2.Photo as WoManPhoto from RB_Miai_Dating d
string
sql
=
$@"select d.*,
u1.`Name` as ManName,u1.Photo as ManPhoto,u2.`Name`
as WoManName,u2.Photo as WoManPhoto from RB_Miai_Dating d
left join rb_member_user u1 on d.ManId = u1.Id
left join rb_miai_baseinfo b1 on b1.UserId = d.ManId
left join rb_member_user u2 on d.WoManId = u2.Id
left join rb_miai_baseinfo b2 on b2.UserId = d.WoManId
where
{
where
}
order by d.Id desc"
;
return
GetPage
<
RB_Miai_Dating_Extend
>(
pageIndex
,
pageSize
,
out
rowCount
,
sql
).
ToList
();
}
...
...
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