mirror of
https://github.com/dyiop/astute.git
synced 2025-04-05 21:10:16 -04:00
Add files via upload
This commit is contained in:
parent
f97e6f3756
commit
a7a8188926
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user