Commit 9871b9f5 by 蒋勇

d

parent d44d7738
...@@ -188,7 +188,8 @@ class RptTypeService extends ServiceBase{ ...@@ -188,7 +188,8 @@ class RptTypeService extends ServiceBase{
//返回 //返回
async resultJson(batchid){ async resultJson(batchid){
var batch=await this.db.models.uploadbatch.findById(batchid); var batch=await this.db.models.uploadbatch.findById(batchid);
var rs=await this.db.models.result.findAll({where:{"BatchNo":batchid},attributes:["indexName","status"],raw:true}); var rs=await this.db.models.result.findAll({where:{"BatchNo":batchid},attributes:["indexName","status"]});
console.log(rs);
var tmp={}; var tmp={};
var arrayfi=[]; var arrayfi=[];
rs.forEach((item=>{ rs.forEach((item=>{
...@@ -202,13 +203,14 @@ class RptTypeService extends ServiceBase{ ...@@ -202,13 +203,14 @@ class RptTypeService extends ServiceBase{
})); }));
var paramto={ var paramto={
//"Detection_zone":batch.batchdate, "Detection_zone":batch.batchdate,
"CreatTime":batch.updated_at, //"CreatTime":batch.updated_at,
"company_name":batch.companyname, "company_name":batch.companyname,
"Task_Num":batch.id, "Task_Num":batch.id,
// "fi":arrayfi, // "fi":arrayfi,
// "ri":tmp, // "ri":tmp,
} }
console.log(paramto);
//修改 //修改
return paramto; return paramto;
} }
......
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