rev 优化

This commit is contained in:
USER-20220102CG\noblelift
2023-12-12 16:31:03 +08:00
parent 3b742ff9ac
commit 5ca08b760e
2 changed files with 5 additions and 5 deletions

View File

@@ -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);
}

View File

@@ -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();