Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
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
项目统一框架
amos-boot-biz
Commits
eb5851cf
Commit
eb5851cf
authored
Mar 24, 2025
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消防巡查增加巡查内容字段
parent
b3fa5b7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
17 deletions
+19
-17
dbTemplate_check.xml
...-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
+19
-17
No files found.
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_check.xml
View file @
eb5851cf
...
...
@@ -281,30 +281,32 @@
<select
id=
"getPlanTaskCheckInfo"
resultMap=
"checkInfoMap"
>
SELECT
b.id,
e.NAME route_name,
d.NAME point_name,
a.user_name user_name,
wws.NAME address,
date_format( pc.check_time, '%Y-%m-%d %H:%i:%s' ) checkDate,
( CASE b.is_finish WHEN 0 THEN '未执行' WHEN 1 THEN '已执行' ELSE '未执行' END ) AS `Finish_Status`,
( CASE b.is_finish WHEN 0 THEN '尚未巡检' WHEN 1 THEN '按时完成' ELSE '超时漏检' END ) AS `is_ok`,
c.biz_org_name AS department_name,
c.name plan_name
b.id,
e.name route_name,
d.name point_name,
( CASE b.is_finish WHEN 1 THEN pc.user_name ELSE a.user_name END ) user_name, -- 修改为执行人
(SELECT GROUP_CONCAT(ppc.`name`) FROM p_point_classify ppc WHERE ppc.point_id =d.id) as content,--添加巡检内容
(SELECT GROUP_CONCAT(DISTINCT ppc.address) FROM p_point_classify ppc WHERE ppc.point_id = d.id) as address, --修改点位置
date_format( pc.check_time, '%Y-%m-%d %H:%i:%s' ) checkDate,
( CASE b.is_finish WHEN 0 THEN '未执行' WHEN 1 THEN '已执行' ELSE '未执行' END ) AS `Finish_Status`,
( CASE b.is_finish WHEN 0 THEN '尚未巡检' WHEN 1 THEN '按时完成' ELSE '超时漏检' END ) AS `is_ok`,
c.biz_org_name AS department_name,
c.name plan_name
FROM
p_plan_task_detail b
LEFT JOIN p_plan_task a ON a.id = b.task_no
LEFT JOIN p_plan c ON c.id = a.plan_id
LEFT JOIN p_point d ON d.id = b.point_id
LEFT JOIN p_route e ON e.id = a.route_id
LEFT JOIN wl_warehouse_structure wws ON wws.id = d.risk_source_id
LEFT JOIN p_check pc ON pc.plan_task_detail_id = b.id
p_plan_task_detail b
LEFT JOIN p_plan_task a ON a.id = b.task_no
LEFT JOIN p_plan c ON c.id = a.plan_id
LEFT JOIN p_point d ON d.id = b.point_id
LEFT JOIN p_route e ON e.id = a.route_id
LEFT JOIN wl_warehouse_structure wws ON wws.id = d.risk_source_id
LEFT JOIN p_check pc ON pc.plan_task_detail_id = b.id
<where>
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
and a.org_code LIKE CONCAT(#{bizOrgCode},'%')
</if>
and DATE_FORMAT( a.check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
</where>
ORDER BY checkDate DESC;
<choose>
<when
test=
"pageSize==-1"
></when>
<when
test=
"pageSize!=-1"
>
limit #{offset}, #{pageSize}
</when>
...
...
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