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
42a10c09
Commit
42a10c09
authored
4 years ago
by
ilal
Committed by
chenzg
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
59be3bad
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+10
-4
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
42a10c09
...
@@ -888,10 +888,16 @@ public class TimeCardController {
...
@@ -888,10 +888,16 @@ public class TimeCardController {
@ApiOperation
(
value
=
"26:新增/修改--打卡WIFI信息"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperation
(
value
=
"26:新增/修改--打卡WIFI信息"
,
httpMethod
=
"POST"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
26
)
@ApiOperationSupport
(
order
=
26
)
public
Result
<
Object
>
PunchCardWIFI
(
@CurrentUser
UserBean
userBean
,
@RequestBody
KqglAssoDkwx
kqglassodkwx
)
{
public
Result
<
Object
>
PunchCardWIFI
(
@CurrentUser
UserBean
userBean
,
@RequestBody
KqglAssoDkwx
kqglassodkwx
)
{
kqglassodkwx
.
setLuryid
(
userBean
.
getEmpNum
());
kqglassodkwx
.
setLusjTime
(
new
Date
().
getTime
());
List
<
KqglAssoDkwx
>
cxwifi
=
KqglAssoDkwx
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
KqglAssoDkwx
>().
lambda
().
eq
(
KqglAssoDkwx:
:
getQyid
,
userBean
.
getOrgCode
()).
eq
(
KqglAssoDkwx:
:
getMac
,
kqglassodkwx
.
getMac
()));
kqglassodkwx
.
setQyid
(
userBean
.
getOrgCode
());
if
(
cxwifi
.
size
()
>
0
)
{
return
kqglassodkwx
.
insertOrUpdate
()
?
ResultUtil
.
success
(
"操作成功!"
)
:
ResultUtil
.
error
(
"操作失败!"
);
return
ResultUtil
.
error
(
"此WiFi已存在"
);
}
else
{
kqglassodkwx
.
setLuryid
(
userBean
.
getEmpNum
());
kqglassodkwx
.
setLusjTime
(
new
Date
().
getTime
());
kqglassodkwx
.
setQyid
(
userBean
.
getOrgCode
());
return
kqglassodkwx
.
insertOrUpdate
()
?
ResultUtil
.
success
(
"添加成功!"
)
:
ResultUtil
.
error
(
"添加失败!"
);
}
}
}
/**
/**
...
...
This diff is collapsed.
Click to expand it.
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