BUG:模板生成的Page拉口MySQL下出错
This commit is contained in:
parent
1b0aa27e53
commit
67485c6dc7
@ -319,9 +319,9 @@ public class SysCodeGenService : IDynamicApiController, ITransient
|
||||
/// <summary>
|
||||
/// 获取库表信息
|
||||
/// </summary>
|
||||
/// <param name="containSysTable"></param>
|
||||
/// <param name="excludeSysTable">是否排除带SysTable属性的表</param>
|
||||
/// <returns></returns>
|
||||
private async Task<IEnumerable<EntityInfo>> GetEntityInfos(bool containSysTable = false)
|
||||
private async Task<IEnumerable<EntityInfo>> GetEntityInfos(bool excludeSysTable = false)
|
||||
{
|
||||
var types = new List<Type>();
|
||||
if (_codeGenOptions.EntityAssemblyNames != null)
|
||||
@ -357,7 +357,7 @@ public class SysCodeGenService : IDynamicApiController, ITransient
|
||||
foreach (var ct in cosType)
|
||||
{
|
||||
// 若实体贴[SysTable]特性,则禁止显示系统自带的
|
||||
if (containSysTable && ct.IsDefined(typeof(SysTableAttribute), false))
|
||||
if (excludeSysTable && ct.IsDefined(typeof(SysTableAttribute), false))
|
||||
continue;
|
||||
|
||||
var des = ct.GetCustomAttributes(typeof(DescriptionAttribute), false);
|
||||
|
||||
@ -120,7 +120,7 @@ if (@column.QueryWhether == "Y"){
|
||||
@:.Select<@(@Model.ClassName)Output>();
|
||||
}
|
||||
@if(@Model.TableField.Any(x=>x.EffectType == "ForeignKey")){
|
||||
@:return await query.OrderBuilder(input,"[u].","[@(PKName)]").ToPagedListAsync(input.Page, input.PageSize);
|
||||
@:return await query.OrderBuilder(input,"u.","@(PKName)").ToPagedListAsync(input.Page, input.PageSize);
|
||||
} else {
|
||||
@:return await query.OrderBuilder(input).ToPagedListAsync(input.Page, input.PageSize);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user