${if(len(c)==0,"","(wdj.primary_item_id in
(select yg.item_id
from YQ_PO.YQ_GIB_BOM_MRP_cj yg
where yg.user_item_id = '"+c+"') OR wdj.primary_item_id = '"+c+"')")}
${if(len(c)==0,""," (wdj.primary_item_id in (select yg.item_id from YQ_PO.YQ_GIB_BOM_MRP_cj yg where yg.user_item_id = '"+c+"') OR wdj.primary_item_id = '"+c+"')")}