Commit cc3740ae by 蒋勇

d

parent b7e8f754
...@@ -61,6 +61,10 @@ class RptAPI extends APIBase{ ...@@ -61,6 +61,10 @@ class RptAPI extends APIBase{
} }
] ]
}*/ }*/
async deleteUrlsCache(pobj,query){
var x=await this.rptService.deleteUrlsCache();
return system.getResult({});
}
async saveRpt(pobj,query){ async saveRpt(pobj,query){
var x=await this.rptService.saveRpt(pobj); var x=await this.rptService.saveRpt(pobj);
return system.getResult(x); return system.getResult(x);
......
...@@ -6,6 +6,10 @@ class RptTypeService extends ServiceBase{ ...@@ -6,6 +6,10 @@ class RptTypeService extends ServiceBase{
super("rpt",ServiceBase.getDaoName(RptTypeService)); super("rpt",ServiceBase.getDaoName(RptTypeService));
this.redisClient=system.getObject("util.redisClient"); this.redisClient=system.getObject("util.redisClient");
} }
async deleteUrlsCache(){
await this.redisClient.delete("docurls");
return {};
}
async saveRptHistory(hs){ async saveRptHistory(hs){
var self=this; var self=this;
return this.db.transaction(async t=>{ return this.db.transaction(async t=>{
......
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