ttyu平台进页面获取阅读量

SQL语句

function mydata(Actions,sql,where,tablename){  //接口,SQL语句,ID,表名
    tdatamydata = { type: 'web', isJsonp: false, uuid: null, compId: null, userId: null, action: Actions, tableName: tablename, where: where, fieldName: null, sql: sql, datas: null, tableDatas: null, paras: null,
        GoPage: { index: null, rows: null }, Tree: { id: null, pId: null, name: null, other: null }
    };
}
var sql = "select readcount from doc  where ID="+idobj;  // 根据listid查找readcount表
mydata("addcount",sql,idobj,"doc"); 
ttyu.server.doServiceJsonp(serverJson.serverUrl,tdatamydata,"",function(data){});

 

posted @ 2017-11-13 09:22  党欣彤  阅读(723)  评论(0编辑  收藏  举报