|
|
@ -87,10 +87,10 @@
|
|
|
|
<if test="productGroupName != null and productGroupName != ''">
|
|
|
|
<if test="productGroupName != null and productGroupName != ''">
|
|
|
|
and bp.product_group_name like concat('%',#{productGroupName}, '%')
|
|
|
|
and bp.product_group_name like concat('%',#{productGroupName}, '%')
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
<if test="workorderCode != null and workorderCode != ''">
|
|
|
|
<if test="parentOrder != null and parentOrder != ''">
|
|
|
|
and bp.product_code not in(
|
|
|
|
and bp.product_code not in(
|
|
|
|
select material_code from mes_report_work_consume
|
|
|
|
select material_code from mes_report_work_consume
|
|
|
|
where workorder_code = #{workorderCode} or parent_order = #{workorderCode} and del_flag='0'
|
|
|
|
where workorder_code = #{parentOrder} or parent_order = #{parentOrder} and del_flag='0'
|
|
|
|
)
|
|
|
|
)
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|