|
@@ -89,25 +89,30 @@ public class EScanbatchService {
|
89
|
89
|
paper.put("ysznum", ysznum);
|
90
|
90
|
paper.remove("scantronnum");
|
91
|
91
|
|
92
|
|
- String alljson = paper.get("alljson").toString();
|
93
|
|
- Map pamap = JSON.parseObject(alljson, Map.class);
|
94
|
|
- List<Map> ranglist = (List<Map>) pamap.get("ranglist");
|
95
|
|
- for (Map m : ranglist) {
|
96
|
|
- String ptname = m.get("qtname").toString();
|
97
|
|
- Integer num = Integer.parseInt(m.get("num").toString());
|
98
|
|
- if ("客观题".equals(ptname)) {
|
99
|
|
- paper.put("kgt", num);
|
100
|
|
- } else {
|
101
|
|
- paper.put("zgt", num);
|
|
92
|
+ if (N_Utils.isNotEmpty(paper.get("alljson"))) {
|
|
93
|
+ String alljson = paper.get("alljson").toString();
|
|
94
|
+ Map pamap = JSON.parseObject(alljson, Map.class);
|
|
95
|
+ List<Map> ranglist = (List<Map>) pamap.get("ranglist");
|
|
96
|
+ for (Map m : ranglist) {
|
|
97
|
+ String ptname = m.get("qtname").toString();
|
|
98
|
+ Integer num = Integer.parseInt(m.get("num").toString());
|
|
99
|
+ if ("客观题".equals(ptname)) {
|
|
100
|
+ paper.put("kgt", num);
|
|
101
|
+ } else {
|
|
102
|
+ paper.put("zgt", num);
|
|
103
|
+ }
|
102
|
104
|
}
|
|
105
|
+ } else {
|
|
106
|
+ paper.put("kgt", 0);
|
|
107
|
+ paper.put("zgt", 0);
|
103
|
108
|
}
|
104
|
109
|
paper.remove("alljson");
|
105
|
110
|
|
106
|
111
|
List<Map> batchlist = eScanbatchMapper.listScanBatchPapers(epid);
|
107
|
112
|
|
108
|
113
|
Map rtnmap = new HashMap();
|
109
|
|
- rtnmap.put("paper",paper);
|
110
|
|
- rtnmap.put("scans",batchlist);
|
|
114
|
+ rtnmap.put("paper", paper);
|
|
115
|
+ rtnmap.put("scans", batchlist);
|
111
|
116
|
return rtnmap;
|
112
|
117
|
}
|
113
|
118
|
|