|
|
@@ -28,13 +28,14 @@
|
|
|
</resultMap>
|
|
|
<sql id="Base_Column_List" >
|
|
|
bo_id, bo_motherid, bo_mothercode, bo_mothername, bo_version, bo_status, bo_statuscode,
|
|
|
- companyId, updaterId,updaterName,updateTime, bo_text1,
|
|
|
- bo_text2, bo_text3, bo_text4, bo_text5,creatorName,creatorId,createTime
|
|
|
+ bom.companyId, bom.updaterId, bom.updaterName, bom.updateTime, bo_text1,
|
|
|
+ bo_text2, bo_text3, bo_text4, bo_text5, bom.creatorName, bom.creatorId, bom.createTime,
|
|
|
+ pr_spec,pr_brand,pr_orispeccode,pr_unit
|
|
|
</sql>
|
|
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Long" >
|
|
|
select
|
|
|
<include refid="Base_Column_List" />
|
|
|
- from bom
|
|
|
+ from bom left join product on pr_code = bo_mothercode and bom.companyId = product.companyId
|
|
|
where bo_id = #{id}
|
|
|
</select>
|
|
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long" >
|