Browse Source

封仓查询做过质检的货位

ZeroLiYi 6 months ago
parent
commit
cb58ae6f3a

+ 6 - 4
src/main/java/com/chinaitop/depot/storage/mapper/WarehouseSealingRecordMapper.xml

@@ -219,10 +219,12 @@
219 219
       bw.warehouse_id warehouseId,
220 220
       bw.aisle_id ajid,
221 221
       bua.ajmc
222
-    from data_kcgl_kcsw_default kc
223
-           LEFT JOIN  basic_warehouse bw on kc.hwh = bw.warehouse_id and  bw.del_flag=1
224
-           LEFT JOIN basic_unit_aisle bua ON bw.aisle_id = bua.id
225
-    WHERE
222
+    from 	depot_qh.business_qc_quality_inspection bqqi
223
+              LEFT JOIN  depot_qh.basic_warehouse bw on bqqi.warehouse_id = bw.warehouse_id and  bw.del_flag=1
224
+              LEFT JOIN depot_qh.data_kcgl_kcsw_default kc on bqqi.warehouse_id= kc.hwh
225
+              LEFT JOIN depot_qh.basic_unit_aisle bua ON bw.aisle_id = bua.id
226
+
227
+    WHERE bqqi.jylb='01' and
226 228
      bw.storehouse_id=#{storehouseId}
227 229
   </select>
228 230
   <select id="findkcsw"  parameterType="java.lang.Integer" resultType="com.chinaitop.depot.storage.model.vo.kcswVO">