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
6c82f706
Commit
6c82f706
authored
Feb 03, 2020
by
allan0815
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决
parent
85b0e608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
12 deletions
+14
-12
Services.cs
Bailun.DC.HappenAmount/Services.cs
+14
-12
No files found.
Bailun.DC.HappenAmount/Services.cs
View file @
6c82f706
...
@@ -27,6 +27,7 @@ namespace Bailun.DC.HappenAmount
...
@@ -27,6 +27,7 @@ namespace Bailun.DC.HappenAmount
{
{
try
try
{
{
hl_amount_pay
=
0
;
var
now
=
DateTime
.
Now
;
var
now
=
DateTime
.
Now
;
if
(
now
.
Hour
==
23
&&
now
.
Minute
==
59
)
//每天 23:59分启动
if
(
now
.
Hour
==
23
&&
now
.
Minute
==
59
)
//每天 23:59分启动
...
@@ -35,17 +36,7 @@ namespace Bailun.DC.HappenAmount
...
@@ -35,17 +36,7 @@ namespace Bailun.DC.HappenAmount
Console
.
WriteLine
(
"开始启动 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
Console
.
WriteLine
(
"开始启动 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
Init
(
DateTime
.
Parse
(
now
.
ToShortDateString
()),
DateTime
.
Parse
(
now
.
AddDays
(
1
).
ToShortDateString
()));
Init
(
DateTime
.
Parse
(
now
.
ToShortDateString
()),
DateTime
.
Parse
(
now
.
AddDays
(
1
).
ToShortDateString
()));
var
result
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
AddLogisticsWaitPay
(
day
,
hl_amount_pay
);
if
(
string
.
IsNullOrEmpty
(
result
))
{
Console
.
WriteLine
(
"生成物流供应商应付款余额记录成功 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
else
{
Console
.
WriteLine
(
"生成物流供应商应付款余额记录失败: "
+
result
+
" "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
Console
.
WriteLine
(
"任务运行完成 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
Console
.
WriteLine
(
"任务运行完成 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
else
if
((
now
.
Hour
==
12
)
&&
now
.
Minute
==
1
)
else
if
((
now
.
Hour
==
12
)
&&
now
.
Minute
==
1
)
...
@@ -55,7 +46,7 @@ namespace Bailun.DC.HappenAmount
...
@@ -55,7 +46,7 @@ namespace Bailun.DC.HappenAmount
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
while
(
start
.
AddDays
(
1
)
<
DateTime
.
Now
)
{
{
new
Services
().
Init
(
start
,
start
.
AddDays
(
1
));
new
Services
().
Init
(
start
,
start
.
AddDays
(
1
));
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
AddLogisticsWaitPay
(
start
,
hl_amount_pay
);
//
new Bailun.DC.Services.FinanceReportServices().AddLogisticsWaitPay(start, hl_amount_pay);
start
=
start
.
AddDays
(
1
);
start
=
start
.
AddDays
(
1
);
}
}
}
}
...
@@ -252,6 +243,17 @@ namespace Bailun.DC.HappenAmount
...
@@ -252,6 +243,17 @@ namespace Bailun.DC.HappenAmount
else
else
{
{
Console
.
WriteLine
(
m
.
day
+
" 保存成功!"
);
Console
.
WriteLine
(
m
.
day
+
" 保存成功!"
);
var
lg_result
=
new
Bailun
.
DC
.
Services
.
FinanceReportServices
().
AddLogisticsWaitPay
(
m
.
day
,
m
.
hl_amount_pay
);
if
(
string
.
IsNullOrEmpty
(
lg_result
))
{
Console
.
WriteLine
(
"生成物流供应商应付款余额记录成功 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
else
{
Console
.
WriteLine
(
"生成物流供应商应付款余额记录失败: "
+
result
+
" "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
}
}
}
...
...
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