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
e6b7ef4c
Commit
e6b7ef4c
authored
Jun 05, 2020
by
吴春
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
008517db
8ac7a9fa
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
167 additions
and
27 deletions
+167
-27
RB_MiniProgram_Extend.cs
Mall.Model/Extend/User/RB_MiniProgram_Extend.cs
+5
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+134
-3
UserModule.cs
Mall.Module.User/UserModule.cs
+23
-23
RB_Goods_OrderAfterSaleRepository.cs
Mall.Repository/Product/RB_Goods_OrderAfterSaleRepository.cs
+4
-0
AppletLoginController.cs
Mall.WebApi/Controllers/User/AppletLoginController.cs
+1
-1
No files found.
Mall.Model/Extend/User/RB_MiniProgram_Extend.cs
View file @
e6b7ef4c
...
...
@@ -118,6 +118,11 @@ namespace Mall.Model.Extend.User
/// </summary>
public
class
AuthItem
{
/// <summary>
/// 是否选中,前台使用
/// </summary>
public
bool
IsChecked
{
get
;
set
;
}
/// <summary>
/// 起点X坐标
/// </summary>
...
...
Mall.Module.Product/OrderModule.cs
View file @
e6b7ef4c
This diff is collapsed.
Click to expand it.
Mall.Module.User/UserModule.cs
View file @
e6b7ef4c
...
...
@@ -177,6 +177,16 @@ namespace Mall.Module.User
return
member_UserRepository
.
GetEntity
(
userId
).
RefMapperTo
<
RB_Member_User_Extend
>();
}
/// <summary>
/// 根据条件获取用户实体
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
RB_Member_User_Extend
GetMemberUserEntityModule
(
RB_Member_User_Extend
query
)
{
return
member_UserRepository
.
GetMemberUserEntityRepository
(
query
);
}
/// <summary>
/// 新增用户
/// </summary>
...
...
@@ -197,29 +207,19 @@ namespace Mall.Module.User
/// <returns></returns>
public
bool
ValidateUserOpenId
(
string
openId
,
Common
.
Enum
.
User
.
UserSourceEnum
?
source
,
int
tenantId
,
int
mallBaseId
)
{
List
<
WhereHelper
>
wheres
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Member_User
.
Source
),
FiledValue
=(
int
)
source
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Member_User
.
OpenId
),
FiledValue
=
openId
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Member_User
.
TenantId
),
FiledValue
=
tenantId
,
OperatorEnum
=
OperatorEnum
.
Equal
},
new
WhereHelper
(){
FiledName
=
nameof
(
RB_Member_User
.
MallBaseId
),
FiledValue
=
mallBaseId
,
OperatorEnum
=
OperatorEnum
.
Equal
},
};
return
member_UserRepository
.
Exists
(
wheres
);
var
flag
=
false
;
var
model
=
member_UserRepository
.
GetMemberUserEntityRepository
(
new
RB_Member_User_Extend
()
{
OpenId
=
openId
,
TenantId
=
tenantId
,
MallBaseId
=
mallBaseId
,
Source
=
source
});
if
(
model
!=
null
&&
model
.
Id
>
0
)
{
flag
=
true
;
}
return
flag
;
}
/// <summary>
...
...
Mall.Repository/Product/RB_Goods_OrderAfterSaleRepository.cs
View file @
e6b7ef4c
...
...
@@ -162,6 +162,10 @@ INNER JOIN rb_member_user mu on mu.Id=oas.UserId
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
OrderDetialId
)}
=
{
dmodel
.
OrderDetialId
}
"
;
}
if
(
dmodel
.
Type
>
0
)
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
Type
)}
=
{
dmodel
.
Type
}
"
;
}
if
(!
string
.
IsNullOrEmpty
(
dmodel
.
ReOrderNo
))
{
where
+=
$" and oas.
{
nameof
(
RB_Goods_OrderAfterSale
.
ReOrderNo
)}
like '%
{
dmodel
.
ReOrderNo
}
%'"
;
...
...
Mall.WebApi/Controllers/User/AppletLoginController.cs
View file @
e6b7ef4c
...
...
@@ -150,7 +150,7 @@ namespace Mall.WebApi.Controllers.User
}
else
{
//查询用户信息
var
umodel
=
userModule
.
GetMemberUser
PageList
(
1
,
1
,
out
_
,
new
RB_Member_User_Extend
()
{
TenantId
=
requestParm
.
TenantId
,
MallBaseId
=
requestParm
.
MallBaseId
,
Source
=
demodel
.
Source
,
OpenId
=
demodel
.
OpenId
}).
FirstOrDefault
(
);
var
umodel
=
userModule
.
GetMemberUser
EntityModule
(
new
RB_Member_User_Extend
()
{
TenantId
=
requestParm
.
TenantId
,
MallBaseId
=
requestParm
.
MallBaseId
,
Source
=
demodel
.
Source
,
OpenId
=
demodel
.
OpenId
}
);
if
(
umodel
==
null
)
{
return
ApiResult
.
Failed
(
"未能查询到用户信息"
);
}
...
...
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