|
@@ -60,31 +60,31 @@ public class DeviceCache {
|
|
DeviceStatus.Device capture = new DeviceStatus.Device(caputreSetting.getHost(),
|
|
DeviceStatus.Device capture = new DeviceStatus.Device(caputreSetting.getHost(),
|
|
caputreSetting.getPort(),
|
|
caputreSetting.getPort(),
|
|
LedBrandType.getBrandByCode(caputreSetting.getBrand()),
|
|
LedBrandType.getBrandByCode(caputreSetting.getBrand()),
|
|
- ModuleEnum.CAPTURE_MODULE.getModuleEn());
|
|
|
|
|
|
+ ModuleEnum.CAPTURE_MODULE.getModuleZh());
|
|
deviceStatus.getDeviceList().add(capture);
|
|
deviceStatus.getDeviceList().add(capture);
|
|
|
|
|
|
DeviceStatus.Device plc = new DeviceStatus.Device(serialSetting.getHost(),
|
|
DeviceStatus.Device plc = new DeviceStatus.Device(serialSetting.getHost(),
|
|
serialSetting.getPlc().getPort(),
|
|
serialSetting.getPlc().getPort(),
|
|
"",
|
|
"",
|
|
- ModuleEnum.PLC_MODULE.getModuleEn());
|
|
|
|
|
|
+ ModuleEnum.PLC_MODULE.getModuleZh());
|
|
deviceStatus.getDeviceList().add(plc);
|
|
deviceStatus.getDeviceList().add(plc);
|
|
|
|
|
|
DeviceStatus.Device led = new DeviceStatus.Device(serialSetting.getHost(),
|
|
DeviceStatus.Device led = new DeviceStatus.Device(serialSetting.getHost(),
|
|
serialSetting.getLed().getPort(),
|
|
serialSetting.getLed().getPort(),
|
|
LedBrandType.getBrandByCode(serialSetting.getLed().getBrand()),
|
|
LedBrandType.getBrandByCode(serialSetting.getLed().getBrand()),
|
|
- ModuleEnum.LED_MODULE.getModuleEn());
|
|
|
|
|
|
+ ModuleEnum.LED_MODULE.getModuleZh());
|
|
deviceStatus.getDeviceList().add(led);
|
|
deviceStatus.getDeviceList().add(led);
|
|
|
|
|
|
DeviceStatus.Device weighbridge = new DeviceStatus.Device(serialSetting.getHost(),
|
|
DeviceStatus.Device weighbridge = new DeviceStatus.Device(serialSetting.getHost(),
|
|
serialSetting.getWeighbridge().getPort(),
|
|
serialSetting.getWeighbridge().getPort(),
|
|
WeighbridgeBrandType.getBrandByCode(serialSetting.getWeighbridge().getBrand()),
|
|
WeighbridgeBrandType.getBrandByCode(serialSetting.getWeighbridge().getBrand()),
|
|
- ModuleEnum.WEIGHBRIDGE_MODULE.getModuleEn());
|
|
|
|
|
|
+ ModuleEnum.WEIGHBRIDGE_MODULE.getModuleZh());
|
|
deviceStatus.getDeviceList().add(weighbridge);
|
|
deviceStatus.getDeviceList().add(weighbridge);
|
|
|
|
|
|
DeviceStatus.Device electron = new DeviceStatus.Device(serialSetting.getHost(),
|
|
DeviceStatus.Device electron = new DeviceStatus.Device(serialSetting.getHost(),
|
|
serialSetting.getElectron().getPort(),
|
|
serialSetting.getElectron().getPort(),
|
|
ElectronBrandType.getBrandByCode(serialSetting.getElectron().getBrand()),
|
|
ElectronBrandType.getBrandByCode(serialSetting.getElectron().getBrand()),
|
|
- ModuleEnum.ELECTRON_MODULE.getModuleEn());
|
|
|
|
|
|
+ ModuleEnum.ELECTRON_MODULE.getModuleZh());
|
|
deviceStatus.getDeviceList().add(electron);
|
|
deviceStatus.getDeviceList().add(electron);
|
|
}
|
|
}
|
|
|
|
|