| | |
| | | and date_format(start_time,'%Y-%m-%d %H:%i:%s') <= #{time} |
| | | and date_format(end_time,'%Y-%m-%d %H:%i:%s') >= #{time} |
| | | </select> |
| | | |
| | | <!--获取短信类型树(当为告警是显示告警规则名称)--> |
| | | <select id="getSmsTypeTree" resultType="cn.gistack.common.node.TreeNode"> |
| | | select dict_key as id, parent_id as parentId, dict_value as name, 1 as level from YWXT.blade_dict_biz |
| | | WHERE 1=1 |
| | | and code = 'SMS_TYPE' and parent_id > 0 and is_sealed = 0 and is_deleted = 0 |
| | | union all |
| | | select id,'2' as parentId ,rule_name as name,2 as level from YWXT.sm_alarm_rule |
| | | where 1=1 and is_deleted = 0 |
| | | </select> |
| | | </mapper> |