/// <summary>
        /// 获取inv的分页列表信息
        ///</summary>
        /// <param name="input"></param>
        /// <returns></returns>
        //[AbpAuthorize(invPermissions.Query)]
        public async Task <PagedResultDto <invListDto> > GetPaged(GetinvsInput input)
        {
            var query = _entityRepository.GetAll();
            // TODO:根据传入的参数添加过滤条件


            var count = await query.CountAsync();

            var entityList = await query
                             .OrderBy(input.Sorting).AsNoTracking()
                             .PageBy(input)
                             .ToListAsync();

            // var entityListDtos = ObjectMapper.Map<List<invListDto>>(entityList);
            var entityListDtos = entityList.MapTo <List <invListDto> >();

            return(new PagedResultDto <invListDto>(count, entityListDtos));
        }
        /// <summary>
        /// 按TagNumber 获取外箱标的 订单信息
        ///</summary>
        /// <param name="input"></param>
        /// <returns></returns>
        //[AbpAuthorize(invPermissions.Query)]
        public async Task <PagedResultDto <invListDto> > GetInvByTagNumbers(GetinvsInput input)
        {
            var query = _entityRepository.GetAll().AsNoTracking()
                        .WhereIf(!input.FilterText.IsNullOrWhiteSpace(), a => a.TagNumber.Contains(input.FilterText));


            var count = await query.CountAsync();

            var entityList = await query
                             .OrderBy(a => a.Scantime)

                             //.OrderBy(input.Sorting).AsNoTracking()
                             //.PageBy(input)
                             .ToListAsync();

            var entityListDtos = entityList.MapTo <List <invListDto> >();

            return(new PagedResultDto <invListDto>(count, entityListDtos));
        }