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
e0ef81e6
Commit
e0ef81e6
authored
Aug 27, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
48e05140
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
149 additions
and
102 deletions
+149
-102
RB_Goods_OrderCommission.cs
Mall.Model/Entity/Product/RB_Goods_OrderCommission.cs
+3
-0
RB_SmallShops_Commission.cs
Mall.Model/Entity/Product/RB_SmallShops_Commission.cs
+1
-2
RB_Member_User_Extend.cs
Mall.Model/Extend/User/RB_Member_User_Extend.cs
+5
-0
MemberUserModule.cs
Mall.Module.User/MemberUserModule.cs
+24
-0
UserModule.cs
Mall.Module.User/UserModule.cs
+1
-1
RB_Member_UserRepository.cs
Mall.Repository/User/RB_Member_UserRepository.cs
+101
-97
PayUtil.cs
Mall.WebApi/App_Code/PayUtil.cs
+1
-1
AppletUserController.cs
Mall.WebApi/Controllers/User/AppletUserController.cs
+13
-1
No files found.
Mall.Model/Entity/Product/RB_Goods_OrderCommission.cs
View file @
e0ef81e6
...
...
@@ -119,6 +119,9 @@ namespace Mall.Model.Entity.Product
set
;
}
/// <summary>
/// 是否已提现 1是
/// </summary>
public
int
?
IsRemit
{
get
;
set
;
}
...
...
Mall.Model/Entity/Product/RB_SmallShops_Commission.cs
View file @
e0ef81e6
...
...
@@ -114,5 +114,4 @@ namespace Mall.Model.Entity.Product
/// </summary>
public
int
SmallShopsId
{
get
;
set
;
}
}
}
}
\ No newline at end of file
Mall.Model/Extend/User/RB_Member_User_Extend.cs
View file @
e0ef81e6
...
...
@@ -124,6 +124,11 @@ namespace Mall.Model.Extend.User
/// 小程序排序
/// </summary>
public
int
SortNum
{
get
;
set
;
}
/// <summary>
/// 是否已提现 1是 2否
/// </summary>
public
int
IsRemit
{
get
;
set
;
}
}
...
...
Mall.Module.User/MemberUserModule.cs
View file @
e0ef81e6
...
...
@@ -4,6 +4,7 @@ using System;
using
System.Collections.Generic
;
using
System.Text
;
using
VT.FW.DB
;
using
System.Linq
;
namespace
Mall.Module.User
{
...
...
@@ -38,5 +39,28 @@ namespace Mall.Module.User
//});
//return falg;
}
/// <summary>
/// 获取用户佣金
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
RB_Member_User_Extend
GetUserCommissionModule
(
int
UserId
)
{
RB_Member_User_Extend
model
=
new
RB_Member_User_Extend
()
{
Id
=
UserId
};
//总佣金
var
totalList
=
member_UserRepository
.
GetUserCommissionRepository
(
new
RB_Member_User_Extend
()
{
UserIds
=
UserId
.
ToString
()});
//本月佣金
var
currentMonthList
=
member_UserRepository
.
GetUserCommissionRepository
(
new
RB_Member_User_Extend
()
{
UserIds
=
UserId
.
ToString
()
},
IsGetCurrentMonth
:
true
);
if
(
totalList
!=
null
&&
totalList
.
Count
>
0
)
{
model
.
TotalCommission
=
totalList
.
Sum
(
qitem
=>
qitem
.
Commission
);
}
if
(
currentMonthList
!=
null
&&
currentMonthList
.
Count
>
0
)
{
model
.
Commission
=
currentMonthList
.
Sum
(
qitem
=>
qitem
.
Commission
);
}
return
model
;
}
}
}
Mall.Module.User/UserModule.cs
View file @
e0ef81e6
...
...
@@ -2471,7 +2471,7 @@ namespace Mall.Module.User
string
apiResult
=
Mall
.
Common
.
Plugin
.
HttpHelper
.
HttpPost
(
Config
.
PaymentFinanceApi
,
JsonHelper
.
Serialize
(
resultInfo
),
""
);
var
apir
=
JsonConvert
.
DeserializeObject
<
ApiResult
>(
apiResult
);
LogHelper
.
Write
(
"打款:"
+
apiResult
);
LogHelper
.
Write
Info
(
"打款:"
+
apiResult
);
if
(
apir
.
resultCode
==
1
)
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
...
...
Mall.Repository/User/RB_Member_UserRepository.cs
View file @
e0ef81e6
This diff is collapsed.
Click to expand it.
Mall.WebApi/App_Code/PayUtil.cs
View file @
e0ef81e6
...
...
@@ -237,7 +237,7 @@ namespace Mall.WebApi.App_Code
});
var
xe
=
XElement
.
Parse
(
result
,
LoadOptions
.
SetLineInfo
);
LogHelper
.
Write
(
null
,
"退款申请【"
+
param
.
OrderNumber
+
"】回调接口:"
+
xe
);
LogHelper
.
Write
Info
(
"退款申请【"
+
param
.
OrderNumber
+
"】回调接口:"
+
xe
);
var
returnCode
=
xe
.
GetElement
(
"return_code"
).
Value
;
//退款成功
if
(
returnCode
.
Equals
(
"SUCCESS"
))
...
...
Mall.WebApi/Controllers/User/AppletUserController.cs
View file @
e0ef81e6
...
...
@@ -845,8 +845,14 @@ namespace Mall.WebApi.Controllers.User
var
userInfo
=
AppletUserInfo
;
ResultPageModel
pagelist
=
JsonConvert
.
DeserializeObject
<
ResultPageModel
>(
req
.
msg
.
ToString
());
RB_Member_Footmark_Extend
demodel
=
JsonConvert
.
DeserializeObject
<
RB_Member_Footmark_Extend
>(
req
.
msg
.
ToString
());
demodel
.
UserId
=
userInfo
.
UserId
;
//HK 2020-08-27新增
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
if
(
parms
.
GetInt
(
"NewUserId"
)
>
0
)
{
demodel
.
UserId
=
parms
.
GetInt
(
"NewUserId"
);
}
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
var
list
=
userModule
.
GetUserFootMarkPageList
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
...
...
@@ -1665,6 +1671,12 @@ namespace Mall.WebApi.Controllers.User
demodel
.
TenantId
=
userInfo
.
TenantId
;
demodel
.
MallBaseId
=
userInfo
.
MallBaseId
;
demodel
.
UserId
=
userInfo
.
UserId
;
//HK 2020-08-27新增
JObject
parms
=
JObject
.
Parse
(
req
.
msg
.
ToString
());
if
(
parms
.
GetInt
(
"NewUserId"
)
>
0
)
{
demodel
.
UserId
=
parms
.
GetInt
(
"NewUserId"
);
}
var
list
=
userModule
.
GetOrderIntroductionPageList
(
pagelist
.
pageIndex
,
pagelist
.
pageSize
,
out
long
count
,
demodel
);
pagelist
.
count
=
Convert
.
ToInt32
(
count
);
pagelist
.
pageData
=
list
.
Select
(
x
=>
new
...
...
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