This commit is contained in:
parent
3a9ed058c4
commit
89d4697738
|
|
@ -53,18 +53,21 @@
|
||||||
<!--电子看板-杆塔施工进度数量-->
|
<!--电子看板-杆塔施工进度数量-->
|
||||||
<select id="getTowerProgressNum"
|
<select id="getTowerProgressNum"
|
||||||
resultType="com.bonus.digitalSignage.backstage.entity.vo.DigitalSignageVo$TowerProgressNumVo">
|
resultType="com.bonus.digitalSignage.backstage.entity.vo.DigitalSignageVo$TowerProgressNumVo">
|
||||||
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(IF(tower_progress = 0, 1, NULL)) AS num11
|
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="getRopewayTransNum" resultType="java.lang.Integer">
|
<select id="getRopewayTransNum" resultType="java.lang.Integer">
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue