feat: 一些优化
This commit is contained in:
parent
118a14831d
commit
a5ab1f9538
|
|
@ -102,12 +102,10 @@
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="getInfo" resultType="com.nflg.wms.common.pojo.vo.StorageVO">
|
<select id="getInfo" resultType="com.nflg.wms.common.pojo.vo.StorageVO">
|
||||||
SELECT
|
SELECT s.*,wh.no AS "warehouseNo",get_binnos(s.id) AS "binNos",di.code AS "factory_no"
|
||||||
s.*,
|
|
||||||
wh.no AS "warehouseNo",
|
|
||||||
get_binnos(s.id) AS "binNos"
|
|
||||||
FROM wms_storage s
|
FROM wms_storage s
|
||||||
LEFT JOIN wms_warehouse wh ON s.warehouse_id = wh.id
|
LEFT JOIN wms_warehouse wh ON s.warehouse_id = wh.id
|
||||||
|
left join dictionary_item di on wh.factory_id = di."id"
|
||||||
where s.id = #{id}
|
where s.id = #{id}
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue