Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
saspAdminServer
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
saspAdminServer
Commits
652d7636
Commit
652d7636
authored
Jan 07, 2026
by
chenjinjing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
c8ff749a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
qccInit.ts
src/biz/qccInit.ts
+1
-1
labelUtils.ts
src/util/labelUtils.ts
+12
-4
No files found.
src/biz/qccInit.ts
View file @
652d7636
...
...
@@ -27,7 +27,7 @@ const BATCH_INTERVAL = 5 * 60 * 1000; // 批次间隔时间:5分钟
* 设置定时器,分批刷新数据
*/
export
async
function
initApiDataStorage
()
{
updateQCCDataTask
();
//
updateQCCDataTask();
setInterval
(
async
function
()
{
updateQCCDataTask
();
},
3600
*
1000
*
24
);
// 每天启动一次完整的数据同步
...
...
src/util/labelUtils.ts
View file @
652d7636
...
...
@@ -65,12 +65,20 @@ function getYearLabelId(parkEntryTime) {
let
entryDate
=
new
Date
(
parkEntryTime
);
let
entryYear
=
entryDate
.
getFullYear
();
if
(
entryYear
===
2023
)
{
if
(
entryYear
===
2022
)
{
return
"2022"
;
}
else
if
(
entryYear
===
2023
)
{
return
"2023"
;
}
else
if
(
entryYear
===
2024
)
{
return
"2024"
;
}
else
{
return
"2100"
;
// 其他年份
}
else
if
(
entryYear
===
2025
)
{
return
"2025"
;
}
else
if
(
entryYear
===
2026
)
{
return
"2026"
;
}
else
if
(
entryYear
===
2027
)
{
return
"2027"
;
}
else
if
(
entryYear
===
2028
)
{
return
"2028"
;
}
}
...
...
@@ -242,7 +250,7 @@ export async function updateEnterpriseLabels(enterpriseData) {
/**
* 转换前端传入的labels数据为数据库存储格式(基于标签表查询)
* @param {Array<string>} labelIds 前端传入的标签ID数组,如:["4", "6", "601", "2025", "el_35ee4ddafbf7eaf9191071b893adb806"]
* @returns {Promise<Array<Object>>} 数据库存储格式的标签数组
* @returns {Promise<Array<Object>>} 数据库存储格式的标签数组
[{labelId:"", labelType:"", state:""}]
*/
export
async
function
convertLabelsToDbFormat
(
labelIds
)
{
if
(
!
labelIds
||
!
Array
.
isArray
(
labelIds
)
||
labelIds
.
length
===
0
)
{
...
...
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