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
688896ea4e
commit
a44d5d350a
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user