Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
8
8timerapiv200
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
8timerv2
8timerapiv200
Commits
d5f2b9a3
Commit
d5f2b9a3
authored
Apr 08, 2025
by
龙于生
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化员工假期导入
parent
2b3b2045
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+8
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
d5f2b9a3
...
...
@@ -931,6 +931,7 @@ public class TimeCardController {
}
else
{
balance
.
setModifyNumber
(
1
);
}
balance
.
setReason
(
"[管理员修改]"
+
balance
.
getReason
());
//添加成功
if
(
balance
.
insert
())
{
...
...
@@ -1930,7 +1931,13 @@ public class TimeCardController {
@ApiOperation
(
value
=
"根据用户id和假期id查询余额具体数据"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
// @ApiOperationSupport(order = 45)
public
Result
<
Object
>
ModifyEmployeeBalance
(
@RequestBody
ModifyEmployeeBalanceDto
bala
)
{
List
<
KqglAssoLeaveBalance
>
ballist
=
kqglassoleavebalancemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoLeaveBalance
>().
lambda
().
eq
(
KqglAssoLeaveBalance:
:
getLeaveRulesId
,
bala
.
getLeaverulesid
()).
eq
(
KqglAssoLeaveBalance:
:
getUserid
,
bala
.
getEmpnum
()));
// 查询特定请假规则和用户的余额记录,并按修改时间降序排列
List
<
KqglAssoLeaveBalance
>
ballist
=
kqglassoleavebalancemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoLeaveBalance
>().
lambda
()
.
eq
(
KqglAssoLeaveBalance:
:
getLeaveRulesId
,
bala
.
getLeaverulesid
())
.
eq
(
KqglAssoLeaveBalance:
:
getUserid
,
bala
.
getEmpnum
())
.
orderByDesc
(
KqglAssoLeaveBalance:
:
getModifyTimer
)
// 排序:按修改时间降序
);
return
ResultUtil
.
data
(
ballist
,
"操作成功!"
);
}
...
...
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