| | |
| | | if (string.IsNullOrEmpty(query.sectionCode)) |
| | | throw new Exception("请扫库位条码!"); |
| | | |
| | | var mesDepotSections = Db.Queryable<MesDepotSections, MesDepots>( |
| | | (a, b) => |
| | | new JoinQueryInfos(JoinType.Inner, a.DepotId == b.DepotId)) |
| | | var mesDepotSections = Db |
| | | .Queryable<MesDepotSections, MesDepots>((a, b) => |
| | | new JoinQueryInfos(JoinType.Inner, a.DepotId == b.DepotId)) |
| | | .Where((a, b) => a.DepotSectionCode == query.sectionCode) |
| | | .Select((a, b) => new MesDepotSections |
| | | { |
| | |
| | | if (string.IsNullOrEmpty(entity.sectionCode)) |
| | | throw new Exception("请扫库位条码!"); |
| | | |
| | | var mesDepotSections = Db.Queryable<MesDepotSections, MesDepots>( |
| | | (a, b) => |
| | | new JoinQueryInfos(JoinType.Inner, |
| | | a.Zuid.ToString() == b.Zuid)) |
| | | var mesDepotSections = Db |
| | | .Queryable<MesDepotSections, MesDepots>((a, b) => |
| | | new JoinQueryInfos(JoinType.Inner, |
| | | a.Zuid.ToString() == b.Zuid)) |
| | | .Where((a, b) => a.DepotSectionCode == entity.sectionCode) |
| | | .First(); |
| | | if (mesDepotSections == null) |