Commit 9871b9f5 by 蒋勇

d

parent d44d7738
......@@ -188,7 +188,8 @@ class RptTypeService extends ServiceBase{
//返回
async resultJson(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 arrayfi=[];
rs.forEach((item=>{
......@@ -202,13 +203,14 @@ class RptTypeService extends ServiceBase{
}));
var paramto={
//"Detection_zone":batch.batchdate,
"CreatTime":batch.updated_at,
"Detection_zone":batch.batchdate,
//"CreatTime":batch.updated_at,
"company_name":batch.companyname,
"Task_Num":batch.id,
// "fi":arrayfi,
// "ri":tmp,
}
console.log(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