Commit a262a411 by 蒋勇

d

parents 027abf0f 422cb0a3
......@@ -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){
var x=await this.rptService.saveRpt(pobj);
return system.getResult(x);
......
......@@ -7,6 +7,10 @@ class RptTypeService extends ServiceBase{
this.redisClient=system.getObject("util.redisClient");
this.cacheBatchId={};
}
async deleteUrlsCache(){
await this.redisClient.delete("docurls");
return {};
}
async saveRptHistory(hs){
var self=this;
return this.db.transaction(async t=>{
......@@ -55,10 +59,14 @@ class RptTypeService extends ServiceBase{
}));
console.log(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>sended...........");
self.redisClient.delete("batch"+batchid);
await self.redisClient.delete("batch"+batchid);
//改变批的状态为解析完毕
batch.batchstatuscode="calc";
<<<<<<< HEAD
await batch.save({transaction:t});
=======
await batch.save();
>>>>>>> 422cb0a3bd4d59bfb998fa20ae4441a4e83c6e35
}
return {};
});
......
......@@ -93,6 +93,7 @@ var settings = {
idle: 1000000
},
debug:false,
logging:false,
dialectOptions:{
requestTimeout: 999999,
// instanceName:'DEV'
......
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