|
|
@@ -17,11 +17,11 @@ public interface InvwWarehouseRepo extends AbstractJpaRepo<InvwWarehouse, String |
|
|
|
InvwWarehouse findByCodeAndStatus(String code, Integer status); |
|
|
|
|
|
|
|
//查询父级仓库 |
|
|
|
@Query(value = "from InvwWarehouse where id = ?1 and status = ?2") |
|
|
|
@Query(value = "from InvwWarehouse where id = ?1 and status = ?2 order by code, insertTime ") |
|
|
|
List<InvwWarehouse> findParByParentIdAndStatus(String parentId, Integer status); |
|
|
|
|
|
|
|
//查询同级仓库 |
|
|
|
@Query(value = "from InvwWarehouse where parentId = ?1 and status = ?2") |
|
|
|
@Query(value = "from InvwWarehouse where parentId = ?1 and status = ?2 order by code, insertTime ") |
|
|
|
List<InvwWarehouse> findBroByParentIdAndStatus(String parentId, Integer status); |
|
|
|
|
|
|
|
//查询子级仓库 |
|
|
@@ -29,22 +29,22 @@ public interface InvwWarehouseRepo extends AbstractJpaRepo<InvwWarehouse, String |
|
|
|
List<InvwWarehouse> findChiByIdAndStatus(String id, Integer status); |
|
|
|
|
|
|
|
//查询父、同级仓库 |
|
|
|
@Query(value = "from InvwWarehouse where parentId = ?1 or id = ?1 and status = ?2") |
|
|
|
@Query(value = "from InvwWarehouse where parentId = ?1 or id = ?1 and status = ?2 order by code, insertTime ") |
|
|
|
List<InvwWarehouse> findParBroByParentId(String parentId, Integer status); |
|
|
|
|
|
|
|
//查询同、子级仓库 |
|
|
|
@Query(value = "from InvwWarehouse where parentId = ?1 or parentId = ?2 and status = ?3") |
|
|
|
@Query(value = "from InvwWarehouse where parentId = ?1 or parentId = ?2 and status = ?3 order by code, insertTime ") |
|
|
|
List<InvwWarehouse> findBroChiByParentIdOrId(String parentId, String id, Integer status); |
|
|
|
|
|
|
|
//查询父、子级仓库 |
|
|
|
@Query(value = "from InvwWarehouse where id = ?1 or parentId = ?2 and status = ?3") |
|
|
|
@Query(value = "from InvwWarehouse where id = ?1 or parentId = ?2 and status = ?3 order by code, insertTime ") |
|
|
|
List<InvwWarehouse> findParChiByParentIdOrId(String parentId, String id, Integer status); |
|
|
|
|
|
|
|
//查询父兄子 |
|
|
|
@Query(value = "from InvwWarehouse where id = ?1 or parentId = ?2 or id = ?2 and status = ?3") |
|
|
|
@Query(value = "from InvwWarehouse where id = ?1 or parentId = ?2 or id = ?2 and status = ?3 order by code, insertTime ") |
|
|
|
List<InvwWarehouse> findParBroChiByParentIdOrId(String parentId, String id, Integer status); |
|
|
|
|
|
|
|
//查询所有仓库 |
|
|
|
@Query(value = "from InvwWarehouse where status = ?1") |
|
|
|
@Query(value = "from InvwWarehouse where status = ?1 order by code, insertTime ") |
|
|
|
List<InvwWarehouse> findAllByStatus(Integer status); |
|
|
|
} |