Compare commits

..

9 Commits

Author SHA1 Message Date
yangqiang f1d19ec0f7 Merge pull request 'dev' (#11) from dev into staging
部署到测试环境 / 编译发布 (push) Successful in 2m47s Details
Reviewed-on: #11
2024-03-29 18:10:03 +08:00
lyndonliu c67424492a fix: 查了再删
部署到开发环境 / 编译发布 (push) Successful in 3m39s Details
2024-03-29 18:05:49 +08:00
qxa f49825066a Merge pull request '修改启动cmd脚本' (#10) from dev into master
部署生产环境 / 发布版本 (push) Successful in 38s Details
部署生产环境 / 编译发布 (push) Successful in 2m17s Details
Reviewed-on: #10
2024-03-29 17:19:03 +08:00
qxa 23ac9dbd97 修改启动cmd脚本
部署到开发环境 / 编译发布 (push) Successful in 3m28s Details
2024-03-29 17:17:52 +08:00
qxa 8eac8de403 Merge pull request '修改发布脚本' (#9) from dev into master
部署生产环境 / 发布版本 (push) Successful in 31s Details
部署生产环境 / 编译发布 (push) Successful in 6m18s Details
Reviewed-on: #9
2024-03-29 16:58:59 +08:00
qxa f92a509183 修改发布脚本
部署到开发环境 / 编译发布 (push) Successful in 3m42s Details
2024-03-29 16:58:37 +08:00
qxa e913a8a0d6 Merge pull request 'dev' (#8) from dev into master
部署生产环境 / 发布版本 (push) Successful in 15s Details
部署生产环境 / 编译发布 (push) Successful in 5m34s Details
Reviewed-on: #8
2024-03-29 16:24:40 +08:00
qxa 9218e69daa Merge pull request 'dev' (#6) from dev into master
部署生产环境 / 发布版本 (push) Successful in 46s Details
部署生产环境 / 编译发布 (push) Failing after 28s Details
Reviewed-on: #6
2024-03-29 15:51:54 +08:00
qxa fe390527ce Merge pull request 'staging' (#5) from staging into master
Reviewed-on: #5
2024-03-29 15:34:54 +08:00
4 changed files with 58 additions and 14 deletions

View File

@ -35,16 +35,21 @@ 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:
@ -84,7 +89,12 @@ 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
@ -101,7 +111,12 @@ 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,6 +22,17 @@ 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
@ -75,7 +86,12 @@ 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
@ -92,7 +108,12 @@ 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

@ -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,11 +413,19 @@ dotPenOriginalImg:
await DbBiz.BeginTranAsync(); await DbBiz.BeginTranAsync();
// 删除 // 删除
await DbBiz.Deleteable<MkExamResult>().Where(w => w.ExamSubjectId == eto.ExamSubjectId && w.StudentNo == penSerial).ExecuteCommandAsync(); var delObjectiveIds = await DbBiz.Queryable<MkExamResult>()
.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 => w.ExamSubjectId == eto.ExamSubjectId && w.StudentExamNum == penSerial && w.IsDeleted == false) .Where(w => delSubjectiveIds.Contains(w.Id))
.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);