Commit a262a411 by 蒋勇

d

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