using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.Linq; using System.Linq.Dynamic.Core; using System.Threading.Tasks; using Volo.Abp.Application.Dtos; using Volo.Abp.Domain.Repositories; using Business.Models; using Microsoft.AspNetCore.Authorization; using Business.Permissions; using XCZ; using Business.ResourceExamineManagement.Dto; using Bussiness.Model.MES.IC; using AutoMapper.Internal.Mappers; namespace Business.ResourceExamineManagement { public class ResourceExamineAppService : IResourceExamineAppService { private IRepository _ic_item; private IRepository _ic_bom; public ResourceExamineAppService( IRepository icitem, IRepository icbom ) { _ic_item = icitem; _ic_bom = icbom; } /// /// 资源检查 /// /// /// /// public Task ReceiveResult(SeorderentryDto input) { throw new NotImplementedException(); } /// /// BOM预处理 /// /// Bom主键 /// 需要数量 public async Task BomPretreatmentAsync(long? BomId, int Quantity) { if (BomId == null) { //throw new bu } var query = (await _ic_bom.GetQueryableAsync()).WhereIf(true, a => a.bom_id == BomId).ToList(); } } }