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
eaef1c40
Commit
eaef1c40
authored
Nov 20, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
巡检漏查点位计算错误
parent
9a78b109
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
16 deletions
+22
-16
dbTemplate_plan_task.xml
...rol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
+22
-16
No files found.
amos-boot-system-patrol/src/main/resources/db/mapper/dbTemplate_plan_task.xml
View file @
eaef1c40
...
...
@@ -1508,17 +1508,20 @@
UNION ALL
SELECT
ifnull( sum( p_plan_task.point_num ), 0
) AS value,
COUNT(1
) AS value,
'今日漏查点位' AS name,
'JRLCDW' AS code
FROM
p_plan_task
p_plan_task
_detail ptd
<where>
finish_status = 3
AND DATE_FORMAT( check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
ptd.task_no IN (
SELECT id FROM p_plan_task pt WHERE
DATE_FORMAT( pt.check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
)
AND ptd.is_finish != 1
</where>
UNION ALL
...
...
@@ -1570,17 +1573,20 @@
UNION ALL
SELECT
ifnull( sum( p_plan_task.point_num ), 0
) AS value,
'今日漏查点位' AS name,
'JRLCDW' AS code
count(1
) AS value,
'今日漏查点位' AS name,
'JRLCDW' AS code
FROM
p_plan_task
p_plan_task_detail ptd
<where>
finish_status = 3
AND DATE_FORMAT( check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
ptd.task_no IN (
SELECT id FROM p_plan_task pt WHERE
DATE_FORMAT( pt.check_date, '%Y-%m-%d' ) = CURRENT_DATE ()
<if
test=
"bizOrgCode != null and bizOrgCode != ''"
>
AND org_code LIKE CONCAT(#{bizOrgCode}, '%')
</if>
)
AND ptd.is_finish != 1
</where>
</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