Commit 8c41fd7d authored by suhuiguang's avatar suhuiguang

1.大屏地图图列统计架子

parent 44b5c24f
package com.yeejoin.amos.boot.module.jg.api.enums;
import lombok.Getter;
/**
* @author Administrator
*/
@Getter
public enum DPMapStatisticsItemEnum {
/**
* 大屏统计项
*/
TOTAL("特种设备总量 (台)", "total"),
GAS("气瓶 (台)", "gas"),
ELEVATORS("电梯 (台)", "elevators"),
PRESSURE_VESSELS("压力容器 (台)", "pressureVessels"),
ON_SITE_MOTOR_VEHICLES("场(厂)内机动车 (台)", "onSiteMotorVehicles"),
BOILERS("锅炉 (台)", "boilers"),
LIFTING_MACHINERY("起重机械 (台)", "liftingMachinery"),
LARGE_AMUSEMENT_FACILITIES("大型游乐设施 (台)", "largeAmusementFacilities"),
PRESSURE_PIPELINES("压力管道 (千米)", "pressurePipelines"),
PASSENGER_ROPEWAYS("客运索道 (台)", "passengerRopeways"),
MANUFACTURING_UNITS("制造单位 (家)", "manufacturingUnits"),
CONSTRUCTION_UNITS("安改维单位 (家)", "constructionUnits"),
USERS_UNITS("使用单位 (家)", "usersUnits"),
GAS_UNITS("充装单位 (家)", "gasUnits"),
OPERATORS("作业人员 (人)", "operators");
private String label;
private String code;
DPMapStatisticsItemEnum(String label, String code) {
this.label = label;
this.code = code;
}
}
...@@ -48,4 +48,15 @@ public class DPStatisticsController { ...@@ -48,4 +48,15 @@ public class DPStatisticsController {
} }
return ResponseHelper.buildResponse(statisticsService.useRegisterCountByEquList(dpFilterParamDto)); return ResponseHelper.buildResponse(statisticsService.useRegisterCountByEquList(dpFilterParamDto));
} }
@TycloudOperation(ApiLevel = UserType.AGENCY)
@ApiOperation(httpMethod = "POST", value = "大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计", notes = "大屏总览中间-地图左右两侧8大类、单位、人员数量全局统计")
@PostMapping(value = "/zl/center-map/global/count")
public ResponseModel<Map<String, Object>> centerMapCountForGlobal(@Validated @RequestBody DPFilterParamDto dpFilterParamDto, BindingResult result) {
List<FieldError> fieldErrors = result.getFieldErrors();
if (!fieldErrors.isEmpty()) {
throw new BadRequest(fieldErrors.get(0).getDefaultMessage());
}
return ResponseHelper.buildResponse(statisticsService.getCenterMapCountDataForGlobal(dpFilterParamDto));
}
} }
...@@ -139,4 +139,29 @@ public class DPStatisticsServiceImpl { ...@@ -139,4 +139,29 @@ public class DPStatisticsServiceImpl {
dpFilterParamDto.setEndDate(DateUtil.today()); dpFilterParamDto.setEndDate(DateUtil.today());
} }
} }
public Map<String, Object> getCenterMapCountDataForGlobal(DPFilterParamDto dpFilterParamDto) {
Map<String, Object> result = new HashMap<>();
//1.8大类设备数量统计
this.staticsCenterMapCountDataForEquip(result, dpFilterParamDto);
//2.压力管道长度统计
this.staticsCenterMapCountDataForPipeline(result, dpFilterParamDto);
//3.单位数量统计
this.staticsCenterMapCountDataForCompany(result, dpFilterParamDto);
//4.人员数量统计
this.staticsCenterMapCountDataForPerson(result, dpFilterParamDto);
return null;
}
private void staticsCenterMapCountDataForPerson(Map<String, Object> result, DPFilterParamDto dpFilterParamDto) {
}
private void staticsCenterMapCountDataForCompany(Map<String, Object> result, DPFilterParamDto dpFilterParamDto) {
}
private void staticsCenterMapCountDataForPipeline(Map<String, Object> result, DPFilterParamDto dpFilterParamDto) {
}
private void staticsCenterMapCountDataForEquip(Map<String, Object> result, DPFilterParamDto dpFilterParamDto) {
}
} }
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