Merge pull request 'mudança de reintegraçao serviço totvs Fixes bug#AL-5081' (!293) from AL-5081 into master
Reviewed-on: adm/ModelWeb#293 Reviewed-by: Gleison da Cruz <gleison.cruz@totvs.com.br>master
commit
057a078b96
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.115.0</version>
|
<version>1.116.0</version>
|
||||||
|
|
||||||
<distributionManagement>
|
<distributionManagement>
|
||||||
<repository>
|
<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';
|
// 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;
|
||||||
|
|
Loading…
Reference in New Issue