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
4664cf20
Commit
4664cf20
authored
Jul 01, 2020
by
lal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
f6bcf4c1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
5 deletions
+17
-5
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+17
-5
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
4664cf20
...
@@ -2671,17 +2671,29 @@ public class TimeCardController {
...
@@ -2671,17 +2671,29 @@ public class TimeCardController {
@Autowired
@Autowired
private
KqglAssoRelationSummaryMapper
kqglassorelationsummarymapper
;
private
KqglAssoRelationSummaryMapper
kqglassorelationsummarymapper
;
@GetMapping
(
value
=
"/worktable_attendance_from"
)
@GetMapping
(
value
=
"/worktable_attendance_from
/{date}
"
)
@ApiOperation
(
value
=
"999:工作台考勤表格"
,
httpMethod
=
"GET"
,
notes
=
"查询数据"
)
@ApiOperation
(
value
=
"999:工作台考勤表格"
,
httpMethod
=
"GET"
,
notes
=
"查询数据"
)
public
Result
<
Object
>
worktable_attendance_from
(
@CurrentUser
UserBean
userBean
)
throws
ParseException
{
public
Result
<
Object
>
worktable_attendance_from
(
@CurrentUser
UserBean
userBean
,
@PathVariable
(
"date"
)
String
date
)
throws
ParseException
{
CalendarTableDataDto
tabl
=
CalendarTableDataDto
.
builder
().
build
();
CalendarTableDataDto
tabl
=
CalendarTableDataDto
.
builder
().
build
();
String
belongyear
=
n
ew
SimpleDateFormat
(
"yyyy"
).
format
(
new
Date
())
;
String
belongyear
=
n
ull
;
String
belongmonth
=
n
ew
SimpleDateFormat
(
"MM"
).
format
(
new
Date
())
;
String
belongmonth
=
n
ull
;
String
ttstr
=
null
;
//
if
(
date
==
null
||
(
""
).
equals
(
date
))
{
belongyear
=
new
SimpleDateFormat
(
"yyyy"
).
format
(
new
Date
());
belongmonth
=
new
SimpleDateFormat
(
"MM"
).
format
(
new
Date
());
ttstr
=
new
SimpleDateFormat
(
"yyyy-MM"
).
format
(
new
Date
()).
toString
();
//
}
else
{
belongyear
=
date
.
substring
(
0
,
4
);
belongmonth
=
date
.
substring
(
5
,
7
);
ttstr
=
date
;
}
String
ttstr
=
new
SimpleDateFormat
(
"yyyy-MM"
).
format
(
new
Date
()).
toString
();
//
//1:加班 2:请假 3:出差 4:外出 5:补卡
//1:加班 2:请假 3:出差 4:外出 5:补卡
KqglAssoRelationSummary
sums
=
kqglassorelationsummarymapper
.
selectTabledata
(
userBean
.
getEmpNum
(),
1
,
ttstr
);
KqglAssoRelationSummary
sums
=
kqglassorelationsummarymapper
.
selectTabledata
(
userBean
.
getEmpNum
(),
1
,
ttstr
);
...
...
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