Commit c4d2de48 by 庄冰

aaa

parent d25877b7
...@@ -259,12 +259,12 @@ class MediaaggregationDao extends Dao { ...@@ -259,12 +259,12 @@ class MediaaggregationDao extends Dao {
} }
async redisInfo(sql, countSql, optionType, functionName, params = "") { async redisInfo(sql, countSql, optionType, functionName, params = {}) {
let rtnObj = { let rtnObj = {
total: 0,//总记录条数 total: 0,//总记录条数
rows: [] rows: []
}; };
var list = await this.customQuery(sql); var list = await this.customQuery(sql,params);
var dataCount = await this.customQuery(countSql); var dataCount = await this.customQuery(countSql);
rtnObj.rows = list; rtnObj.rows = list;
rtnObj.total = dataCount && dataCount.length > 0 ? dataCount[0].dataCount : 0; rtnObj.total = dataCount && dataCount.length > 0 ? dataCount[0].dataCount : 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment