This commit is contained in:
liang.chao 2025-08-04 15:09:35 +08:00
parent 3a9ed058c4
commit 89d4697738
1 changed files with 15 additions and 12 deletions

View File

@ -53,18 +53,21 @@
<!--电子看板-杆塔施工进度数量-->
<select id="getTowerProgressNum"
resultType="com.bonus.digitalSignage.backstage.entity.vo.DigitalSignageVo$TowerProgressNumVo">
SELECT COUNT(IF(tower_progress = 1, 1, NULL)) AS num1,
COUNT(IF(tower_progress = 2, 1, NULL)) AS num2,
COUNT(IF(tower_progress = 3, 1, NULL)) AS num3,
COUNT(IF(tower_progress = 4, 1, NULL)) AS num4,
COUNT(IF(tower_progress = 5, 1, NULL)) AS num5,
COUNT(IF(tower_progress = 6, 1, NULL)) AS num6,
COUNT(IF(tower_progress = 7, 1, NULL)) AS num7,
COUNT(IF(tower_progress = 8, 1, NULL)) AS num8,
COUNT(IF(tower_progress = 9, 1, NULL)) AS num9,
COUNT(IF(tower_progress = 10, 1, NULL)) AS num10,
COUNT(IF(tower_progress = 0, 1, NULL)) AS num11
FROM tb_tower WHERE pro_id = #{id} AND is_actvice = '1'
SELECT
COUNT(IF(tower_progress >= 1, 1, NULL)) AS num1,
COUNT(IF(tower_progress >= 2, 1, NULL)) AS num2,
COUNT(IF(tower_progress >= 3, 1, NULL)) AS num3,
COUNT(IF(tower_progress >= 4, 1, NULL)) AS num4,
COUNT(IF(tower_progress >= 5, 1, NULL)) AS num5,
COUNT(IF(tower_progress >= 6, 1, NULL)) AS num6,
COUNT(IF(tower_progress >= 7, 1, NULL)) AS num7,
COUNT(IF(tower_progress >= 8, 1, NULL)) AS num8,
COUNT(IF(tower_progress >= 9, 1, NULL)) AS num9,
COUNT(IF(tower_progress >= 10, 1, NULL)) AS num10,
COUNT(*) AS towerNum
FROM tb_tower
WHERE pro_id = #{id}
AND is_actvice = '1'
</select>
<!--查询索道运输数量-->
<select id="getRopewayTransNum" resultType="java.lang.Integer">