Compare commits
No commits in common. "f8debc1334412c2fc45ea94406ba857016c98c48" and "f49825066a83b8e94ff5ae6466e6ab966351a680" have entirely different histories.
f8debc1334
...
f49825066a
|
|
@ -105,7 +105,7 @@ public class ExamManager : DomainService, IExamManager
|
||||||
}).ToListAsync();
|
}).ToListAsync();
|
||||||
|
|
||||||
var gotoCount = 0;
|
var gotoCount = 0;
|
||||||
dotPenOriginalImg:
|
dotPenOriginalImg:
|
||||||
var zgtSettingDtls = await DbBiz.Queryable<MarkingSettingSubjective>().Where(w => w.ExamSubjectId == eto.ExamSubjectId).ToListAsync();
|
var zgtSettingDtls = await DbBiz.Queryable<MarkingSettingSubjective>().Where(w => w.ExamSubjectId == eto.ExamSubjectId).ToListAsync();
|
||||||
|
|
||||||
// 割原题
|
// 割原题
|
||||||
|
|
@ -413,19 +413,11 @@ public class ExamManager : DomainService, IExamManager
|
||||||
await DbBiz.BeginTranAsync();
|
await DbBiz.BeginTranAsync();
|
||||||
|
|
||||||
// 删除
|
// 删除
|
||||||
var delObjectiveIds = await DbBiz.Queryable<MkExamResult>()
|
await DbBiz.Deleteable<MkExamResult>().Where(w => w.ExamSubjectId == eto.ExamSubjectId && w.StudentNo == penSerial).ExecuteCommandAsync();
|
||||||
.Where(w => w.ExamSubjectId == eto.ExamSubjectId && w.StudentNo == penSerial)
|
|
||||||
.Select(s => s.Id).ToListAsync();
|
|
||||||
await DbBiz.Deleteable<MkExamResult>().Where(w => delObjectiveIds.Contains(w.Id)).ExecuteCommandAsync();
|
|
||||||
|
|
||||||
var delSubjectiveIds = await DbBiz.Queryable<SubjectiveMarkingResult>()
|
|
||||||
.Where(w => w.ExamSubjectId == eto.ExamSubjectId && w.StudentExamNum == penSerial && w.IsDeleted == false)
|
|
||||||
.Select(s => s.Id).ToListAsync();
|
|
||||||
await DbBiz.Updateable<SubjectiveMarkingResult>()
|
await DbBiz.Updateable<SubjectiveMarkingResult>()
|
||||||
.SetColumns(s => new SubjectiveMarkingResult { IsDeleted = true, UpdateDate = Clock.Now })
|
.SetColumns(s => new SubjectiveMarkingResult { IsDeleted = true, UpdateDate = Clock.Now })
|
||||||
.Where(w => delSubjectiveIds.Contains(w.Id))
|
.Where(w => w.ExamSubjectId == eto.ExamSubjectId && w.StudentExamNum == penSerial && w.IsDeleted == false)
|
||||||
.ExecuteCommandAsync();
|
.ExecuteCommandAsync();
|
||||||
|
|
||||||
// 新增
|
// 新增
|
||||||
await DbBiz.Insertable(kgtDtls).ExecuteCommandAsync();
|
await DbBiz.Insertable(kgtDtls).ExecuteCommandAsync();
|
||||||
await DbBiz.Insertable(zgtDtls).ExecuteCommandAsync();
|
await DbBiz.Insertable(zgtDtls).ExecuteCommandAsync();
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ public class DolphinExamPictureCutHttpApiHostModule : AbpModule
|
||||||
},
|
},
|
||||||
db =>
|
db =>
|
||||||
{
|
{
|
||||||
//db.QueryFilter.AddTableFilter<ISoftDelete>(s => s.IsDeleted == false);
|
db.QueryFilter.AddTableFilter<ISoftDelete>(s => s.IsDeleted == false);
|
||||||
|
|
||||||
var config = new SqlSugarConfig();
|
var config = new SqlSugarConfig();
|
||||||
db.Aop.DataExecuting = config.DataExecuting(context.Services);
|
db.Aop.DataExecuting = config.DataExecuting(context.Services);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue