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
1f9a6ad3
Commit
1f9a6ad3
authored
Oct 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
4fd8ddb8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
4 deletions
+74
-4
RB_Member_User_Extend.cs
Mall.Model/Extend/User/RB_Member_User_Extend.cs
+9
-0
MiaiModule.cs
Mall.Module.Miai/MiaiModule.cs
+59
-2
AppletMiaiController.cs
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
+1
-1
MiaiController.cs
Mall.WebApi/Controllers/Miai/MiaiController.cs
+5
-1
No files found.
Mall.Model/Extend/User/RB_Member_User_Extend.cs
View file @
1f9a6ad3
...
...
@@ -216,6 +216,15 @@ namespace Mall.Model.Extend.User
}
}
/// <summary>
/// 用户所属分组
/// </summary>
public
List
<
GroupItem
>
BelongGroupList
{
get
;
set
;
}
/// <summary>
/// 用户可查看分组
/// </summary>
public
List
<
GroupItem
>
LookGroupList
{
get
;
set
;
}
}
/// <summary>
...
...
Mall.Module.Miai/MiaiModule.cs
View file @
1f9a6ad3
...
...
@@ -101,10 +101,67 @@ namespace Mall.Module.Miai
/// 获取用户信息
/// </summary>
/// <param name="userId"></param>
/// <param name="isGetGroup">是否查询分组</param>
/// <returns></returns>
public
Model
.
Extend
.
User
.
RB_Member_User_Extend
GetMemberUserInfo
(
int
userId
)
public
Model
.
Extend
.
User
.
RB_Member_User_Extend
GetMemberUserInfo
(
int
userId
,
bool
isGetGroup
=
false
)
{
return
member_UserRepository
.
GetEntity
(
userId
).
RefMapperTo
<
Model
.
Extend
.
User
.
RB_Member_User_Extend
>();
var
model
=
member_UserRepository
.
GetEntity
(
userId
).
RefMapperTo
<
Model
.
Extend
.
User
.
RB_Member_User_Extend
>();
if
(
model
!=
null
&&
model
.
Id
>
0
&&
isGetGroup
)
{
model
.
BelongGroupList
=
new
List
<
Model
.
Extend
.
User
.
GroupItem
>();
model
.
LookGroupList
=
new
List
<
Model
.
Extend
.
User
.
GroupItem
>();
if
(!
string
.
IsNullOrEmpty
(
model
.
BelongGroupIds
))
{
var
groupList
=
member_GroupRepository
.
GetMemberGroupListRepository
(
new
Model
.
Extend
.
User
.
RB_Member_Group_Extend
()
{
TenantId
=
model
.
TenantId
,
MallBaseId
=
model
.
MallBaseId
});
var
b_group_ids
=
Common
.
ConvertHelper
.
StringToList
(
model
.
BelongGroupIds
);
if
(
b_group_ids
!=
null
&&
b_group_ids
.
Count
>
0
)
{
foreach
(
var
sItem
in
b_group_ids
)
{
var
tempGroup
=
groupList
?.
FirstOrDefault
(
qitem
=>
qitem
.
GroupId
==
sItem
);
if
(
tempGroup
!=
null
&&
tempGroup
.
GroupId
>
0
)
{
if
(!(
model
.
BelongGroupList
.
Where
(
qitem
=>
qitem
.
GroupId
==
tempGroup
.
GroupId
).
Count
()
>
0
))
{
model
.
BelongGroupList
.
Add
(
new
Model
.
Extend
.
User
.
GroupItem
()
{
GroupId
=
tempGroup
.
GroupId
,
GroupName
=
tempGroup
.
GroupName
});
}
if
(!
string
.
IsNullOrEmpty
(
tempGroup
.
LookGroupIds
))
{
var
l_group_ids
=
Common
.
ConvertHelper
.
StringToList
(
tempGroup
.
LookGroupIds
);
if
(
l_group_ids
!=
null
&&
l_group_ids
.
Count
>
0
)
{
foreach
(
var
tItem
in
l_group_ids
)
{
var
l_Group
=
groupList
?.
FirstOrDefault
(
qitem
=>
qitem
.
GroupId
==
tItem
);
if
(
l_Group
!=
null
&&
l_Group
.
GroupId
>
0
)
{
if
(!(
model
.
LookGroupList
.
Where
(
qitem
=>
qitem
.
GroupId
==
l_Group
.
GroupId
).
Count
()
>
0
))
{
model
.
LookGroupList
.
Add
(
new
Model
.
Extend
.
User
.
GroupItem
()
{
GroupId
=
l_Group
.
GroupId
,
GroupName
=
l_Group
.
GroupName
});
}
}
}
}
}
}
}
}
}
}
return
model
;
}
#
endregion
...
...
Mall.WebApi/Controllers/Miai/AppletMiaiController.cs
View file @
1f9a6ad3
...
...
@@ -2311,7 +2311,7 @@ namespace Mall.WebApi.Controllers.MallBase
result
.
Add
(
new
{
item
.
Age
,
AlbumList
=
AlbumList
,
AlbumList
,
Authentication
=
!
string
.
IsNullOrWhiteSpace
(
item
.
IDCardNo
)?
1
:
0
,
Education
=
item
.
EducationType
.
GetEnumName
(),
item
.
Height
,
...
...
Mall.WebApi/Controllers/Miai/MiaiController.cs
View file @
1f9a6ad3
...
...
@@ -655,7 +655,7 @@ namespace Mall.WebApi.Controllers.MallBase
int
userId
=
parm
.
GetInt
(
"UserId"
);
if
(
userId
>
0
)
{
var
oldUserInfo
=
miaiModule
.
GetMemberUserInfo
(
userId
);
var
oldUserInfo
=
miaiModule
.
GetMemberUserInfo
(
userId
,
isGetGroup
:
true
);
var
oldBaseInfo
=
miaiModule
.
GetBaseInfoModel
(
new
RB_MiAi_BaseInfo_Extend
{
UserId
=
userId
,
TenantId
=
UserInfo
.
TenantId
,
MallBaseId
=
UserInfo
.
MallBaseId
});
if
(
oldBaseInfo
!=
null
&&
oldBaseInfo
.
Id
>
0
)
{
...
...
@@ -727,6 +727,10 @@ namespace Mall.WebApi.Controllers.MallBase
DWProvince
=
oldBaseInfo
.
DWProvince
??
0
,
DWCity
=
oldBaseInfo
.
DWCity
??
0
,
DWDistrict
=
oldBaseInfo
.
DWDistrict
??
0
,
IsShow
=
oldUserInfo
?.
IsShow
??
0
,
LookTimes
=
oldUserInfo
?.
LookTimes
??
0
,
BelongGroupList
=
oldUserInfo
?.
BelongGroupList
??
new
List
<
GroupItem
>
(),
LookGroupList
=
oldUserInfo
?.
LookGroupList
??
new
List
<
GroupItem
>
(),
};
return
ApiResult
.
Success
(
""
,
result
);
}
...
...
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