feat: 一些优化
This commit is contained in:
parent
118a14831d
commit
a5ab1f9538
|
|
@ -102,12 +102,10 @@
|
|||
</select>
|
||||
|
||||
<select id="getInfo" resultType="com.nflg.wms.common.pojo.vo.StorageVO">
|
||||
SELECT
|
||||
s.*,
|
||||
wh.no AS "warehouseNo",
|
||||
get_binnos(s.id) AS "binNos"
|
||||
SELECT s.*,wh.no AS "warehouseNo",get_binnos(s.id) AS "binNos",di.code AS "factory_no"
|
||||
FROM wms_storage s
|
||||
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}
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue