重试、查询权限

master
zhangxiaofeng 5 months ago
parent fbd887e23f
commit 6ecc46ca36

@ -75,7 +75,7 @@ namespace EntrustSettle.Api.Controllers
} }
} }
PageModel<OrderDto> result = await orderService.AsQueryable() PageModel<OrderDto> result = await orderService.AsQueryable()
.WhereIF(input.QueryType != 2, x => x.CompanyId == App.User.CompanyId) .WhereIF(App.User.ID != "d85fd590-d9f6-4410-93a1-f6fac77b606e" && input.QueryType != 2, x => x.CompanyId == App.User.CompanyId)
.WhereIF(!string.IsNullOrWhiteSpace(input.Mblno), x => x.Mblno.Contains(input.Mblno)) .WhereIF(!string.IsNullOrWhiteSpace(input.Mblno), x => x.Mblno.Contains(input.Mblno))
.WhereIF(!string.IsNullOrWhiteSpace(input.CompanyName), x => x.CompanyName.Contains(input.CompanyName)) .WhereIF(!string.IsNullOrWhiteSpace(input.CompanyName), x => x.CompanyName.Contains(input.CompanyName))
.WhereIF(!string.IsNullOrWhiteSpace(input.Remark), x => x.Remark.Contains(input.Remark)) .WhereIF(!string.IsNullOrWhiteSpace(input.Remark), x => x.Remark.Contains(input.Remark))

@ -6,8 +6,8 @@ namespace EntrustSettle.IServices
{ {
public interface IHYDService public interface IHYDService
{ {
Task<long> Submit(HydSubmitDto submitDto); Task<long> Submit(HydSubmitDto submitDto, bool isRetry = true);
Task<List<HydQueryResultDto>> Query(string mblno); Task<List<HydQueryResultDto>> Query(string mblno);
Task<bool> FeedBack(List<HydFeedbackDto> hydFeedbackDtoList); Task<bool> FeedBack(List<HydFeedbackDto> hydFeedbackDtoList, bool isRetry = true);
} }
} }

@ -35,7 +35,7 @@ namespace EntrustSettle.Services
//logger = logFactory.CreateLogger("BigDataLogger"); //logger = logFactory.CreateLogger("BigDataLogger");
this.logger = logger; this.logger = logger;
} }
public async Task<long> Submit(HydSubmitDto submitDto, bool isRetry) public async Task<long> Submit(HydSubmitDto submitDto, bool isRetry = true)
{ {
try try
{ {

Loading…
Cancel
Save