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
c4c2c105
Commit
c4c2c105
authored
Jun 29, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
c64260ec
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
238 additions
and
116 deletions
+238
-116
Config.cs
Mall.Common/Config.cs
+10
-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 @
c4c2c105
...
...
@@ -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.Product/OrderModule.cs
View file @
c4c2c105
...
...
@@ -6391,7 +6391,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 @
c4c2c105
This diff is collapsed.
Click to expand it.
Mall.WebApi/appsettings.json
View file @
c4c2c105
...
...
@@ -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 @
c4c2c105
...
...
@@ -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