|
|
|
@ -469,8 +469,8 @@ public class PlcService {
|
|
|
|
kuKouService.save(kuKou);
|
|
|
|
kuKouService.save(kuKou);
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
public boolean checkVision(KsecDataInfo dataInfo,Boolean flag){
|
|
|
|
public Integer checkVision(KsecDataInfo dataInfo,Boolean flag){
|
|
|
|
|
|
|
|
int i = 2;
|
|
|
|
IndustrialCameraVO scTransmission = new IndustrialCameraVO();
|
|
|
|
IndustrialCameraVO scTransmission = new IndustrialCameraVO();
|
|
|
|
scTransmission.setTypeMacth(dataInfo.getTypeNum());
|
|
|
|
scTransmission.setTypeMacth(dataInfo.getTypeNum());
|
|
|
|
scTransmission.setCount(dataInfo.getQuantity());
|
|
|
|
scTransmission.setCount(dataInfo.getQuantity());
|
|
|
|
@ -501,7 +501,7 @@ public class PlcService {
|
|
|
|
scTransmission.setTypeMacth(response.getBody().getData().getCategoryName());
|
|
|
|
scTransmission.setTypeMacth(response.getBody().getData().getCategoryName());
|
|
|
|
scTransmission.setFlag(response.getBody().getData().getFlag());
|
|
|
|
scTransmission.setFlag(response.getBody().getData().getFlag());
|
|
|
|
kuKouService.setHttp(scTransmission,flag);
|
|
|
|
kuKouService.setHttp(scTransmission,flag);
|
|
|
|
return true;
|
|
|
|
return i;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
|
|
|
|
|
|
|
|
scTransmission.setWmsTrayCode(dataInfo.getTrayCode());
|
|
|
|
scTransmission.setWmsTrayCode(dataInfo.getTrayCode());
|
|
|
|
@ -512,7 +512,7 @@ public class PlcService {
|
|
|
|
scTransmission.setTrayCode("");
|
|
|
|
scTransmission.setTrayCode("");
|
|
|
|
scTransmission.setCount(0);
|
|
|
|
scTransmission.setCount(0);
|
|
|
|
kuKouService.setHttp(scTransmission,flag);
|
|
|
|
kuKouService.setHttp(scTransmission,flag);
|
|
|
|
return false;
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (Exception e) {
|
|
|
|
} catch (Exception e) {
|
|
|
|
log.error("3D get pcd error", e);
|
|
|
|
log.error("3D get pcd error", e);
|
|
|
|
@ -522,7 +522,7 @@ public class PlcService {
|
|
|
|
scTransmission.setTrayCode("");
|
|
|
|
scTransmission.setTrayCode("");
|
|
|
|
scTransmission.setCount(0);
|
|
|
|
scTransmission.setCount(0);
|
|
|
|
kuKouService.setHttp(scTransmission,flag);
|
|
|
|
kuKouService.setHttp(scTransmission,flag);
|
|
|
|
return false;
|
|
|
|
return i;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|