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
644afa0e
Commit
644afa0e
authored
Jun 04, 2020
by
leialin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'lal' into 'develop'
提交 See merge request 8timerv2/8timerapiv200!144
parents
16f98c9a
fef8022c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
+4
-7
src/main/java/cn/timer/api/dto/kqmk/KqglAssoRulesViceDto.java
+5
-2
src/main/resources/mapping/kqmk/KqglAssoRulesViceMapper.xml
+2
-2
No files found.
src/main/java/cn/timer/api/controller/kqgl/TimeCardController.java
View file @
644afa0e
...
@@ -1204,6 +1204,8 @@ public class TimeCardController {
...
@@ -1204,6 +1204,8 @@ public class TimeCardController {
KqglAssoYhsb
uskqj
=
KqglAssoYhsb
.
builder
().
userId
(
Integer
.
valueOf
(
addmember
[
a
])).
kqjid
(
kqjid
).
type
(
1
).
isGly
(
0
).
build
();
KqglAssoYhsb
uskqj
=
KqglAssoYhsb
.
builder
().
userId
(
Integer
.
valueOf
(
addmember
[
a
])).
kqjid
(
kqjid
).
type
(
1
).
isGly
(
0
).
build
();
if
(!
uskqj
.
insert
())
if
(!
uskqj
.
insert
())
return
ResultUtil
.
error
(
"操作失败--新增用户与设备关系"
);
return
ResultUtil
.
error
(
"操作失败--新增用户与设备关系"
);
KqglAssoYhkqz
.
builder
().
kqzid
(
attsetuser
.
getAttgroupid
()).
userid
(
Integer
.
valueOf
(
addmember
[
a
])).
qyid
(
userBean
.
getOrgCode
()).
build
().
insert
();
}
}
//考勤组减少员工
//考勤组减少员工
...
@@ -1223,18 +1225,13 @@ public class TimeCardController {
...
@@ -1223,18 +1225,13 @@ public class TimeCardController {
KqglAssoYhsb
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoYhsb
>().
lambda
().
eq
(
KqglAssoYhsb:
:
getUserId
,
removemember
[
r
]).
eq
(
KqglAssoYhsb:
:
getKqjid
,
kqjid
).
eq
(
KqglAssoYhsb:
:
getType
,
1
));
KqglAssoYhsb
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoYhsb
>().
lambda
().
eq
(
KqglAssoYhsb:
:
getUserId
,
removemember
[
r
]).
eq
(
KqglAssoYhsb:
:
getKqjid
,
kqjid
).
eq
(
KqglAssoYhsb:
:
getType
,
1
));
//考勤机管理员
//考勤机管理员
KqglAssoKqjgly
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoKqjgly
>().
lambda
().
eq
(
KqglAssoKqjgly:
:
getKqjid
,
kqjid
).
eq
(
KqglAssoKqjgly:
:
getUserid
,
removemember
[
r
]));
KqglAssoKqjgly
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoKqjgly
>().
lambda
().
eq
(
KqglAssoKqjgly:
:
getKqjid
,
kqjid
).
eq
(
KqglAssoKqjgly:
:
getUserid
,
removemember
[
r
]));
//用户和考勤组关系表
KqglAssoYhkqz
.
builder
().
build
().
delete
(
new
QueryWrapper
<
KqglAssoYhkqz
>().
lambda
().
eq
(
KqglAssoYhkqz:
:
getKqzid
,
attsetuser
.
getAttgroupid
()).
eq
(
KqglAssoYhkqz:
:
getUserid
,
removemember
[
r
]));
}
}
}
}
}
}
//删除--kqgl_asso_yhkqz[用户和考勤组关系表]
return
ResultUtil
.
success
(
"成功"
);
return
ResultUtil
.
success
(
"成功"
);
}
}
...
...
src/main/java/cn/timer/api/dto/kqmk/KqglAssoRulesViceDto.java
View file @
644afa0e
...
@@ -11,6 +11,9 @@ import lombok.NoArgsConstructor;
...
@@ -11,6 +11,9 @@ import lombok.NoArgsConstructor;
@NoArgsConstructor
@NoArgsConstructor
@AllArgsConstructor
@AllArgsConstructor
public
class
KqglAssoRulesViceDto
{
public
class
KqglAssoRulesViceDto
{
@ApiModelProperty
(
value
=
"假期规则id 假期规则id"
,
example
=
"101"
)
// @ApiModelProperty(value = "假期规则id 假期规则id", example = "101")
private
Integer
leaveRulesId
;
// private Integer leaveRulesId;
@ApiModelProperty
(
value
=
"适用的考勤组id 适用的考勤组id"
,
example
=
"101"
)
private
Integer
attgroupId
;
}
}
src/main/resources/mapping/kqmk/KqglAssoRulesViceMapper.xml
View file @
644afa0e
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
</resultMap>
</resultMap>
<resultMap
id=
"RulesViceDtoMap"
type=
"cn.timer.api.dto.kqmk.KqglAssoRulesViceDto"
>
<resultMap
id=
"RulesViceDtoMap"
type=
"cn.timer.api.dto.kqmk.KqglAssoRulesViceDto"
>
<result
column=
"
leave_rules_id"
property=
"leaveRules
Id"
/>
<result
column=
"
attgroup_id"
property=
"attgroup
Id"
/>
</resultMap>
</resultMap>
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
<select
id=
"leaveRulesIdload"
resultMap=
"RulesViceDtoMap"
>
<select
id=
"leaveRulesIdload"
resultMap=
"RulesViceDtoMap"
>
SELECT
<include
refid=
"Base_Column_List"
/>
SELECT
<include
refid=
"Base_Column_List"
/>
FROM kqgl_asso_rules_vice
FROM kqgl_asso_rules_vice
WHERE leave
RulesI
d = #{leaverulesid}
WHERE leave
_rules_i
d = #{leaverulesid}
</select>
</select>
<!--
<!--
...
...
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