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
75b3631c
Commit
75b3631c
authored
Jul 16, 2020
by
guanzhenshan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决调拨单明细同步漏数据的问题
parent
00bfe780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Services.cs
Bailun.DC.AllotOrderDetail/Services.cs
+5
-5
No files found.
Bailun.DC.AllotOrderDetail/Services.cs
View file @
75b3631c
...
...
@@ -30,7 +30,7 @@ namespace Bailun.DC.AllotOrderDetail
{
var
now
=
DateTime
.
Now
;
if
(
now
.
Minute
==
3
0
)
if
(
now
.
Minute
%
4
==
0
)
{
Console
.
WriteLine
(
"开始启动 "
+
DateTime
.
Now
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
));
Init
();
...
...
@@ -55,7 +55,7 @@ namespace Bailun.DC.AllotOrderDetail
{
if
(
cn
.
State
==
System
.
Data
.
ConnectionState
.
Closed
)
{
var
sql
=
"select
*
from dc_base_transfer_info order by timestamp desc limit 1"
;
var
sql
=
"select
timestamp
from dc_base_transfer_info order by timestamp desc limit 1"
;
var
result
=
cn
.
QueryFirstOrDefault
<
Models
.
dc_base_transfer_info
>(
sql
);
if
(
result
==
null
)
...
...
@@ -73,8 +73,8 @@ namespace Bailun.DC.AllotOrderDetail
endtime
=
DateTime
.
Now
;
starttime
=
starttime
.
AddMinutes
(-
3
);
var
total
=
-
1
;
while
(
total
==
-
1
||
total
>
page
*
rows
)
while
(
total
==
-
1
||
total
>
((
page
-
1
)
*
rows
)
)
{
total
=
0
;
...
...
@@ -102,7 +102,7 @@ namespace Bailun.DC.AllotOrderDetail
//保存数据
Save
(
json
.
data
.
items
);
Console
.
WriteLine
(
"时间:"
+
starttime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
+
"-"
+
endtime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
+
",页码:"
+
page
+
",请求记录数:"
+
json
.
data
.
items
.
Count
);
Console
.
WriteLine
(
"时间:"
+
starttime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
+
"-"
+
endtime
.
ToString
(
"yyyy-MM-dd HH:mm:ss"
)
+
",页码:"
+
page
+
",请求记录数:"
+
json
.
data
.
items
.
Count
+
",总记录数:"
+
total
);
page
++;
}
...
...
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