|
@@ -25,8 +25,8 @@
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id,create_time,create_user,update_time,update_user,parts_no,parts_alias,bom_alias,materialBrandName
|
|
|
- audit_status, parent_id, name, no, status, model, brand, specification, module_id
|
|
|
+ id,create_time,create_user,update_time,update_user,parts_no,parts_alias,bom_alias
|
|
|
+ audit_status, parent_id, name, no, status, model, brand, specification, module_id,materialBrandName,version
|
|
|
</sql>
|
|
|
|
|
|
|
|
@@ -34,10 +34,11 @@
|
|
|
<select id="pageList" parameterType="String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- from (select b.*,m.brand materialBrandName from imcs_b_bom b LEFT JOIN imcs_m_tool_meterial m on b.meterial_id = m.id
|
|
|
+ from (select b.*,m.brand materialBrandName
|
|
|
+ ,bi.version
|
|
|
+ from imcs_b_bom b LEFT JOIN imcs_m_tool_meterial m on b.meterial_id = m.id
|
|
|
+ LEFT JOIN imcs_b_bom_version_info bi on b.id = bi.bom_id and bi.use_status = 1
|
|
|
where 1=1
|
|
|
-
|
|
|
-
|
|
|
) s ${ew.customSqlSegment}
|
|
|
|
|
|
</select>
|