mudança de reintegraçao serviço totvs Fixes bug#AL-5081
parent
1b6e2d48ef
commit
7458f441ad
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.115.0</version>
|
||||
<version>1.116.0</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -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';
|
||||
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 ");
|
||||
if (marca != null) {
|
||||
sb.append(" and MARCA_ID = :marcaId ");
|
||||
}
|
||||
|
||||
SQLQuery query = getSession().createSQLQuery(sb.toString());
|
||||
|
||||
if (marca != null) {
|
||||
query.setInteger("marcaId", marca.getMarcaId());
|
||||
}
|
||||
|
||||
query.setInteger("numcorrida", numcorrida);
|
||||
Integer result = query.executeUpdate();
|
||||
return result;
|
||||
|
|
Loading…
Reference in New Issue