List<Map<String,Object>>certifList=jdbcTemplate.queryForList("select * from tShopCertif where sShopNO = ? and sCertifTypeID = ?",shopNo,sCertifTypeID);
List<Map<String,Object>>certifPicList=jdbcTemplate.queryForList("select TOP 1 * from tShopCertifPic where sCertifNO = ? and sCertifTypeID = ? and sShopNO = ? order by nItem desc",sCertifNO,sCertifTypeID,shopNo);
if(certifPicList.size()>0){
Map<String,Object>picMap=certifPicList.get(0);
StringsURL=(String)picMap.get("sURL");
map.put("sCertifPicUrl",sURL);
}
}
List<Map<String,Object>>bankList=jdbcTemplate.queryForList("select * from tCustBank where sCustNO = ?",custNo);
intcount=jdbcTemplate.queryForInt("select count(*) from tShopCertif where sShopNO = ? and sCertifTypeID = ? and sCertifNO = ?",newObject[]{shopNo,certifTypeID,certifNO});
itemId=jdbcTemplate.queryForInt("select max(nItem) from tShopCertifPic where sShopNO = ? and sCertifTypeID = ? and sCertifNO = ?",shopNo,certifTypeID,certifNO);
}catch(NullPointerExceptione){
itemId=0;
}
jdbcTemplate.update("delete from tShopCertifPic where sShopNO = ? and sCertifTypeID = ?",shopNo,certifTypeID);