瀏覽代碼

学籍异动批量删除

新疆警官学校中职
ndbs 1 年之前
父節點
當前提交
84579aa785
共有 1 個檔案被更改,包括 8 行新增1 行删除
  1. +8
    -1
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs

+ 8
- 1
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/StuTransferInfo/StuTransferInfoService.cs 查看文件

@@ -152,12 +152,19 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration
/// <param name="keyValue">主键</param>
public void DeleteEntity(string keyValue)
{
var db = this.BaseRepository("CollegeMIS").BeginTrans();
try
{
this.BaseRepository("CollegeMIS").Delete<StuTransferInfoEntity>(t => t.ID == keyValue);
var Id = keyValue.Split(',');
foreach (var item in Id)
{
db.Delete<StuTransferInfoEntity>(x => x.ID == item);
}
db.Commit();
}
catch (Exception ex)
{
db.Rollback();
if (ex is ExceptionEx)
{
throw;


Loading…
取消
儲存