Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RuoYi-Vue-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
融通安全管理系统
RuoYi-Vue-master
Commits
2a6e1a18
Commit
2a6e1a18
authored
Dec 07, 2023
by
鲍德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
岗位巡查清单数据去重
parent
9cfb97a6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskPostController.java
...censoftrongtong/controller/CurrentRiskPostController.java
+1
-1
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/CurrentRiskPost.java
...a/com/censoft/censoftrongtong/domain/CurrentRiskPost.java
+1
-4
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostListMapper.xml
...ain/resources/mapper/system/CurrentRiskPostListMapper.xml
+1
-0
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/controller/CurrentRiskPostController.java
View file @
2a6e1a18
...
@@ -107,7 +107,7 @@ public class CurrentRiskPostController extends BaseController
...
@@ -107,7 +107,7 @@ public class CurrentRiskPostController extends BaseController
Long
finalCurrentRiskPostId
=
currentRiskPostId
;
Long
finalCurrentRiskPostId
=
currentRiskPostId
;
list
.
forEach
(
vo
->{
list
.
forEach
(
vo
->{
//0 一岗一人 1 一岗多人
//0 一岗一人 1 一岗多人
if
(
"1"
.
equals
(
currentRiskPost
.
getType
())
&&
Long
.
parseLong
(
userId
)
!=
vo
.
getUserId
()){
if
(
"1"
.
equals
(
currentRiskPost
.
get
Patrol
Type
())
&&
Long
.
parseLong
(
userId
)
!=
vo
.
getUserId
()){
return
;
return
;
}
}
CurrentRiskPostList
currentRiskPostList
=
new
CurrentRiskPostList
();
CurrentRiskPostList
currentRiskPostList
=
new
CurrentRiskPostList
();
...
...
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/CurrentRiskPost.java
View file @
2a6e1a18
...
@@ -37,7 +37,7 @@ public class CurrentRiskPost extends BaseEntityClean
...
@@ -37,7 +37,7 @@ public class CurrentRiskPost extends BaseEntityClean
private
String
riskPostName
;
private
String
riskPostName
;
/** 巡查类型 */
/** 巡查类型 */
@Excel
(
name
=
"巡查类型"
)
@Excel
(
name
=
"巡查类型
0 一岗一人 1 一岗多人
"
)
private
String
patrolType
;
private
String
patrolType
;
/** 岗位描述 */
/** 岗位描述 */
...
@@ -57,8 +57,5 @@ public class CurrentRiskPost extends BaseEntityClean
...
@@ -57,8 +57,5 @@ public class CurrentRiskPost extends BaseEntityClean
private
String
nickName
;
private
String
nickName
;
@ApiModelProperty
(
"0 一岗一人 1 一岗多人"
)
private
String
type
;
private
List
<
CurrentRiskPostListSaveVO
>
list
;
private
List
<
CurrentRiskPostListSaveVO
>
list
;
}
}
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostListMapper.xml
View file @
2a6e1a18
...
@@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -52,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"patrolType != null and patrolType != ''"
>
and a.patrol_type = #{patrolType}
</if>
<if
test=
"patrolType != null and patrolType != ''"
>
and a.patrol_type = #{patrolType}
</if>
<if
test=
"sortNum != null "
>
and a.sort_num = #{sortNum}
</if>
<if
test=
"sortNum != null "
>
and a.sort_num = #{sortNum}
</if>
</where>
</where>
GROUP BY a.current_risk_id
</select>
</select>
<select
id=
"selectCurrentRiskPostListById"
parameterType=
"Long"
resultMap=
"CurrentRiskPostListResult"
>
<select
id=
"selectCurrentRiskPostListById"
parameterType=
"Long"
resultMap=
"CurrentRiskPostListResult"
>
...
...
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