Browse Source

fix: 查询可入库设备bug

caozixuan 1 year ago
parent
commit
c2f312dc74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      sop-business/src/main/resources/mapper/TBDeviceInOutMapper.xml

+ 1 - 1
sop-business/src/main/resources/mapper/TBDeviceInOutMapper.xml

@@ -250,7 +250,7 @@
         LEFT JOIN
             sys_supplier ss ON sd.supplier_id = ss.id
         LEFT JOIN
-            t_b_device_delivery tbdd ON tbdd.serial_no = sd.serial_no
+            t_b_device_delivery tbdd ON tbdd.serial_no = sd.serial_no AND tbdd.effect
         <where>
             IF(tbdd.id IS NULL,
                 TRUE,