<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Api id="__SA5QW8nPvyjvyuJKzht">
  <name>获取证书列表</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <status>published</status>
  <apiGroup></apiGroup>
  <encode>UTF-8</encode>
  <requestType>get</requestType>
  <requestUrl>/kp/getCredentialList</requestUrl>
  <tags></tags>
  <responseType>json</responseType>
  <responseScript><![CDATA[(function(){      
    var result = new Packages.java.util.HashMap(); //创建指定类对象
 var sql="SELECT  c.*,(SELECT appraisalGrade from tenant_user_credential_details where id = c.id) as level from tenant_user_credentials c where c.tenant_user_id = (SELECT tenant_user_id from tenant_employees where id = '"+getWebUser().getId()+"') and credential_type in (7,8)";
  sql += " limit 1000"
   var datas = queryByDSName("obpm2",sql);
   result.put("data",datas);;
    return result;
  
  })();



]]></responseScript>
</Api>