Pārlūkot izejas kodu

读取数据中心数据容错处理

西昌缴费二期
liangkun pirms 1 gada
vecāks
revīzija
fdc68f8e9b
1 mainītis faili ar 16 papildinājumiem un 16 dzēšanām
  1. +16
    -16
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs

+ 16
- 16
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/CdMajor/CdMajorService.cs Parādīt failu

@@ -413,14 +413,16 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
DataTable dtnull=new DataTable("v_total");
dtnull.Columns.Add(new DataColumn("zy_nums"));
dtnull.Columns.Add(new DataColumn("bj_nums"));
dtnull.Columns.Add(new DataColumn("stu_nums"));
dtnull.Columns.Add(new DataColumn("tea_nums"));
dtnull.Columns.Add(new DataColumn("js_nums"));
dtnull.Columns.Add(new DataColumn("kc_nums"));
dtnull.NewRow();
dtnull.Rows.Add(0, 0, 0, 0, 0, 0);
return dtnull;
}
}

@@ -432,14 +434,12 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
}
catch (Exception ex)
{
if (ex is ExceptionEx)
{
throw;
}
else
{
throw ExceptionEx.ThrowServiceException(ex);
}
DataTable dtnull = new DataTable("v_zy_stu_nums");
dtnull.Columns.Add(new DataColumn("name"));
dtnull.Columns.Add(new DataColumn("value"));
dtnull.NewRow();
dtnull.Rows.Add(0, 0);
return dtnull;
}
}



Notiek ielāde…
Atcelt
Saglabāt