Add files via upload

This commit is contained in:
gopi17701 2018-07-24 16:54:25 -04:00 committed by GitHub
parent 688896ea4e
commit a44d5d350a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,14 +121,8 @@ public class SqlDAO extends DAO {
updateClause = updateClause + " contract_num = '" + contractNum + "',";
updateClause = updateClause + " PO_Date = STR_TO_DATE(" + PODate + ", '%Y-%m-%d')" + ",";
updateClause = updateClause + " contract_amt = " + contractAmt;
updateClause = updateClause + " upper(astute_project_num) = '" + astuteProjectNumber.toUpperCase() + "',";
if (!updateClause.equalsIgnoreCase(" SET ")) {
sql = sql + trimLastCharacter(updateClause, ",") + whereClause;
} else {
System.out.println(updateClause);
throw new AstuteException(0, "No values to update.");
}
updateClause = updateClause + " astute_project_num = '" + astuteProjectNumber +"'";
sql = sql + whereClause;
System.out.println(sql);
Statement stmt = conn.createStatement();
stmt.executeUpdate(sql);