fix
This commit is contained in:
parent
3185c5d3e9
commit
4291dd51d4
|
|
@ -10,4 +10,5 @@ import lombok.ToString;
|
||||||
public class DevInfoVo extends DevInfo {
|
public class DevInfoVo extends DevInfo {
|
||||||
private long parentId;
|
private long parentId;
|
||||||
private String typeName;
|
private String typeName;
|
||||||
|
private String companyName;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,9 +37,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
</sql>
|
</sql>
|
||||||
|
|
||||||
<select id="selectDevInfoList" parameterType="com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo" resultType="com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo">
|
<select id="selectDevInfoList" parameterType="com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo" resultType="com.bonus.zlpt.common.core.domain.equip.vo.DevInfoVo">
|
||||||
select d.*,t.type_name
|
select d.*,t.type_name,c.company_name
|
||||||
from ma_dev_info d
|
from ma_dev_info d
|
||||||
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 bm_company_info c on d.own_co = c.company_id
|
||||||
<where>
|
<where>
|
||||||
<if test="maId != null "> and d.ma_id = #{maId}</if>
|
<if test="maId != null "> and d.ma_id = #{maId}</if>
|
||||||
<if test="code != null and code != ''"> and d.code = #{code}</if>
|
<if test="code != null and code != ''"> and d.code = #{code}</if>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue