Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
0a9b041fc1
|
|
@ -72,6 +72,9 @@ public class DigitalSignageServiceImpl implements DigitalSignageService {
|
|||
DigitalSignageVo.TowerProgressNumVo vo = new DigitalSignageVo.TowerProgressNumVo();
|
||||
try {
|
||||
vo = Optional.ofNullable(dao.getTowerProgressNum(dto)).orElseGet(DigitalSignageVo.TowerProgressNumVo::new);
|
||||
if (vo.getNum11() > 0) {
|
||||
vo.setNum11(vo.getNum11() - 1);
|
||||
}
|
||||
// 查询索道运输数量
|
||||
int num = dao.getRopewayTransNum(dto);
|
||||
vo.setNum12(num);
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ public class TbProjectServiceImpl implements TbProjectService {
|
|||
tbProjectVo.setTbThreeSpanVoList(tbThreeSpanVoList);
|
||||
//获取工程下的索道运输
|
||||
tbCablewaTransVo.setProId(tbProjectVo.getId());
|
||||
tbCablewaTransVo.setSourceType("1");
|
||||
List<TbCablewaTransVo> tbCablewaTransVoList = tbCablewaTransService.tbCablewaTransAll(tbCablewaTransVo);
|
||||
tbProjectVo.setTbCablewaTransVoList(tbCablewaTransVoList);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,13 +55,13 @@
|
|||
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 = 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 = 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 = 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 = 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
|
||||
|
|
@ -73,7 +73,7 @@
|
|||
<select id="getRopewayTransNum" resultType="java.lang.Integer">
|
||||
SELECT COUNT(*)
|
||||
FROM tb_cablewa_trans
|
||||
WHERE pro_id = #{id} AND is_active = '1'
|
||||
WHERE pro_id = #{id} AND (source_type IS NULL OR source_type = '1') AND is_active = '1'
|
||||
</select>
|
||||
<!--电子看板-三跨数据-->
|
||||
<select id="getThreeSpans"
|
||||
|
|
|
|||
|
|
@ -151,15 +151,15 @@
|
|||
resultType="com.bonus.digitalSignage.backstage.entity.vo.ProProgressVo$ProDetailVo">
|
||||
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 = 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}
|
||||
|
|
|
|||
Loading…
Reference in New Issue