fix:修复手持判断问题
This commit is contained in:
@@ -167,12 +167,12 @@ public class B2HandServiceImpl implements B2HandService {
|
||||
json.put("message", "操作不能为空");
|
||||
errArr.add(json);
|
||||
}
|
||||
if (device_code.contains("K")&&(!"1".equals(option))){
|
||||
throw new BadRequestException("该设备为空轴位,不能进行该操作");
|
||||
}
|
||||
if (device_code.contains("M")&&(!"2".equals(option))){
|
||||
if (device_code.contains("M")&&(!"1".equals(option))){
|
||||
throw new BadRequestException("该设备为满轴位,不能进行该操作");
|
||||
}
|
||||
if (device_code.contains("K")&&(!"2".equals(option))){
|
||||
throw new BadRequestException("该设备为空轴位,不能进行该操作");
|
||||
}
|
||||
StandardOrdinarySiteDeviceDriver standardOrdinarySiteDeviceDriver;
|
||||
Device device = deviceAppService.findDeviceByCode(device_code);
|
||||
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) device.getDeviceDriver();
|
||||
|
||||
Reference in New Issue
Block a user