fixes bug#AL-2027
parent
1502b80741
commit
1f3ec84545
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>br.com.rjconsultores</groupId>
|
<groupId>br.com.rjconsultores</groupId>
|
||||||
<artifactId>ModelWeb</artifactId>
|
<artifactId>ModelWeb</artifactId>
|
||||||
<version>1.0.24</version>
|
<version>1.0.25</version>
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<repository>
|
||||||
<id>rj-releases</id>
|
<id>rj-releases</id>
|
||||||
|
|
|
@ -151,7 +151,7 @@ public class SapHibernateDAO extends GenericHibernateDAO<FechamentoCntcorrente,
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Transactional
|
@Transactional
|
||||||
public boolean atualizaFechamento(Long fechamentocntcorrenteId, int status) throws Exception {
|
public synchronized boolean atualizaFechamento(Long fechamentocntcorrenteId, int status) throws Exception {
|
||||||
|
|
||||||
if(fechamentocntcorrenteId == null ) {
|
if(fechamentocntcorrenteId == null ) {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -133,15 +133,8 @@ public class SapServiceImpl implements SapService{
|
||||||
|
|
||||||
while(!listaPendente.isEmpty()) {
|
while(!listaPendente.isEmpty()) {
|
||||||
log.info("IntegracaoSap: Registro a enviar:"+listaPendente.size());
|
log.info("IntegracaoSap: Registro a enviar:"+listaPendente.size());
|
||||||
|
remessa(listaPendente, false);
|
||||||
try {
|
|
||||||
remessa(listaPendente, false);
|
|
||||||
} catch (Exception e) {
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
|
|
||||||
listaPendente = obtenerTodosParaRemessa(null, DateUtil.getYesterdayDate(), new Date(), "2");
|
listaPendente = obtenerTodosParaRemessa(null, DateUtil.getYesterdayDate(), new Date(), "2");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue