Commit e055926b by 兰国旗

laolan

parent 90ad7392
const system = require("../../../system"); const system = require("../../../system");
const Dao = require("../../dao.base"); const Dao = require("../../dao.base");
const sha256 = require('sha256');
class MediaaggregationDao extends Dao { class MediaaggregationDao extends Dao {
constructor() { constructor() {
...@@ -267,10 +268,9 @@ class MediaaggregationDao extends Dao { ...@@ -267,10 +268,9 @@ class MediaaggregationDao extends Dao {
total: 0,//总记录条数 total: 0,//总记录条数
rows: [] rows: []
}; };
// shaStr = await sha256(JSON.stringify(params)); shaStr = await sha256(JSON.stringify(params));
// shaStr = template + "_" + shaStr + "_" + functionName; shaStr = template + "_" + shaStr + "_" + functionName;
shaStr = template + "_" + functionName; rtn = await this.redisClient.get(shaStr);
// rtn = await this.redisClient.get(shaStr);
if (params) { if (params) {
var list = await this.customQuery(sql, params); var list = await this.customQuery(sql, params);
var dataCount = await this.customQuery(countSql, params); var dataCount = await this.customQuery(countSql, params);
......
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