Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
YX_IDENT_beijing_auxiliary_YD
Project
Project
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
zhangyusheng
YX_IDENT_beijing_auxiliary_YD
Commits
04b59381
Commit
04b59381
authored
Sep 17, 2019
by
liuxinben
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改组号的压缩方法
parent
39790f8f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
ReceiptServiceImpl.java
.../com/yxproject/start/service/impl/ReceiptServiceImpl.java
+11
-7
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+0
-0
No files found.
src/main/java/com/yxproject/start/service/impl/ReceiptServiceImpl.java
View file @
04b59381
...
...
@@ -420,23 +420,23 @@ public class ReceiptServiceImpl implements ReceiptService {
if
(
countyMapList
.
size
()
==
1
)
{
countyMapGroup
.
put
(
"groupNum"
,
countyMapList
.
get
(
0
).
get
(
"QR_CODE"
));
}
else
{
List
<
Integer
>
c
=
new
ArrayList
<>();
List
<
Integer
>
nsList
=
new
ArrayList
<>();
List
<
String
>
c
=
new
ArrayList
<>();
List
<
String
>
nsList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
countyMapList
.
size
();
i
++)
{
/**
* 判断组号中时候含有历史回迁组
*/
if
((((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
contains
(
"L"
))
{
if
((((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
length
()
==
8
)
{
nsList
.
add
(
Integer
.
parseInt
((((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
substring
(
1
,
(((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
length
()
)));
nsList
.
add
(
(((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
substring
(
1
,
(((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
length
(
)));
}
}
else
{
if
((((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
length
()
==
8
)
{
nsList
.
add
(
Integer
.
parseInt
((((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
substring
(
1
,
(((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
length
()
)));
nsList
.
add
(
(((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
substring
(
1
,
(((
countyMapList
.
get
(
i
)).
get
(
"QR_CODE"
))
+
""
).
length
(
)));
}
}
}
countyMapGroup
.
put
(
"groupNum"
,
createGroupNo
(
c
,
nsList
));
countyMapGroup
.
put
(
"groupNum"
,
createGroupNo
Miss
(
c
,
nsList
));
}
countyMapGroup
.
put
(
"countyCode"
,
countyCode
);
countyMapGroup
.
put
(
"policeList"
,
countyMapList
);
...
...
@@ -454,12 +454,16 @@ public class ReceiptServiceImpl implements ReceiptService {
return
typeList
;
}
private
String
createGroupNo
(
List
<
Integer
>
c
,
List
<
Integer
>
nsList
)
{
private
String
createGroupNo
Miss
(
List
<
String
>
c
,
List
<
String
>
nsList
)
{
try
{
String
groupNo
=
""
;
c
.
add
(
nsList
.
get
(
0
));
for
(
int
i
=
0
;
i
<
nsList
.
size
()
-
1
;
++
i
)
{
if
(
nsList
.
get
(
i
)
+
1
==
nsList
.
get
(
i
+
1
))
{
String
t
=
nsList
.
get
(
i
);
String
n
=
nsList
.
get
(
i
+
1
);
String
l
=
String
.
valueOf
(
Integer
.
parseInt
(
t
.
substring
(
1
,
8
))+
1
);
String
m
=
n
.
substring
(
1
,
8
);
if
(
l
.
equals
(
m
))
{
c
.
add
(
nsList
.
get
(
i
+
1
));
}
else
{
if
(
c
.
size
()
>=
1
)
{
...
...
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
04b59381
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