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
6c9ce8e0
Commit
6c9ce8e0
authored
Sep 01, 2020
by
liudong1993
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sdzq' of
http://gitlab.oytour.com/Kui2/mall.oytour.com
into sdzq-ld
parents
db322aed
600a4caf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
14 deletions
+32
-14
GuideCarModule.cs
Mall.Module.Product/GuideCarModule.cs
+2
-2
LiveHouseController.cs
Mall.WebApi/Controllers/AppletWeChat/LiveHouseController.cs
+30
-12
No files found.
Mall.Module.Product/GuideCarModule.cs
View file @
6c9ce8e0
...
...
@@ -193,7 +193,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
())
...
...
@@ -213,7 +213,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 @
6c9ce8e0
...
...
@@ -152,12 +152,19 @@ namespace Mall.WebApi.Controllers.AppletWeChat
foreach
(
var
item
in
list
)
{
if
(
item
.
OrderStatus
==
7
)
{
item
.
FXCommission
=
0
;
item
.
LiveCommission
=
0
;
item
.
RemitFXCommission
=
0
;
item
.
RefundActual
=
item
.
RefundActual
>
0
?
item
.
RefundActual
:
item
.
AllPrice
;
}
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
.
Paid
=
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 +173,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 +371,19 @@ namespace Mall.WebApi.Controllers.AppletWeChat
}
foreach
(
var
item
in
list
)
{
if
(
item
.
OrderStatus
==
7
)
{
item
.
FXCommission
=
0
;
item
.
LiveCommission
=
0
;
item
.
RemitFXCommission
=
0
;
item
.
RefundActual
=
item
.
RefundActual
>
0
?
item
.
RefundActual
:
item
.
AllPrice
;
}
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
.
Paid
=
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
;
...
...
@@ -415,7 +428,7 @@ namespace Mall.WebApi.Controllers.AppletWeChat
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
FXCommission
.
ToString
(
"#0.00"
))
{
});
datarow
.
ExcelRows
.
Add
(
new
ExcelColumn
(
value
:
item
.
RemitFXCommission
.
ToString
(
"#0.00"
))
{
});
string
commissionInfo
=
""
;
if
(
item
.
OrderCommissionList
!=
null
&&
item
.
OrderCommissionList
.
Any
())
if
(
item
.
OrderCommissionList
!=
null
&&
item
.
OrderCommissionList
.
Any
()
&&
item
.
OrderStatus
!=
7
)
{
foreach
(
var
itemCommi
in
item
.
OrderCommissionList
)
{
...
...
@@ -567,14 +580,19 @@ 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
.
RefundActual
=
item
.
RefundActual
>
0
?
item
.
RefundActual
:
item
.
AllPrice
;
}
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
.
Paid
=
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