fix: 🐛 编译错误 (#336)

[skip ci]

Co-authored-by: tk <fiyne1a@dingtalk.com>
This commit is contained in:
2025-07-09 09:44:58 +08:00
committed by GitHub
parent d01ead8283
commit 3f4f547338

View File

@ -65,7 +65,7 @@ public sealed class CodeTemplateService(BasicRepository<Sys_CodeTemplate, long>
{
req.ThrowIfInvalid();
#if DBTYPE_SQLSERVER
return (await UpdateReturnListAsync(req).ConfigureAwait(false)).FirstOrDefault()?.Adapt<QueryExampleRsp>();
return (await UpdateReturnListAsync(req).ConfigureAwait(false)).FirstOrDefault()?.Adapt<QueryCodeTemplateRsp>();
#else
return await UpdateAsync(req).ConfigureAwait(false) > 0
? await GetAsync(new QueryCodeTemplateReq { Id = req.Id }).ConfigureAwait(false)