<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Api id="__rDWRQV4w5R3yFaztCnF">
  <name>查找人为核验记录</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <status>published</status>
  <apiGroup></apiGroup>
  <encode>UTF-8</encode>
  <requestType>post</requestType>
  <requestUrl>/exam/teacherSelect</requestUrl>
  <tags></tags>
  <responseType>json</responseType>
  <responseScript><![CDATA[(function () {
  var result = new Packages.java.util.HashMap(); //创建指定类对象
  var jsonStr = getParameter("_content");

  if(isNotNull(jsonStr)){
    var json = JSON.parse(jsonStr);
    var examId = json["examId"];//考试id

    var counsql="select 1 from tlk_teacher_check_info where item_exam_id='"+examId+"'"
    var countdatas = queryByDSName("tms",counsql);
    result.put("total", countdatas.size());
    var sql="select DATE_FORMAT(created, '%Y-%m-%d %H:%i:%S' ) as time,item_person_name,item_id_card,item_type,item_resuilt from tlk_teacher_check_info where  item_exam_id='"+examId+"' order by created desc "
    var datas = queryByDSName("tms",sql);
    result.put("date", datas);
    result.put("code", 200);

  }
  return result;
})()]]></responseScript>
</Api>