|
|
@@ -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; |
|
|
|