package org.flume.alarm.restful; import org.flume.alarm.domain.Device; import java.util.HashMap; import java.util.List; import java.util.Map; public class ApplyDeviceUtilDTO { public static Map<String, String> devTypeCodeMap = new HashMap<String, String>(); static {//设备类型编码 devTypeCodeMap.put(DeviceTypeCodeEnum.Brq.getIndex(), "1024"); devTypeCodeMap.put(DeviceTypeCodeEnum.FireHydrant.getIndex(), "1077"); devTypeCodeMap.put(DeviceTypeCodeEnum.Liquid.getIndex(), "1127"); devTypeCodeMap.put(DeviceTypeCodeEnum.Noise.getIndex(), "1075"); devTypeCodeMap.put(DeviceTypeCodeEnum.MultiLeak.getIndex(), "1074"); devTypeCodeMap.put(DeviceTypeCodeEnum.Methane.getIndex(), "1076"); devTypeCodeMap.put(DeviceTypeCodeEnum.Well.getIndex(), "1126"); devTypeCodeMap.put(DeviceTypeCodeEnum.WasteGas.getIndex(), "1128"); } private String device_ID; private String device_name; private String device_type; private String device_location; private String device_longitude; private String device_latitude; private String accessory_ID; private String accessory_type; private String rjzhzx_name; public String getDevice_ID() { return device_ID; } public void setDevice_ID(String device_ID) { this.device_ID = device_ID; } public String getDevice_name() { return device_name; } public void setDevice_name(String device_name) { this.device_name = device_name; } public String getDevice_type() { return device_type; } public void setDevice_type(String device_type) { this.device_type = device_type; } public String getDevice_location() { return device_location; } public void setDevice_location(String device_location) { this.device_location = device_location; } public String getDevice_longitude() { return device_longitude; } public void setDevice_longitude(String device_longitude) { this.device_longitude = device_longitude; } public String getDevice_latitude() { return device_latitude; } public void setDevice_latitude(String device_latitude) { this.device_latitude = device_latitude; } public String getAccessory_ID() { return accessory_ID; } public void setAccessory_ID(String accessory_ID) { this.accessory_ID = accessory_ID; } public String getAccessory_type() { return accessory_type; } public void setAccessory_type(String accessory_type) { this.accessory_type = accessory_type; } public String getRjzhzx_name() { return rjzhzx_name; } public void setRjzhzx_name(String rjzhzx_name) { this.rjzhzx_name = rjzhzx_name; } public ApplyDeviceUtilDTO() { } public static void sendMsg(String url, List<Device> deviceList) { try { for(Device device: deviceList){ HashMap<String,String> hashMap = new HashMap<String, String>(); hashMap.put("originalCode",device.getDevCode()); hashMap.put("businessCode",""); hashMap.put("typeCode",device.getDevCode()); } } catch (Exception e) { e.printStackTrace(); } } }