Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zczlService
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
曹崟
zczlService
Commits
903bf675
Commit
903bf675
authored
Nov 08, 2019
by
mayunfei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
侦查指令单位分割问题
parent
2e18e6e8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/main/java/com/founder/zczl/service/impl/ZczlService.java
+5
-2
No files found.
src/main/java/com/founder/zczl/service/impl/ZczlService.java
View file @
903bf675
...
...
@@ -569,6 +569,7 @@ public class ZczlService implements IZczlService {
}
else
{
//遍历list,拼接单位的字符串
for
(
int
i
=
0
;
i
<
list
.
size
();
i
++){
if
(
i
<
500
){
if
(
i
==
0
){
inString
=
"('"
+
list
.
get
(
i
)+
"'"
;
...
...
@@ -578,9 +579,11 @@ public class ZczlService implements IZczlService {
inString
=
inString
+
",'"
+
list
.
get
(
i
)+
"')"
;
}
}
else
{
if
(
i
==
50
0
){
if
(
i
==
list
.
size
()
-
1
&&
i
%
500
==
0
){
inString
=
inString
+
"or UNITCODE in ('"
+
list
.
get
(
i
)+
"'"
;
}
else
if
(
i
!=
list
.
size
()-
1
){
}
else
if
(
i
%
500
==
0
){
inString
=
inString
+
"or UNITCODE in ('"
+
list
.
get
(
i
)+
"'"
;
}
else
if
((
i
+
1
)
%
500
!=
0
&&
i
!=
list
.
size
()-
1
){
inString
=
inString
+
",'"
+
list
.
get
(
i
)+
"'"
;
}
else
{
inString
=
inString
+
",'"
+
list
.
get
(
i
)+
"')"
;
...
...
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