diff --git a/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.java b/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.java index 5fc4f37c..dd99cc1d 100644 --- a/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.java +++ b/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.java @@ -183,4 +183,12 @@ public interface PlaceMapper { * @return */ Integer findPlaceCoutnByTypeForFlag(Map map); + + + /** + * 查询当前仓库下的托盘 + * @param did + * @return + */ + List findTrayByDepositoryId(Integer did); } diff --git a/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml b/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml index 4b09f514..20bb1ade 100644 --- a/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml +++ b/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml @@ -156,6 +156,16 @@ + + - select DISTINCT x from place where did = #{did} and state != 3 ORDER BY x desc + select DISTINCT x from place where did = #{did} and state != 3 and x is not null ORDER BY x desc + + - select DISTINCT x from place where did = #{did} and state != 3 ORDER BY x desc + select DISTINCT x from place where did = #{did} and state != 3 and x is not null ORDER BY x desc