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
b2321e6b
Commit
b2321e6b
authored
Jun 06, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
Lal See merge request 8timerv2/8timerapiv200!151
parents
90b7029c
93124757
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
17 deletions
+26
-17
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+26
-17
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
b2321e6b
...
@@ -592,25 +592,32 @@ public class TimeCardController {
...
@@ -592,25 +592,32 @@ public class TimeCardController {
kqglassokqj
.
setLusjTime
(
new
Date
().
getTime
());
kqglassokqj
.
setLusjTime
(
new
Date
().
getTime
());
kqglassokqj
.
setQyid
(
userBean
.
getOrgCode
());
kqglassokqj
.
setQyid
(
userBean
.
getOrgCode
());
if
(!
kqglassokqj
.
insert
())
KqglAssoKqj
kqj
=
KqglAssoKqj
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoKqj
>().
lambda
().
eq
(
KqglAssoKqj:
:
getCode
,
kqglassokqj
.
getCode
()));
return
ResultUtil
.
error
(
"操作失败--新增考勤机"
);
if
(
kqj
==
null
)
{
if
(!
kqglassokqj
.
insert
())
String
url
=
mac_command
+
"/addDev"
;
return
ResultUtil
.
error
(
"操作失败--新增考勤机"
);
HttpHeaders
headers
=
new
HttpHeaders
();
MultiValueMap
<
String
,
Object
>
params
=
new
LinkedMultiValueMap
<>();
String
url
=
mac_command
+
"/addDev"
;
params
.
add
(
"orgCode"
,
kqglassokqj
.
getType
());
HttpHeaders
headers
=
new
HttpHeaders
();
params
.
add
(
"devId"
,
kqglassokqj
.
getCode
());
MultiValueMap
<
String
,
Object
>
params
=
new
LinkedMultiValueMap
<>();
RestTemplate
restTemplate
=
new
RestTemplate
();
params
.
add
(
"orgCode"
,
kqglassokqj
.
getType
());
HttpEntity
httpEntity
=
new
HttpEntity
(
params
,
headers
);
params
.
add
(
"devId"
,
kqglassokqj
.
getCode
());
try
{
RestTemplate
restTemplate
=
new
RestTemplate
();
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
HttpEntity
httpEntity
=
new
HttpEntity
(
params
,
headers
);
System
.
err
.
print
(
request
.
getBody
());
try
{
}
catch
(
RestClientException
e
)
{
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
System
.
err
.
println
(
"提示:考勤机服务出错"
);
System
.
err
.
print
(
request
.
getBody
());
return
ResultUtil
.
success
(
"失败"
);
}
catch
(
RestClientException
e
)
{
System
.
err
.
println
(
"提示:考勤机服务出错"
);
return
ResultUtil
.
success
(
"失败"
);
}
return
ResultUtil
.
data
(
kqglassokqj
,
"操作成功!"
);
}
else
{
return
ResultUtil
.
error
(
"考勤机已存在或已被使用"
);
}
}
return
ResultUtil
.
data
(
kqglassokqj
,
"操作成功!"
);
}
}
/**
/**
...
@@ -2176,6 +2183,8 @@ public class TimeCardController {
...
@@ -2176,6 +2183,8 @@ public class TimeCardController {
}
}
}
}
// @GetMapping(value = "/summary_report")
// @GetMapping(value = "/summary_report")
// @ApiOperation(value = "考勤汇总报表(暂时不用)", httpMethod = "GET", notes = "接口发布说明")
// @ApiOperation(value = "考勤汇总报表(暂时不用)", httpMethod = "GET", notes = "接口发布说明")
// public Result<Object> attendance_summary_report() {
// public Result<Object> attendance_summary_report() {
...
...
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