This commit is contained in:
sxu 2023-12-04 13:05:55 +08:00
parent 3185c5d3e9
commit 4291dd51d4
2 changed files with 3 additions and 1 deletions

View File

@ -10,4 +10,5 @@ import lombok.ToString;
public class DevInfoVo extends DevInfo {
private long parentId;
private String typeName;
private String companyName;
}

View File

@ -37,9 +37,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</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 d.*,t.type_name
select d.*,t.type_name,c.company_name
from ma_dev_info d
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>
<if test="maId != null "> and d.ma_id = #{maId}</if>
<if test="code != null and code != ''"> and d.code = #{code}</if>