Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manager
Project
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
reyun
manager
Commits
8a3846bc
Commit
8a3846bc
authored
4 years ago
by
lzxry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
流量同步排序规则变更
parent
fb37e524
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
TrackingFlowTask.java
src/main/java/track/task/TrackingFlowTask.java
+4
-2
No files found.
src/main/java/track/task/TrackingFlowTask.java
View file @
8a3846bc
...
@@ -321,11 +321,13 @@ public class TrackingFlowTask {
...
@@ -321,11 +321,13 @@ public class TrackingFlowTask {
public
Contract
[]
orderByContract
(
Contract
[]
contractsArray
){
public
Contract
[]
orderByContract
(
Contract
[]
contractsArray
){
for
(
int
i
=
0
;
i
<
contractsArray
.
length
-
1
;
i
++)
{
for
(
int
i
=
0
;
i
<
contractsArray
.
length
-
1
;
i
++)
{
for
(
int
j
=
0
;
j
<
contractsArray
.
length
-
1
-
i
;
j
++)
{
for
(
int
j
=
0
;
j
<
contractsArray
.
length
-
1
-
i
;
j
++)
{
if
(
DateUtil
.
getDate
(
contractsArray
[
j
].
getStartDate
()).
getTime
()
>
DateUtil
.
getDate
(
contractsArray
[
j
+
1
].
getStartDate
()).
getTime
()){
String
startDate1
=
contractsArray
[
j
].
getSignedDate
()
==
null
?
contractsArray
[
j
].
getStartDate
()
:
contractsArray
[
j
].
getSignedDate
();
String
startDate2
=
contractsArray
[
j
+
1
].
getSignedDate
()
==
null
?
contractsArray
[
j
+
1
].
getStartDate
()
:
contractsArray
[
j
+
1
].
getSignedDate
();
if
(
DateUtil
.
getDate
(
startDate1
).
getTime
()
>
DateUtil
.
getDate
(
startDate2
).
getTime
()){
Contract
temp
=
contractsArray
[
j
];
Contract
temp
=
contractsArray
[
j
];
contractsArray
[
j
]
=
contractsArray
[
j
+
1
];
contractsArray
[
j
]
=
contractsArray
[
j
+
1
];
contractsArray
[
j
+
1
]
=
temp
;
contractsArray
[
j
+
1
]
=
temp
;
}
else
if
(
DateUtil
.
getDate
(
contractsArray
[
j
].
getStartDate
()).
getTime
()
==
DateUtil
.
getDate
(
contractsArray
[
j
+
1
].
getStartDate
()
).
getTime
()){
}
else
if
(
DateUtil
.
getDate
(
startDate1
).
getTime
()
==
DateUtil
.
getDate
(
startDate2
).
getTime
()){
String
contractCode
=
StringUtil
.
matchNumber
(
contractsArray
[
j
].
getContractCode
());
String
contractCode
=
StringUtil
.
matchNumber
(
contractsArray
[
j
].
getContractCode
());
String
contractCodeMin
=
StringUtil
.
matchNumber
(
contractsArray
[
j
+
1
].
getContractCode
());
String
contractCodeMin
=
StringUtil
.
matchNumber
(
contractsArray
[
j
+
1
].
getContractCode
());
...
...
This diff is collapsed.
Click to expand it.
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