| | |
| | | using Furion.DatabaseAccessor; |
| | | using Furion.FriendlyException; |
| | | using iWare.Wms.Core.Util; |
| | | using iWare.Wms.Core; |
| | | using Mapster; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Furion.DependencyInjection; |
| | | using Furion.DynamicApiController; |
| | | using System.Text; |
| | | using Furion.FriendlyException; |
| | | using iWare.Wms.Core; |
| | | using iWare.Wms.Core.Enum; |
| | | using iWare.Wms.Core.Util; |
| | | using Mapster; |
| | | using Microsoft.AspNetCore.Authorization; |
| | | using Microsoft.AspNetCore.Mvc; |
| | | using Microsoft.EntityFrameworkCore; |
| | | using Microsoft.EntityFrameworkCore.Internal; |
| | | using System.Text; |
| | | |
| | | namespace iWare.Wms.Application.Service.Pda |
| | | { |
| | |
| | | { |
| | | var workPieceProcesss = await _workPieceProcessRep.DetachedEntities |
| | | .Join(_equipmentBaseInfoRep.DetachedEntities, a => a.EquipmentID, b => b.EquipmentId, (a, b) => new { a, b }) |
| | | // æ°å¢ Left Join å° _workPieceInfo 表 |
| | | .Join(_workPieceInfoRep.DetachedEntities, |
| | | temp => temp.a.WorkPieceID, // 使ç¨ä¹å Join ç»æç a.WorkPieceID |
| | | c => c.WorkPieceID, // _workPieceInfo 表ç WorkPieceID |
| | | (temp, c) => new { temp.a, temp.b, workPieceInfo = c }) // å建æ°çå¿åç±»åå
å«ä¸ä¸ªå®ä½ |
| | | |
| | | .Where(!string.IsNullOrEmpty(input.WorkPieceID), u => u.a.WorkPieceID.Equals(input.WorkPieceID)) |
| | | .Where(o => !string.IsNullOrEmpty(o.a.WorkPieceID)) |
| | | .Select(s => new WorkPieceProcessOutput |
| | |
| | | UpdatedUserName = s.a.UpdatedUserName, |
| | | |
| | | WorkPieceID = s.a.WorkPieceID, |
| | | OP80NewCode = s.workPieceInfo.OP80NewCode,//æåç |
| | | |
| | | WorkingProcedureCurrent = s.a.WorkingProcedureCurrent, |
| | | EquipmentID = s.a.EquipmentID, |
| | | EquipmentName = s.b.EquipmentName, |