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 5db040f4..4b09f514 100644 --- a/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml +++ b/src/main/java/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml @@ -86,6 +86,7 @@ and ( p.did = #{did} or p.did = 0) + and p.state != 3 @@ -193,14 +196,14 @@ SELECT - FROM materialandplace mp left join place p on p.id = mp.pid WHERE 1 = 1 and p.id = #{id} + FROM materialandplace mp left join place p on p.id = mp.pid WHERE 1 = 1 and p.id = #{id} and p.state != 3 @@ -234,12 +237,13 @@ and mp.pid = #{pid} + and p.state != 3 @@ -382,6 +386,7 @@ and did = #{did} + \ No newline at end of file diff --git a/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml b/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml index 5db040f4..4b09f514 100644 --- a/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml +++ b/target/classes/com/dreamchaser/depository_manage/mapper/PlaceMapper.xml @@ -86,6 +86,7 @@ and ( p.did = #{did} or p.did = 0) + and p.state != 3 @@ -193,14 +196,14 @@ SELECT - FROM materialandplace mp left join place p on p.id = mp.pid WHERE 1 = 1 and p.id = #{id} + FROM materialandplace mp left join place p on p.id = mp.pid WHERE 1 = 1 and p.id = #{id} and p.state != 3 @@ -234,12 +237,13 @@ and mp.pid = #{pid} + and p.state != 3 @@ -382,6 +386,7 @@ and did = #{did} + \ No newline at end of file