110,927
社区成员
发帖
与我相关
我的任务
分享
public String exec_frwrdr_put_complete(String iFileName,String iComprsFileName,String iCustCode,String iFrwrdrName,String iSiteFlag){
String outcome="OK";
String sql = "declare result varchar2(512); begin result := pkg_ebroker_efrwrdr.frwrdr_put_complete('"+iFileName+"', '"+iComprsFileName+"', '"+iCustCode+"', '"+iFrwrdrName+"', '"+iSiteFlag+"'); end; ";
logger.log(Level.INFO,sql);
try {
jdbcTemplate.execute(sql);
}catch(Exception e){
outcome = "FAILURE";
logger.log(Level.INFO,e.getMessage());
}finally{
return outcome;
}
}
public bool exec_frwrdr_put_complete(String iFileName, String iComprsFileName, String iCustCode, String iFrwrdrName, String iSiteFlag)
{
String sql = "declare result varchar2(512); begin result := pkg_ebroker_efrwrdr.frwrdr_put_complete('" + iFileName + "', '" + iComprsFileName + "', '" + iCustCode + "', '" + iFrwrdrName + "', '" + iSiteFlag + "'); end; ";
try
{
object countResult = OracleHelper.ExecuteScalar(OracleHelper.OracleConnString, CommandType.Text, sql);
return true;
}
catch (Exception e)
{
return false;
}
}