cnf
2025-11-26 5a48f78f03014647767be11e56d62719ec4631fa
service/Warehouse/MesItemBlManager.cs
@@ -21,12 +21,13 @@
    public List<string> GetSCBLBillNo(WarehouseQuery query)
    {
        var list = Db.Queryable<MesItemBl>()
            .Where(s => (s.Bl018 ?? false) == true
                        //&& (s.Bl019 ?? false) == false
                        && s.Bl008 == query.Type)
            .OrderByDescending(s => s.Bl006)
            .Select(s => s.BlNo)
            .ToList();
      .Where(s => (s.Bl018 ?? false) == true
                  && s.Bl008 == query.Type
                  && (s.complete ?? 0) == 0)
      .Where(@"EXISTS (SELECT 1 FROM MES_ITEM_BL_DETAIL WHERE mid = Id AND bld007 > bld008)")
      .OrderByDescending(s => s.Bl006)
      .Select(s => s.BlNo)
      .ToList();
        return list;
    }
@@ -1177,11 +1178,13 @@
    public List<string> GetSccList(WarehouseQuery query)
    {
        var list = Db.Queryable<MesItemBl>()
            .Where(s => (s.Bl018 ?? false) == true
                        && (s.Bl019 ?? false) == false
                        && s.Bl008 == query.Type)
            .Select(s => s.BlNo)
            .ToList();
     .Where(s => (s.Bl018 ?? false) == true
                 && s.Bl008 == query.Type
                 && (s.complete ?? 0) == 0)
     .Where(@"EXISTS (SELECT 1 FROM MES_ITEM_BL_DETAIL WHERE mid = Id AND bld007 > bld008)")
     .OrderByDescending(s => s.Bl006)
     .Select(s => s.BlNo)
     .ToList();
        return list;
    }