<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Api id="__dc0hF93bPwL28uTs0mL">
  <name>课程信息</name>
  <parentId>__LgZds5MVHW3o08T7UcX</parentId>
  <applicationid>__LgZds5MVHW3o08T7UcX</applicationid>
  <status>published</status>
  <apiGroup></apiGroup>
  <encode>UTF-8</encode>
  <requestType>get</requestType>
  <requestUrl>/lesson/lessonInfo</requestUrl>
  <tags></tags>
  <responseType>json</responseType>
  <responseScript><![CDATA[(function(){       
  
     var lessonName = getParameter("lessonName");       
   var lessonId = getParameter("lessonId");       
//  var lessonType = getItemValueAsString("lessonType"); 
    var whereStr = " where 1=1 ";    
     if(isNotNull(lessonName)){              
     whereStr += "and ITEM_lessonName like '%"+lessonName+"%'  ";              
  }    
//   if(isNotNull(lessonType)){              
  //   whereStr += "and ITEM_lessonType ='"+lessonType+"' ";              
  //}
       if(isNotNull(lessonId)){              
     whereStr += "and id ='"+lessonId+"' ";              
  }    
var sql=" select '"+getDomainid()+"' as domainid,"+
   "ITEM_LESSONTYPE," + //培训类型
    "id,"+
   "ID as ITEM_ID," + //id	   
        "DATE_FORMAT(ITEM_CREATEDTIME, '%Y-%m-%d %H:%i:%S' ) as ITEM_CREATEDTIME," + //创建时间	        
        "DATE_FORMAT(ITEM_UPDATEDTIME, '%Y-%m-%d %H:%i:%S' ) as ITEM_UPDATEDTIME," + //更新时间        
        "ITEM_CREATEDPERID," + //创建者	        
        "ITEM_LESSONNAME," + //课程名称 
        "ITEM_COVERURL," + //课程封面
        "ITEM_DESCRIPTION," + //课程简介
        "ITEM_CONTENT," + //课程详情
        "ITEM_ISOPEN," + //公开状态
        "ITEM_PLAYSET," + //播放设置 
        "ITEM_ISACTIVE," + //是否启用
        "ITEM_COMNAME," + //企业名称  
        "ITEM_URL " + //封面url     
        "from "+
        "organizationAuth.tlk_lesson_base_info "+whereStr+"";
  sql+= " limit 1000";
       var datas = queryByDSName("organizationAuth",sql);
      return datas;     
        })()]]></responseScript>
</Api>