Commit 848a2b0d by zhangzhencai

no message

parent 2f3fc0c2
......@@ -173,8 +173,11 @@ export async function getEnterpriseDetails(name, type) {
if (name) selectParam["enterpriseName"] = {"%like%":name};
let manyTableInfo:any = {}
if (type) {
switch (type) {
let dbList = [];
if (type.length != 0) {
for(let i=0;i<type.length;i++){
let info = type[i];
switch (info) {
case SELECTPARAM.在孵企业:
manyTableInfo[TABLENAME.企业孵化信息] = {column:[], where:{"endTime":{"%gt%":nowTime}} };
break;
......@@ -202,12 +205,14 @@ export async function getEnterpriseDetails(name, type) {
case SELECTPARAM.高新技术:
manyTableInfo[TABLENAME.企业资质] = {column:[], where:{"gaoXinJiShuTime":{"%ne%":null}} };
break;
}
let enterpriseData = await selectManyTableData(OPERATIONALDATATYPE.多表联查, TABLENAME.企业基础信息表, selectParam, ["eId","enterpriseName"], manyTableInfo);
enterpriseData.forEach(item=>{
dbList.push(item);
});
}
}
let dbList = await selectManyTableData(OPERATIONALDATATYPE.多表联查, TABLENAME.企业基础信息表, selectParam, ["eId","enterpriseName"], manyTableInfo);
let dataList = [];
dbList.forEach( item => {
let {eId, enterpriseName} = item;
......
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