p.f_tenant_id = #{tenantId} AND p.f_flow_state = 2 AND COALESCE(p.f_delete_mark, 0) <> 1 COALESCE(yp.f_delete_mark, 0) <> 1