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
14bb1585
Commit
14bb1585
authored
Aug 13, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
fed23ff0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+28
-0
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
14bb1585
...
...
@@ -3059,4 +3059,32 @@ public class TimeCardController {
return
ResultUtil
.
data
(
null
,
"操作成功!"
);
}
/**
* 删除考勤机
*/
@DeleteMapping
(
value
=
"/attendance/{code}"
)
@ApiOperation
(
value
=
"删除考勤机"
,
httpMethod
=
"DELETE"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
3
)
public
Result
<
Integer
>
DeleteAttendance
(
@PathVariable
(
"code"
)
String
code
)
{
KqglAssoKqj
kqj
=
KqglAssoKqj
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoKqj
>().
lambda
().
eq
(
KqglAssoKqj:
:
getCode
,
code
));
int
kqjid
=
kqj
.
getId
();
if
(
KqglAssoKqj
.
builder
().
id
(
kqjid
).
build
().
deleteById
())
{
KqglAssoYhsb
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoYhsb
>().
lambda
().
eq
(
KqglAssoYhsb:
:
getKqjid
,
kqjid
));
KqglAssoKqjgly
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoKqjgly
>().
lambda
().
eq
(
KqglAssoKqjgly:
:
getKqjid
,
kqjid
));
}
return
ResultUtil
.
data
(
null
,
"操作成功!"
);
}
}
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