gleimar 2015-05-04 15:14:27 +00:00
parent 589f89e8e5
commit 8012c91b3a
1 changed files with 9 additions and 2 deletions

View File

@ -68,17 +68,24 @@ public class ImportarPlanilhaController extends MyGenericForwardComposer {
public void onClick$btnWs(Event ev) throws InterruptedException { public void onClick$btnWs(Event ev) throws InterruptedException {
List<PuntoVenta> listpv = puntoVentaService.obtenerTodos(); List<PuntoVenta> listpv = puntoVentaService.obtenerTodos();
log.info("qtd age:"+listpv.size());
int i = 1;
for (PuntoVenta pv : listpv) { for (PuntoVenta pv : listpv) {
log.info("pos:"+i++);
log.info(pv.getPuntoventaId() + " - " + pv.getNumPuntoVenta()); log.info(pv.getPuntoventaId() + " - " + pv.getNumPuntoVenta());
try { try {
atualizarEntidade(pv); atualizarEntidade(pv);
} catch (IntegracionException e) { } catch (IntegracionException e) {
log.error("erro integra pv"+pv.getPuntoventaId(),e); log.error("erro integra pv: "+pv.getPuntoventaId(),e);
} catch (ValidacionCampoException e) { } catch (ValidacionCampoException e) {
log.error("erro valida pv"+pv.getPuntoventaId(),e); log.error("erro valida pv: "+pv.getPuntoventaId(),e);
} }
} }
log.info("Fim importacao WS. Pos:"+i);
} }
public synchronized void onUpload(UploadEvent event) throws IOException, InterruptedException { public synchronized void onUpload(UploadEvent event) throws IOException, InterruptedException {