update SQL for function findAllCondition

left join promotion_master and master_project