refactor(UserJournal): 优化期刊绑定逻辑并完善校验
1. 重构用户查询逻辑,增加未删除过滤 2. 将枚举常量提取复用,统一状态判断 3. 新增数据库事务包裹绑定操作 4. 增加重复绑定同一期刊的校验逻辑 5. 统一绑定时间变量复用 6. 完善更新条件,增加期刊ID和状态校验
This commit is contained in:
@ -22,4 +22,10 @@
|
||||
<PackageReference Include="Yitter.IdGenerator" Version="1.0.14" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Update="Dockerfile">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
13
QYZH.InteractiveMagazine.WorkService/dotnet-tools.json
Normal file
13
QYZH.InteractiveMagazine.WorkService/dotnet-tools.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"version": 1,
|
||||
"isRoot": true,
|
||||
"tools": {
|
||||
"dotnet-ef": {
|
||||
"version": "10.0.9",
|
||||
"commands": [
|
||||
"dotnet-ef"
|
||||
],
|
||||
"rollForward": false
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user