Compare commits

..

No commits in common. "78b5698129510992dc7dfdb71460615dc0b89960" and "e7c1d61009f134f0b1926aee6b572971aa13d2cb" have entirely different histories.

1 changed files with 3 additions and 2 deletions

View File

@ -3,10 +3,11 @@
<mapper namespace="com.nflg.wms.repository.mapper.WmsInventoryMapper">
<select id="search" resultType="com.nflg.wms.common.pojo.vo.InventoryVO">
SELECT i."id",i.material_no,i.factory_no,i.warehouse_no,i.num,i.create_by,i.create_time,i.batch_number
SELECT i.*,get_binnos(s.id) AS "bin_nos"
FROM wms_inventory i
LEFT JOIN dictionary_item di ON di."value"=i.factory_no
LEFT JOIN wms_warehouse wh ON wh.factory_id=di."id" and i.warehouse_no=wh.no
LEFT JOIN wms_warehouse wh ON wh.factory_id=di."id"
LEFT JOIN wms_storage s ON i.material_no=s.material_no and wh."id"=s.warehouse_id
<where>
<if test="request.materialNo != null and request.materialNo!=''">
AND i.material_no=#{request.materialNo}