|
|
@ -98,7 +98,7 @@ public class ExamController extends Controller {
|
|
|
|
public void save(int order_id, String reply) {
|
|
|
|
public void save(int order_id, String reply) {
|
|
|
|
String person_id = getCookie("person_id");
|
|
|
|
String person_id = getCookie("person_id");
|
|
|
|
int result = em.save(person_id, order_id, reply);
|
|
|
|
int result = em.save(person_id, order_id, reply);
|
|
|
|
if (result == 1) {
|
|
|
|
if (result == -1) {
|
|
|
|
Kv kv = Kv.by("success", false);
|
|
|
|
Kv kv = Kv.by("success", false);
|
|
|
|
kv.put("message", "交卷后不能再保存数据!");
|
|
|
|
kv.put("message", "交卷后不能再保存数据!");
|
|
|
|
renderJson(kv);
|
|
|
|
renderJson(kv);
|
|
|
|