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
b73acaba
Commit
b73acaba
authored
Aug 01, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
e37ec907
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
11 deletions
+48
-11
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+39
-8
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+6
-2
src/main/java/cn/timer/api/controller/kqgl/atttimer/RealTimeUpdate.java
+3
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
b73acaba
...
...
@@ -2217,6 +2217,7 @@ public class ClockInController {
String
commentary
=
"未知"
;
if
(
sbyf
==
1
)
{
commentary
=
"打卡成功"
;
msg
=
"打卡成功"
;
}
else
{
commentary
=
msg
;
}
...
...
@@ -2248,11 +2249,12 @@ public class ClockInController {
}
else
{
return
ResultUtil
.
error
(
"打卡失败!,用户不存在!"
);
}
if
(
sbyf
==
1
)
{
return
ResultUtil
.
data
(
null
,
"打卡成功"
);
}
else
{
return
ResultUtil
.
data
(
msg
,
"打卡失败"
);
}
// if(sbyf == 1) {
// return ResultUtil.data("打卡成功");
// }else {
// return ResultUtil.data(msg, "打卡失败");
// }
return
ResultUtil
.
success
(
msg
);
}
...
...
@@ -2712,6 +2714,8 @@ public class ClockInController {
if
(
EmptyUtil
.
isNotEmpty
(
attdate
.
getAttsch
()))
{
//班次不为空
KqglAssoBcsz
bcsts
=
KqglAssoBcsz
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoBcsz
>().
lambda
().
eq
(
KqglAssoBcsz:
:
getId
,
ashss
.
get
(
0
).
getId
()));
if
(
ashss
.
get
(
0
).
getId
()
!=
0
)
{
KqglAssoDkmx
dkmc
=
KqglAssoDkmx
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoDkmx
>().
lambda
().
eq
(
KqglAssoDkmx:
:
getUserid
,
userBean
.
getEmpNum
()).
eq
(
KqglAssoDkmx:
:
getQyid
,
userBean
.
getOrgCode
())
.
ge
(
KqglAssoDkmx:
:
getDksj
,
start_time
).
le
(
KqglAssoDkmx:
:
getDksj
,
end_time
));
...
...
@@ -2720,7 +2724,16 @@ public class ClockInController {
if
(
dkmc
.
getSbdk1
()
!=
null
&&
dkmc
.
getSbdk1jg
()
==
0
&&
dkmc
.
getXbdk1
()
!=
null
&&
dkmc
.
getXbdk1jg
()
==
0
)
{
wocal
.
setCalendar_status
(
1
);
//打卡正常
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
if
(
dkmc
.
getXbdk1
()
==
null
&&
attdate
.
getAttsch
().
size
()
==
2
)
{
if
(
bcsts
.
getIsXbdk
()==
1
)
{
//下班不用打卡
wocal
.
setCalendar_status
(
1
);
//打卡正常
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
}
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
}
// wocal.setCalendar_status(3);//打卡异常
}
}
...
...
@@ -2728,7 +2741,16 @@ public class ClockInController {
if
(
dkmc
.
getSbdk2
()
!=
null
&&
dkmc
.
getSbdk2jg
()
==
0
&&
dkmc
.
getXbdk2
()
!=
null
&&
dkmc
.
getXbdk2jg
()
==
0
)
{
wocal
.
setCalendar_status
(
1
);
//打卡正常
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
if
(
dkmc
.
getXbdk2
()
==
null
&&
attdate
.
getAttsch
().
size
()
==
4
)
{
if
(
bcsts
.
getIsXbdk
()==
1
)
{
//下班不用打卡
wocal
.
setCalendar_status
(
1
);
//打卡正常
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
}
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
}
// wocal.setCalendar_status(3);//打卡异常
}
}
...
...
@@ -2736,7 +2758,16 @@ public class ClockInController {
if
(
dkmc
.
getSbdk3
()
!=
null
&&
dkmc
.
getSbdk3jg
()
==
0
&&
dkmc
.
getXbdk3
()
!=
null
&&
dkmc
.
getXbdk3jg
()
==
0
)
{
wocal
.
setCalendar_status
(
1
);
//打卡正常
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
if
(
dkmc
.
getXbdk3
()
==
null
&&
attdate
.
getAttsch
().
size
()
==
6
)
{
if
(
bcsts
.
getIsXbdk
()==
1
)
{
//下班不用打卡
wocal
.
setCalendar_status
(
1
);
//打卡正常
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
}
}
else
{
wocal
.
setCalendar_status
(
3
);
//打卡异常
}
// wocal.setCalendar_status(3);//打卡异常
}
}
...
...
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
b73acaba
...
...
@@ -65,6 +65,7 @@ import cn.timer.api.bean.kqmk.KqglAssoYhkqz;
import
cn.timer.api.bean.kqmk.KqglAssoYhsb
;
import
cn.timer.api.bean.kqmk.KqglAssoZhoupaiban
;
import
cn.timer.api.bean.kqmk.KqglMainKqz
;
import
cn.timer.api.bean.qyxx.CmsContent
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.UserBean
;
...
...
@@ -1138,8 +1139,11 @@ public class TimeCardController {
KqglMainKqzDto
mas
=
KqglMainKqzDto
.
builder
().
build
();
BeanUtil
.
copyProperties
(
makq
,
mas
,
"kqzdkfslist"
);
List
<
KqglAssoKqzdkfs
>
assfs
=
KqglAssoKqzdkfs
.
builder
().
build
().
selectList
(
new
QueryWrapper
<
KqglAssoKqzdkfs
>().
lambda
().
eq
(
KqglAssoKqzdkfs:
:
getQyid
,
userBean
.
getOrgCode
())
.
eq
(
KqglAssoKqzdkfs:
:
getKqzId
,
mas
.
getId
()));
QueryWrapper
<
KqglAssoKqzdkfs
>
queryWrapper
=
new
QueryWrapper
<>();
queryWrapper
.
select
(
"kqz_id"
,
"type"
,
"qyid"
,
"state"
).
eq
(
"qyid"
,
userBean
.
getOrgCode
())
.
eq
(
"kqz_id"
,
mas
.
getId
()).
groupBy
(
"kqz_id"
,
"type"
,
"qyid"
,
"state"
);
List
<
KqglAssoKqzdkfs
>
assfs
=
KqglAssoKqzdkfs
.
builder
().
build
().
selectList
(
queryWrapper
);
List
<
KqglAssoKqzdkfs
>
kqzdkfslist
=
new
ArrayList
<
KqglAssoKqzdkfs
>();
for
(
KqglAssoKqzdkfs
fs
:
assfs
)
{
KqglAssoKqzdkfs
dkfs
=
KqglAssoKqzdkfs
.
builder
().
build
();
...
...
src/main/java/cn/timer/api/controller/kqgl/atttimer/RealTimeUpdate.java
View file @
b73acaba
...
...
@@ -102,7 +102,9 @@ public class RealTimeUpdate{
String
str
=
new
SimpleDateFormat
(
"yyyy-MM-dd"
).
format
(
new
Date
()).
toString
();
//
String
ttstr
=
new
SimpleDateFormat
(
"yyyy-MM"
).
format
(
new
Date
()).
toString
();
//
String
yesterday
=
ClockInTool
.
requires_extra_times
(
str
,-
1
,
3
,
1
);
//前一天
String
yesterday
=
str
;
//ClockInTool.requires_extra_times(str,-1,3,1);//前一天
String
[]
rangeArray
=
ClockInTool
.
listToString
(
ClockInTool
.
getDays
(
sdf1
.
format
(
c
.
getTime
()),
yesterday
)).
split
(
";"
);
//目前为止所有日期
String
[]
range
=
rangeArray
[
0
].
split
(
","
);
Long
endDateyesterday
=
DateUtil
.
getnowEndTime
(
23
,
DateUtil
.
getStringTime
(
yesterday
,
"yyyy-MM-dd"
)).
getTime
();
...
...
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