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
017ad585
Commit
017ad585
authored
Dec 01, 2023
by
鲍德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
风险巡查项目岗位返回增加用户姓名
parent
7465d894
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
78 additions
and
35 deletions
+78
-35
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/CurrentRiskPost.java
...a/com/censoft/censoftrongtong/domain/CurrentRiskPost.java
+11
-1
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostMapper.xml
...rc/main/resources/mapper/system/CurrentRiskPostMapper.xml
+67
-34
No files found.
censoft-rongtong/src/main/java/com/censoft/censoftrongtong/domain/CurrentRiskPost.java
View file @
017ad585
...
...
@@ -50,6 +50,16 @@ public class CurrentRiskPost extends BaseEntityClean
/** 删除标志(0代表存在 1代表删除) */
private
String
delFlag
;
private
String
nickName
;
public
String
getNickName
()
{
return
nickName
;
}
public
void
setNickName
(
String
nickName
)
{
this
.
nickName
=
nickName
;
}
public
void
setId
(
Long
id
)
{
this
.
id
=
id
;
...
...
censoft-rongtong/src/main/resources/mapper/system/CurrentRiskPostMapper.xml
View file @
017ad585
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.censoft.censoftrongtong.mapper.CurrentRiskPostMapper"
>
<resultMap
type=
"com.censoft.censoftrongtong.domain.CurrentRiskPost"
id=
"CurrentRiskPostResult"
>
<result
property=
"id"
column=
"id"
/>
<result
property=
"projectId"
column=
"project_id"
/>
<result
property=
"riskPostCode"
column=
"risk_post_code"
/>
<result
property=
"riskPostName"
column=
"risk_post_name"
/>
<result
property=
"patrolType"
column=
"patrol_type"
/>
<result
property=
"riskPostDesc"
column=
"risk_post_desc"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"sortNum"
column=
"sort_num"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"id"
column=
"id"
/>
<result
property=
"projectId"
column=
"project_id"
/>
<result
property=
"riskPostCode"
column=
"risk_post_code"
/>
<result
property=
"riskPostName"
column=
"risk_post_name"
/>
<result
property=
"patrolType"
column=
"patrol_type"
/>
<result
property=
"riskPostDesc"
column=
"risk_post_desc"
/>
<result
property=
"userId"
column=
"user_id"
/>
<result
property=
"sortNum"
column=
"sort_num"
/>
<result
property=
"delFlag"
column=
"del_flag"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"updateBy"
column=
"update_by"
/>
<result
property=
"updateTime"
column=
"update_time"
/>
<result
property=
"remark"
column=
"remark"
/>
<result
property=
"nickName"
column=
"nickName"
/>
</resultMap>
<sql
id=
"selectCurrentRiskPostVo"
>
select id, project_id, risk_post_code, risk_post_name, patrol_type, risk_post_desc, user_id, sort_num, del_flag, create_by, create_time, update_by, update_time, remark from current_risk_post
select id,
project_id,
risk_post_code,
risk_post_name,
patrol_type,
risk_post_desc,
user_id,
sort_num,
del_flag,
create_by,
create_time,
update_by,
update_time,
remark
from current_risk_post
</sql>
<select
id=
"selectCurrentRiskPostList"
parameterType=
"com.censoft.censoftrongtong.domain.CurrentRiskPost"
resultMap=
"CurrentRiskPostResult"
>
<include
refid=
"selectCurrentRiskPostVo"
/>
<select
id=
"selectCurrentRiskPostList"
parameterType=
"com.censoft.censoftrongtong.domain.CurrentRiskPost"
resultMap=
"CurrentRiskPostResult"
>
SELECT
a.id,
project_id,
risk_post_code,
risk_post_name,
patrol_type,
risk_post_desc,
a.user_id,
sort_num,
a.create_by, a.create_time, a.update_by, a.update_time, a.remark,
GROUP_CONCAT(b.nick_name) nickName
FROM
current_risk_post a
LEFT JOIN sys_user b on FIND_IN_SET(b.user_id,a.user_id)
<where>
<if
test=
"projectId != null "
>
and project_id = #{projectId}
</if>
<if
test=
"riskPostCode != null and riskPostCode != ''"
>
and risk_post_code = #{riskPostCode}
</if>
<if
test=
"riskPostName != null and riskPostName != ''"
>
and risk_post_name like concat('%', #{riskPostName}, '%')
</if>
<if
test=
"patrolType != null and patrolType != ''"
>
and patrol_type = #{patrolType}
</if>
<if
test=
"riskPostDesc != null and riskPostDesc != ''"
>
and risk_post_desc = #{riskPostDesc}
</if>
<if
test=
"userId != null and userId != ''"
>
and user_id = #{userId}
</if>
<if
test=
"sortNum != null "
>
and sort_num = #{sortNum}
</if>
<if
test=
"projectId != null "
>
and project_id = #{projectId}
</if>
<if
test=
"riskPostCode != null and riskPostCode != ''"
>
and risk_post_code = #{riskPostCode}
</if>
<if
test=
"riskPostName != null and riskPostName != ''"
>
and risk_post_name like concat('%', #{riskPostName},
'%')
</if>
<if
test=
"patrolType != null and patrolType != ''"
>
and patrol_type = #{patrolType}
</if>
<if
test=
"riskPostDesc != null and riskPostDesc != ''"
>
and risk_post_desc = #{riskPostDesc}
</if>
<if
test=
"userId != null and userId != ''"
>
and user_id = #{userId}
</if>
<if
test=
"sortNum != null "
>
and sort_num = #{sortNum}
</if>
</where>
</select>
...
...
@@ -100,7 +131,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</update>
<delete
id=
"deleteCurrentRiskPostById"
parameterType=
"Long"
>
delete from current_risk_post where id = #{id}
delete
from current_risk_post
where id = #{id}
</delete>
<delete
id=
"deleteCurrentRiskPostByIds"
parameterType=
"String"
>
...
...
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