Commit 0ff3b47a authored by 麻笑宇's avatar 麻笑宇

feat(statistics): 增加设计单位类型统计

- 新增设计单位类型静态变量 - 在统计方法中增加设计单位数量统计
parent 163662c3
......@@ -130,6 +130,10 @@ public class JGDPStatisticsServiceImpl {
* 单位类型-充装单位
*/
private final static String COMPANY_TYPE_FILLING = "充装单位";
/**
* 单位类型-设计单位
*/
private final static String DESIGN_UNITS = "设计单位";
/**
* 单位类型-充装单位
......@@ -540,6 +544,7 @@ public class JGDPStatisticsServiceImpl {
m.put(DPMapStatisticsItemEnum.CONSTRUCTION_UNITS.getCode(), countDtos.stream().filter(c -> c.getKeyStr().contains(COMPANY_TYPE_MAINTENANCE) && c.getLabel().contains(orgCode)).mapToInt(CountDto::getIntValue).sum());
m.put(DPMapStatisticsItemEnum.MANUFACTURING_UNITS.getCode(), countDtos.stream().filter(c -> c.getKeyStr().contains(COMPANY_TYPE_MANUFACTURE) && c.getLabel().contains(orgCode)).mapToInt(CountDto::getIntValue).sum());
m.put(DPMapStatisticsItemEnum.GAS_UNITS.getCode(), countDtos.stream().filter(c -> c.getKeyStr().contains(COMPANY_TYPE_FILLING) && c.getLabel().contains(orgCode)).mapToInt(CountDto::getIntValue).sum());
m.put(DPMapStatisticsItemEnum.DESIGN_UNITS.getCode(), countDtos.stream().filter(c -> c.getKeyStr().contains(DESIGN_UNITS) && c.getLabel().contains(orgCode)).mapToInt(CountDto::getIntValue).sum());
} else {
setDefaultCompanyCountData(m);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment