Пример #1
0
  public Map batchUpdateRidingPlan(
      Map map,
      List driverList,
      List sichenList,
      List vssList,
      List vss_siteList,
      String vehicle_vin_old,
      String usedPath)
      throws BusinessException, DataAccessIntegrityViolationException, DataAccessException {
    String targetFileName = "";
    Map<String, Object> resultmap = new HashMap<String, Object>();
    try {
      ridingPlanDao.batchUpdateRidingPlan(
          map, driverList, sichenList, vssList, vss_siteList, vehicle_vin_old);

      resultmap =
          writeGZPackDao.getVinToTrip(
              (String) map.get("vehicle_vin"),
              (String) map.get("trip_id"),
              usedPath,
              vehicle_vin_old);

    } catch (DataAccessIntegrityViolationException e) {
      LOG.error(e);
      throw new BusinessException(INFO_DB_ERROR);
    } catch (DataAccessException e) {
      LOG.error(e);
      throw new BusinessException(INFO_DB_ERROR);
    }
    return resultmap;
  }