|
|
@ -22,6 +22,8 @@
|
|
|
|
<result property="vbeln" column="vbeln"/>
|
|
|
|
<result property="vbeln" column="vbeln"/>
|
|
|
|
<result property="vbpos" column="vbpos"/>
|
|
|
|
<result property="vbpos" column="vbpos"/>
|
|
|
|
<result property="ancestors" column="ancestors" />
|
|
|
|
<result property="ancestors" column="ancestors" />
|
|
|
|
|
|
|
|
<result property="parentName" column="parentName" />
|
|
|
|
|
|
|
|
<result property="parentMaterialType" column="parentMaterialType" />
|
|
|
|
</resultMap>
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
|
|
<sql id="selectOrderBomInfoVo">
|
|
|
|
<sql id="selectOrderBomInfoVo">
|
|
|
@ -29,9 +31,11 @@
|
|
|
|
ob.bom_code,
|
|
|
|
ob.bom_code,
|
|
|
|
ob.material_code,
|
|
|
|
ob.material_code,
|
|
|
|
bm.material_name,
|
|
|
|
bm.material_name,
|
|
|
|
bm.material_type,
|
|
|
|
bm.MATERIAL_SUBCLASS material_type,
|
|
|
|
ob.standard_amount,
|
|
|
|
ob.standard_amount,
|
|
|
|
ob.parent_id,
|
|
|
|
ob.parent_id,
|
|
|
|
|
|
|
|
mp.MATERIAL_NAME parentName,
|
|
|
|
|
|
|
|
mp.MATERIAL_SUBCLASS parentMaterialType,
|
|
|
|
ob.is_flag,
|
|
|
|
ob.is_flag,
|
|
|
|
ob.created_by,
|
|
|
|
ob.created_by,
|
|
|
|
ob.created_time,
|
|
|
|
ob.created_time,
|
|
|
@ -43,7 +47,8 @@
|
|
|
|
ob.vbeln,
|
|
|
|
ob.vbeln,
|
|
|
|
ob.vbpos
|
|
|
|
ob.vbpos
|
|
|
|
from order_bominfo ob
|
|
|
|
from order_bominfo ob
|
|
|
|
left join BASE_MATERIALINFO bm ON bm.MATERIAL_CODE = ob.material_code
|
|
|
|
LEFT JOIN BASE_MATERIALINFO bm ON bm.MATERIAL_CODE = ob.material_code
|
|
|
|
|
|
|
|
LEFT JOIN BASE_MATERIALINFO mp ON mp.MATERIAL_CODE = ob.PARENT_ID
|
|
|
|
</sql>
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectOrderBomInfoList" parameterType="OrderBomInfo" resultMap="OrderBomInfoResult">
|
|
|
|
<select id="selectOrderBomInfoList" parameterType="OrderBomInfo" resultMap="OrderBomInfoResult">
|
|
|
@ -53,9 +58,11 @@
|
|
|
|
<if test="materialCode != null and materialCode != ''">and ob.material_code like concat(#{materialCode}, '%')</if>
|
|
|
|
<if test="materialCode != null and materialCode != ''">and ob.material_code like concat(#{materialCode}, '%')</if>
|
|
|
|
<if test="materialName != null and materialName != ''">and bm.material_name like concat(concat('%',#{materialName}), '%')
|
|
|
|
<if test="materialName != null and materialName != ''">and bm.material_name like concat(concat('%',#{materialName}), '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="materialType != null and materialType != ''">and ob.material_type = #{materialType}</if>
|
|
|
|
<if test="materialType != null and materialType != ''">and bm.MATERIAL_SUBCLASS = #{materialType}</if>
|
|
|
|
<if test="standardAmount != null ">and ob.standard_amount = #{standardAmount}</if>
|
|
|
|
<if test="standardAmount != null ">and ob.standard_amount = #{standardAmount}</if>
|
|
|
|
<if test="parentId != null and parentId != ''">and ob.parent_id = like concat(#{parentId}, '%')</if>
|
|
|
|
<if test="parentId != null and parentId != ''">and ob.parent_id like concat(#{parentId}, '%')</if>
|
|
|
|
|
|
|
|
<if test="parentName != null and parentName != ''">and mp.MATERIAL_NAME like concat(concat('%',#{parentName}), '%')
|
|
|
|
|
|
|
|
</if>
|
|
|
|
<if test="isFlag != null ">and ob.is_flag = #{isFlag}</if>
|
|
|
|
<if test="isFlag != null ">and ob.is_flag = #{isFlag}</if>
|
|
|
|
<if test="createdBy != null and createdBy != ''">and ob.created_by = #{createdBy}</if>
|
|
|
|
<if test="createdBy != null and createdBy != ''">and ob.created_by = #{createdBy}</if>
|
|
|
|
<if test="createdTime != null ">and ob.created_time = #{createdTime}</if>
|
|
|
|
<if test="createdTime != null ">and ob.created_time = #{createdTime}</if>
|
|
|
|