Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public boolean getKeyPosition(LocationWrapper pLocationWrapper,Integer pVehicleId,FleetOperationInfo pFleetOperationInfo){
- try {
- if(getCheckKeyPosition() != null && getCheckKeyPosition().booleanValue()){
- if(pLocationWrapper == null){
- pLocationWrapper = vehicleService.getVehicleLastLocation(pVehicleId);
- }
- if(pLocationWrapper == null || !pLocationWrapper.isDigitalPort2()){
- if(pLocationWrapper == null){
- pFleetOperationInfo.setCode(AwtoServiceConstant.FAILURE_CODE);
- }else{
- pFleetOperationInfo.setCode(AwtoServiceConstant.SUCCESS_CODE);
- }
- vehicleService.processVehicleFleetCommandEntry(pFleetOperationInfo);
- return false;
- }else{
- pFleetOperationInfo.setCode(AwtoServiceConstant.SUCCESS_CODE);
- vehicleService.processVehicleFleetCommandEntry(pFleetOperationInfo);
- return true;
- }
- }else{
- return true;
- }
- } catch (GenericAwtoException e) {
- e.printStackTrace();
- return false;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement