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
e9d15d14
Commit
e9d15d14
authored
Mar 05, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
584efe38
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
10 deletions
+23
-10
RB_MiAi_BaseInfoRepository.cs
Mall.Repository/Miai/RB_MiAi_BaseInfoRepository.cs
+4
-0
RB_Miai_ActivityEnrollRepository.cs
Mall.Repository/Miai/RB_Miai_ActivityEnrollRepository.cs
+4
-0
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+15
-10
No files found.
Mall.Repository/Miai/RB_MiAi_BaseInfoRepository.cs
View file @
e9d15d14
...
...
@@ -37,6 +37,10 @@ namespace Mall.Repository.Miai
{
sb
.
AppendFormat
(
" and Id={0}"
,
where
.
Id
);
}
if
(
where
.
UserId
>
0
)
{
sb
.
AppendFormat
(
" and UserId={0}"
,
where
.
UserId
);
}
}
return
Get
<
RB_MiAi_BaseInfo_Extend
>(
sb
.
ToString
()).
ToList
();
}
...
...
Mall.Repository/Miai/RB_Miai_ActivityEnrollRepository.cs
View file @
e9d15d14
...
...
@@ -38,6 +38,10 @@ namespace Mall.Repository.Miai
{
where
+=
$@" and e.
{
nameof
(
RB_Miai_ActivityEnroll_Extend
.
UserId
)}
=
{
dmodel
.
UserId
}
"
;
}
if
(
dmodel
.
Id
>
0
)
{
where
+=
$@" and e.
{
nameof
(
RB_Miai_ActivityEnroll_Extend
.
Id
)}
=
{
dmodel
.
Id
}
"
;
}
string
sql
=
$@"select e.*,u.Name as UserName,u.Photo,b.Sex from RB_Miai_ActivityEnroll e
left join rb_member_user u on e.UserId = u.Id
left join rb_miai_baseinfo b on e.UserId =b.UserId
...
...
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
View file @
e9d15d14
...
...
@@ -452,7 +452,9 @@ namespace Mall.WebApi.Controllers.MallBase
x
.
PeopleNum
,
x
.
Remark
,
x
.
IsFocus
,
CreateDate
=
x
.
CreateDate
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
CreateDate
=
x
.
CreateDate
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
),
x
.
MyFollowId
,
x
.
OtherFollowId
});
return
ApiResult
.
Success
(
""
,
pagelist
);
}
...
...
@@ -704,6 +706,9 @@ namespace Mall.WebApi.Controllers.MallBase
{
oldBaseInfo
.
AlbumList
=
JsonConvert
.
DeserializeObject
<
List
<
string
>>(
oldBaseInfo
.
Album
);
}
else
{
oldBaseInfo
.
AlbumList
=
new
List
<
string
>();
}
IsAttestation
=
1
;
//已认证
}
else
...
...
@@ -713,18 +718,18 @@ namespace Mall.WebApi.Controllers.MallBase
var
result
=
new
{
old
Base
Info
.
Id
,
old
Base
Info
.
Name
,
old
Base
Info
.
Photo
,
old
User
Info
.
Id
,
old
User
Info
.
Name
,
old
User
Info
.
Photo
,
IsAttestation
,
IsFollow
=
isFollow
,
oldBaseInfo
?.
Sex
,
oldBaseInfo
?.
IDCardNo
,
oldBaseInfo
?.
RealName
,
oldBaseInfo
?.
IDCard
,
oldBaseInfo
?.
IDCardBack
,
Sex
=
oldBaseInfo
?.
Sex
??
0
,
IDCardNo
=
oldBaseInfo
?.
IDCardNo
??
""
,
RealName
=
oldBaseInfo
?.
RealName
??
""
,
IDCard
=
oldBaseInfo
?.
IDCard
??
""
,
IDCardBack
=
oldBaseInfo
?.
IDCardBack
??
""
,
SexStr
=
(
oldBaseInfo
!=
null
&&
oldBaseInfo
.
Id
>
0
)
?
(
oldBaseInfo
.
Sex
==
1
?
"男"
:
"女"
)
:
""
,
oldBaseInfo
.
Birthday
,
Birthday
=
oldBaseInfo
.
Birthday
??
""
,
Age
=
string
.
IsNullOrWhiteSpace
(
oldBaseInfo
.
Birthday
)
?
""
:
StringHelper
.
GetAge
(
oldBaseInfo
.
Birthday
),
//年纪
ShenXiao
=
string
.
IsNullOrWhiteSpace
(
oldBaseInfo
.
Birthday
)
?
""
:
StringHelper
.
GetShengXiao
(
Convert
.
ToDateTime
((
oldBaseInfo
.
Birthday
))),
//生肖
ConoldBaseInfostellation
=
string
.
IsNullOrWhiteSpace
(
oldBaseInfo
.
Birthday
)
?
""
:
StringHelper
.
GetAtomFromBirthday
(
Convert
.
ToDateTime
((
oldBaseInfo
.
Birthday
))),
//星座
...
...
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