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
6644977d
Commit
6644977d
authored
Jun 29, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
parents
d12e8a0b
285a9eb0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
239 additions
and
117 deletions
+239
-117
Config.cs
Mall.Common/Config.cs
+10
-1
MiniprogramTemplateModule.cs
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
+1
-1
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+1
-1
OrderController.cs
Mall.WebApi/Controllers/Product/OrderController.cs
+217
-106
appsettings.json
Mall.WebApi/appsettings.json
+4
-2
FinanceModule.cs
Mall.WindowsService/Module/FinanceModule.cs
+6
-6
No files found.
Mall.Common/Config.cs
View file @
6644977d
...
...
@@ -417,6 +417,15 @@ namespace Mall.Common
}
}
/// <summary>
/// 微信支付结算率0.60%
/// </summary>
public
static
string
SettlementRate
{
get
{
return
new
ConfigurationBuilder
().
Add
(
new
JsonConfigurationSource
{
Path
=
"appsettings.json"
}).
Build
().
GetSection
(
"SettlementRate"
).
Value
;
}
}
}
}
\ No newline at end of file
Mall.Module.MarketingCenter/MiniprogramTemplateModule.cs
View file @
6644977d
...
...
@@ -261,7 +261,7 @@ namespace Mall.Module.MarketingCenter
height
=
subItem
[
"height"
].
ToString
(),
left
=
subItem
[
"left"
].
ToString
(),
top
=
subItem
[
"top"
].
ToString
(),
pic_url
=
subItem
[
"pic_url"
].
ToString
()
,
pic_url
=
Common
.
Config
.
GetFileUrl
(
subItem
[
"pic_url"
].
ToString
())
,
backgroundImage
=
subItem
[
"backgroundImage"
].
ToString
(),
backgroundRepeat
=
subItem
[
"backgroundRepeat"
].
ToString
(),
backgroundSize
=
subItem
[
"backgroundSize"
].
ToString
(),
...
...
Mall.Module.Product/OrderModule.cs
View file @
6644977d
...
...
@@ -6445,7 +6445,7 @@ namespace Mall.Module.Product
return
false
;
}
Dictionary
<
string
,
object
>
keyValues1
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_OrderDetail
.
FreightMoney
),
freightMoney
}
{
nameof
(
RB_Goods_OrderDetail
.
Freight
Cost
Money
),
freightMoney
}
};
List
<
WhereHelper
>
wheres1
=
new
List
<
WhereHelper
>()
{
new
WhereHelper
(){
...
...
Mall.WebApi/Controllers/Product/OrderController.cs
View file @
6644977d
This diff is collapsed.
Click to expand it.
Mall.WebApi/appsettings.json
View file @
6644977d
...
...
@@ -24,16 +24,18 @@
"Mongo"
:
"mongodb://192.168.2.214:27017"
,
"MongoDBName"
:
"Mall"
,
"ProjectUrl"
:
"D:/project/GitProject/mallapp"
,
"DeveloperKitsPort"
:
"
63994
"
,
"DeveloperKitsPort"
:
"
15720
"
,
"FirstPage"
:
"pages/index/index.html"
,
"ByteDanceSendTemplate"
:
"https://developer.toutiao.com/api/apps/game/template/send"
,
"sTenpayNotify"
:
"http://mallapi.oytour.com/api/WeChatNotify/Notify"
,
//微信回调地址
"sTenpayNotify"
:
"http://mallapi.oytour.com/api/WeChatNotify/Notify"
,
//微信商品回调地址
"sTenpayRechargeNotify"
:
"http://mallapi.oytour.com/api/WeChatNotify/RechargeNotify"
,
//微信充值回调地址
"NetworkDirector"
:
1756
,
//网络主管的id,用于新建供应商账户的时候的创建人
"RB_Branch_Id"
:
49
,
//所属公司id
"RebornDMC"
:
"reborn_dmc"
,
"IncomeFinanceApi"
:
"http://192.168.2.16:8083/api/Mall/InsertFinanceBatchForMallIn"
,
"PaymentFinanceApi"
:
"http://192.168.2.16:8083/api/Mall/InsertFinanceBatchForMallOut"
,
"FinanceKey"
:
"FinanceMallInsertToERPViitto2020"
,
"SettlementRate"
:
"0.60"
,
"RedisSetting"
:
{
"RedisServer"
:
"192.168.2.214"
,
"RedisPort"
:
"6379"
,
...
...
Mall.WindowsService/Module/FinanceModule.cs
View file @
6644977d
...
...
@@ -207,13 +207,13 @@ and DATE_FORMAT(b.PaymentTime,'%y-%m-%d')<DATE_FORMAT('{endDate}','%y-%m-%d') A
{
decimal
OriginalFee
=
0
;
//
decimal OriginalFee = 0;
var
goodsDetailGroupList
=
goodsDetailList
.
GroupBy
(
x
=>
x
.
OrderId
);
foreach
(
var
goodsDetailGroupItem
in
goodsDetailGroupList
)
{
OriginalFee
+=
goodsDetailList
.
Where
(
x
=>
x
.
OrderId
==
goodsDetailGroupItem
.
Key
).
Sum
(
x
=>
(
x
.
FreightMoney
??
0
)
+
(
x
.
Final_Price
??
0
))
*
(
Convert
.
ToDecimal
(
Config
.
SettlementRate
)
/
100
);
}
//
var goodsDetailGroupList = goodsDetailList.GroupBy(x => x.OrderId);
//
foreach (var goodsDetailGroupItem in goodsDetailGroupList)
//
{
//
OriginalFee += goodsDetailList.Where(x => x.OrderId == goodsDetailGroupItem.Key).Sum(x => (x.FreightMoney ?? 0) + (x.Final_Price ?? 0)) * (Convert.ToDecimal(Config.SettlementRate) / 100);
//
}
var
detailList
=
result
.
Select
(
x
=>
new
{
CostTypeId
=
x
.
FinanceType
==
1
?
item
.
IncomeCostTypeId
:
item
.
FreightCostTypeId
,
...
...
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