main
黄海 2 years ago
parent 43d8f6ac23
commit 3bbef2e497

@ -125,8 +125,9 @@ public class ExamModel {
* @param order_id
*/
public Record getQuestion(String person_id, int order_id) {
String sql = "select * from t_exam_record where person_id=? and order_id=?";
return Db.findFirst(sql, person_id, order_id);
String sql = "select question_id from t_exam_record where person_id=? and order_id=?";
int question_id = Db.findFirst(sql, person_id, order_id).getInt("question_id");
return Db.findById("t_exam_question", "question_id", question_id);
}
/**

Loading…
Cancel
Save