|
@@ -19,14 +19,17 @@
|
|
|
<result column="specification" jdbcType="VARCHAR" property="specification"/>
|
|
|
<result column="module_id" jdbcType="BIGINT" property="moduleId"/>
|
|
|
<result column="parts_no" jdbcType="VARCHAR" property="partsNo"/>
|
|
|
+ <result column="batch_no" jdbcType="VARCHAR" property="batchNo"/>
|
|
|
<result column="parts_alias" jdbcType="VARCHAR" property="partsAlias"/>
|
|
|
<result column="bom_alias" jdbcType="VARCHAR" property="bomAlias"/>
|
|
|
+ <result column="key_flag" jdbcType="VARCHAR" property="keyFlag"/>
|
|
|
+ <result column="important_flag" jdbcType="VARCHAR" property="importantFlag"/>
|
|
|
</resultMap>
|
|
|
|
|
|
<!-- 通用查询结果列 -->
|
|
|
<sql id="Base_Column_List">
|
|
|
- id,create_time,create_user,update_time,update_user,parts_no,parts_alias,bom_alias,meterial_id,remark,
|
|
|
- audit_status, parent_id, name, no, status, model, brand, specification, module_id,materialBrandName,version,org_id
|
|
|
+ id,create_time,create_user,update_time,update_user,parts_no,parts_alias,bom_alias,meterial_id,remark,batch_no,key_flag,important_flag,
|
|
|
+ audit_status, parent_id, name, no, status, model, brand, specification, module_id,materialBrandName,productModuleName, version,org_id
|
|
|
</sql>
|
|
|
|
|
|
|
|
@@ -34,10 +37,11 @@
|
|
|
<select id="pageList" parameterType="String" resultMap="BaseResultMap">
|
|
|
select
|
|
|
<include refid="Base_Column_List"/>
|
|
|
- from (select b.*,m.trade_mark materialBrandName
|
|
|
+ from (select b.*,m.trade_mark materialBrandName,mi.name productModuleName
|
|
|
,bi.version,z.org_id
|
|
|
from imcs_b_bom b LEFT JOIN imcs_m_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
|
|
|
+ LEFT JOIN imcs_m_module_info mi on b.product_module_id = mi.id
|
|
|
LEFT JOIN imcs_z_zone z on z.id = b.zone_id
|
|
|
where 1=1
|
|
|
) s ${ew.customSqlSegment}
|