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