privatefinalStringupdateStagePrefix="update cdp_customer_sop_journey set sop_journey_stage='%1$s',sop_journey_stage_enter_time=now() where sop_journey_stage!='%1$s' and sop_journey_id='%2$s'";
privatefinalStringupdateStagePrefix="update cdp_customer_sop_journey set sop_journey_stage='%1$s',sop_journey_stage_enter_time=now() where sop_journey_stage!='%1$s' and sop_journey_id='%2$s' and one_id in (select distinct one_id from cdp_customer_event where date(event_time) = current_date()) ";