Commit 7067efeb by 蒋勇

d

parent b76c180c
...@@ -216,8 +216,8 @@ class RptTypeService extends ServiceBase{ ...@@ -216,8 +216,8 @@ class RptTypeService extends ServiceBase{
} }
//让黄静调用一下 //让黄静调用一下
async buildWordReport(batchid){ async buildWordReport(batchid){
var batch=await this.db.models.uploadbatch.findById(batchid); var batch=await this.db.models.uploadbatch.findByPk(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"]});
var tmp={}; var tmp={};
var arrayfi=[]; var arrayfi=[];
rs.forEach((item=>{ rs.forEach((item=>{
...@@ -225,7 +225,7 @@ class RptTypeService extends ServiceBase{ ...@@ -225,7 +225,7 @@ class RptTypeService extends ServiceBase{
tmp[item.indexName]=Number(item.status); tmp[item.indexName]=Number(item.status);
}else{ }else{
var tmp2={}; var tmp2={};
tmp2[escape(item.indexName)]=item.status; tmp2[item.indexName]=item.status;
arrayfi.push(tmp2); arrayfi.push(tmp2);
} }
})); }));
......
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