Compare commits

..

No commits in common. "f1d19ec0f71f0007581ad5d42610a4ac759391a1" and "a95de36734434b85046a6a34a78d7a52f02fe7b7" have entirely different histories.

4 changed files with 14 additions and 58 deletions

View File

@ -35,21 +35,16 @@ jobs:
volumes: volumes:
- /opt/.runner/nuget_packages:/root/.nuget/packages - /opt/.runner/nuget_packages:/root/.nuget/packages
env:
run_cmd: |
cd D:/marking.cut.service/publish
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30000"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30001"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30002"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30003"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30004"
steps: steps:
- name: 下载源码 - name: 下载源码
uses: actions/checkout@v3 uses: actions/checkout@v3
- name: 使用缓存
uses: actions/cache@master
with:
mount: |
node_modules
- name: 编译后端 - name: 编译后端
uses: actions/aspnet@8.0 uses: actions/aspnet@8.0
with: with:
@ -89,12 +84,7 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz tar -zxvf marking.cut.service.tar.gz
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2" curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 启动生产环境106 - name: 启动生产环境106
uses: docker://appleboy/drone-ssh uses: docker://appleboy/drone-ssh
@ -111,12 +101,7 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz tar -zxvf marking.cut.service.tar.gz
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2" curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 发送构建通知 - name: 发送构建通知
if: ${{ always() }} if: ${{ always() }}

View File

@ -22,17 +22,6 @@ jobs:
volumes: volumes:
- /opt/.runner/nuget_packages:/root/.nuget/packages - /opt/.runner/nuget_packages:/root/.nuget/packages
env:
run_cmd: |
cd D:/marking.cut.service/publish
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30000"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30001"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30002"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30003"
start dotnet Dolphin.ExamPictureCut.HttpApi.Host.dll --URLS="http://*:30004"
steps: steps:
- name: 下载源码 - name: 下载源码
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -86,12 +75,7 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz tar -zxvf marking.cut.service.tar.gz
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2" curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 启动生产环境106 - name: 启动生产环境106
uses: docker://appleboy/drone-ssh uses: docker://appleboy/drone-ssh
@ -108,12 +92,7 @@ jobs:
rm -rf marking.cut.service.tar.gz rm -rf marking.cut.service.tar.gz
curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz curl -O https://static.w.23544.com:8843/marking/marking.cut.service.tar.gz
tar -zxvf marking.cut.service.tar.gz tar -zxvf marking.cut.service.tar.gz
# curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2" curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/Dolphin.ExamPictureCut.HttpApi.Host.exe&count=2"
echo "${{ env.run_cmd }}"
echo "${{ env.run_cmd }}"> publish/run.cmd
curl "http://localhost:5244/publish/run?execPath=D:/marking.cut.service/publish/run.cmd&count=2"
- name: 发送构建通知 - name: 发送构建通知
if: ${{ always() }} if: ${{ always() }}

View File

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

View File

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