Add files via upload

This commit is contained in:
gopi17701 2018-07-24 11:23:15 -04:00 committed by GitHub
parent f97e6f3756
commit a7a8188926
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ public class SqlDAO extends DAO {
} else if (PODate != null) {
sql += "WHERE PO_date = STR_TO_DATE(" + PODate + ", '%Y-%m-%d')";
} else if (astuteProjectNumber!= null) {
sql += "WHERE UPPER(astuteProjectNumber) = '" + astuteProjectNumber.toUpperCase()+ "'";
sql += "WHERE UPPER(astute_project_num) = '" + astuteProjectNumber.toUpperCase()+ "'";
}
ResultSet rs = stmt.executeQuery(sql);
@ -121,7 +121,7 @@ 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 + " astuteProjectNumber = '" + astuteProjectNumber + "',";
updateClause = updateClause + " upper(astute_project_num) = '" + astuteProjectNumber.toUpperCase() + "',";
if (!updateClause.equalsIgnoreCase(" SET ")) {
sql = sql + trimLastCharacter(updateClause, ",") + whereClause;