This commit is contained in:
parent
1309095602
commit
eb3a0172d4
|
|
@ -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"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue