修复代码模板service_Service.cs.vm在有联表查询的时候Id不明确的情况
This commit is contained in:
parent
99b911e41c
commit
cae4779670
@ -122,8 +122,8 @@ if (@column.QueryWhether == "Y"){
|
|||||||
} else {
|
} else {
|
||||||
@:.Select<@(@Model.ClassName)Output>();
|
@:.Select<@(@Model.ClassName)Output>();
|
||||||
}
|
}
|
||||||
@if(@Model.TableField.Any(x=>x.EffectType == "ForeignKey")){
|
@if(@Model.TableField.Any(x=>x.EffectType == "ForeignKey"||x.EffectType == "ApiTreeSelector")){
|
||||||
@:return await query.OrderBuilder(input,"[u].","[@(PKName)]").ToPagedListAsync(input.Page, input.PageSize);
|
@:return await query.MergeTable().OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize);
|
||||||
} else {
|
} else {
|
||||||
@:return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize);
|
@:return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user