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