Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
59cda3e7
Commit
59cda3e7
authored
Jan 04, 2023
by
吴卿华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 隐患台账没上报人问题
parent
22bf254d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
TStaningBookMapper.xml
...m/src/main/resources/mapper/system/TStaningBookMapper.xml
+7
-6
No files found.
danger-manage-system/src/main/resources/mapper/system/TStaningBookMapper.xml
View file @
59cda3e7
...
...
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TStaningBookMapper"
>
<resultMap
type=
"TStaningBook"
id=
"TStaningBookResult"
>
<result
property=
"bookId"
column=
"book_id"
/>
<result
property=
"troubleName"
column=
"trouble_name"
/>
...
...
@@ -46,12 +46,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</sql>
<select
id=
"selectTStaningBookList"
parameterType=
"TStaningBook"
resultMap=
"TStaningBookResult"
>
SELECT b.*,s
1.`staff_name`
AS escalationName,
SELECT b.*,s
5.user_name
AS escalationName,
s2.`staff_name` AS rectificationName,
s3.`staff_name` AS personLiableName ,
d.`dept_name` AS deptName
FROM t_staning_book b
LEFT JOIN t_staff s1 ON b.`escalation` = s1.`staff_id`
LEFT JOIN sys_user s5 ON b.escalation=s5.user_id
LEFT JOIN t_staff s2 ON b.`rectification` = s2.`staff_id`
LEFT JOIN t_staff s3 ON b.`person_liable` = s3.`staff_id`
LEFT JOIN sys_dept d ON d.`dept_id` = b.`dept_id`
...
...
@@ -66,12 +67,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"state != null "
>
and b.state = #{state}
</if>
</where>
</select>
<select
id=
"selectTStaningBookById"
parameterType=
"Long"
resultMap=
"TStaningBookResult"
>
<include
refid=
"selectTStaningBookVo"
/>
where book_id = #{bookId}
</select>
<insert
id=
"insertTStaningBook"
parameterType=
"TStaningBook"
useGeneratedKeys=
"true"
keyProperty=
"bookId"
>
insert into t_staning_book
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -179,7 +180,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete
id=
"deleteTStaningBookByIds"
parameterType=
"String"
>
delete from t_staning_book where book_id in
delete from t_staning_book where book_id in
<foreach
item=
"bookId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{bookId}
</foreach>
...
...
@@ -196,4 +197,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
and DATE_SUB(now(), INTERVAL 365 DAY)
<
date(find_time)
</if>
</select>
</mapper>
\ No newline at end of file
</mapper>
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