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
2b05c7a3
Commit
2b05c7a3
authored
Aug 20, 2020
by
ilal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
f569ab25
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
39 deletions
+36
-39
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
+35
-38
src/main/resources/mapping/kqmk/KqglAssoRelationSummaryMapper.xml
+1
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/ClockInController.java
View file @
2b05c7a3
...
@@ -3369,45 +3369,42 @@ public class ClockInController {
...
@@ -3369,45 +3369,42 @@ public class ClockInController {
if
(
trap
.
size
()
>
0
)
{
if
(
trap
.
size
()
>
0
)
{
for
(
KqglAssoRelationSummary
spnsw
:
trap
)
{
for
(
KqglAssoRelationSummary
spnsw
:
trap
)
{
TransactionApprovalDto
taap
=
TransactionApprovalDto
.
builder
().
build
();
TransactionApprovalDto
taap
=
TransactionApprovalDto
.
builder
().
build
();
if
(
spnsw
.
getApprovalType
()
==
2
)
{
if
(
spnsw
.
getApprovalType
()
==
1
)
{
taap
.
setCalendar_status_type
(
11
);
}
else
if
(
spnsw
.
getApprovalType
()
==
2
)
{
KqglAssoLeaveRules
rul
=
KqglAssoLeaveRules
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoLeaveRules
>().
lambda
().
eq
(
KqglAssoLeaveRules:
:
getId
,
spnsw
.
getLeaveTypeId
()));
KqglAssoLeaveRules
rul
=
KqglAssoLeaveRules
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoLeaveRules
>().
lambda
().
eq
(
KqglAssoLeaveRules:
:
getId
,
spnsw
.
getLeaveTypeId
()));
if
(
rul
.
getRulesType
()
==
1
)
{
if
(
rul
.
getRulesType
()
==
1
)
{
taap
.
setCalendar_status_type
(
1
);
taap
.
setCalendar_status_type
(
1
);
}
else
if
(
rul
.
getRulesType
()
==
2
)
{
taap
.
setCalendar_status_type
(
2
);
}
else
if
(
rul
.
getRulesType
()
==
2
)
{
}
else
if
(
rul
.
getRulesType
()
==
3
)
{
taap
.
setCalendar_status_type
(
2
);
taap
.
setCalendar_status_type
(
3
);
}
else
if
(
rul
.
getRulesType
()
==
4
)
{
}
else
if
(
rul
.
getRulesType
()
==
3
)
{
taap
.
setCalendar_status_type
(
4
);
taap
.
setCalendar_status_type
(
3
);
}
else
if
(
rul
.
getRulesType
()
==
5
)
{
taap
.
setCalendar_status_type
(
5
);
}
else
if
(
rul
.
getRulesType
()
==
4
)
{
}
else
if
(
rul
.
getRulesType
()
==
6
)
{
taap
.
setCalendar_status_type
(
4
);
taap
.
setCalendar_status_type
(
6
);
}
else
if
(
rul
.
getRulesType
()
==
7
)
{
}
else
if
(
rul
.
getRulesType
()
==
5
)
{
taap
.
setCalendar_status_type
(
7
);
taap
.
setCalendar_status_type
(
5
);
}
else
if
(
rul
.
getRulesType
()
==
8
)
{
taap
.
setCalendar_status_type
(
8
);
}
else
if
(
rul
.
getRulesType
()
==
6
)
{
}
else
if
(
rul
.
getRulesType
()
==
9
)
{
taap
.
setCalendar_status_type
(
6
);
taap
.
setCalendar_status_type
(
9
);
}
else
if
(
rul
.
getRulesType
()
==
10
)
{
}
else
if
(
rul
.
getRulesType
()
==
7
)
{
taap
.
setCalendar_status_type
(
10
);
taap
.
setCalendar_status_type
(
7
);
}
}
else
if
(
spnsw
.
getApprovalType
()
==
3
)
{
}
else
if
(
rul
.
getRulesType
()
==
8
)
{
taap
.
setCalendar_status_type
(
12
);
taap
.
setCalendar_status_type
(
8
);
}
else
if
(
spnsw
.
getApprovalType
()
==
4
)
{
taap
.
setCalendar_status_type
(
13
);
}
else
if
(
rul
.
getRulesType
()
==
9
)
{
}
taap
.
setCalendar_status_type
(
9
);
taap
.
setApproval_form
(
spnsw
.
getApprovalId
());
}
else
if
(
rul
.
getRulesType
()
==
10
)
{
tranappr
.
add
(
taap
);
taap
.
setCalendar_status_type
(
10
);
attdate
.
setTranappr
(
tranappr
);
}
taap
.
setApproval_form
(
spnsw
.
getApprovalId
());
tranappr
.
add
(
taap
);
attdate
.
setTranappr
(
tranappr
);
}
}
}
}
else
{
}
else
{
attdate
.
setTranappr
(
tranappr
);
attdate
.
setTranappr
(
tranappr
);
...
...
src/main/resources/mapping/kqmk/KqglAssoRelationSummaryMapper.xml
View file @
2b05c7a3
...
@@ -76,7 +76,7 @@
...
@@ -76,7 +76,7 @@
and res.org_code = #{orgcode}
and res.org_code = #{orgcode}
and res.approval_type = #{approvaltype}
and res.approval_type = #{approvaltype}
and res.app_time = #{apptime}
and res.app_time = #{apptime}
GROUP BY res.start_time,res.end_time
;
GROUP BY res.start_time,res.end_time
DESC LIMIT 1
</select>
</select>
<select
id=
"selectTabledata"
resultMap=
"BaseResultMap"
>
<select
id=
"selectTabledata"
resultMap=
"BaseResultMap"
>
...
...
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