Browse Source

处理ctype

tags/正式版本
王宁 2 years ago
parent
commit
adae82bda8

+ 8
- 0
sexam/src/main/java/com/xhkjedu/sexam/service/paper/EPaperQtypeService.java View File

542
                         }
542
                         }
543
                     }
543
                     }
544
                 }
544
                 }
545
+            }else{
546
+                for(Map qtm : qtypes) {
547
+                    List<Map> qlist = (List<Map>) qtm.get("questions");
548
+                    for(Map qm : qlist){
549
+                        Integer ctype = Integer.parseInt(qm.get("qctype").toString());
550
+                        qm.put("ctype",ctype);
551
+                    }
552
+                }
545
             }
553
             }
546
         }
554
         }
547
 
555
 

Loading…
Cancel
Save