仓库机具关联优化
This commit is contained in:
parent
bc3e0a06bf
commit
83da73af7a
|
|
@ -115,12 +115,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
|
||||
<select id="selectListByMaType" resultMap="WhHouseSetResult">
|
||||
SELECT
|
||||
mhs.house_id, mhs.type_id, mhs.ma_id, mhs.num, mhs.status, mhs.dept_id, mhs.del_flag,
|
||||
mhi.house_id, mhs.type_id, mhs.ma_id, mhs.num, mhs.status, mhs.dept_id, mhs.del_flag,
|
||||
mhs.create_by, mhs.create_time, mhs.update_by,mhs.update_time,mhs.remark,mhs.company_id,mhi.house_name
|
||||
from wh_house_set mhs
|
||||
left join ma_type mt on mt.type_id = mhs.type_id
|
||||
left join ma_type mt1 on mt.parent_id = mt1.type_id
|
||||
left join ma_type mt2 on mt1.parent_id = mt2.type_id
|
||||
left join wh_house_info mhi on mhs.house_id = mhi.house_id
|
||||
right join wh_house_info mhi on mhs.house_id = mhi.house_id
|
||||
</select>
|
||||
</mapper>
|
||||
Loading…
Reference in New Issue