Commit 878e3717 by 蒋勇

d

parent 422cb0a3
......@@ -3,6 +3,10 @@ const settings=require("../../../../config/settings");
const uiconfig=system.getUiConfig2(settings.appKey);
module.exports = (db, DataTypes) => {
return db.define("uploadbatch", {
userid:{
type:DataTypes.STRING,
allowNull: false,
},
companycode:{
type:DataTypes.STRING,
allowNull: false,
......
......@@ -67,6 +67,9 @@ class RptTypeService extends ServiceBase{
}
}});
}
async queryStatus(u){
return this.db.models.uploadbatch.findAll({where:{userid:u.userid}});
}
async queryReport(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});
......
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