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
6d429444
Commit
6d429444
authored
Aug 17, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
38d98481
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+3
-3
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+7
-6
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
6d429444
...
@@ -3116,7 +3116,7 @@ public class ClockInController {
...
@@ -3116,7 +3116,7 @@ public class ClockInController {
attdate
.
getAttsch
().
get
(
0
).
setIsdk
(
1
);
attdate
.
getAttsch
().
get
(
0
).
setIsdk
(
1
);
}
}
if
(
attsch
.
get
(
1
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getDktime
()
==
null
)
{
if
(
attsch
.
get
(
1
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getDktime
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getId
()
!=
999
)
{
attsch
.
get
(
1
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
1
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
1
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
1
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
1
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
1
).
getSort
());
attsch
.
get
(
1
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
1
).
getSort
());
...
@@ -3145,7 +3145,7 @@ public class ClockInController {
...
@@ -3145,7 +3145,7 @@ public class ClockInController {
attsch
.
get
(
0
).
getDajl
().
setId
(
888
);
attsch
.
get
(
0
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
0
).
setIsdk
(
1
);
attdate
.
getAttsch
().
get
(
0
).
setIsdk
(
1
);
}
}
if
(
attsch
.
get
(
1
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getDktime
()
==
null
)
{
if
(
attsch
.
get
(
1
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getDktime
()
==
null
&&
attsch
.
get
(
1
).
getDajl
().
getId
()
!=
999
)
{
attsch
.
get
(
1
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
1
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
1
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
1
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
1
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
1
).
getSort
());
attsch
.
get
(
1
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
1
).
getSort
());
...
@@ -3159,7 +3159,7 @@ public class ClockInController {
...
@@ -3159,7 +3159,7 @@ public class ClockInController {
attsch
.
get
(
2
).
getDajl
().
setId
(
888
);
attsch
.
get
(
2
).
getDajl
().
setId
(
888
);
attdate
.
getAttsch
().
get
(
2
).
setIsdk
(
1
);
attdate
.
getAttsch
().
get
(
2
).
setIsdk
(
1
);
}
}
if
(
attsch
.
get
(
3
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
3
).
getDajl
().
getDktime
()
==
null
)
{
if
(
attsch
.
get
(
3
).
getDajl
().
getId
()
==
null
&&
attsch
.
get
(
3
).
getDajl
().
getDktime
()
==
null
&&
attsch
.
get
(
3
).
getDajl
().
getId
()
!=
999
)
{
attsch
.
get
(
3
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
3
).
getDajl
().
setDktime
(
null
);
attsch
.
get
(
3
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
3
).
getDajl
().
setStatus
(
17
);
//缺卡
attsch
.
get
(
3
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
3
).
getSort
());
attsch
.
get
(
3
).
getDajl
().
setSort
(
attdate
.
getAttsch
().
get
(
3
).
getSort
());
...
...
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
6d429444
...
@@ -890,14 +890,15 @@ public class TimeCardController {
...
@@ -890,14 +890,15 @@ public class TimeCardController {
public
Result
<
Object
>
PunchCardWIFI
(
@CurrentUser
UserBean
userBean
,
@RequestBody
KqglAssoDkwx
kqglassodkwx
)
{
public
Result
<
Object
>
PunchCardWIFI
(
@CurrentUser
UserBean
userBean
,
@RequestBody
KqglAssoDkwx
kqglassodkwx
)
{
List
<
KqglAssoDkwx
>
cxwifi
=
KqglAssoDkwx
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
KqglAssoDkwx
>().
lambda
().
eq
(
KqglAssoDkwx:
:
getQyid
,
userBean
.
getOrgCode
()).
eq
(
KqglAssoDkwx:
:
getMac
,
kqglassodkwx
.
getMac
()));
List
<
KqglAssoDkwx
>
cxwifi
=
KqglAssoDkwx
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
KqglAssoDkwx
>().
lambda
().
eq
(
KqglAssoDkwx:
:
getQyid
,
userBean
.
getOrgCode
()).
eq
(
KqglAssoDkwx:
:
getMac
,
kqglassodkwx
.
getMac
()));
if
(
cxwifi
.
size
()
>
0
)
{
if
(
cxwifi
.
size
()
>
0
&&
kqglassodkwx
.
getId
()
==
null
)
{
return
ResultUtil
.
error
(
"此WiFi已存在"
);
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
(
"添加失败!"
);
}
}
kqglassodkwx
.
setLuryid
(
userBean
.
getEmpNum
());
kqglassodkwx
.
setLusjTime
(
new
Date
().
getTime
());
kqglassodkwx
.
setQyid
(
userBean
.
getOrgCode
());
return
kqglassodkwx
.
insertOrUpdate
()
?
ResultUtil
.
success
(
"添加成功!"
)
:
ResultUtil
.
error
(
"添加失败!"
);
}
}
/**
/**
...
...
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