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
714b1313
Commit
714b1313
authored
Oct 28, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整同步物流单基础数据服务
parent
ebd7e98f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
Program.cs
Bailun.DC.SyncLogisticInfo/Program.cs
+15
-15
Services.cs
Bailun.DC.SyncLogisticInfo/Services.cs
+2
-2
No files found.
Bailun.DC.SyncLogisticInfo/Program.cs
View file @
714b1313
...
@@ -11,27 +11,27 @@ namespace Bailun.DC.SyncLogisticInfo
...
@@ -11,27 +11,27 @@ namespace Bailun.DC.SyncLogisticInfo
/// 同步物流对账基础数据
/// 同步物流对账基础数据
/// </summary>
/// </summary>
/// <param name="args"></param>
/// <param name="args"></param>
//
static async Task Main(string[] args)
static
async
Task
Main
(
string
[]
args
)
//
{
{
// Console.WriteLine("启动
服务 " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
Console
.
WriteLine
(
"启动服务=>同步基础物流数据
服务 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
//
var builder = new HostBuilder().ConfigureServices((hostContext, services) =>
var
builder
=
new
HostBuilder
().
ConfigureServices
((
hostContext
,
services
)
=>
//
{
{
//
services.AddHostedService<Services>();
services
.
AddHostedService
<
Services
>();
//
});
});
//
await builder.RunConsoleAsync();
await
builder
.
RunConsoleAsync
();
//
}
}
static
void
Main
(
string
[]
args
)
//
static void Main(string[] args)
{
//
{
//
Console.WriteLine("Hello World!");
//
Console.WriteLine("Hello World!");
var
_service
=
new
Services
();
//
var _service = new Services();
_service
.
Init
();
//
_service.Init();
}
//
}
...
...
Bailun.DC.SyncLogisticInfo/Services.cs
View file @
714b1313
...
@@ -69,8 +69,8 @@ namespace Bailun.DC.SyncLogisticInfo
...
@@ -69,8 +69,8 @@ namespace Bailun.DC.SyncLogisticInfo
}
}
starttime
=
DateTime
.
Parse
(
"2020-07-01"
);
//
starttime = DateTime.Parse("2020-07-01");
endtime
=
DateTime
.
Parse
(
"2020-08-01"
);
//
endtime = DateTime.Parse("2020-08-01");
while
(
total
==
-
1
||
total
>((
page
-
1
)*
pagesize
))
while
(
total
==
-
1
||
total
>((
page
-
1
)*
pagesize
))
{
{
...
...
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