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
58ebe2e5
Commit
58ebe2e5
authored
Aug 29, 2023
by
翁国栋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
8小时运营后台--
查询用户剩余假期
parent
16a10b13
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
1 deletions
+17
-1
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+17
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
58ebe2e5
...
...
@@ -923,7 +923,7 @@ public class TimeCardController {
}
balance
.
setBalanceDays
(
balanceDays
);
//TODO
KqglAssoLeaveBalance
balan
=
kqglassoleavebalancemapper
.
selectOne
(
new
QueryWrapper
<
KqglAssoLeaveBalance
>().
lambda
().
eq
(
KqglAssoLeaveBalance:
:
getUserid
,
balance
.
getUserid
())
.
orderByDesc
(
KqglAssoLeaveBalance
::
getModifyNumber
).
last
(
"LIMIT 1"
));
if
(
balan
!=
null
)
{
...
...
@@ -3336,6 +3336,22 @@ public class TimeCardController {
return
ResultUtil
.
data
(
null
,
"操作成功!"
);
}
/**
* 根据用户id获取用户剩余假期
*/
@GetMapping
(
value
=
"/get_time_balance"
)
@ApiOperation
(
value
=
"根据用户id获取用户剩余假期"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
3
)
public
Result
<
Double
>
get_time_balance
(
@RequestParam
(
"userId"
)
Integer
id
,
@CurrentUser
UserBean
userBean
,
@RequestParam
(
"leaveRulesId"
)
Integer
leaveRulesId
)
{
KqglAssoLeaveEmployeeBalance
emba
=
KqglAssoLeaveEmployeeBalance
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoLeaveEmployeeBalance
>().
lambda
().
eq
(
KqglAssoLeaveEmployeeBalance:
:
getLeaveRulesId
,
leaveRulesId
)
.
eq
(
KqglAssoLeaveEmployeeBalance:
:
getUserid
,
id
).
eq
(
KqglAssoLeaveEmployeeBalance:
:
getOrgCode
,
userBean
.
getOrgCode
()));
if
(
emba
!=
null
){
return
ResultUtil
.
data
(
emba
.
getBalanceDays
(),
"操作成功!"
);
}
return
ResultUtil
.
data
(
0.00
,
"操作失败!"
);
}
...
...
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