diff --git a/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java b/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java index 51e1d66..14204cd 100644 --- a/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java +++ b/AstuteSystem/src/main/java/com/astute/dao/SqlDAO.java @@ -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;