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
2d963d5b
Commit
2d963d5b
authored
Jul 24, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
Lal See merge request 8timerv2/8timerapiv200!341
parents
fed0470a
2ff0b96d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
src/main/java/cn/timer/api/controller/kqgl/AttController.java
+3
-0
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+3
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/AttController.java
View file @
2d963d5b
...
@@ -73,6 +73,7 @@ import cn.timer.api.bean.kqgl.SpecialDate;
...
@@ -73,6 +73,7 @@ import cn.timer.api.bean.kqgl.SpecialDate;
import
cn.timer.api.bean.kqgl.SystemShift
;
import
cn.timer.api.bean.kqgl.SystemShift
;
import
cn.timer.api.bean.kqgl.UserAttendanceRel
;
import
cn.timer.api.bean.kqgl.UserAttendanceRel
;
import
cn.timer.api.bean.kqgl.UserEquiRelation
;
import
cn.timer.api.bean.kqgl.UserEquiRelation
;
import
cn.timer.api.bean.kqmk.KqglAssoYhsb
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.bean.yggl.YgglMainEmp
;
import
cn.timer.api.config.Initialization.StaticVariable
;
import
cn.timer.api.config.Initialization.StaticVariable
;
import
cn.timer.api.config.annotation.CurrentUser
;
import
cn.timer.api.config.annotation.CurrentUser
;
...
@@ -1429,6 +1430,7 @@ public class AttController {
...
@@ -1429,6 +1430,7 @@ public class AttController {
AttendanceMachine
kqj
=
attendancemachineservice
.
selectByPrimaryKey
(
abp
.
getDkfsid
());
//查询考勤机“序列号”
AttendanceMachine
kqj
=
attendancemachineservice
.
selectByPrimaryKey
(
abp
.
getDkfsid
());
//查询考勤机“序列号”
UserEquiRelation
kqjry
=
userequirelationmapper
.
selectByuserIdkqjid
(
Integer
.
valueOf
(
attser
[
u
]),
kqj
.
getId
());
UserEquiRelation
kqjry
=
userequirelationmapper
.
selectByuserIdkqjid
(
Integer
.
valueOf
(
attser
[
u
]),
kqj
.
getId
());
if
(
kqjry
==
null
)
{
if
(
kqjry
==
null
)
{
KqglAssoYhsb
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoYhsb
>().
lambda
().
eq
(
KqglAssoYhsb:
:
getUserId
,
attser
[
u
]).
eq
(
KqglAssoYhsb:
:
getKqjid
,
kqj
.
getId
()));
//用户与设备关系(考勤机id-->用户id)
//用户与设备关系(考勤机id-->用户id)
UserEquiRelation
uskqj
=
new
UserEquiRelation
();
UserEquiRelation
uskqj
=
new
UserEquiRelation
();
uskqj
.
setUserId
(
Integer
.
valueOf
(
attser
[
u
]));
//用户id
uskqj
.
setUserId
(
Integer
.
valueOf
(
attser
[
u
]));
//用户id
...
@@ -1443,6 +1445,7 @@ public class AttController {
...
@@ -1443,6 +1445,7 @@ public class AttController {
userequirelationmapper
.
insert
(
uskqj
);
userequirelationmapper
.
insert
(
uskqj
);
}
}
YgglMainEmp
yggluser
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
YgglMainEmp:
:
getEmpNum
,
attser
[
u
]));
YgglMainEmp
yggluser
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
YgglMainEmp:
:
getEmpNum
,
attser
[
u
]));
String
url
=
mac_command
+
"/addUserName"
;
String
url
=
mac_command
+
"/addUserName"
;
HttpHeaders
headers
=
new
HttpHeaders
();
HttpHeaders
headers
=
new
HttpHeaders
();
...
...
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
2d963d5b
...
@@ -1341,6 +1341,9 @@ public class TimeCardController {
...
@@ -1341,6 +1341,9 @@ public class TimeCardController {
KqglAssoKqj
kqj
=
KqglAssoKqj
.
builder
().
id
(
abp
.
getDkfsid
()).
build
().
selectById
();
KqglAssoKqj
kqj
=
KqglAssoKqj
.
builder
().
id
(
abp
.
getDkfsid
()).
build
().
selectById
();
KqglAssoYhsb
kqjry
=
KqglAssoYhsb
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoYhsb
>().
lambda
().
eq
(
KqglAssoYhsb:
:
getUserId
,
Integer
.
valueOf
(
attser
[
u
])).
eq
(
KqglAssoYhsb:
:
getKqjid
,
kqj
.
getId
()));
KqglAssoYhsb
kqjry
=
KqglAssoYhsb
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoYhsb
>().
lambda
().
eq
(
KqglAssoYhsb:
:
getUserId
,
Integer
.
valueOf
(
attser
[
u
])).
eq
(
KqglAssoYhsb:
:
getKqjid
,
kqj
.
getId
()));
if
(
kqjry
==
null
)
{
if
(
kqjry
==
null
)
{
KqglAssoYhsb
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoYhsb
>().
lambda
().
eq
(
KqglAssoYhsb:
:
getUserId
,
attser
[
u
]).
eq
(
KqglAssoYhsb:
:
getKqjid
,
kqj
.
getId
()));
KqglAssoYhsb
uskqj
=
KqglAssoYhsb
.
builder
().
userId
(
Integer
.
valueOf
(
attser
[
u
])).
kqjid
(
kqj
.
getId
()).
type
(
1
).
build
();
KqglAssoYhsb
uskqj
=
KqglAssoYhsb
.
builder
().
userId
(
Integer
.
valueOf
(
attser
[
u
])).
kqjid
(
kqj
.
getId
()).
type
(
1
).
build
();
UserEquiRelation
isgly
=
userequirelationmapper
.
selectByuserId
(
Integer
.
valueOf
(
attser
[
u
]));
UserEquiRelation
isgly
=
userequirelationmapper
.
selectByuserId
(
Integer
.
valueOf
(
attser
[
u
]));
...
@@ -1352,7 +1355,6 @@ public class TimeCardController {
...
@@ -1352,7 +1355,6 @@ public class TimeCardController {
if
(!
uskqj
.
insert
())
if
(!
uskqj
.
insert
())
return
ResultUtil
.
error
(
"操作失败--新增用户与设备关系"
);
return
ResultUtil
.
error
(
"操作失败--新增用户与设备关系"
);
YgglMainEmp
yggluser
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
YgglMainEmp:
:
getEmpNum
,
attser
[
u
]));
YgglMainEmp
yggluser
=
YgglMainEmp
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
YgglMainEmp
>().
lambda
().
eq
(
YgglMainEmp:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
YgglMainEmp:
:
getEmpNum
,
attser
[
u
]));
String
url
=
mac_command
+
"/addUserName"
;
String
url
=
mac_command
+
"/addUserName"
;
...
...
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