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
2baa0999
Commit
2baa0999
authored
Aug 25, 2021
by
zhouminghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backgroundservice
parent
2569ea7a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
Services.cs
Bailun.DC.SyncMonthSalesProfitNew/Services.cs
+14
-3
No files found.
Bailun.DC.SyncMonthSalesProfitNew/Services.cs
View file @
2baa0999
...
@@ -35,7 +35,7 @@ namespace Bailun.DC.SyncMonthSalesProfitNew
...
@@ -35,7 +35,7 @@ namespace Bailun.DC.SyncMonthSalesProfitNew
var
result
=
Init
();
var
result
=
Init
();
if
(
result
)
if
(
result
)
{
{
Console
.
WriteLine
(
"同步月利润销售报告任务运行完成
"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
Console
.
WriteLine
(
$"同步月利润销售报告任务运行完成,返回结果为【
{
result
}
】
"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
else
else
{
{
...
@@ -45,8 +45,15 @@ namespace Bailun.DC.SyncMonthSalesProfitNew
...
@@ -45,8 +45,15 @@ namespace Bailun.DC.SyncMonthSalesProfitNew
else
if
(
now
.
Hour
==
2
)
else
if
(
now
.
Hour
==
2
)
{
{
Console
.
WriteLine
(
"同步生成销售额和成本的汇总数据开始启动 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
Console
.
WriteLine
(
"同步生成销售额和成本的汇总数据开始启动 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
new
FinanceService
().
SyncMonthSalesProfiOrderDetail
(
""
);
var
result
=
Init2
();
Console
.
WriteLine
(
"同步生成销售额和成本的汇总数据任务运行完成 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
if
(
result
)
{
Console
.
WriteLine
(
"同步生成销售额和成本的汇总数据任务运行完成 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
else
{
Console
.
WriteLine
(
$"同步生成销售额和成本的汇总数据任务出现了bug,程序返回结果【
{
result
}
】"
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
}
}
}
else
else
{
{
...
@@ -62,5 +69,9 @@ namespace Bailun.DC.SyncMonthSalesProfitNew
...
@@ -62,5 +69,9 @@ namespace Bailun.DC.SyncMonthSalesProfitNew
{
{
return
new
FinanceService
().
SyncMonthSalesProfit
(
""
);
return
new
FinanceService
().
SyncMonthSalesProfit
(
""
);
}
}
private
bool
Init2
()
{
return
new
FinanceService
().
SyncMonthSalesProfiOrderDetail
(
""
);
}
}
}
}
}
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