rev 优化
This commit is contained in:
@@ -230,7 +230,7 @@ public class TwoNDCSocketConnectionAutoRun extends AbstractAutoRunnable {
|
||||
log.info("下发电气信号失败:" + e.getMessage());
|
||||
e.printStackTrace();
|
||||
}
|
||||
if (standardAutodoorDeviceDriver.getOpen() == 1) {
|
||||
if (standardAutodoorDeviceDriver.getOpen() == 1 && standardAutodoorDeviceDriver.getToOpen() == 1 ) {
|
||||
log.info("下发开门信号值为:{},下发关门信号值为:{}", standardAutodoorDeviceDriver.getToOpen(), standardAutodoorDeviceDriver.getToClose());
|
||||
data = ndcAgvService.sendAgvTwoModeInst(phase, index, 0);
|
||||
}
|
||||
|
||||
@@ -194,10 +194,10 @@ public class DeviceServiceImpl implements DeviceService, ApplicationAutoInitial
|
||||
|
||||
String device_code = dto.getDevice_code();
|
||||
DeviceDto deviceDto = this.findByCode(device_code);
|
||||
if (deviceDto != null && deviceDto.getIs_delete().equals("0")
|
||||
&& !deviceDto.getDevice_id().equals(dto.getDevice_id())) {
|
||||
throw new BadRequestException("存在相同的设备编码");
|
||||
}
|
||||
// if (deviceDto != null && deviceDto.getIs_delete().equals("0")
|
||||
// && !deviceDto.getDevice_id().equals(dto.getDevice_id())) {
|
||||
// throw new BadRequestException("存在相同的设备编码");
|
||||
// }
|
||||
|
||||
String currentUsername = SecurityUtils.getCurrentUsername();
|
||||
String now = DateUtil.now();
|
||||
|
||||
Reference in New Issue
Block a user