mudança de reintegraçao serviço totvs Fixes bug#AL-5081

master
Fabio 2024-10-11 11:49:24 -03:00
parent 1b6e2d48ef
commit 7458f441ad
2 changed files with 5 additions and 2 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.115.0</version> <version>1.116.0</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -388,15 +388,18 @@ public class EsquemaCorridaHibernateDAO extends GenericHibernateDAO<EsquemaCorri
// update caja set integradototvs = 0 where PUNTOVENTA_ID = 269 and FECHORVENTA >= '30/03/2018' and FECHORVENTA <= '01/04/2018'; // update caja set integradototvs = 0 where PUNTOVENTA_ID = 269 and FECHORVENTA >= '30/03/2018' and FECHORVENTA <= '01/04/2018';
StringBuilder sb = new StringBuilder(); StringBuilder sb = new StringBuilder();
sb.append(" update esquema_corrida set integradototvs = 0 "); sb.append(" update esquema_corrida set integradototvs = 2, CONTADORINTEGRADOTOTVS = 0 ");
sb.append(" where NUMCORRIDA = :numcorrida "); sb.append(" where NUMCORRIDA = :numcorrida ");
if (marca != null) { if (marca != null) {
sb.append(" and MARCA_ID = :marcaId "); sb.append(" and MARCA_ID = :marcaId ");
} }
SQLQuery query = getSession().createSQLQuery(sb.toString()); SQLQuery query = getSession().createSQLQuery(sb.toString());
if (marca != null) { if (marca != null) {
query.setInteger("marcaId", marca.getMarcaId()); query.setInteger("marcaId", marca.getMarcaId());
} }
query.setInteger("numcorrida", numcorrida); query.setInteger("numcorrida", numcorrida);
Integer result = query.executeUpdate(); Integer result = query.executeUpdate();
return result; return result;