This commit is contained in:
2022-11-25 11:15:28 +08:00
parent a2920e0b49
commit 858e82a2c7
2 changed files with 17 additions and 12 deletions

View File

@@ -102,18 +102,18 @@ public class AutoCreateInst {
String startDriverCode = startdevice.getDeviceDriverDefination().getDriverCode();
String nextDriverCode = nextdevice.getDeviceDriverDefination().getDriverCode();
if (StrUtil.isNotEmpty(startDriverCode)){
DriverDeviceService deviceService = applicationContext.getBean(startDriverCode, DriverDeviceService.class);
Boolean checkStartPoint = deviceService.createInstCheckStartPoint(startdevice, acsTask);
if (!checkStartPoint){
continue;
}
// DriverDeviceService deviceService = applicationContext.getBean(startDriverCode, DriverDeviceService.class);
// Boolean checkStartPoint = deviceService.createInstCheckStartPoint(startdevice, acsTask);
// if (!checkStartPoint){
// continue;
// }
}
if (StrUtil.isNotEmpty(nextDriverCode)){
DriverDeviceService deviceService = applicationContext.getBean(nextDriverCode, DriverDeviceService.class);
Boolean checkNextPoint = deviceService.createInstCheckNextPoint(nextdevice, acsTask);
if (!checkNextPoint){
continue;
}
// DriverDeviceService deviceService = applicationContext.getBean(nextDriverCode, DriverDeviceService.class);
// Boolean checkNextPoint = deviceService.createInstCheckNextPoint(nextdevice, acsTask);
// if (!checkNextPoint){
// continue;
// }
}
Instruction instdto = new Instruction();
instdto.setInstruction_type(acsTask.getTask_type());