<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Api id="__x6POL2dfMRX94mJvIoX">
  <name>获取体测考试评价</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <status>published</status>
  <apiGroup></apiGroup>
  <encode>UTF-8</encode>
  <requestType>get</requestType>
  <requestUrl>/exam/operateScore</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);
    result.put("msg", "success");
    result.put("code", "0");
    result.put("type", "update");
    var examId = json.examId;
    var countsql="select 1 from tlk_system_exam_person where item_examId='"+examId+"' and item_operateStatus in ('0','1')  "
    var countdatas = queryByDSName("tms",countsql);
    result.put("total",countdatas.size())
    var sql="select item_name,item_idCardNo,DATE_FORMAT(item_operateCTime, '%Y-%m-%d %H:%i:%S' ) as item_operateCTime,item_operateReason,item_operateStatus from tlk_system_exam_person where item_examId='"+examId+"' and item_operateStatus in ('0','1')  "
    var datas = queryByDSName("tms",sql);
    result.put("data",datas)
    return result;
  }
    
})()
]]></responseScript>
</Api>