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
5256087f
Commit
5256087f
authored
Jun 03, 2020
by
lal
Committed by
chenzg
Jul 05, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交
parent
260d2472
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
78 additions
and
96 deletions
+78
-96
src/main/java/cn/timer/api/bean/kqgl/UserAttendanceRel.java
+2
-0
src/main/java/cn/timer/api/controller/kqgl/AttController.java
+56
-95
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+17
-0
src/main/resources/mapping/kqgl/UserAttendanceRelMapper.xml
+3
-1
No files found.
src/main/java/cn/timer/api/bean/kqgl/UserAttendanceRel.java
View file @
5256087f
...
...
@@ -19,4 +19,5 @@ public class UserAttendanceRel implements Serializable{
private
Integer
qyid
;
private
String
empnum
;
private
String
empname
;
}
\ No newline at end of file
src/main/java/cn/timer/api/controller/kqgl/AttController.java
View file @
5256087f
This diff is collapsed.
Click to expand it.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
5256087f
...
...
@@ -1005,6 +1005,7 @@ public class TimeCardController {
.
isDqtx
(
attass
.
getAttRemind
()).
txry
(
String
.
join
(
","
,
attass
.
getAttRemindUserids
())).
txfs
(
attass
.
getAdvanceDays
()).
txxhts
(
attass
.
getRemCycleDays
())
.
txsjTime
(
attass
.
getReminderTime
()).
tsfs
(
String
.
join
(
","
,
attass
.
getPromptingMode
())).
isWpbsdk
(
attass
.
getAttRemind
()).
kqkssjTime
(
attass
.
getNewAttTime
())
.
zsgzsc
(
attass
.
getLeastworkTime
()).
zcgzsc
(
attass
.
getNormalWorkTime
()).
jbzdsc
(
attass
.
getMaxOvertimeTime
()).
overtimeRulesId
(
attass
.
getOvertimeRulesId
()).
build
();
// if (!attgro.insertOrUpdate())
if
(!
attgro
.
insert
())
return
ResultUtil
.
error
(
"操作失败--新增考勤组"
);
...
...
@@ -1012,6 +1013,9 @@ public class TimeCardController {
Integer
attid
=
attgro
.
getId
();
Console
.
log
(
"新增--考勤组id: "
+
attid
);
//添加加班规则
KqglAssoOvertimeRange
.
builder
().
overtimeRulesId
(
attass
.
getOvertimeRulesId
()).
attgroupId
(
attid
).
build
().
insert
();
List
<
KqglAssoKqzdkfs
>
kqzdkfslist
=
new
ArrayList
<
KqglAssoKqzdkfs
>();
String
[]
attmac
=
attass
.
getAttmachines
();
//考勤机
if
(
attmac
.
length
>
0
){
...
...
@@ -1885,6 +1889,19 @@ public class TimeCardController {
}
/**
* 获取考勤组所需加班规则
*/
@GetMapping
(
value
=
"/attovertimerules"
)
@ApiOperation
(
value
=
"获取考勤组所需加班规则"
,
httpMethod
=
"GET"
,
notes
=
"接口发布说明"
)
@ApiOperationSupport
(
order
=
15
)
public
Result
<
Object
>
getAttOvertimeRules
(
@CurrentUser
UserBean
userBean
){
List
<
KqglAssoOvertimeRules
>
attoverrul
=
new
LambdaQueryChainWrapper
<
KqglAssoOvertimeRules
>(
kqglassoovertimerulesmapper
).
eq
(
KqglAssoOvertimeRules:
:
getOrgCode
,
userBean
.
getOrgCode
()).
list
();
return
ResultUtil
.
data
(
attoverrul
,
"操作成功!"
);
}
// @GetMapping(value = "/summary_report")
// @ApiOperation(value = "考勤汇总报表(暂时不用)", httpMethod = "GET", notes = "接口发布说明")
// public Result<Object> attendance_summary_report() {
...
...
src/main/resources/mapping/kqgl/UserAttendanceRelMapper.xml
View file @
5256087f
...
...
@@ -8,6 +8,7 @@
<result
column=
"qyid"
property=
"qyid"
jdbcType=
"INTEGER"
/>
<result
column=
"empnum"
property=
"empnum"
jdbcType=
"VARCHAR"
/>
<result
column=
"empname"
property=
"empname"
jdbcType=
"VARCHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, kqzid, userid, qyid
...
...
@@ -107,7 +108,8 @@
<select
id=
"selectAttendanceOfficerByKqzid"
resultMap=
"BaseResultMap"
>
select yhkqz.*,
us.emp_num as empnum
us.emp_num as empnum,
us.name as empname
from kqgl_asso_yhkqz yhkqz
LEFT JOIN yggl_main_emp as us on us.emp_num = yhkqz.userid and us.org_code = #{orgcode}
where yhkqz.kqzid = #{kqzid,jdbcType=INTEGER}
...
...
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