Compare commits

..

No commits in common. "b0f99b80588f43316505768a7d6fc532de20c6e9" and "32d79ea23b7d35c0c4e49d3c7315fb2827751715" have entirely different histories.

3 changed files with 3 additions and 4 deletions

View File

@ -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($"开始收集... 参数:{JsonConvert.SerializeObject(eto)}"); Logger.LogInformation("{ExamSubjectId} {penSerial} 开始收集...", eto.ExamSubjectId, penSerial);
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)

View File

@ -12,6 +12,6 @@ public class ExamAppService : DolphinAppService
public async Task Test() public async Task Test()
{ {
await _examManager.ExamStudentGather(new() { SchoolId = 3, StudentExamNum = "BP2-3G3-07K-C1", BookId = 529493484986437, ExamSubjectSchoolId = 530151338438726, ExamSubjectId = 530151329325125, LastCollectTime = DateTime.Now }); await _examManager.ExamStudentGather(new() { SchoolId = 1, StudentExamNum = "BP2-3G3-07K-BZ", BookId = 528102717276229, ExamSubjectSchoolId = 528066671910982, ExamSubjectId = 528066655817797, LastCollectTime = DateTime.Now });
} }
} }

View File

@ -1,4 +1,4 @@
using Serilog; using Serilog;
using Serilog.Events; using Serilog.Events;
namespace Dolphin.ExamPictureCut; namespace Dolphin.ExamPictureCut;
@ -28,7 +28,6 @@ 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()