Commit afe788e0 by 蒋勇

d

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