This commit is contained in:
parent
b83535eaf3
commit
468ebd809d
|
|
@ -72,6 +72,9 @@ public class DigitalSignageServiceImpl implements DigitalSignageService {
|
||||||
DigitalSignageVo.TowerProgressNumVo vo = new DigitalSignageVo.TowerProgressNumVo();
|
DigitalSignageVo.TowerProgressNumVo vo = new DigitalSignageVo.TowerProgressNumVo();
|
||||||
try {
|
try {
|
||||||
vo = Optional.ofNullable(dao.getTowerProgressNum(dto)).orElseGet(DigitalSignageVo.TowerProgressNumVo::new);
|
vo = Optional.ofNullable(dao.getTowerProgressNum(dto)).orElseGet(DigitalSignageVo.TowerProgressNumVo::new);
|
||||||
|
if (vo.getNum11() > 0) {
|
||||||
|
vo.setNum11(vo.getNum11() - 1);
|
||||||
|
}
|
||||||
// 查询索道运输数量
|
// 查询索道运输数量
|
||||||
int num = dao.getRopewayTransNum(dto);
|
int num = dao.getRopewayTransNum(dto);
|
||||||
vo.setNum12(num);
|
vo.setNum12(num);
|
||||||
|
|
|
||||||
|
|
@ -56,14 +56,14 @@
|
||||||
SELECT
|
SELECT
|
||||||
COUNT(IF(tower_progress >= 1, 1, NULL)) AS num1,
|
COUNT(IF(tower_progress >= 1, 1, NULL)) AS num1,
|
||||||
COUNT(IF(tower_progress = 2, 1, NULL)) AS num2,
|
COUNT(IF(tower_progress = 2, 1, NULL)) AS num2,
|
||||||
COUNT(IF(tower_progress = 3, 1, NULL)) AS num3,
|
COUNT(IF(tower_progress >= 3, 1, NULL)) AS num3,
|
||||||
COUNT(IF(tower_progress = 4, 1, NULL)) AS num4,
|
COUNT(IF(tower_progress = 4, 1, NULL)) AS num4,
|
||||||
COUNT(IF(tower_progress = 5, 1, NULL)) AS num5,
|
COUNT(IF(tower_progress >= 5, 1, NULL)) AS num5,
|
||||||
COUNT(IF(tower_progress = 6, 1, NULL)) AS num6,
|
COUNT(IF(tower_progress = 6, 1, NULL)) AS num6,
|
||||||
COUNT(IF(tower_progress = 7, 1, NULL)) AS num7,
|
COUNT(IF(tower_progress >= 7, 1, NULL)) AS num7,
|
||||||
COUNT(IF(tower_progress = 8, 1, NULL)) AS num8,
|
COUNT(IF(tower_progress = 8, 1, NULL)) AS num8,
|
||||||
COUNT(IF(tower_progress = 9, 1, NULL)) AS num9,
|
COUNT(IF(tower_progress >= 9, 1, NULL)) AS num9,
|
||||||
COUNT(IF(tower_progress = 10, 1, NULL)) AS num10,
|
COUNT(IF(tower_progress >= 10, 1, NULL)) AS num10,
|
||||||
COUNT(IF(tower_progress = 0, 1, NULL)) AS num11
|
COUNT(IF(tower_progress = 0, 1, NULL)) AS num11
|
||||||
FROM tb_tower
|
FROM tb_tower
|
||||||
WHERE pro_id = #{id}
|
WHERE pro_id = #{id}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue