Advertisement
pperez_awto

Untitled

Apr 11th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1. public boolean getKeyPosition(LocationWrapper pLocationWrapper,Integer pVehicleId,FleetOperationInfo pFleetOperationInfo){
  2.         try {
  3.             if(getCheckKeyPosition() != null && getCheckKeyPosition().booleanValue()){
  4.                 if(pLocationWrapper == null){
  5.                     pLocationWrapper = vehicleService.getVehicleLastLocation(pVehicleId);
  6.                 }
  7.                 if(pLocationWrapper == null || !pLocationWrapper.isDigitalPort2()){
  8.                     if(pLocationWrapper == null){
  9.                         pFleetOperationInfo.setCode(AwtoServiceConstant.FAILURE_CODE);
  10.                     }else{
  11.                         pFleetOperationInfo.setCode(AwtoServiceConstant.SUCCESS_CODE);
  12.                     }
  13.                     vehicleService.processVehicleFleetCommandEntry(pFleetOperationInfo);
  14.                     return false;
  15.                 }else{
  16.                     pFleetOperationInfo.setCode(AwtoServiceConstant.SUCCESS_CODE);
  17.                     vehicleService.processVehicleFleetCommandEntry(pFleetOperationInfo);
  18.                     return true;
  19.                 }
  20.             }else{
  21.                 return true;
  22.             }
  23.         } catch (GenericAwtoException e) {
  24.             e.printStackTrace();
  25.             return false;
  26.         }
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement