Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
basisProjectPlatform
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
yiyuan_database
basisProjectPlatform
Commits
6be184bd
Commit
6be184bd
authored
Jun 22, 2026
by
PC-20251223ZVQQ\Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
年假计算
parent
648c5679
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
annualleave.service.ts
backend/src/services/annualleave.service.ts
+2
-2
No files found.
backend/src/services/annualleave.service.ts
View file @
6be184bd
...
...
@@ -104,13 +104,13 @@ const ensureLeavePeriod = async (
let
periodId
:
number
;
let
usedDays
:
number
;
let
status
:
string
;
let
status
:
'active'
|
'expired'
;
if
((
existing
as
any
[]).
length
>
0
)
{
const
row
=
(
existing
as
any
[])[
0
];
periodId
=
row
.
id
;
usedDays
=
Number
(
row
.
used_days
);
status
=
row
.
status
;
status
=
row
.
status
as
'active'
|
'expired'
;
}
else
{
// 数据库中没有记录,创建一条(以便后续使用结转余额)
const
[
result
]
=
await
pool
.
execute
(
...
...
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