diff --git a/WMS-BS/NFine.Application/WMS/BlitemApp.cs b/WMS-BS/NFine.Application/WMS/BlitemApp.cs index 8b2982f..bc2418f 100644 --- a/WMS-BS/NFine.Application/WMS/BlitemApp.cs +++ b/WMS-BS/NFine.Application/WMS/BlitemApp.cs @@ -69,12 +69,11 @@ a.ReplayAmount, a.CheckQuantity, a.CheckAmount - FROM ICSCheck f - LEFT JOIN ICSCheckDetail a ON f.CheckCode=a.CheckCode + FROM ICSCheckDetail a left join ICSInventoryLot c on a.LotNo=c.LotNO and a.WorkPoint=c.WorkPoint left join ICSInventory b on c.InvCode=b.InvCode AND c.WorkPoint=b.WorkPoint left join ICSWareHouseLotInfo d on c.LotNO=d.LotNO AND c.WorkPoint=d.WorkPoint - WHERE f.ID='" + ID + "' and a.WorkPoint in ('" + WorkPoint + "')"; + WHERE a.CheckID='" + ID + "' and a.WorkPoint in ('" + WorkPoint + "')"; return Repository().FindTablePageBySql(sql.ToString(), parameter.ToArray(), ref jqgridparam); }