Commit 73bbaea1 by 蒋勇

d

parent afe788e0
...@@ -187,32 +187,30 @@ class RptTypeService extends ServiceBase{ ...@@ -187,32 +187,30 @@ class RptTypeService extends ServiceBase{
} }
//返回 //返回
async resultJson(batchid){ async resultJson(batchid){
// var batch=await this.db.models.uploadbatch.findByPk(batchid); var batch=await this.db.models.uploadbatch.findByPk(batchid);
// var rs=await this.db.models.result.findAll({where:{"BatchNo":batchid},attributes:["indexName","status"]}); var rs=await this.db.models.result.findAll({where:{"BatchNo":batchid},attributes:["indexName","status"]});
// console.log(rs); console.log(rs);
// var tmp={}; var tmp={};
// var arrayfi=[]; var arrayfi=[];
// rs.forEach((item=>{ rs.forEach((item=>{
// if(item.biztype=="ri"){ if(item.biztype=="ri"){
// tmp[item.indexName]=Number(item.status); tmp[item.indexName]=Number(item.status);
// }else{ }else{
// var tmp2={}; var tmp2={};
// tmp2[item.indexName]=escape(item.status); tmp2[item.indexName]=escape(item.status);
// arrayfi.push(tmp2); arrayfi.push(tmp2);
// } }
// })); }));
var paramto={
Detectionzone:"xxxxx" var paramto={
}; "Detectionzone":batch.batchdate,
// var paramto={ "CreatTime":batch.updated_at,
// "Detectionzone":batch.batchdate, "companyname":batch.companyname,
// //"CreatTime":batch.updated_at, "TaskNum":batch.id,
// "companyname":batch.companyname, "fi":arrayfi,
// "TaskNum":batch.id, "ri":tmp,
// // "fi":arrayfi, }
// // "ri":tmp, console.log(paramto);
// }
// 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