Пример #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;
  }
Пример #2
0
 public void batchAddRidingPlan(
     Map map, List driverList, List sichenList, List vssList, List vss_siteList)
     throws BusinessException, DataAccessIntegrityViolationException, DataAccessException {
   try {
     ridingPlanDao.batchAddRidingPlan(map, driverList, sichenList, vssList, vss_siteList);
   } catch (DataAccessIntegrityViolationException e) {
     LOG.error(e);
     throw new BusinessException(INFO_DB_ERROR);
   } catch (DataAccessException e) {
     LOG.error(e);
     throw new BusinessException(INFO_DB_ERROR);
   }
 }
Пример #3
0
 public Map batchDeletedRidingPlan(Map map, String usedPath)
     throws BusinessException, DataAccessIntegrityViolationException, DataAccessException {
   String targetFileName = "";
   Map<String, Object> resultmap = new HashMap<String, Object>();
   try {
     ridingPlanDao.batchDeletedRidingPlan(map);
     resultmap =
         writeGZPackDao.getVinToTrip(
             (String) map.get("vehicle_vin"),
             (String) map.get("trip_id"),
             usedPath,
             (String) map.get("vehicle_vin"));
   } 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;
 }