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
b309a030
Commit
b309a030
authored
Jul 07, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交 See merge request 8timerv2/8timerapiv200!310
parents
35c871c4
9302badd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+7
-7
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
b309a030
...
@@ -283,9 +283,9 @@ public class TimeCardController {
...
@@ -283,9 +283,9 @@ public class TimeCardController {
String
[]
naryid
=
null
;
String
[]
naryid
=
null
;
if
(
listAs
.
get
(
i
).
getAppliedScope
()
==
0
)
{
//全公司
if
(
listAs
.
get
(
i
).
getAppliedScope
()
==
0
)
{
//全公司
nary
=
new
String
[
1
];
//用户名
nary
=
new
String
[
1
];
//用户名
naryid
=
new
String
[
1
];
//用户名
//
naryid = new String[1];//用户名
nary
[
0
]
=
"未使用"
;
nary
[
0
]
=
"未使用"
;
naryid
[
0
]
=
"0"
;
//
naryid[0] = "0";
}
else
{
}
else
{
List
<
KqglAssoOvertimeRange
>
overtim
=
kqglassoovertimerangemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getOvertimeRulesId
,
listAs
.
get
(
i
).
getId
()));
List
<
KqglAssoOvertimeRange
>
overtim
=
kqglassoovertimerangemapper
.
selectList
(
new
QueryWrapper
<
KqglAssoOvertimeRange
>().
lambda
().
eq
(
KqglAssoOvertimeRange:
:
getOvertimeRulesId
,
listAs
.
get
(
i
).
getId
()));
nary
=
new
String
[
overtim
.
size
()];
//用户名
nary
=
new
String
[
overtim
.
size
()];
//用户名
...
@@ -613,7 +613,7 @@ public class TimeCardController {
...
@@ -613,7 +613,7 @@ public class TimeCardController {
sta
.
setState
(
Integer
.
valueOf
(
object
.
get
(
"data"
).
toString
()));
sta
.
setState
(
Integer
.
valueOf
(
object
.
get
(
"data"
).
toString
()));
stas
.
add
(
sta
);
stas
.
add
(
sta
);
}
catch
(
RestClientException
e
)
{
}
catch
(
RestClientException
e
)
{
System
.
err
.
println
(
"提示:考勤机服务出错"
);
System
.
err
.
println
(
"提示:考勤机服务出错
-1
"
);
return
ResultUtil
.
success
(
"失败"
);
return
ResultUtil
.
success
(
"失败"
);
}
}
}
}
...
@@ -638,7 +638,7 @@ public class TimeCardController {
...
@@ -638,7 +638,7 @@ public class TimeCardController {
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
System
.
err
.
print
(
request
.
getBody
());
System
.
err
.
print
(
request
.
getBody
());
}
catch
(
RestClientException
e
)
{
}
catch
(
RestClientException
e
)
{
System
.
err
.
println
(
"提示:考勤机服务出错"
);
System
.
err
.
println
(
"提示:考勤机服务出错
-2
"
);
return
ResultUtil
.
success
(
"失败"
);
return
ResultUtil
.
success
(
"失败"
);
}
}
return
ResultUtil
.
success
(
"成功"
);
return
ResultUtil
.
success
(
"成功"
);
...
@@ -668,7 +668,7 @@ public class TimeCardController {
...
@@ -668,7 +668,7 @@ public class TimeCardController {
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
System
.
err
.
print
(
request
.
getBody
());
System
.
err
.
print
(
request
.
getBody
());
}
catch
(
RestClientException
e
)
{
}
catch
(
RestClientException
e
)
{
System
.
err
.
println
(
"提示:考勤机服务出错"
);
System
.
err
.
println
(
"提示:考勤机服务出错
-3
"
);
return
ResultUtil
.
success
(
"失败"
);
return
ResultUtil
.
success
(
"失败"
);
}
}
KqglAssoYhsb
.
builder
().
id
(
id
).
isGly
(
0
).
build
().
updateById
();
KqglAssoYhsb
.
builder
().
id
(
id
).
isGly
(
0
).
build
().
updateById
();
...
@@ -700,7 +700,7 @@ public class TimeCardController {
...
@@ -700,7 +700,7 @@ public class TimeCardController {
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
System
.
err
.
print
(
request
.
getBody
());
System
.
err
.
print
(
request
.
getBody
());
}
catch
(
RestClientException
e
)
{
}
catch
(
RestClientException
e
)
{
System
.
err
.
println
(
"提示:考勤机服务出错"
);
System
.
err
.
println
(
"提示:考勤机服务出错
-4
"
);
return
ResultUtil
.
success
(
"失败"
);
return
ResultUtil
.
success
(
"失败"
);
}
}
...
@@ -1213,7 +1213,7 @@ public class TimeCardController {
...
@@ -1213,7 +1213,7 @@ public class TimeCardController {
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
ResponseEntity
<
String
>
request
=
restTemplate
.
postForEntity
(
url
,
httpEntity
,
String
.
class
);
System
.
err
.
print
(
request
.
getBody
());
System
.
err
.
print
(
request
.
getBody
());
}
catch
(
RestClientException
e
)
{
}
catch
(
RestClientException
e
)
{
System
.
err
.
println
(
"提示:考勤机服务出错"
);
System
.
err
.
println
(
"提示:考勤机服务出错
-5
"
);
return
ResultUtil
.
error
(
"删除失败:提示:考勤机服务出错"
);
return
ResultUtil
.
error
(
"删除失败:提示:考勤机服务出错"
);
}
}
...
...
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