Commit e055926b by 兰国旗

laolan

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