diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java index 4c95f4d..07a9d35 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/device/mapper/DevInfoMapper.java @@ -305,5 +305,7 @@ public interface DevInfoMapper { Integer getTotalEquipmentByLevel(DevInfoReq devInfoReq); int getTurnoverRateByLevel(DevInfoReq devInfoReq); + + int getProjectNUm(); } diff --git a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/largeScreen/service/impl/ProvinceScreenServiceImpl.java b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/largeScreen/service/impl/ProvinceScreenServiceImpl.java index f3744fd..ba59d0e 100644 --- a/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/largeScreen/service/impl/ProvinceScreenServiceImpl.java +++ b/bonus-modules/bonus-material-mall/src/main/java/com/bonus/material/largeScreen/service/impl/ProvinceScreenServiceImpl.java @@ -301,7 +301,9 @@ public class ProvinceScreenServiceImpl implements ProvinceScreenService { //年度总投资额 TODO 输入的 res.put("annualTotal", "140.6"); //在建工程数 TODO e基建2.0获取 - res.put("projectNUm", 50); + + int projectNUm = devInfoMapper.getProjectNUm(); + res.put("projectNUm", projectNUm); //在用装备数 //自用--2 diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml index f631435..052cb89 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/cityScreen/CityScreenMapper.xml @@ -10,7 +10,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" IFNULL(sum( buy_price * device_count ),0) AS totalValue FROM ma_dev_info - WHERE is_active = 1 and on_company = #{companyId} + + WHERE is_active = 1 and on_company = #{companyId} and entry_status = '1' and change_status !='4' + diff --git a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/ma/MaMachineTypeMapper.xml b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/ma/MaMachineTypeMapper.xml index f0030be..4450d35 100644 --- a/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/ma/MaMachineTypeMapper.xml +++ b/bonus-modules/bonus-material-mall/src/main/resources/mapper/material/ma/MaMachineTypeMapper.xml @@ -727,44 +727,46 @@ ORDER BY proportion DESC