leonardo 2016-05-10 22:18:54 +00:00
parent 8f9b14c2de
commit 4d159a3066
1 changed files with 3 additions and 2 deletions

View File

@ -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());