-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
版本信息:
linux amd
net 8.0
Microsoft.EntityFrameworkCore.Dm 8.0.0.27767
public async Task<ActionResult> DeleteTemplates([FromQuery] List<int> ids) { var dbcontext = DBHelper.GetDbContext(); var templates = await dbcontext.IndexTemplateV2.Where(f => ids.Contains(f.Id)).ToListAsync(); }
通过日志发现前端传入的是id=12,但是实际执行的是id=11,11是我重启服务后第一次调用的id
总结就是不论传什么值,总是执行的是docker重启后第一个操作的id,后面不管再传任何id都只查询第一次的id
Metadata
Metadata
Assignees
Labels
No labels
