Commit df2b5015 by 蒋勇

Merge branch 'fi-taxctl' of gitlab.gongsibao.com:jiangyong/zhichan into fi-taxctl

parents 88200843 36b43aec
......@@ -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,
......
......@@ -75,6 +75,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