Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DataCenter_Core2.1_20190520
Overview
Overview
Details
Activity
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
bltdc
DataCenter_Core2.1_20190520
Commits
0fd6611a
Commit
0fd6611a
authored
Aug 06, 2021
by
zhoujinhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
月销售利润报表统计新增统计字段
parent
ca400072
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
PlatformTypeMonthlyStatisticsDto.cs
...C.Models/WebApiModels/PlatformTypeMonthlyStatisticsDto.cs
+5
-0
FinanceService.cs
Bailun.DC.Services/WebApiService/FinanceService.cs
+1
-1
No files found.
Bailun.DC.Models/WebApiModels/PlatformTypeMonthlyStatisticsDto.cs
View file @
0fd6611a
...
...
@@ -14,5 +14,10 @@
/// 对应平台总销售额
/// </summary>
public
decimal
total_amount_sales
{
get
;
set
;
}
/// <summary>
/// 订单数
/// </summary>
public
decimal
total_order
{
get
;
set
;
}
}
}
Bailun.DC.Services/WebApiService/FinanceService.cs
View file @
0fd6611a
...
...
@@ -466,7 +466,7 @@ and s1.management_cost_name = @managementcostname";
public
List
<
PlatformTypeMonthlyStatisticsDto
>
GetPlatformTypeMonthlyStatistics
(
string
month
,
string
financecategory
)
{
StringBuilder
sql
=
new
StringBuilder
();
sql
.
Append
(
"SELECT t1.platform_type, SUM(t1.amount_sales)AS total_amount_sales FROM dc_month_sales_profit_orderdetail AS t1 "
);
sql
.
Append
(
"SELECT t1.platform_type, SUM(t1.amount_sales)AS total_amount_sales
,COUNT(0)AS total_order
FROM dc_month_sales_profit_orderdetail AS t1 "
);
sql
.
Append
(
"INNER JOIN dc_base_oms_sku AS t2 ON t1.orderskuid = t2.id "
);
sql
.
Append
(
$"WHERE t1.`month` ='
{
month
}
' "
);
if
(!
string
.
IsNullOrEmpty
(
financecategory
)
&&
financecategory
!=
"其他"
)
...
...
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