You need to sign in or sign up before continuing.
Commit 19307d2f by chenjinjing

no message

parent 60fe1458
......@@ -391,6 +391,7 @@ function getEnterpriseIndustry(名称, 企业类型, 国标大类, 国标一类,
export async function initEnterpriseData() {
await initQuanLiangData(); //初始化全量企业
// await initHuGuanData();//初始化户管企业
// await guishangEnterprise();//初始化规上企业
// await touchuEnterprise();//投促重点名单
......@@ -436,6 +437,27 @@ async function initUser() {
await createManyUser(tczxAddList);
}
//初始化全量企业
async function initQuanLiangData() {
let 企业名单 = onceSheetBecomeOfblockData('全量企业_20250731.xlsx', "sheet1");
let dataList = 企业名单[0].blockData;
let enterpriseList = [];
dataList.forEach((subList, index) => {
if (!index) return;
let addInfo = analysisSubListData(subList);
if (addInfo.isFalse) return;
// addInfo.labelList.push(ENTERPRISELABEL.户管企业);
/**标签匹配不同表格 */
enterpriseList.push(addInfo);
});
await enterpriseData.initEnterpriseBase(enterpriseList);
console.log("企业数据导入成功");
}
//初始化户管企业
......
......@@ -17,7 +17,7 @@ async function lanuch() {
/**创建http服务 */
httpServer.createServer(systemConfig.port);
console.log('This indicates that the server is started successfully.');
// await initEnterpriseData();
await initEnterpriseData();
// await dataOut();
......
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