¶Ô±ÈÐÂÎļþ |
| | |
| | | using Admin.NET.Core.Service; |
| | | using Admin.NET.Application.Entity; |
| | | using Microsoft.AspNetCore.Http; |
| | | using System.Data; |
| | | using System.Web; |
| | | using System.Text; |
| | | using DocumentFormat.OpenXml.Office.CustomUI; |
| | | using Microsoft.CodeAnalysis.Operations; |
| | | using Admin.NET.Application.Service.WmsTask.WmsRbLineTask.Dto; |
| | | |
| | | namespace Admin.NET.Application; |
| | | /// <summary> |
| | | /// éç¨æ¥è¯¢æå¡ |
| | | /// </summary> |
| | | [ApiDescriptionSettings(ApplicationConst.WmsCommonnQueryGroupName, Order = 100)] |
| | | public class WmsCommonnQueryService : IDynamicApiController, ITransient |
| | | { |
| | | private readonly SqlSugarRepository<WmsRbLineTask> _rep; |
| | | private readonly SqlSugarRepository<WmsStockQuan> _wmsStockQuanRep; |
| | | private readonly SqlSugarRepository<Mes_Package_Gather> _mesPackageGatherRep; |
| | | private readonly SqlSugarRepository<SysConfig> _sysConfigRep; |
| | | private readonly SqlSugarRepository<Mes_BatchOrderUPI_New> _mesBatchOrderUpiRep; |
| | | private readonly SqlSugarRepository<Mes_Order_Gather> _mesOrderGatherRep; |
| | | |
| | | public WmsCommonnQueryService(SqlSugarRepository<WmsRbLineTask> rep, SqlSugarRepository<WmsStockQuan> wmsStockQuanRep |
| | | , SqlSugarRepository<Mes_Package_Gather> mesPackageGatherRep |
| | | , SqlSugarRepository<SysConfig> sysConfigRep |
| | | , SqlSugarRepository<Mes_BatchOrderUPI_New> mesBatchOrderUpiRep |
| | | , SqlSugarRepository<Mes_Order_Gather> mesOrderGatherRep |
| | | ) |
| | | { |
| | | _sysConfigRep = sysConfigRep; |
| | | _mesPackageGatherRep = mesPackageGatherRep; |
| | | _rep = rep; |
| | | _wmsStockQuanRep = wmsStockQuanRep; |
| | | _mesBatchOrderUpiRep = mesBatchOrderUpiRep; |
| | | _mesOrderGatherRep = mesOrderGatherRep; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// æ¥è¯¢ä¸é½å¥åæ® |
| | | /// </summary> |
| | | /// <param name="input"></param> |
| | | /// <returns></returns> |
| | | [HttpGet] |
| | | [ApiDescriptionSettings(Name = "QueryNoKittingList")] |
| | | [Description("WmsCommonnQuery/QueryNoKittingList")] |
| | | public async Task<List<Mes_Order_Gather>> QueryNoKittingList([FromQuery] KittingListInput input) |
| | | { |
| | | var list = await _mesOrderGatherRep.AsQueryable() |
| | | .WhereIF(!string.IsNullOrWhiteSpace(input.Info5), u => u.Info5.Contains(input.Info5.Trim())) |
| | | .WhereIF(!string.IsNullOrWhiteSpace(input.Info5), u => u.Info5.Contains(input.Info5.Trim())) |
| | | .Where(x => ((DateTime)x.CreateTime).ToString("yyyyMMdd") == DateTime.Now.ToString("yyyyMMdd")) |
| | | .Where(x => x.IsKitting == false) |
| | | .OrderBy(g => g.Id) |
| | | .ToListAsync(); // ç¡®ä¿è·åç»æä¸º List |
| | | |
| | | return list; // ç»æ |
| | | } |
| | | } |
| | | |