Compare commits
2 Commits
32d79ea23b
...
b0f99b8058
| Author | SHA1 | Date |
|---|---|---|
|
|
b0f99b8058 | |
|
|
5a82cea4b4 |
|
|
@ -47,7 +47,7 @@ public class ExamManager : DomainService, IExamManager
|
||||||
public async Task ExamStudentGather(ExamStudentGatherEto eto)
|
public async Task ExamStudentGather(ExamStudentGatherEto eto)
|
||||||
{
|
{
|
||||||
var penSerial = eto.StudentExamNum;
|
var penSerial = eto.StudentExamNum;
|
||||||
Logger.LogInformation("{ExamSubjectId} {penSerial} 开始收集...", eto.ExamSubjectId, penSerial);
|
Logger.LogInformation($"开始收集... 参数:{JsonConvert.SerializeObject(eto)}");
|
||||||
var guid = GuidGenerator.Create().ToString("N");
|
var guid = GuidGenerator.Create().ToString("N");
|
||||||
|
|
||||||
var templates = await Db.Queryable<GroupBookPaperTemplate>().Where(w => w.BookId == eto.BookId)
|
var templates = await Db.Queryable<GroupBookPaperTemplate>().Where(w => w.BookId == eto.BookId)
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@ public class ExamAppService : DolphinAppService
|
||||||
|
|
||||||
public async Task Test()
|
public async Task Test()
|
||||||
{
|
{
|
||||||
await _examManager.ExamStudentGather(new() { SchoolId = 1, StudentExamNum = "BP2-3G3-07K-BZ", BookId = 528102717276229, ExamSubjectSchoolId = 528066671910982, ExamSubjectId = 528066655817797, LastCollectTime = DateTime.Now });
|
await _examManager.ExamStudentGather(new() { SchoolId = 3, StudentExamNum = "BP2-3G3-07K-C1", BookId = 529493484986437, ExamSubjectSchoolId = 530151338438726, ExamSubjectId = 530151329325125, LastCollectTime = DateTime.Now });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
using Serilog;
|
using Serilog;
|
||||||
using Serilog.Events;
|
using Serilog.Events;
|
||||||
|
|
||||||
namespace Dolphin.ExamPictureCut;
|
namespace Dolphin.ExamPictureCut;
|
||||||
|
|
@ -28,6 +28,7 @@ public class Program
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Log.Information("Starting Dolphin.ExamPictureCut.HttpApi.Host.");
|
Log.Information("Starting Dolphin.ExamPictureCut.HttpApi.Host.");
|
||||||
|
Log.Information("Current Env:" + Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT"));
|
||||||
var builder = WebApplication.CreateBuilder(args);
|
var builder = WebApplication.CreateBuilder(args);
|
||||||
builder.Host.AddAppSettingsSecretsJson()
|
builder.Host.AddAppSettingsSecretsJson()
|
||||||
.UseAutofac()
|
.UseAutofac()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue