select sms.id from smart_scene sms INNER JOIN smart_scene_data smsd on sms.id = smsd.scene_id where sms.status = 1 and smsd.type = 1 and smsd.param_key = 'scene_condition_time' and sms.execute_cycle in (1,#{executeCycle}) and sms.condition_rule = 1
select sms.id from smart_scene sms INNER JOIN smart_scene_data smsd on sms.id = smsd.scene_id where sms.status = 1 and smsd.type = 1 and smsd.param_key = 'scene_condition_time' and sms.execute_cycle in (1,#{executeCycle}) and sms.condition_rule = 2
select sms.id from smart_scene sms INNER JOIN smart_scene_data smsd on sms.id = smsd.scene_id where sms.status = 1 and smsd.type = 1 and smsd.param_key = 'scene_condition_time' and sms.execute_cycle in (1,#{executeCycle}) and sms.condition_rule = 2
select smsd.* from smart_scene sms INNER JOIN smart_scene_data smsd on sms.id = smsd.scene_id where sms.status = 1 and smsd.type = 1 and smsd.param_key = 'scene_condition_time' and sms.execute_cycle in (1,#{executeCycle}) and sms.condition_rule = 1