fixes bug#AL-2027

master
Fabio Faria 2023-01-17 17:13:08 -03:00
parent 1502b80741
commit 1f3ec84545
3 changed files with 3 additions and 10 deletions

View File

@ -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>

View File

@ -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;

View File

@ -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());
try {
remessa(listaPendente, false); remessa(listaPendente, false);
} catch (Exception e) {
throw e;
}
listaPendente = obtenerTodosParaRemessa(null, DateUtil.getYesterdayDate(), new Date(), "2"); listaPendente = obtenerTodosParaRemessa(null, DateUtil.getYesterdayDate(), new Date(), "2");
} }
} }
} }