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
3572dd5f
Commit
3572dd5f
authored
Sep 24, 2021
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
d9190241
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
5 deletions
+42
-5
Config.cs
Mall.Common/Config.cs
+23
-0
OrderModule.cs
Mall.Module.Product/OrderModule.cs
+14
-2
UserCommonModule.cs
Mall.Module.User/UserCommonModule.cs
+1
-1
appsettings.json
Mall.WebApi/appsettings.json
+4
-2
No files found.
Mall.Common/Config.cs
View file @
3572dd5f
...
@@ -658,6 +658,18 @@ namespace Mall.Common
...
@@ -658,6 +658,18 @@ namespace Mall.Common
}
}
}
}
/// <summary>
/// 微信支付结算率0.540%
/// </summary>
public
static
string
EduSettlementRate
{
get
{
return
ReadConfigKey
(
"EduSettlementRate"
);
}
}
/// <summary>
/// <summary>
/// 资产管理数据库
/// 资产管理数据库
/// </summary>
/// </summary>
...
@@ -720,6 +732,17 @@ namespace Mall.Common
...
@@ -720,6 +732,17 @@ namespace Mall.Common
return
ReadConfigKey
(
"XuZongUserId"
);
return
ReadConfigKey
(
"XuZongUserId"
);
}
}
}
}
/// <summary>
/// 教育erp徐总的id,用于区分线下订单
/// </summary>
public
static
string
EduXuZongId
{
get
{
return
ReadConfigKey
(
"EduXuZongId"
);
}
}
/// <summary>
/// <summary>
///首店企业认证是否自动审核,1-是
///首店企业认证是否自动审核,1-是
/// </summary>
/// </summary>
...
...
Mall.Module.Product/OrderModule.cs
View file @
3572dd5f
...
@@ -4235,6 +4235,10 @@ namespace Mall.Module.Product
...
@@ -4235,6 +4235,10 @@ namespace Mall.Module.Product
#
region
手续费计算
#
region
手续费计算
decimal
ServiceCharge
=
Convert
.
ToDecimal
(
Config
.
SettlementRate
)
/
100
;
decimal
ServiceCharge
=
Convert
.
ToDecimal
(
Config
.
SettlementRate
)
/
100
;
if
(
demodel
.
VersionSource
==
1
)
{
ServiceCharge
=
Convert
.
ToDecimal
(
Config
.
EduSettlementRate
)
/
100
;
}
if
(
ServiceCharge
>
0
)
if
(
ServiceCharge
>
0
)
{
{
decimal
TotalFee
=
Math
.
Round
((
demodel
.
Income
??
0
)
*
ServiceCharge
,
2
,
MidpointRounding
.
AwayFromZero
);
decimal
TotalFee
=
Math
.
Round
((
demodel
.
Income
??
0
)
*
ServiceCharge
,
2
,
MidpointRounding
.
AwayFromZero
);
...
@@ -4526,8 +4530,15 @@ namespace Mall.Module.Product
...
@@ -4526,8 +4530,15 @@ namespace Mall.Module.Product
{
{
eduUserId
=
eduSellModel
.
EduSellId
;
eduUserId
=
eduSellModel
.
EduSellId
;
}
}
else
{
eduUserId
=
Convert
.
ToInt32
(
Config
.
EduXuZongId
??
"2602"
);
}
}
}
else
{
eduUserId
=
Convert
.
ToInt32
(
Config
.
EduXuZongId
??
"2602"
);
}
}
}
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
Dictionary
<
string
,
object
>
keyValues
=
new
Dictionary
<
string
,
object
>()
{
{
nameof
(
RB_Goods_Order_Extend
.
UserTree
),
parentIds
},
{
nameof
(
RB_Goods_Order_Extend
.
UserTree
),
parentIds
},
...
@@ -6683,7 +6694,8 @@ namespace Mall.Module.Product
...
@@ -6683,7 +6694,8 @@ namespace Mall.Module.Product
return
"该订单已返佣,无法重置返佣数据"
;
return
"该订单已返佣,无法重置返佣数据"
;
}
}
}
}
else
{
else
{
return
"历史返佣不存在,请联系管理员处理"
;
return
"历史返佣不存在,请联系管理员处理"
;
}
}
//删除原返佣记录
//删除原返佣记录
...
@@ -8395,7 +8407,7 @@ namespace Mall.Module.Product
...
@@ -8395,7 +8407,7 @@ namespace Mall.Module.Product
{
{
Msg
=
new
{
Order
=
classIdList
},
Msg
=
new
{
Order
=
classIdList
},
};
};
System
.
Threading
.
Tasks
.
Task
.
Run
(()
=>
Common
.
Plugin
.
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"EduUpdateGoodsSpecification"
),
JsonHelper
.
Serialize
(
resultInfo
),
""
))
;
System
.
Threading
.
Tasks
.
Task
.
Run
(()
=>
Common
.
Plugin
.
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"EduUpdateGoodsSpecification"
),
JsonHelper
.
Serialize
(
resultInfo
),
""
))
;
}
}
}
}
...
...
Mall.Module.User/UserCommonModule.cs
View file @
3572dd5f
...
@@ -2071,7 +2071,7 @@ namespace Mall.Module.User
...
@@ -2071,7 +2071,7 @@ namespace Mall.Module.User
{
{
var
resultInfo
=
new
var
resultInfo
=
new
{
{
Msg
=
new
{
Order
=
classList
,
EnterID
=
model
.
EduUserId
>
0
?
model
.
EduUserId
:
1
},
Msg
=
new
{
Order
=
classList
,
EnterID
=
model
.
EduUserId
>
0
?
model
.
EduUserId
:
Convert
.
ToInt32
(
Config
.
EduXuZongId
??
"2602"
)
},
};
};
string
apiResult
=
Common
.
Plugin
.
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"EduOrderApi"
),
JsonHelper
.
Serialize
(
resultInfo
),
""
);
string
apiResult
=
Common
.
Plugin
.
HttpHelper
.
HttpPost
(
Config
.
ReadConfigKey
(
"EduOrderApi"
),
JsonHelper
.
Serialize
(
resultInfo
),
""
);
Newtonsoft
.
Json
.
Linq
.
JObject
parmsJob
=
Newtonsoft
.
Json
.
Linq
.
JObject
.
Parse
(
apiResult
);
Newtonsoft
.
Json
.
Linq
.
JObject
parmsJob
=
Newtonsoft
.
Json
.
Linq
.
JObject
.
Parse
(
apiResult
);
...
...
Mall.WebApi/appsettings.json
View file @
3572dd5f
{
{
"ConnectionStrings"
:
{
"ConnectionStrings"
:
{
"DefaultConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_mall;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DefaultConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=
test_
reborn_mall;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"DefaultConnectionPName"
:
"MySql.Data.MySqlClient"
,
"DefaultConnectionPName"
:
"MySql.Data.MySqlClient"
,
"FinanceConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"FinanceConnection"
:
"server=192.168.20.214;user id=reborn;password=Reborn@2018;database=reborn_finance;CharSet=utf8mb4; Convert Zero Datetime=true; "
,
"FinanceConnectionPName"
:
"MySql.Data.MySqlClient"
,
"FinanceConnectionPName"
:
"MySql.Data.MySqlClient"
,
...
@@ -63,6 +63,8 @@
...
@@ -63,6 +63,8 @@
"EduUpdateGoodsSpecification"
:
"http://192.168.20.17:8017/api/Order/UpdateGoodsSpecification"
,
"EduUpdateGoodsSpecification"
:
"http://192.168.20.17:8017/api/Order/UpdateGoodsSpecification"
,
"FinanceKey"
:
"FinanceMallInsertToERPViitto2020"
,
"FinanceKey"
:
"FinanceMallInsertToERPViitto2020"
,
"SettlementRate"
:
"0.60"
,
"SettlementRate"
:
"0.60"
,
"EduSettlementRate"
:
"0.54"
,
"EduXuZongId"
:
2602
,
//徐总的id,用于区分线下订单
"EduActivityIncomeFinanceId"
:
"9"
,
"EduActivityIncomeFinanceId"
:
"9"
,
"EduActivityExpendFinanceId"
:
"9"
,
"EduActivityExpendFinanceId"
:
"9"
,
"EduRollCallActionCode"
:
"ActivityRollCall"
,
"EduRollCallActionCode"
:
"ActivityRollCall"
,
...
@@ -81,7 +83,7 @@
...
@@ -81,7 +83,7 @@
"VirtualDirectory"
:
"WebFile"
,
"VirtualDirectory"
:
"WebFile"
,
"FileService"
:
"2"
,
"FileService"
:
"2"
,
"IsNormalServer"
:
2
,
"IsNormalServer"
:
2
,
"IsFirtsShopAutoExamine"
:
1
,
//首店企业认证是否字段审核
"IsFirtsShopAutoExamine"
:
1
,
//首店企业认证是否字段审核
"FinanceSetting"
:
{
"FinanceSetting"
:
{
"TenantId"
:
1
,
"TenantId"
:
1
,
"MallBaseId"
:
1
,
"MallBaseId"
:
1
,
...
...
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