public class CarteraCreditoBO { private CarteraCreditoDao dao = (CarteraCreditoDao) TumiFactory.get(CarteraCreditoDaoIbatis.class); public CarteraCredito getPorMaxPeriodo(Integer intEmpresa) throws BusinessException { CarteraCredito domain = null; List<CarteraCredito> lista = null; try { HashMap mapa = new HashMap(); mapa.put("intPersEmpresacartera_n_pk", intEmpresa); lista = dao.getListaPorMaxPeriodo(mapa); if (lista != null) { if (lista.size() == 1) { domain = lista.get(0); } else if (lista.size() == 0) { domain = null; } else { throw new BusinessException("Obtención de mas de un registro coincidente"); } } } catch (DAOException e) { throw new BusinessException(e); } catch (BusinessException e) { throw e; } catch (Exception e) { throw new BusinessException(e); } return domain; } }
public class ContenidoBO { private ContenidoDao dao = (ContenidoDao) TumiFactory.get(ContenidoDaoIbatis.class); public Contenido grabarContenido(Contenido o) throws BusinessException { Contenido dto = null; try { dto = dao.grabar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public Contenido modificarContenido(Contenido o) throws BusinessException { Contenido dto = null; try { dto = dao.modificar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public Contenido getListaContenidoPorPk(Integer pId) throws BusinessException { List<Contenido> lista = null; Contenido domain = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId); mapa.put("intIdTransaccion", pId); mapa.put("intCodigo", pId); lista = dao.getListaPorPk(mapa); if (lista != null) { if (lista.size() == 1) { domain = lista.get(0); } else if (lista.size() == 0) { domain = null; } else { throw new BusinessException("Obtención de mas de un registro coincidente"); } } } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return domain; } }
public class DescuentoBO { private DescuentoDao dao = (DescuentoDao) TumiFactory.get(DescuentoDaoIbatis.class); protected static Logger log = Logger.getLogger(DescuentoBO.class); public Descuento grabarDescuento(Descuento o) throws BusinessException { // log.info("BO:"+o.toString()); Descuento dto = null; try { dto = dao.grabar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public Descuento modificarDescuento(Descuento o) throws BusinessException { Descuento dto = null; try { dto = dao.modificar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public Descuento getDescuentoPorPK(DescuentoId pPK) throws BusinessException { Descuento domain = null; List<Descuento> lista = null; try { HashMap mapa = new HashMap(); mapa.put("intPeriodo", pPK.getIntPeriodo()); mapa.put("intMes", pPK.getIntMes()); mapa.put("intNivel", pPK.getIntNivel()); mapa.put("intCodigo", pPK.getIntCodigo()); mapa.put("intParaTipoArchivoCod", pPK.getIntParaTipoArchivoPadronCod()); mapa.put("intParaModalidad", pPK.getIntParaModalidadCod()); mapa.put("intParaTipoSocio", pPK.getIntParaTipoSocio()); mapa.put("intItemAdministraPadron", pPK.getIntItemAdministraPadron()); mapa.put("intItemDescuento", pPK.getIntItemDescuento()); lista = dao.getListaDescuentoPorPK(mapa); if (lista != null) { if (lista.size() == 1) { domain = lista.get(0); } else if (lista.size() == 0) { domain = null; } else { throw new BusinessException("Obtención de mas de un registro coincidente"); } } } catch (DAOException e) { throw new BusinessException(e); } catch (BusinessException e) { throw e; } catch (Exception e) { throw new BusinessException(e); } return domain; } /** * AUTOR Y FECHA CREACION: JCHAVEZ / 21-08-2013 OBTENER COLUMNAS DESCUENTO TERCEROS (ESTADO DE * CUENTA - TAB TERCEROS) */ public List<Descuento> getListaColumnasPorPeriodoModalidadYDni( Integer intPeriodo, Integer intParaModalidadCod, String strLibEle) throws BusinessException { List<Descuento> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPeriodo", intPeriodo); mapa.put("intParaModalidadCod", intParaModalidadCod); mapa.put("strLibEle", strLibEle); lista = dao.getListaColumnasPorPeriodoModalidadYDni(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } /** * AUTOR Y FECHA CREACION: JCHAVEZ / 21-08-2013 OBTENER FILAS DESCUENTO TERCEROS (ESTADO DE CUENTA * - TAB TERCEROS) */ public List<Descuento> getListaFilasPorPeriodoModalidadYDni( Integer intPeriodo, Integer intParaModalidadCod, String strLibEle) throws BusinessException { List<Descuento> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPeriodo", intPeriodo); mapa.put("intParaModalidadCod", intParaModalidadCod); mapa.put("strLibEle", strLibEle); lista = dao.getListaFilasPorPeriodoModalidadYDni(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } /** * AUTOR Y FECHA CREACION: JCHAVEZ / 26-08-2013 OBTENER MONTOS TOTALES POR EMPRESA-DESCUENTA Y * PERIODO (ESTADO DE CUENTA - TAB TERCEROS) */ public List<Descuento> getMontoTotalPorNomCptoYPeriodo( String strDsteCpto, String strNomCpto, Integer intPeriodo, Integer intMes, Integer intParaModalidadCod, String strLibEle) throws BusinessException { List<Descuento> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("strDsteCpto", strDsteCpto); mapa.put("strNomCpto", strNomCpto); mapa.put("intPeriodo", intPeriodo); mapa.put("intMes", intMes); mapa.put("intParaModalidadCod", intParaModalidadCod); mapa.put("strLibEle", strLibEle); lista = dao.getMontoTotalPorNomCptoYPeriodo(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } /** * Recupera lista de desceuntos x admin padron * * @param administraPadron * @param strDni * @return * @throws BusinessException */ public List<Descuento> getListaPorAdminPadron(AdminPadron administraPadron, String strDni) throws BusinessException { List<Descuento> lista = null; try { HashMap mapa = new HashMap(); mapa.put("intPeriodo", administraPadron.getId().getIntPeriodo()); mapa.put("intMes", administraPadron.getId().getIntMes()); mapa.put("intNivel", administraPadron.getId().getIntNivel()); mapa.put("intCodigo", administraPadron.getId().getIntCodigo()); mapa.put( "intParaTipoArchivoPadronCod", administraPadron.getId().getIntParaTipoArchivoPadronCod()); mapa.put("intParaModalidadCod", administraPadron.getId().getIntParaModalidadCod()); mapa.put("intParaTipoSocio", administraPadron.getId().getIntParaTipoSocioCod()); mapa.put("intItemAdministraPadron", administraPadron.getId().getIntItemAdministraPadron()); mapa.put("strLibEle", strDni); lista = dao.getListaPorAdminPadron(mapa); } catch (DAOException e) { e.printStackTrace(); throw new BusinessException(e); } catch (Exception e) { e.printStackTrace(); throw new BusinessException(e); } return lista; } }
public class HojaManualDetalleBO { private HojaManualDetalleDao dao = (HojaManualDetalleDao) TumiFactory.get(HojaManualDetalleDaoIbatis.class); public HojaManualDetalle grabarHojaManualDetalle(HojaManualDetalle o) throws BusinessException { HojaManualDetalle dto = null; try { dto = dao.grabar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public HojaManualDetalle modificarHojaManualDetalle(HojaManualDetalle o) throws BusinessException { HojaManualDetalle dto = null; try { dto = dao.modificar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public HojaManualDetalle getHojaManualDetallePorPk(HojaManualDetalleId pId) throws BusinessException { HojaManualDetalle domain = null; List<HojaManualDetalle> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("pIntPersEmpresaHojaPk", pId.getIntPersEmpresaHojaPk()); mapa.put("pIntContPeriodoHoja", pId.getIntContPeriodoHoja()); mapa.put("pIntContCodigoHoja", pId.getIntContCodigoHoja()); mapa.put("pIntContItemHoja", pId.getIntContItemHoja()); lista = dao.getListaPorPk(mapa); if (lista != null) { if (lista.size() == 1) { domain = lista.get(0); } else if (lista.size() == 0) { domain = null; } else { throw new BusinessException("Obtención de mas de un registro coincidente"); } } } catch (DAOException e) { throw new BusinessException(e); } catch (BusinessException e) { throw e; } catch (Exception e) { throw new BusinessException(e); } return domain; } public List<HojaManualDetalle> getListHojaManualDetBusq(HojaManualDetalle o) throws BusinessException { List<HojaManualDetalle> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("pIntPersEmpresaHojaPk", o.getId().getIntPersEmpresaHojaPk()); mapa.put("pIntContPeriodoHoja", o.getId().getIntContPeriodoHoja()); mapa.put("pIntContCodigoHoja", o.getId().getIntContCodigoHoja()); mapa.put("pStrContNumeroCuenta", o.getStrContNumeroCuenta()); lista = dao.getBusqueda(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } public HojaManualDetalle eliminarHojaManualDetalle(HojaManualDetalleId o) throws BusinessException { HojaManualDetalle dto = null; try { System.out.println("eliminando..."); System.out.println("intPersEmpresaHojaPk: " + o.getIntPersEmpresaHojaPk()); System.out.println("intContPeriodoHoja: " + o.getIntContPeriodoHoja()); System.out.println("intContCodigoHoja: " + o.getIntContCodigoHoja()); dto = dao.eliminar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } }
public class ConceptoPagoBO { private ConceptoPagoDao dao = (ConceptoPagoDao) TumiFactory.get(ConceptoPagoDaoIbatis.class); public ConceptoPago grabar(ConceptoPago o) throws BusinessException { ConceptoPago dto = null; try { dto = dao.grabar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public ConceptoPago modificar(ConceptoPago o) throws BusinessException { ConceptoPago dto = null; try { dto = dao.modificar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public ConceptoPago getConceptoPagoPorPK(ConceptoPagoId pId) throws BusinessException { ConceptoPago domain = null; List<ConceptoPago> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intCuentaPk", pId.getIntCuentaPk()); mapa.put("intItemCuentaConcepto", pId.getIntItemCuentaConcepto()); mapa.put("intItemCtaCptoDet", pId.getIntItemCtaCptoDet()); mapa.put("intItemConceptoPago", pId.getIntItemConceptoPago()); lista = dao.getListaPorPK(mapa); if (lista != null) { if (lista.size() == 1) { domain = lista.get(0); } else if (lista.size() == 0) { domain = null; } else { throw new BusinessException("Obtención de mas de un registro coincidente"); } } } catch (DAOException e) { throw new BusinessException(e); } catch (BusinessException e) { throw e; } catch (Exception e) { throw new BusinessException(e); } return domain; } public List<ConceptoPago> getListaConceptoPagoPorCuentaConceptoDet(CuentaConceptoDetalleId pId) throws BusinessException { List<ConceptoPago> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intCuentaPk", pId.getIntCuentaPk()); mapa.put("intItemCuentaConcepto", pId.getIntItemCuentaConcepto()); mapa.put("intItemCtaCptoDet", pId.getIntItemCtaCptoDet()); lista = dao.getListaConceptoPagoPorCuentaConceptoDet(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } /** * AUTOR Y FECHA CREACION: JCHAVEZ / 25-09-2013 OBTENER CONCEPTO PAGO POR CUENTA CONCEPTO DETALLE * Y PERIODO * * @param pId * @param intPeriodoIni * @param intPeriodoFin * @return * @throws BusinessException */ public List<ConceptoPago> getListaConceptoPagoPorCtaCptoDetYPeriodo( CuentaConceptoDetalleId pId, Integer intPeriodoIni, Integer intPeriodoFin) throws BusinessException { List<ConceptoPago> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intCuentaPk", pId.getIntCuentaPk()); mapa.put("intItemCuentaConcepto", pId.getIntItemCuentaConcepto()); mapa.put("intItemCtaCptoDet", pId.getIntItemCtaCptoDet()); mapa.put("intPeriodoInicio", intPeriodoIni); mapa.put("intPeriodoFin", intPeriodoFin); lista = dao.getListaConceptoPagoPorCtaCptoDetYPeriodo(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } /** * JCHAVEZ 10.01.2014 Recupera el ultimo registro de Concepto Pago por Pk Cuenta Concepto Detalle * * @param pId * @return * @throws BusinessException */ public List<ConceptoPago> getUltimoCptoPagoPorCuentaConceptoDet(CuentaConceptoDetalleId pId) throws BusinessException { List<ConceptoPago> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intCuentaPk", pId.getIntCuentaPk()); mapa.put("intItemCuentaConcepto", pId.getIntItemCuentaConcepto()); mapa.put("intItemCtaCptoDet", pId.getIntItemCtaCptoDet()); lista = dao.getUltimoCptoPagoPorCuentaConceptoDet(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } public List<ConceptoPago> getListaConceptoPagoToCobranza(CuentaConceptoDetalleId pId) throws BusinessException { List<ConceptoPago> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intCuentaPk", pId.getIntCuentaPk()); mapa.put("intItemCuentaConcepto", pId.getIntItemCuentaConcepto()); mapa.put("intItemCtaCptoDet", pId.getIntItemCtaCptoDet()); lista = dao.getListaConceptoPagotoCobranza(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } }
public class GestionCobranzaBO { protected static Logger log = Logger.getLogger(GestionCobranzaBO.class); private GestionCobranzaDao dao = (GestionCobranzaDao) TumiFactory.get(GestionCobranzaDaoIbatis.class); public List<GestionCobranza> getListaGestionCobranza(Object o) throws BusinessException { log.info( "-----------------------Debugging GestionCobranzaBO.getListaGestionCobranza-----------------------------"); List<GestionCobranza> lista = null; log.info("Seteando los parametros de busqueda de Gestion Cobranza: "); log.info("-------------------------------------------------"); GestionCobranza gestionCobranza = (GestionCobranza) o; HashMap map = new HashMap(); map.put("intPersEmpresaGestionPK", gestionCobranza.getId().getIntPersEmpresaGestionPK()); map.put("intIdPersonaGestor", gestionCobranza.getIntIdPersonaGestor()); map.put("intTipoGestionCobCod", gestionCobranza.getIntTipoGestionCobCod()); map.put("dtFechaGestionIni", gestionCobranza.getDtFechaGestionIni()); map.put("dtFechaGestionFin", gestionCobranza.getDtFechaGestionFin()); map.put("intEstado", gestionCobranza.getIntEstado()); try { lista = dao.getListaGestionCobranza(map); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } public GestionCobranza getGestionCobranzaPorPK(GestionCobranza o) throws BusinessException { log.info( "-----------------------Debugging GestionCobranzaBO.getGestionCobranzaPorPK-----------------------------"); List<GestionCobranza> lista = null; GestionCobranza GestionCobranza = null; log.info("Seteando los parametros de busqueda de getGestionCobranzaPorPK : "); log.info("-------------------------------------------------"); HashMap map = new HashMap(); map.put("intIdEmpresa", o.getId().getIntPersEmpresaGestionPK()); map.put("intItemGestionCobranza", o.getId().getIntItemGestionCobranza()); try { lista = dao.getGestionCobranzaPorPK(map); if (lista != null) { if (lista.size() == 1) { GestionCobranza = lista.get(0); } else if (lista.size() == 0) { GestionCobranza = null; } else { throw new BusinessException("Obtención de mas de un registro coincidente"); } } } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return GestionCobranza; } public GestionCobranza grabarGestionCobranza(GestionCobranza o) throws BusinessException { GestionCobranza dto = null; try { dto = dao.grabar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public GestionCobranza modificarGestionCobranza(GestionCobranza o) throws BusinessException { GestionCobranza dto = null; try { dto = dao.modificar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } }
public class UsuarioSucursalBO { private UsuarioSucursalDao dao = (UsuarioSucursalDao) TumiFactory.get(UsuarioSucursalDaoIbatis.class); public UsuarioSucursal grabarUsuarioSucursal(UsuarioSucursal o) throws BusinessException { UsuarioSucursal dto = null; try { o.setIntIdEstado(Constante.PARAM_T_ESTADOUNIVERSAL_ACTIVO); dto = dao.grabar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public UsuarioSucursal modificarUsuarioSucursal(UsuarioSucursal o) throws BusinessException { UsuarioSucursal dto = null; try { dto = dao.modificar(o); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return dto; } public UsuarioSucursal getUsuarioSucursalPorPk(UsuarioSucursalId pId) throws BusinessException { List<UsuarioSucursal> lista = null; UsuarioSucursal domain = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intIdSucursal", pId.getIntIdSucursal()); mapa.put("intPersPersonaPk", pId.getIntPersPersonaPk()); mapa.put("dtFechaRegistro", pId.getDtFechaRegistro()); lista = dao.getListaPorPk(mapa); if (lista != null) { if (lista.size() == 1) { domain = lista.get(0); } else if (lista.size() == 0) { domain = null; } else { throw new BusinessException("Obtención de mas de un registro coincidente"); } } } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return domain; } public List<UsuarioSucursal> getListaUsuarioSucursalPorPkEmpresaUsuario(EmpresaUsuarioId pId) throws BusinessException { List<UsuarioSucursal> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intPersPersonaPk", pId.getIntPersPersonaPk()); lista = dao.getListaPorPkEmpresaUsuario(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } public List<UsuarioSucursal> getListaUsuarioSucursalPkEmpresaUsuarioYFechaEliminacion( EmpresaUsuarioId pId, Timestamp pTsFechaEliminacion) throws BusinessException { List<UsuarioSucursal> lista = null; try { HashMap<String, Object> mapa = new HashMap<String, Object>(); mapa.put("intPersEmpresaPk", pId.getIntPersEmpresaPk()); mapa.put("intPersPersonaPk", pId.getIntPersPersonaPk()); mapa.put("tsFechaEliminacion", pTsFechaEliminacion); lista = dao.getListaPorPkEmpresaUsuarioYFechaEliminacion(mapa); } catch (DAOException e) { throw new BusinessException(e); } catch (Exception e) { throw new BusinessException(e); } return lista; } }
public class GestionCobranzaEntService { protected static Logger log = Logger.getLogger(GestionCobranzaEntService.class); private GestionCobranzaEntBO boGestionCobranzaEnt = (GestionCobranzaEntBO) TumiFactory.get(GestionCobranzaEntBO.class); public List<GestionCobranzaEnt> grabarDinamicoListaGestionCobranzaEnt(GestionCobranza o) throws BusinessException { List<GestionCobranzaEnt> listaGestionCobranzaEnt = null; GestionCobranzaEnt gestionCobranzaEnt = null; GestionCobranzaEnt gestionCobranzaEntTemp = null; try { listaGestionCobranzaEnt = o.getListaGestionCobranzaEnt(); for (int i = 0; i < listaGestionCobranzaEnt.size(); i++) { gestionCobranzaEnt = listaGestionCobranzaEnt.get(i); log.info("GestionCobranzaEnt.intEstadoCod: " + gestionCobranzaEnt.getIntEstadoCod()); log.info("GestionCobranzaEnt.intNivel: " + gestionCobranzaEnt.getIntNivel()); log.info("GestionCobranzaEnt.id: " + gestionCobranzaEnt.getId()); if (gestionCobranzaEnt.getId().getIntItemGestCobrEntidad() == null) { gestionCobranzaEnt.setId(new GestionCobranzaEntId()); gestionCobranzaEnt .getId() .setIntPersEmpresaGestion(o.getId().getIntPersEmpresaGestionPK()); gestionCobranzaEnt .getId() .setIntItemGestionCobranza(o.getId().getIntItemGestionCobranza()); gestionCobranzaEnt.setIntEstadoCod(Constante.PARAM_T_ESTADOUNIVERSAL_ACTIVO); boGestionCobranzaEnt.grabarGestionCobranzaEnt(gestionCobranzaEnt); } else { gestionCobranzaEntTemp = boGestionCobranzaEnt.getGestionCobranzaEntPorPK(gestionCobranzaEnt); if (gestionCobranzaEntTemp == null) { gestionCobranzaEnt = boGestionCobranzaEnt.grabarGestionCobranzaEnt(gestionCobranzaEnt); } else { gestionCobranzaEnt = boGestionCobranzaEnt.modificarGestionCobranzaEnt(gestionCobranzaEnt); } } log.info( "GestionCobranzaEnt.id.intItemGestCobrEntidadPK: " + gestionCobranzaEnt.getId().getIntItemGestCobrEntidad()); } } catch (BusinessException e) { throw e; } catch (Exception e) { throw new BusinessException(e); } return listaGestionCobranzaEnt; } public void eliminarListaGestionCobranzaEnt(GestionCobranzaEnt gestionCobranzaEnt) throws BusinessException { GestionCobranzaEnt gestionCobranzaEntTemp = null; try { log.info("GestionCobranzaEnt.intEstadoCod: " + gestionCobranzaEnt.getIntEstadoCod()); log.info("GestionCobranzaEnt.intNivel: " + gestionCobranzaEnt.getIntNivel()); log.info("GestionCobranzaEnt.id: " + gestionCobranzaEnt.getId()); gestionCobranzaEntTemp = boGestionCobranzaEnt.getGestionCobranzaEntPorPK(gestionCobranzaEnt); if (gestionCobranzaEntTemp != null && gestionCobranzaEnt.getIsDeleted() == true) { gestionCobranzaEntTemp.setIntEstadoCod(Constante.PARAM_T_ESTADOUNIVERSAL_ANULADO); gestionCobranzaEnt = boGestionCobranzaEnt.modificarGestionCobranzaEnt(gestionCobranzaEntTemp); } log.info( "gestionCobranzaEnt.id.intItemGestCobrEntidadPk: " + gestionCobranzaEnt.getId().getIntItemGestCobrEntidad()); } catch (BusinessException e) { throw e; } catch (Exception e) { throw new BusinessException(e); } } }