feat: 一些优化

This commit is contained in:
曹鹏飞 2025-10-21 18:10:22 +08:00
parent 118a14831d
commit a5ab1f9538
1 changed files with 2 additions and 4 deletions

View File

@ -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>