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
7ddc18fd
Commit
7ddc18fd
authored
Aug 13, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
46ad4550
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
18 deletions
+34
-18
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+34
-18
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
7ddc18fd
...
...
@@ -3114,9 +3114,19 @@ public class ClockInController {
Timestamp
dd
=
Timestamp
.
valueOf
(
crlasttime
);
if
(
dd
.
after
(
b
))
{
//after:大于 before:小于
AttSchedule
attc
=
attsch
.
get
(
0
);
if
(
attc
.
getDajl
().
getId
()
!=
null
&&
attc
.
getDajl
().
getStatus
()
==
17
&&
attc
.
getDajl
().
getId
()
==
888
)
{
attc
.
getDajl
().
setId
(
null
);
attc
.
getDajl
().
setSort
(
null
);
attc
.
getDajl
().
setStatus
(
null
);
}
attc
.
setIsdk
(
0
);
}
else
{
AttSchedule
attc
=
attsch
.
get
(
cr
);
if
(
attc
.
getDajl
().
getId
()
!=
null
&&
attc
.
getDajl
().
getStatus
()
==
17
&&
attc
.
getDajl
().
getId
()
==
888
)
{
attc
.
getDajl
().
setId
(
null
);
attc
.
getDajl
().
setSort
(
null
);
attc
.
getDajl
().
setStatus
(
null
);
}
attc
.
setIsdk
(
0
);
}
}
...
...
@@ -3204,32 +3214,38 @@ public class ClockInController {
if
(
abp
.
getType
()
==
1
){
AttendanceMachine
kqjs
=
attendancemachinemapper
.
selectByPrimaryKey
(
abp
.
getDkfsid
());
AttClockMethod
akm
=
AttClockMethod
.
builder
().
build
();
akm
.
setName
(
kqjs
.
getName
());
// 打卡名称
akm
.
setMac
(
""
);
// wifi【wifi】
akm
.
setAttrange
(
0
);
// 范围【地址】
akm
.
setType
(
1
);
// 类型(1:考勤机;2:地址;3:WIFI)
akm
.
setLongitude
(
0
);
// 经度【地址】
akm
.
setLatitude
(
0
);
// 纬度【地址】
if
(
kqjs
!=
null
)
{
akm
.
setName
(
kqjs
.
getName
());
// 打卡名称
akm
.
setMac
(
""
);
// wifi【wifi】
akm
.
setAttrange
(
0
);
// 范围【地址】
akm
.
setType
(
1
);
// 类型(1:考勤机;2:地址;3:WIFI)
akm
.
setLongitude
(
0
);
// 经度【地址】
akm
.
setLatitude
(
0
);
// 纬度【地址】
}
akms
.
add
(
akm
);
}
else
if
(
abp
.
getType
()
==
2
){
PunchCardAddress
kqdzs
=
punchcardaddressmapper
.
selectByPrimaryKey
(
abp
.
getDkfsid
());
AttClockMethod
akm
=
AttClockMethod
.
builder
().
build
();
akm
.
setName
(
kqdzs
.
getName
());
// 打卡名称
akm
.
setMac
(
""
);
// wifi【wifi】
akm
.
setAttrange
(
kqdzs
.
getDkfw
());
// 范围【地址】
akm
.
setType
(
2
);
// 类型(1:考勤机;2:地址;3:WIFI)
akm
.
setLongitude
(
kqdzs
.
getLon
());
// 经度【地址】
akm
.
setLatitude
(
kqdzs
.
getLat
());
// 纬度【地址】
if
(
kqdzs
!=
null
)
{
akm
.
setName
(
kqdzs
.
getName
());
// 打卡名称
akm
.
setMac
(
""
);
// wifi【wifi】
akm
.
setAttrange
(
kqdzs
.
getDkfw
());
// 范围【地址】
akm
.
setType
(
2
);
// 类型(1:考勤机;2:地址;3:WIFI)
akm
.
setLongitude
(
kqdzs
.
getLon
());
// 经度【地址】
akm
.
setLatitude
(
kqdzs
.
getLat
());
// 纬度【地址】
}
akms
.
add
(
akm
);
}
else
{
PunchCardWiFi
kqwfs
=
punchcardwifimapper
.
selectByPrimaryKey
(
abp
.
getDkfsid
());
AttClockMethod
akm
=
AttClockMethod
.
builder
().
build
();
akm
.
setName
(
kqwfs
.
getName
());
// 打卡名称
akm
.
setMac
(
kqwfs
.
getMac
());
// wifi【wifi】
akm
.
setAttrange
(
0
);
// 范围【地址】
akm
.
setType
(
3
);
// 类型(1:考勤机;2:地址;3:WIFI)
akm
.
setLongitude
(
0
);
// 经度【地址】
akm
.
setLatitude
(
0
);
// 纬度【地址】
if
(
kqwfs
!=
null
)
{
akm
.
setName
(
kqwfs
.
getName
());
// 打卡名称
akm
.
setMac
(
kqwfs
.
getMac
());
// wifi【wifi】
akm
.
setAttrange
(
0
);
// 范围【地址】
akm
.
setType
(
3
);
// 类型(1:考勤机;2:地址;3:WIFI)
akm
.
setLongitude
(
0
);
// 经度【地址】
akm
.
setLatitude
(
0
);
// 纬度【地址】
}
akms
.
add
(
akm
);
}
}
...
...
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