Commit 6390bbf2 authored by 耿迪迪's avatar 耿迪迪

管线巡线统计修改

parent 3710135e
......@@ -35,7 +35,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectFinishRateByTaskId" resultType="String">
SELECT
CONCAT(ROUND(SUM(IF(pipeInspect.status = 1, 1, 0))/COUNT(1)*100),'%')
CONCAT(ROUND(SUM(IF(pipeInspect.status > 0, 1, 0))/COUNT(1)*100),'%')
FROM
(
SELECT
......@@ -205,7 +205,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!-- 需求变更修改 2025-10-30 -->
<select id="selectTaskInspectStatisticsByPipe" parameterType="TaskInspectStatisticsByPipVo" resultType="java.util.Map">
SELECT
SUM(IF(pipeInspect.status = 1, 1, 0)) AS finishPointNum,
SUM(IF(pipeInspect.status > 0, 1, 0)) AS finishPointNum,
COUNT(1) AS totalPointNum,
(
SELECT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment