From cd976a076f2357e6705952dee7f0af3031fc0dfa Mon Sep 17 00:00:00 2001 From: erdanergou Date: Fri, 3 Mar 2023 14:41:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=89=98=E7=9B=98=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../depository_manage/mapper/PlaceMapper.java | 8 +++ .../depository_manage/mapper/PlaceMapper.xml | 14 ++++- .../service/impl/DepositoryServiceImpl.java | 38 ++++++++++-- .../depository_manage/TestOther.java | 62 ------------------- .../depository_manage/mapper/PlaceMapper.xml | 14 ++++- 5 files changed, 65 insertions(+), 71 deletions(-) delete mode 100644 src/test/java/com/dreamchaser/depository_manage/TestOther.java 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