Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
H
huaxin-rq
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
耿迪迪
huaxin-rq
Commits
23bf76e4
Commit
23bf76e4
authored
Jun 30, 2026
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
安检后台完成率统计修改
parent
6ea01630
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
4 deletions
+48
-4
TTaskMapper.xml
...n-system/src/main/resources/mapper/system/TTaskMapper.xml
+48
-4
No files found.
huaxin-system/src/main/resources/mapper/system/TTaskMapper.xml
View file @
23bf76e4
...
@@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -48,7 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
count(i.id)
count(i.id)
FROM
FROM
t_task_inspect i,
t_task_inspect i,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id) d,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id
,task_id
) d,
t_user u
t_user u
WHERE
WHERE
i.task_id = t.id
i.task_id = t.id
...
@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -62,7 +62,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
count(i.id)
count(i.id)
FROM
FROM
t_task_inspect i,
t_task_inspect i,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id) d,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id
,task_id
) d,
t_industry u
t_industry u
WHERE
WHERE
i.task_id = t.id
i.task_id = t.id
...
@@ -76,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -76,7 +76,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
count(i.id)
count(i.id)
FROM
FROM
t_task_inspect i,
t_task_inspect i,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id) d,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id
,task_id
) d,
t_business u
t_business u
WHERE
WHERE
i.task_id = t.id
i.task_id = t.id
...
@@ -91,7 +91,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -91,7 +91,51 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
'%')
'%')
else
else
(
(
(SELECT count(1) FROM t_user_inspect ui,t_task_inspect ti WHERE ui.inspect_id = ti.id and ti.task_id = t.id and ti.status IN (2, 3))
CASE t.type
WHEN 1 THEN
(SELECT
count(i.id)
FROM
t_task_inspect i,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id,task_id) d,
t_user u
WHERE
i.task_id = t.id
AND i.id = d.id
AND i.receive_id = u.id
AND u.task_type = t.task_type
AND i.`STATUS` != '-1')
WHEN 3 THEN
(
SELECT
count(i.id)
FROM
t_task_inspect i,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id,task_id) d,
t_industry u
WHERE
i.task_id = t.id
AND i.id = d.id
AND i.receive_id = u.id
AND u.task_type = t.check_type
AND i.`STATUS` != '-1'
)
ELSE
(
SELECT
count(i.id)
FROM
t_task_inspect i,
(SELECT MAX(id) AS id FROM t_task_inspect WHERE `status` !=- 1 GROUP BY receive_id,task_id) d,
t_business u
WHERE
i.task_id = t.id
AND i.id = d.id
AND i.receive_id = u.id
AND u.task_type = t.business_type
AND i.`STATUS` != '-1'
)
END
)
)
end
end
)as inspcetTotal
)as inspcetTotal
...
...
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