Commit a50cf546 authored by pdas's avatar pdas

Request ID -D15ESUN002 for changing the date format


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98716 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 641e78ba
......@@ -1064,9 +1064,17 @@ public class POrderAmdIC extends ValidatorEJB implements POrderAmdICLocal, POrde
errFields.add(childNodeName.toLowerCase());
break;
}
ordDateStr = checkNull(genericUtility.getColumnValue("ord_date", dom1));
sql ="select count(*) from project where proj_code = ? and ('" + ordDateStr + "' between start_date and end_date OR '" + ordDateStr + "'between start_date and ext_end_date)";
String orderDate = null;
SimpleDateFormat sd = null;
sd = new SimpleDateFormat(genericUtility.getApplDateFormat());
Date pordDate = sd.parse(ordDateStr);
orderDate =sd.format(pordDate);
sql ="select count(*) from project where proj_code = ? and ('" + orderDate + "' between start_date and end_date OR '" + orderDate + "' between start_date and ext_end_date)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, projCode);
rs = pstmt.executeQuery();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment