Commit 200bc344 authored by dahai's avatar dahai

修改查询EXCEL格口信息

parent 757a83a7
...@@ -19,6 +19,7 @@ public class FileNameDicEntity { ...@@ -19,6 +19,7 @@ public class FileNameDicEntity {
private String printDate; private String printDate;
private String formStartTime; private String formStartTime;
private String formDeadline; private String formDeadline;
private long state;
@Id @Id
@Column(name = "FILE_ID") @Column(name = "FILE_ID")
...@@ -89,6 +90,15 @@ public class FileNameDicEntity { ...@@ -89,6 +90,15 @@ public class FileNameDicEntity {
public void setFormDeadline(String formDeadline) { public void setFormDeadline(String formDeadline) {
this.formDeadline = formDeadline; this.formDeadline = formDeadline;
} }
@Basic
@Column(name = "STATE")
public long getState() {
return state;
}
public void setState(long state) {
this.state = state;
}
@Override @Override
public boolean equals(Object o) { public boolean equals(Object o) {
...@@ -101,11 +111,12 @@ public class FileNameDicEntity { ...@@ -101,11 +111,12 @@ public class FileNameDicEntity {
Objects.equals(analysisDate, that.analysisDate) && Objects.equals(analysisDate, that.analysisDate) &&
Objects.equals(printDate, that.printDate) && Objects.equals(printDate, that.printDate) &&
Objects.equals(formStartTime, that.formStartTime) && Objects.equals(formStartTime, that.formStartTime) &&
Objects.equals(state, that.state) &&
Objects.equals(formDeadline, that.formDeadline); Objects.equals(formDeadline, that.formDeadline);
} }
@Override @Override
public int hashCode() { public int hashCode() {
return Objects.hash(fileId, fileName, uploadDate, analysisDate, printDate, formStartTime, formDeadline); return Objects.hash(fileId, fileName, uploadDate, analysisDate,state, printDate, formStartTime, formDeadline);
} }
} }
...@@ -57,8 +57,8 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -57,8 +57,8 @@ public class TaskListServiceImpl implements TaskListService {
Map<String,Object> typeMap = new LinkedHashMap<>(); Map<String,Object> typeMap = new LinkedHashMap<>();
for (Map o :maps){ for (Map o :maps){
//TODO 组合JSON //TODO 组合JSON
if (typeMap.containsKey(o.get("CARD_TYPE")+"")){ if (typeMap!=null&typeMap.containsKey(o.get("CARD_TYPE")+"")){
List<Map<String,Object>> mapList= (List<Map<String,Object>>)typeMap.get("CARD_TYPE"); List<Map<String,Object>> mapList= (List<Map<String,Object>>)typeMap.get(o.get("CARD_TYPE"));
mapList.add(o); mapList.add(o);
typeMap.put(o.get("CARD_TYPE")+"",mapList); typeMap.put(o.get("CARD_TYPE")+"",mapList);
}else { }else {
...@@ -75,8 +75,8 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -75,8 +75,8 @@ public class TaskListServiceImpl implements TaskListService {
for (Map o:mapList) { for (Map o:mapList) {
typeSum+=Integer.valueOf(o.get("VALID_COUNT") + ""); typeSum+=Integer.valueOf(o.get("VALID_COUNT") + "");
Map<String,Object> countyMap = new LinkedHashMap<>(); Map<String,Object> countyMap = new LinkedHashMap<>();
if (countyMap.containsKey(o.get("COUNTYNAME")+"")){ if (countyMap !=null&countyMap.containsKey(o.get("COUNTYNAME")+"")){
List<Map<String,Object>> countyList= (List<Map<String,Object>>)countyMap.get("CARD_TYPE"); List<Map<String,Object>> countyList= (List<Map<String,Object>>)countyMap.get(o.get("CARD_TYPE"));
countyList.add(o); countyList.add(o);
Integer valid_count = Integer.valueOf(o.get("VALID_COUNT") + ""); Integer valid_count = Integer.valueOf(o.get("VALID_COUNT") + "");
valid_count+=Integer.valueOf(countyMap.get("countyValidCount").toString()); valid_count+=Integer.valueOf(countyMap.get("countyValidCount").toString());
...@@ -108,6 +108,6 @@ public class TaskListServiceImpl implements TaskListService { ...@@ -108,6 +108,6 @@ public class TaskListServiceImpl implements TaskListService {
System.out.println(maps.toString()+"---------"); System.out.println(maps.toString()+"---------");
return null; return list;
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment