public static string CheckStatsHelper(string hwId) { try { hwId = hwId.Filter(); int inum = new BLL_StatsHelper().GetRecordCount("Exec_Status='0' and SType='1' and Homework_Id='" + hwId + "' "); if (inum != 0) { return("1"); } else { return("0"); } } catch (Exception ex) { new Rc.Cloud.BLL.BLL_clsAuth().AddLogErrorFromBS("", "检查作业是否要重新统计失败:" + ex.Message.ToString()); return("2"); } }
public static string CheckStatsHelper(string rtrfId) { try { rtrfId = rtrfId.Filter(); int inum = new BLL_StatsHelper().GetRecordCount("Exec_Status='0' and SType='2' and ResourceToResourceFolder_Id='" + rtrfId + "' "); if (inum != 0) { return("1"); } else { return("0"); } } catch (Exception ex) { new Rc.Cloud.BLL.BLL_clsAuth().AddLogErrorFromBS("", "检查资源是否要重新统计失败:" + ex.Message.ToString()); return("2"); } }