Merge remote-tracking branch 'origin/master'

This commit is contained in:
2023-12-12 16:56:15 +08:00
3 changed files with 18 additions and 20 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();