Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhangjiangzheng_xcx
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
node_server
zhangjiangzheng_xcx
Commits
19307d2f
Commit
19307d2f
authored
Jul 31, 2025
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
60fe1458
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
1 deletions
+23
-1
package-lock.json
package-lock.json
+0
-0
全量企业_20250731.xlsx
res/全量企业_20250731.xlsx
+0
-0
newDataInit.ts
src/biz/dataSync/newDataInit.ts
+22
-0
main.ts
src/main.ts
+1
-1
No files found.
package-lock.json
View file @
19307d2f
This diff is collapsed.
Click to expand it.
res/全量企业_20250731.xlsx
0 → 100644
View file @
19307d2f
File added
src/biz/dataSync/newDataInit.ts
View file @
19307d2f
...
...
@@ -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
(
"企业数据导入成功"
);
}
//初始化户管企业
...
...
src/main.ts
View file @
19307d2f
...
...
@@ -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();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment