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
37866975
Commit
37866975
authored
Sep 01, 2020
by
吴春
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交代码
parent
71d4d52f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
10 deletions
+25
-10
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+2
-2
LiveHouseController.cs
Mall.WebApi/Controllers/AppletWeChat/LiveHouseController.cs
+23
-8
No files found.
Mall.Module.Product/GuideCarModule.cs
View file @
37866975
...
...
@@ -160,7 +160,7 @@ namespace Mall.Module.Product
/// <param name="rowCount">总条数</param>
/// <param name="query">查询条件</param>
/// <returns></returns>
public
List
<
RB_GuideCar_Site_Extend
>
Get
LogisticsPinkag
eList
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_GuideCar_Site_Extend
query
)
public
List
<
RB_GuideCar_Site_Extend
>
Get
GuideCarSit
eList
(
int
pageIndex
,
int
pageSize
,
out
long
rowCount
,
RB_GuideCar_Site_Extend
query
)
{
List
<
RB_GuideCar_Site_Extend
>
list
=
SiteRepository
.
GetPageListRepository
(
pageIndex
,
pageSize
,
out
rowCount
,
query
);
if
(
list
!=
null
&&
list
.
Any
())
...
...
@@ -180,7 +180,7 @@ namespace Mall.Module.Product
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public
RB_GuideCar_Site_Extend
Get
Pinkag
eModel
(
RB_GuideCar_Site_Extend
query
)
public
RB_GuideCar_Site_Extend
Get
GuideCarSit
eModel
(
RB_GuideCar_Site_Extend
query
)
{
RB_GuideCar_Site_Extend
model
=
SiteRepository
.
GetLogisticsRulesList
(
query
).
FirstOrDefault
();
if
(
model
!=
null
)
...
...
Mall.WebApi/Controllers/AppletWeChat/LiveHouseController.cs
View file @
37866975
...
...
@@ -152,12 +152,18 @@ namespace Mall.WebApi.Controllers.AppletWeChat
foreach
(
var
item
in
list
)
{
if
(
item
.
OrderStatus
==
7
)
{
item
.
FXCommission
=
0
;
item
.
LiveCommission
=
0
;
item
.
RemitFXCommission
=
0
;
}
item
.
ALLCommission
=
item
.
CostMoney
+
item
.
GoodsFreight
+
item
.
FXCommission
+
item
.
LiveCommission
+
item
.
CouponMoney
+
item
.
RefundActual
+
item
.
YFMoney
;
item
.
NoPaid
=
item
.
ALLCommission
;
item
.
RemitFXCommission
=
item
.
RemitFXCommission
+
(!
string
.
IsNullOrWhiteSpace
(
item
.
LiveFinanceIds
)
?
item
.
LiveCommission
:
0
);
item
.
Paid
=
item
.
ServiceCharge
+
item
.
RefundActual
+
item
.
RemitFXCommission
+
item
.
CostMoney
+
item
.
GoodsFreight
+
item
.
PayMoney
;
item
.
GrossProfit
=
item
.
AllPrice
+
item
.
YSMoney
-
item
.
ALLCommission
;
if
(
item
.
AllPrice
==
0
)
{
item
.
GrossProfitRate
=
0
;
...
...
@@ -166,7 +172,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
{
item
.
GrossProfitRate
=
((
item
.
AllPrice
+
item
.
YSMoney
)
==
0
?
0
:
Math
.
Round
((
item
.
GrossProfit
/
(
item
.
AllPrice
+
item
.
YSMoney
)),
4
,
MidpointRounding
.
AwayFromZero
)
*
100
);
}
// item.Paid = item.PaidCostMoney + item.RemitFXCommission;
//item.GrossProfit = (item.AllPrice + item.RealMoney) - item.CouponMoney - item.RefundActual - item.ALLCommission - item.PayMoney;
//item.GrossProfitRate = (item.AllPrice + item.RealMoney - item.RefundActual) == 0 ? 0 : Math.Round((item.GrossProfit / ((item.AllPrice + item.RealMoney - item.RefundActual) == 0 ? 1 : (item.AllPrice + item.RealMoney - item.RefundActual))), 2, MidpointRounding.AwayFromZero);
...
...
@@ -364,13 +370,18 @@ namespace Mall.WebApi.Controllers.AppletWeChat
}
foreach
(
var
item
in
list
)
{
if
(
item
.
OrderStatus
==
7
)
{
item
.
FXCommission
=
0
;
item
.
LiveCommission
=
0
;
item
.
RemitFXCommission
=
0
;
}
item
.
ALLCommission
=
item
.
CostMoney
+
item
.
GoodsFreight
+
item
.
FXCommission
+
item
.
LiveCommission
+
item
.
CouponMoney
+
item
.
RefundActual
+
item
.
YFMoney
;
item
.
NoPaid
=
item
.
ALLCommission
;
item
.
RemitFXCommission
=
item
.
RemitFXCommission
+
(!
string
.
IsNullOrWhiteSpace
(
item
.
LiveFinanceIds
)
?
item
.
LiveCommission
:
0
);
item
.
Paid
=
item
.
ServiceCharge
+
item
.
RefundActual
+
item
.
RemitFXCommission
+
item
.
CostMoney
+
item
.
GoodsFreight
+
item
.
PayMoney
;
item
.
GrossProfit
=
item
.
AllPrice
+
item
.
YSMoney
-
item
.
ALLCommission
;
if
(
item
.
AllPrice
==
0
)
{
item
.
GrossProfitRate
=
0
;
...
...
@@ -567,14 +578,18 @@ namespace Mall.WebApi.Controllers.AppletWeChat
}
foreach
(
var
item
in
list
)
{
item
.
ALLCommission
=
item
.
CostMoney
+
item
.
GoodsFreight
+
item
.
FXCommission
+
item
.
LiveCommission
+
item
.
CouponMoney
+
item
.
RefundActual
+
item
.
YFMoney
;
if
(
item
.
OrderStatus
==
7
)
{
item
.
FXCommission
=
0
;
item
.
LiveCommission
=
0
;
item
.
RemitFXCommission
=
0
;
}
item
.
ALLCommission
=
item
.
CostMoney
+
item
.
GoodsFreight
+
item
.
FXCommission
+
item
.
LiveCommission
+
item
.
CouponMoney
+
item
.
RefundActual
+
item
.
YFMoney
;
item
.
NoPaid
=
item
.
ALLCommission
;
item
.
RemitFXCommission
=
item
.
RemitFXCommission
+
(!
string
.
IsNullOrWhiteSpace
(
item
.
LiveFinanceIds
)
?
item
.
LiveCommission
:
0
);
item
.
Paid
=
item
.
ServiceCharge
+
item
.
RefundActual
+
item
.
RemitFXCommission
+
item
.
CostMoney
+
item
.
GoodsFreight
+
item
.
PayMoney
;
item
.
GrossProfit
=
item
.
AllPrice
+
item
.
YSMoney
-
item
.
ALLCommission
;
if
(
item
.
AllPrice
==
0
)
{
item
.
GrossProfitRate
=
0
;
...
...
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