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