From 4d159a3066db761fd322caa24a5843aafddaafb3 Mon Sep 17 00:00:00 2001 From: leonardo Date: Tue, 10 May 2016 22:18:54 +0000 Subject: [PATCH] fixes bug #7384 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@55826 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../rjconsultores/integracaoreceitadespesa/dao/Totalbus.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java b/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java index 531c3d3dc..47f048d1d 100644 --- a/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java +++ b/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java @@ -442,8 +442,9 @@ public class Totalbus { prepareStatement("Select valorconstante from constante where nombconstante = 'DATA_LIMITE_EDICAO_DEPOSITO_" + empresaId + "'"). executeQuery().next()){ sb.append("insert into constante values (constante_seq.nextval, 'DATA_LIMITE_EDICAO_DEPOSITO_" + empresaId + "', 'DATA_LIMITE_EDICAO_DEPOSITO_" + empresaId + "',1,"+ - "'" + sdf.format(data) + "', 1, 1, " + sdfConstante.format(new Date()) +", 1)"); - pstmt = getConnection().prepareStatement(sb.toString()); + "'" + sdf.format(data) + "', 1, 1, :datamodif, 1)"); + pstmt = getConnection().prepareStatement(sb.toString()); + pstmt.setDate(1, new java.sql.Date(new Date().getTime())); } else { sb.append("update constante set valorconstante = :valor where nombconstante = 'DATA_LIMITE_EDICAO_DEPOSITO_" + empresaId + "'"); pstmt = getConnection().prepareStatement(sb.toString());