权限名称查询

optimize
wet 2 years ago
parent acf3012238
commit 6bdade7cd8

@ -395,7 +395,7 @@ namespace Myshipping.Application
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpGet("/BookingPrintTemplate/GetPrinttemplateRightList")] [HttpGet("/BookingPrintTemplate/GetPrinttemplateRightList")]
public async Task<dynamic> GetPrinttemplateRightList(long userId, string cateCode, string type) public async Task<dynamic> GetPrinttemplateRightList(long userId, string cateCode, string type,string name)
{ {
var userlist = await _repUser.AsQueryable().Filter(null, true).ToListAsync(); var userlist = await _repUser.AsQueryable().Filter(null, true).ToListAsync();
var list = await _repRight.AsQueryable().InnerJoin<BookingPrintTemplate>((d, t) => d.PrintTemplateId == t.Id && t.TenantId == UserManager.TENANT_ID). var list = await _repRight.AsQueryable().InnerJoin<BookingPrintTemplate>((d, t) => d.PrintTemplateId == t.Id && t.TenantId == UserManager.TENANT_ID).
@ -417,7 +417,7 @@ namespace Myshipping.Application
UserName = "", UserName = "",
}).ToListAsync(); }).ToListAsync();
list = list.WhereIF(!string.IsNullOrWhiteSpace(cateCode), x => x.CateCode == cateCode). list = list.WhereIF(!string.IsNullOrWhiteSpace(cateCode), x => x.CateCode == cateCode).WhereIF(!string.IsNullOrWhiteSpace(name), x => x.DisplayName.StartsWith(name)).
WhereIF(!string.IsNullOrWhiteSpace(type), x => x.Type == type).ToList(); WhereIF(!string.IsNullOrWhiteSpace(type), x => x.Type == type).ToList();
foreach (var item in list) foreach (var item in list)
{ {

@ -5436,7 +5436,7 @@
<param name="body"></param> <param name="body"></param>
<param name="sendTo"></param> <param name="sendTo"></param>
</member> </member>
<member name="M:Myshipping.Core.Helper.NpoiExcelExportHelper.CreateRow(NPOI.SS.UserModel.ISheet,System.Int32,System.Single)"> <member name="M:Myshipping.Core.Helper.NpoiExcelExportHelper.CreateRow(NPOI.SS.UserModel.ISheet,System.Int32)">
<summary> <summary>
TODO:先创建行,然后在创建对应的列 TODO:先创建行,然后在创建对应的列
创建Excel中指定的行 创建Excel中指定的行

Loading…
Cancel
Save