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
200bc344
Commit
200bc344
authored
Mar 06, 2019
by
dahai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询EXCEL格口信息
parent
757a83a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
6 deletions
+17
-6
FileNameDicEntity.java
...in/java/com/yxproject/start/entity/FileNameDicEntity.java
+12
-1
TaskListServiceImpl.java
...com/yxproject/start/service/impl/TaskListServiceImpl.java
+5
-5
No files found.
src/main/java/com/yxproject/start/entity/FileNameDicEntity.java
View file @
200bc344
...
...
@@ -19,6 +19,7 @@ public class FileNameDicEntity {
private
String
printDate
;
private
String
formStartTime
;
private
String
formDeadline
;
private
long
state
;
@Id
@Column
(
name
=
"FILE_ID"
)
...
...
@@ -89,6 +90,15 @@ public class FileNameDicEntity {
public
void
setFormDeadline
(
String
formDeadline
)
{
this
.
formDeadline
=
formDeadline
;
}
@Basic
@Column
(
name
=
"STATE"
)
public
long
getState
()
{
return
state
;
}
public
void
setState
(
long
state
)
{
this
.
state
=
state
;
}
@Override
public
boolean
equals
(
Object
o
)
{
...
...
@@ -101,11 +111,12 @@ public class FileNameDicEntity {
Objects
.
equals
(
analysisDate
,
that
.
analysisDate
)
&&
Objects
.
equals
(
printDate
,
that
.
printDate
)
&&
Objects
.
equals
(
formStartTime
,
that
.
formStartTime
)
&&
Objects
.
equals
(
state
,
that
.
state
)
&&
Objects
.
equals
(
formDeadline
,
that
.
formDeadline
);
}
@Override
public
int
hashCode
()
{
return
Objects
.
hash
(
fileId
,
fileName
,
uploadDate
,
analysisDate
,
printDate
,
formStartTime
,
formDeadline
);
return
Objects
.
hash
(
fileId
,
fileName
,
uploadDate
,
analysisDate
,
state
,
printDate
,
formStartTime
,
formDeadline
);
}
}
src/main/java/com/yxproject/start/service/impl/TaskListServiceImpl.java
View file @
200bc344
...
...
@@ -57,8 +57,8 @@ public class TaskListServiceImpl implements TaskListService {
Map
<
String
,
Object
>
typeMap
=
new
LinkedHashMap
<>();
for
(
Map
o
:
maps
){
//TODO 组合JSON
if
(
typeMap
.
containsKey
(
o
.
get
(
"CARD_TYPE"
)+
""
)){
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
"CARD_TYPE"
);
if
(
typeMap
!=
null
&
typeMap
.
containsKey
(
o
.
get
(
"CARD_TYPE"
)+
""
)){
List
<
Map
<
String
,
Object
>>
mapList
=
(
List
<
Map
<
String
,
Object
>>)
typeMap
.
get
(
o
.
get
(
"CARD_TYPE"
)
);
mapList
.
add
(
o
);
typeMap
.
put
(
o
.
get
(
"CARD_TYPE"
)+
""
,
mapList
);
}
else
{
...
...
@@ -75,8 +75,8 @@ public class TaskListServiceImpl implements TaskListService {
for
(
Map
o:
mapList
)
{
typeSum
+=
Integer
.
valueOf
(
o
.
get
(
"VALID_COUNT"
)
+
""
);
Map
<
String
,
Object
>
countyMap
=
new
LinkedHashMap
<>();
if
(
countyMap
.
containsKey
(
o
.
get
(
"COUNTYNAME"
)+
""
)){
List
<
Map
<
String
,
Object
>>
countyList
=
(
List
<
Map
<
String
,
Object
>>)
countyMap
.
get
(
"CARD_TYPE"
);
if
(
countyMap
!=
null
&
countyMap
.
containsKey
(
o
.
get
(
"COUNTYNAME"
)+
""
)){
List
<
Map
<
String
,
Object
>>
countyList
=
(
List
<
Map
<
String
,
Object
>>)
countyMap
.
get
(
o
.
get
(
"CARD_TYPE"
)
);
countyList
.
add
(
o
);
Integer
valid_count
=
Integer
.
valueOf
(
o
.
get
(
"VALID_COUNT"
)
+
""
);
valid_count
+=
Integer
.
valueOf
(
countyMap
.
get
(
"countyValidCount"
).
toString
());
...
...
@@ -108,6 +108,6 @@ public class TaskListServiceImpl implements TaskListService {
System
.
out
.
println
(
maps
.
toString
()+
"---------"
);
return
null
;
return
list
;
}
}
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