Authored by qinchao

告警短信开关通知组

... ... @@ -28,4 +28,9 @@ public class AlarmGroupContants {
* 用户组
*/
public final static String GROUP_NAME_USER_LOGIN = "用户组-用户登录";
/**
* 运维-告警开关:
*/
public final static String SMS_OPEN_CLOSE ="告警开关通知组";
}
\ No newline at end of file
... ...
package com.monitor.other.sms.service.impl;
import com.contants.AlarmGroupContants;
import com.model.SMSLogs;
import com.monitor.common.service.AlarmMsgService;
import com.monitor.common.util.ApplicationUtil;
... ... @@ -76,7 +77,7 @@ public class SmsLogServiceImpl implements SmsLogService {
if("off".equals(key)){
value="false";
GetUsersInfoUtil getUsersInfoUtil = (GetUsersInfoUtil) ApplicationUtil.getBean(GetUsersInfoUtil.class);
String mobiles = getUsersInfoUtil.getMobileByAlarmGroup("告警开关切换组");
String mobiles = getUsersInfoUtil.getMobileByAlarmGroup(AlarmGroupContants.SMS_OPEN_CLOSE);
String content = "";
switch (pathCode){
case "ops.sendsms.open":
... ...