Commit d8f78788 authored by Ajit Deshmukh's avatar Ajit Deshmukh

Replace ReqForQuotationIC.java

parent 0d2c45da
...@@ -514,17 +514,29 @@ public class ReqForQuotationIC extends ValidatorEJB { ...@@ -514,17 +514,29 @@ public class ReqForQuotationIC extends ValidatorEJB {
BaseLogger.log("0", null, userId, "case 1::: item_ser"); BaseLogger.log("0", null, userId, "case 1::: item_ser");
System.out.println("case 1---------itemSerForIC05M------[" + itemSerForIC + "]"); System.out.println("case 1---------itemSerForIC05M------[" + itemSerForIC + "]");
if(itemSerForIC != null && itemSerForIC.trim().length() > 0)
{
String[] itemSerArr = itemSerForIC.split(",");
String itemSerSql = "select descr from itemser where item_ser = ?"; String itemSerSql = "select descr from itemser where item_ser = ?";
try (PreparedStatement itemSerPs = con.prepareStatement(itemSerSql)) try (PreparedStatement itemSerPs = con.prepareStatement(itemSerSql))
{ {
itemSerPs.setString(1, itemSerForIC); for(String itemSer : itemSerArr)
{
itemSerPs.setString(1, itemSer.trim());
try (ResultSet itemSerRs = itemSerPs.executeQuery()) try (ResultSet itemSerRs = itemSerPs.executeQuery())
{ {
if (itemSerRs.next()) if(itemSerRs.next())
{
if(itemSerDescr.length() > 0)
{ {
itemSerDescr = checkNull(itemSerRs.getString("descr")); itemSerDescr += ", ";
}
itemSerDescr += checkNull(itemSerRs.getString("descr"));
}
}
} }
} }
} }
......
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