fix
This commit is contained in:
parent
e0fc056b1c
commit
7b1655172a
|
|
@ -243,8 +243,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
|
|
||||||
<select id="selectDevInfoByMaId" parameterType="Long" resultType="com.bonus.zlpt.equip.api.domain.vo.DevInfoVo">
|
<select id="selectDevInfoByMaId" parameterType="Long" resultType="com.bonus.zlpt.equip.api.domain.vo.DevInfoVo">
|
||||||
select d.*,c.company_name,c.create_time as company_create_time,c.logo_url as company_logo_url,
|
select d.*,c.company_name,c.create_time as company_create_time,c.logo_url as company_logo_url,
|
||||||
c.auth_phone,ty.type_name as device_name,
|
c.auth_phone, mt1.type_name as device_name,
|
||||||
ty.parent_name as group_name,ty.grandpa_name as type_name,
|
mt2.type_name as group_name, mt3.type_name as type_name,
|
||||||
col.id as collect_id, up.status as is_audit,h.search_num
|
col.id as collect_id, up.status as is_audit,h.search_num
|
||||||
from ma_dev_info d
|
from ma_dev_info d
|
||||||
left join bm_company_info c on d.own_co = c.company_id
|
left join bm_company_info c on d.own_co = c.company_id
|
||||||
|
|
@ -252,13 +252,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
left join ma_up_off up on d.ma_id = up.ma_id
|
left join ma_up_off up on d.ma_id = up.ma_id
|
||||||
left join ma_hot_search h on d.ma_id = h.ma_id
|
left join ma_hot_search h on d.ma_id = h.ma_id
|
||||||
left join ma_type_info t on d.type_id = t.type_id
|
left join ma_type_info t on d.type_id = t.type_id
|
||||||
left join (
|
left join ma_type_info mt1 on d.type_id = mt1.type_id
|
||||||
select tt.*, pp.type_name as grandpa_name from
|
left join ma_type_info mt2 on mt1.parent_id = mt2.type_id
|
||||||
(select t.*, p.type_name as parent_name,p.type_id as p_type_id, p.parent_id as p_parent_id
|
left join ma_type_info mt3 on mt2.parent_id = mt3.type_id
|
||||||
from ma_type_info t
|
|
||||||
left join ma_type_info p on t.parent_id=p.type_id) tt
|
|
||||||
left join ma_type_info pp on tt.p_parent_id = pp.type_id
|
|
||||||
) ty on d.type_id=ty.type_id
|
|
||||||
where d.ma_id = #{maId} and d.is_active='1'
|
where d.ma_id = #{maId} and d.is_active='1'
|
||||||
</select>
|
</select>
|
||||||
<!-- <select id="selectDevInfoByMaId" parameterType="Long" resultType="com.bonus.zlpt.equip.api.domain.vo.DevInfoVo">-->
|
<!-- <select id="selectDevInfoByMaId" parameterType="Long" resultType="com.bonus.zlpt.equip.api.domain.vo.DevInfoVo">-->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue