main
黄海 2 years ago
parent dc99853d71
commit 80c3a0cb9c

@ -46,7 +46,14 @@ public class ExamController extends Controller {
@Before({GET.class})
public void getExamInfo() {
List<Record> list = em.getExamInfo();
renderJson(list);
Kv kv = Kv.create();
kv.set("list", list);
int allCount = 0;
for (Record record : list) {
allCount += record.getInt("count");
}
kv.set("allCount", allCount);
renderJson(kv);
}
/**

Loading…
Cancel
Save