Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
data-center-auto
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
data-center-auto
Commits
9c0d0b64
Commit
9c0d0b64
authored
Aug 01, 2020
by
泽锋 李
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6e00d159
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
26 additions
and
3 deletions
+26
-3
daily.cs
AutoTurnOver.DB/daily.cs
+1
-1
report_cash_flow_dao.cs
AutoTurnOver.DB/report_cash_flow_dao.cs
+19
-1
api_pps_sku_status_response_dto.cs
...TurnOver.Models/ApiDto/api_pps_sku_status_response_dto.cs
+4
-0
dc_report_cash_flow_log.cs
AutoTurnOver.Models/dc_report_cash_flow_log.cs
+2
-1
No files found.
AutoTurnOver.DB/daily.cs
View file @
9c0d0b64
...
...
@@ -694,7 +694,7 @@ where bailun_sku in @skus", new { skus = skus.Split(',').ToList() });
{
bailun_sku
=
item
.
sku
,
platform
=
item
.
platformDesc
,
localtion
=
""
,
localtion
=
item
.
shipAddress
,
platform_sku
=
""
,
status
=
item
.
statusDesc
==
"上架"
?
1
:
0
,
sys_update_date
=
now
,
...
...
AutoTurnOver.DB/report_cash_flow_dao.cs
View file @
9c0d0b64
...
...
@@ -1010,7 +1010,25 @@ where t1.create_time>=@btime and t1.create_time<=@etime ";
item_config
=
item_configs
.
OrderBy
(
s
=>
s
.
settlement_type
).
FirstOrDefault
();
}
}
if
(
item_configs
.
Where
(
v
=>
v
.
settlement_type
==
(
int
)
dc_report_cash_flow_settlement_type_enum
.
月度固定
_
下期付款
).
Count
()
>
1
)
{
// 取发生时间后,最早的一个付款日期
var
temp_item_configs
=
item_configs
.
Where
(
s
=>
s
.
settlement_type
>
occur_time
.
Day
).
OrderBy
(
s
=>
s
.
settlement_type
).
ToList
();
if
(
temp_item_configs
.
Count
>
1
)
{
item_config
=
temp_item_configs
[
1
];
}
else
if
(
temp_item_configs
.
Count
==
1
)
{
// 只有一条,取下期
item_config
=
item_configs
.
OrderBy
(
s
=>
s
.
settlement_type
).
FirstOrDefault
();
}
else
if
(
temp_item_configs
.
Count
==
0
)
{
// 一条都没有,取整个月第二期
item_config
=
item_configs
.
OrderBy
(
s
=>
s
.
settlement_type
).
ToList
()[
1
];
}
}
if
(
item_config
.
settlement_type
==
(
int
)
dc_report_cash_flow_settlement_type_enum
.
等长顺延
)
{
...
...
AutoTurnOver.Models/ApiDto/api_pps_sku_status_response_dto.cs
View file @
9c0d0b64
...
...
@@ -20,6 +20,10 @@ namespace AutoTurnOver.Models.ApiDto
/// </summary>
public
string
platformDesc
{
get
;
set
;
}
/// <summary>
/// 海外 or 国内
/// </summary>
public
string
shipAddress
{
get
;
set
;
}
/// <summary>
/// 站点
/// </summary>
public
string
site
{
get
;
set
;
}
...
...
AutoTurnOver.Models/dc_report_cash_flow_log.cs
View file @
9c0d0b64
...
...
@@ -160,7 +160,8 @@ namespace AutoTurnOver.Models
public
enum
dc_report_cash_flow_settlement_type_enum
{
等长顺延
=
1
,
月度固定
=
2
月度固定
=
2
,
月度固定
_
下期付款
=
3
,
}
/// <summary>
...
...
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