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
9c389ed5
Commit
9c389ed5
authored
Jul 09, 2020
by
lal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
c557bdec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+3
-13
src/main/resources/mapping/spmk/SpmkApproveSummaryMapper.xml
+10
-1
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
9c389ed5
...
...
@@ -2757,32 +2757,22 @@ public class TimeCardController {
ttstr
=
date
;
}
//1:加班 2:请假 3:出差 4:外出 5:补卡
KqglAssoRelationSummary
sums
=
kqglassorelationsummarymapper
.
selectTabledata
(
userBean
.
getEmpNum
(),
1
,
ttstr
);
KqglAssoRelationSummary
qjj
=
kqglassorelationsummarymapper
.
selectTabledata
(
userBean
.
getEmpNum
(),
2
,
ttstr
);
KqglAssoRelationSummary
cxx
=
kqglassorelationsummarymapper
.
selectTabledata
(
userBean
.
getEmpNum
(),
3
,
ttstr
);
KqglAssoMonthPunchSummary
punsum
=
KqglAssoMonthPunchSummary
.
builder
().
build
().
selectOne
(
new
QueryWrapper
<
KqglAssoMonthPunchSummary
>().
lambda
().
eq
(
KqglAssoMonthPunchSummary:
:
getNum
,
userBean
.
getEmpNum
())
.
eq
(
KqglAssoMonthPunchSummary:
:
getOrgCode
,
userBean
.
getOrgCode
()).
eq
(
KqglAssoMonthPunchSummary:
:
getBelongYear
,
belongyear
).
eq
(
KqglAssoMonthPunchSummary:
:
getBelongMonth
,
belongmonth
));
BalanceSheetDataDto
empye
=
kqglassomonthpunchsummarymapper
.
FormMonthlySummaryLeave
(
userBean
.
getOrgCode
(),
userBean
.
getEmpNum
(),
ttstr
);
tabl
.
setAttendance
(
punsum
==
null
?
""
:
String
.
valueOf
(
punsum
.
getDaysOnDuty
()));
// 应出勤
tabl
.
setAttended
(
punsum
==
null
?
""
:
String
.
valueOf
(
punsum
.
getActualAttDays
()));
// 已出勤
tabl
.
setLeave
(
qjj
==
null
?
""
:
String
.
valueOf
(
empye
.
getBalancedays
()));
// 请假*******************
tabl
.
setLackworkcard
(
punsum
==
null
?
""
:
String
.
valueOf
(
punsum
.
getNumberWorkCardShortage
()));
// 上班缺卡
// tabl.setWorkovertime(sums == null ? "" : String.valueOf(sums.getDuration()));// 加班
tabl
.
setWorkovertime
(
sums
==
null
?
""
:
String
.
valueOf
(
punsum
.
getTotalOvertimeHours
()));
// 加班
tabl
.
setCompensatoryleave
(
String
.
valueOf
(
punsum
.
getDaysOff
()));
// 休息天数
// tabl.setEvection(cxx == null ? "" : String.valueOf(cxx.getDuration()));// 出差
tabl
.
setEvection
(
cxx
==
null
?
""
:
String
.
valueOf
(
punsum
.
getLengthBusinessTrip
()));
// 出差
tabl
.
setWorkovertime
(
punsum
==
null
?
""
:
String
.
valueOf
(
punsum
.
getTotalOvertimeHours
()));
// 加班
tabl
.
setCompensatoryleave
(
punsum
==
null
?
""
:
String
.
valueOf
(
punsum
.
getDaysOff
()));
// 休息天数
tabl
.
setEvection
(
punsum
==
null
?
""
:
String
.
valueOf
(
punsum
.
getLengthBusinessTrip
()));
// 出差
tabl
.
setOffdutycardshortage
(
punsum
==
null
?
""
:
String
.
valueOf
(
punsum
.
getNumberDutyCardShortage
()));
// 下班缺卡
return
ResultUtil
.
data
(
tabl
,
"操作成功!"
);
}
...
...
src/main/resources/mapping/spmk/SpmkApproveSummaryMapper.xml
View file @
9c389ed5
...
...
@@ -161,8 +161,17 @@
</if>
<if
test=
"param.sts != null"
>
and a.sts = #{param.sts}
<if
test=
"param.sts == 5"
>
and a.sts in (0,1,2,3)
</if>
<if
test=
"param.sts == 4"
>
and a.sts in (2,3)
</if>
<if
test=
"param.sts != 4 and param.sts != 5"
>
and a.sts = #{param.sts}
</if>
</if>
<if
test=
"param.query != null and param.query != ''"
>
and (
...
...
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