fixes bug #7384
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@55826 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8f9b14c2de
commit
4d159a3066
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue