This commit is contained in:
liang.chao 2025-08-04 13:37:10 +08:00
parent 1309095602
commit eb3a0172d4
1 changed files with 15 additions and 12 deletions

View File

@ -149,18 +149,21 @@
<!--查询工程杆塔进度--> <!--查询工程杆塔进度-->
<select id="getTowerProgress" <select id="getTowerProgress"
resultType="com.bonus.digitalSignage.backstage.entity.vo.ProProgressVo$ProDetailVo"> resultType="com.bonus.digitalSignage.backstage.entity.vo.ProProgressVo$ProDetailVo">
SELECT COUNT(IF(tower_progress = 1, 1, NULL)) AS num1, SELECT
COUNT(IF(tower_progress = 2, 1, NULL)) AS num2, COUNT(IF(tower_progress >= 1, 1, NULL)) AS num1,
COUNT(IF(tower_progress = 3, 1, NULL)) AS num3, COUNT(IF(tower_progress >= 2, 1, NULL)) AS num2,
COUNT(IF(tower_progress = 4, 1, NULL)) AS num4, COUNT(IF(tower_progress >= 3, 1, NULL)) AS num3,
COUNT(IF(tower_progress = 5, 1, NULL)) AS num5, COUNT(IF(tower_progress >= 4, 1, NULL)) AS num4,
COUNT(IF(tower_progress = 6, 1, NULL)) AS num6, COUNT(IF(tower_progress >= 5, 1, NULL)) AS num5,
COUNT(IF(tower_progress = 7, 1, NULL)) AS num7, COUNT(IF(tower_progress >= 6, 1, NULL)) AS num6,
COUNT(IF(tower_progress = 8, 1, NULL)) AS num8, COUNT(IF(tower_progress >= 7, 1, NULL)) AS num7,
COUNT(IF(tower_progress = 9, 1, NULL)) AS num9, COUNT(IF(tower_progress >= 8, 1, NULL)) AS num8,
COUNT(IF(tower_progress = 10, 1, NULL)) AS num10, COUNT(IF(tower_progress >= 9, 1, NULL)) AS num9,
COUNT(*) AS towerNum COUNT(IF(tower_progress >= 10, 1, NULL)) AS num10,
FROM tb_tower WHERE pro_id = #{id} AND is_actvice = '1' COUNT(*) AS towerNum
FROM tb_tower
WHERE pro_id = #{id}
AND is_actvice = '1'
</select> </select>
<!--工程进度更新-更新进度-更新记录--> <!--工程进度更新-更新进度-更新记录-->
<select id="getUpdateRecord" <select id="getUpdateRecord"