|
|
@@ -20,6 +20,9 @@
|
|
|
<result column="bo_text3" property="bo_text3" jdbcType="VARCHAR" />
|
|
|
<result column="bo_text4" property="bo_text4" jdbcType="VARCHAR" />
|
|
|
<result column="bo_text5" property="bo_text5" jdbcType="VARCHAR" />
|
|
|
+ <result column="pr_brand" property="pr_brand" jdbcType="VARCHAR" />
|
|
|
+ <result column="pr_spec" property="pr_spec" jdbcType="VARCHAR" />
|
|
|
+ <result column="pr_orispeccode" property="pr_orispeccode" jdbcType="VARCHAR" />
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
bo_id, bo_motherid, bo_mothercode, bo_mothername, bo_version, bo_status, bo_statuscode,
|
|
|
@@ -258,13 +261,13 @@
|
|
|
SELECT BO_MOTHERCODE FROM BOM WHERE BO_ID = #{id} and COMPANYID = #{companyId}
|
|
|
</select>
|
|
|
<select id="getListData" resultMap="BaseResultMap">
|
|
|
- SELECT * FROM BOM
|
|
|
+ SELECT * FROM BOM LEFT JOIN PRODUCT ON PR_ID=BO_MOTHERID
|
|
|
<where>
|
|
|
<if test="condition!=null">
|
|
|
${condition}
|
|
|
</if>
|
|
|
<if test="companyId!=null">
|
|
|
- AND companyId = #{companyId}
|
|
|
+ AND BOM.companyId = #{companyId}
|
|
|
</if>
|
|
|
</where>
|
|
|
ORDER BY BO_ID DESC
|