|
|
@ -312,11 +312,13 @@ public class InjectionIssueRequestAppService : SfsStoreRequestAppServiceBase<Inj |
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet("get-completed-injection-request-count")] |
|
|
|
public async Task<int> GetCountAsync() |
|
|
|
public async Task<long> GetCountAsync() |
|
|
|
{ |
|
|
|
//枚举类型查不到改成SQL查询
|
|
|
|
var query = _repository.GetDbSet().FromSqlRaw(" select * from Store_InjectionIssueRequest where Type='Vision' and RequestStatus<>'Completed'"); |
|
|
|
return await query.CountAsync().ConfigureAwait(false); |
|
|
|
var query =await _repository.GetCountAsync(p => p.RequestStatus != EnumRequestStatus.Completed |
|
|
|
&&p.Type==nameof(EnumIssueType.Vision)).ConfigureAwait(false); |
|
|
|
|
|
|
|
return query; |
|
|
|
} |
|
|
|
|
|
|
|
#endregion
|
|
|
|