获取vmodel详情时钻取导航属性的模型

This commit is contained in:
2023-09-22 16:53:06 +08:00
parent 6f2d70725f
commit 712501c0e8
2 changed files with 2 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ public class VmodelAppService : VengineAppService<Vmodel>, IVmodelAppService
Vmodel vm = input.data.Adapt<Vmodel>();
vm.areaCode = vm.areaCode.ToKebab();
vm.vmCode = vm.vmCode.ToKebab();
vm.navProps.ForEach(a => a.naviModel = null);
await _db.Updateable(vm).WhereColumns(a => a.id).ExecuteCommandAsync();
return input;
}