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
e320b994
Commit
e320b994
authored
Aug 24, 2021
by
zhouminghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
d93bd6f9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
ParentNameAttribute.cs
...n.DC.Models/WebApiModels/Attribute/ParentNameAttribute.cs
+2
-2
MonthSalesProfitDto.cs
Bailun.DC.Models/WebApiModels/MonthSalesProfitDto.cs
+6
-1
dc_month_sales_profit_v2.cs
Bailun.DC.Models/dc_month_sales_profit_v2.cs
+4
-0
FinanceService.cs
Bailun.DC.Services/WebApiService/FinanceService.cs
+12
-4
No files found.
Bailun.DC.Models/WebApiModels/Attribute/ParentNameAttribute.cs
View file @
e320b994
...
@@ -71,8 +71,8 @@ namespace Bailun.DC.Models.WebApiModels
...
@@ -71,8 +71,8 @@ namespace Bailun.DC.Models.WebApiModels
/// <summary>
/// <summary>
///
///
/// </summary>
/// </summary>
[
Description
(
"销售费用-税金"
)]
//
[Description("销售费用-税金")]
fee_sales_taxes
=
5
,
//
fee_sales_taxes = 5,
/// <summary>
/// <summary>
/// 销售费用合计
/// 销售费用合计
/// </summary>
/// </summary>
...
...
Bailun.DC.Models/WebApiModels/MonthSalesProfitDto.cs
View file @
e320b994
...
@@ -189,7 +189,7 @@ namespace Bailun.DC.Models.WebApiModels
...
@@ -189,7 +189,7 @@ namespace Bailun.DC.Models.WebApiModels
//[ParentName("付现销售费用", ParentNameEnum.fee_logistics_storage)]
//[ParentName("付现销售费用", ParentNameEnum.fee_logistics_storage)]
//public decimal fee_paycash_sales { get; set; }
//public decimal fee_paycash_sales { get; set; }
[
ParentName
(
"销售费用-税金"
,
ParentNameEnum
.
fee_sales_taxes
)]
//
[ParentName("销售费用-税金", ParentNameEnum.fee_sales_taxes)]
public
decimal
?
fee_sales_taxes
{
get
;
set
;
}
//new
public
decimal
?
fee_sales_taxes
{
get
;
set
;
}
//new
/// <summary>
/// <summary>
/// 销售费用合计
/// 销售费用合计
...
@@ -295,6 +295,11 @@ namespace Bailun.DC.Models.WebApiModels
...
@@ -295,6 +295,11 @@ namespace Bailun.DC.Models.WebApiModels
/// </summary>
/// </summary>
[
ParentName
(
"其中:歌戈儿收入"
,
ParentNameEnum
.
profit
)]
[
ParentName
(
"其中:歌戈儿收入"
,
ParentNameEnum
.
profit
)]
public
decimal
incoming_gogirl
{
get
;
set
;
}
public
decimal
incoming_gogirl
{
get
;
set
;
}
/// <summary>
/// 加:歌戈尔收入
/// </summary>
[
ParentName
(
"其中:其他收入"
,
ParentNameEnum
.
profit
)]
public
decimal
among_other_income
{
get
;
set
;
}
/// <summary>
/// <summary>
/// 加:营业外收入
/// 加:营业外收入
...
...
Bailun.DC.Models/dc_month_sales_profit_v2.cs
View file @
e320b994
...
@@ -317,5 +317,9 @@ namespace Bailun.DC.Models
...
@@ -317,5 +317,9 @@ namespace Bailun.DC.Models
/// 广州崇瑜信息技术咨询有限公司
/// 广州崇瑜信息技术咨询有限公司
/// </summary>
/// </summary>
public
decimal
managercost_gzcy
{
get
;
set
;
}
//new
public
decimal
managercost_gzcy
{
get
;
set
;
}
//new
/// <summary>
/// 其中:其他收入
/// </summary>
public
decimal
among_other_income
{
get
;
set
;
}
//new
}
}
}
}
Bailun.DC.Services/WebApiService/FinanceService.cs
View file @
e320b994
...
@@ -647,6 +647,7 @@ SUM(t1.amount_sales * t1.seller_order_exchange_rate * t1.quantity_shipped) AS to
...
@@ -647,6 +647,7 @@ SUM(t1.amount_sales * t1.seller_order_exchange_rate * t1.quantity_shipped) AS to
managercost_ys
=
0
,
managercost_ys
=
0
,
managercost_gzlk
=
0
,
managercost_gzlk
=
0
,
managercost_gzcy
=
0
,
managercost_gzcy
=
0
,
among_other_income
=
0
,
};
};
}
}
var
type
=
obj
.
GetType
();
var
type
=
obj
.
GetType
();
...
@@ -771,6 +772,10 @@ or (is_lend=2 and cost_form=1)) and pay_time>= @start and pay_time< @end ");
...
@@ -771,6 +772,10 @@ or (is_lend=2 and cost_form=1)) and pay_time>= @start and pay_time< @end ");
{
{
sql
.
Append
(
" and company_name like '%歌戈儿%' and type_name not in ('销售收入','收款') "
);
sql
.
Append
(
" and company_name like '%歌戈儿%' and type_name not in ('销售收入','收款') "
);
}
}
else
if
(
feeName
.
Contains
(
"其中:其他收入"
))
{
sql
.
Append
(
" and type_name not in ('其他收入','销售商品收入','利息收入') "
);
}
else
if
(
feeName
.
Contains
(
"广州歌戈儿生活科技有限公司"
))
else
if
(
feeName
.
Contains
(
"广州歌戈儿生活科技有限公司"
))
{
{
sql
.
Append
(
" and company_name like '%歌戈儿%' and type_name not in ('还款','收款','借款','销售收入') "
);
sql
.
Append
(
" and company_name like '%歌戈儿%' and type_name not in ('还款','收款','借款','销售收入') "
);
...
@@ -778,7 +783,7 @@ or (is_lend=2 and cost_form=1)) and pay_time>= @start and pay_time< @end ");
...
@@ -778,7 +783,7 @@ or (is_lend=2 and cost_form=1)) and pay_time>= @start and pay_time< @end ");
}
}
else
if
(
feeName
.
Contains
(
"香港百伦科技有限公司"
))
else
if
(
feeName
.
Contains
(
"香港百伦科技有限公司"
))
{
{
sql
.
Append
(
" and company_name = @feeName and type_name not in ('物流费','销售费用/物流费','收款') "
);
sql
.
Append
(
" and company_name = @feeName and type_name not in ('物流费','销售费用/物流费','收款'
,'销售收入'
) "
);
}
}
else
if
(
feeName
.
Contains
(
"广州百伦供应链科技有限公司"
))
else
if
(
feeName
.
Contains
(
"广州百伦供应链科技有限公司"
))
{
{
...
@@ -1239,13 +1244,16 @@ AND financecategoryname LIKE '{financecategory.Replace("产品", "")}%' ";
...
@@ -1239,13 +1244,16 @@ AND financecategoryname LIKE '{financecategory.Replace("产品", "")}%' ";
.
Where
(
m
=>
m
.
AmountValRmb
!=
null
).
Sum
(
x
=>
x
.
AmountValRmb
.
Value
),
2
))
*
(-
1
);
.
Where
(
m
=>
m
.
AmountValRmb
!=
null
).
Sum
(
x
=>
x
.
AmountValRmb
.
Value
),
2
))
*
(-
1
);
//销售费用-税金
//销售费用-税金
oldData
.
fee_sales_taxes
=
Math
.
Abs
(
Math
.
Round
(
ExportMonthProfitFeePlatformFeeDetail
(
//
oldData.fee_sales_taxes = Math.Abs(Math.Round(ExportMonthProfitFeePlatformFeeDetail(
new
GetMonthProfitPlatformDetailInput
{
Month
=
time
,
FeeName
=
"税金"
})
//
new GetMonthProfitPlatformDetailInput { Month = time, FeeName = "税金" })
.
Where
(
m
=>
m
.
AmountValRmb
!=
null
).
Sum
(
x
=>
x
.
AmountValRmb
.
Value
),
2
))
*
(-
1
);
//
.Where(m => m.AmountValRmb != null).Sum(x => x.AmountValRmb.Value), 2)) * (-1);
//其中:歌戈儿收入
//其中:歌戈儿收入
var
operating
=
GetMonthProfitFeeManagementCostDetail
(
time
,
"其中:歌戈儿收入"
).
Data
;
var
operating
=
GetMonthProfitFeeManagementCostDetail
(
time
,
"其中:歌戈儿收入"
).
Data
;
oldData
.
incoming_gogirl
=
Math
.
Round
(
operating
.
Count
==
0
?
0
:
operating
.
Last
().
AmountRmb
.
Value
,
2
);
oldData
.
incoming_gogirl
=
Math
.
Round
(
operating
.
Count
==
0
?
0
:
operating
.
Last
().
AmountRmb
.
Value
,
2
);
//其中:其他收入
var
among_other
=
GetMonthProfitFeeManagementCostDetail
(
time
,
"其中:其他收入"
).
Data
;
oldData
.
among_other_income
=
Math
.
Round
(
among_other
.
Count
==
0
?
0
:
among_other
.
Last
().
AmountRmb
.
Value
,
2
);
//管理成本
//管理成本
var
bl_xg
=
GetMonthProfitFeeManagementCostDetail
(
time
,
"香港百伦科技有限公司"
).
Data
;
var
bl_xg
=
GetMonthProfitFeeManagementCostDetail
(
time
,
"香港百伦科技有限公司"
).
Data
;
var
bl_gz
=
GetMonthProfitFeeManagementCostDetail
(
time
,
"广州百伦供应链科技有限公司"
).
Data
;
var
bl_gz
=
GetMonthProfitFeeManagementCostDetail
(
time
,
"广州百伦供应链科技有限公司"
).
Data
;
...
...
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