|
|
@ -93,14 +93,37 @@ public class AlarmConfigDetailServiceImpl extends BaseServiceImpl<AlarmConfigDet |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private AlarmHandleMarkVo hz3000Marik(Integer type) { |
|
|
|
private AlarmHandleMarkVo hz3000Marik(Integer type) { |
|
|
|
AlarmHandleMarkVo mark = new AlarmHandleMarkVo(); |
|
|
|
AlarmHandleMarkVo mark = new AlarmHandleMarkVo(); |
|
|
|
mark.setIsRightTabulation(1); |
|
|
|
mark.setIsRightTabulation(0); |
|
|
|
|
|
|
|
mark.setIsSmallBell(0); |
|
|
|
|
|
|
|
switch (type){ |
|
|
|
|
|
|
|
case 2: |
|
|
|
|
|
|
|
mark.setIsShowAlert(0); |
|
|
|
|
|
|
|
mark.setIsMask(1); |
|
|
|
|
|
|
|
mark.setIsBroadcast(0); |
|
|
|
|
|
|
|
mark.setIsPlatformMessage(0); |
|
|
|
|
|
|
|
mark.setIsShortMessage(0); |
|
|
|
|
|
|
|
mark.setIsWxMessage(0); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 3: |
|
|
|
|
|
|
|
case 5: |
|
|
|
mark.setIsShowAlert(1); |
|
|
|
mark.setIsShowAlert(1); |
|
|
|
mark.setIsSmallBell(1); |
|
|
|
|
|
|
|
mark.setIsMask(1); |
|
|
|
mark.setIsMask(1); |
|
|
|
mark.setIsBroadcast(1); |
|
|
|
mark.setIsBroadcast(1); |
|
|
|
mark.setIsPlatformMessage(1); |
|
|
|
mark.setIsPlatformMessage(1); |
|
|
|
mark.setIsShortMessage(1); |
|
|
|
mark.setIsShortMessage(1); |
|
|
|
mark.setIsWxMessage(1); |
|
|
|
mark.setIsWxMessage(1); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 13: |
|
|
|
|
|
|
|
case 14: |
|
|
|
|
|
|
|
mark.setIsShowAlert(0); |
|
|
|
|
|
|
|
mark.setIsMask(0); |
|
|
|
|
|
|
|
mark.setIsBroadcast(1); |
|
|
|
|
|
|
|
mark.setIsPlatformMessage(0); |
|
|
|
|
|
|
|
mark.setIsShortMessage(0); |
|
|
|
|
|
|
|
mark.setIsWxMessage(0); |
|
|
|
|
|
|
|
mark.setIsSmallBell(1); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
return mark; |
|
|
|
return mark; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -111,14 +134,34 @@ public class AlarmConfigDetailServiceImpl extends BaseServiceImpl<AlarmConfigDet |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private AlarmHandleMarkVo levelMark(Integer type) { |
|
|
|
private AlarmHandleMarkVo levelMark(Integer type) { |
|
|
|
AlarmHandleMarkVo mark = new AlarmHandleMarkVo(); |
|
|
|
AlarmHandleMarkVo mark = new AlarmHandleMarkVo(); |
|
|
|
mark.setIsRightTabulation(1); |
|
|
|
mark.setIsRightTabulation(0); |
|
|
|
|
|
|
|
mark.setIsPlatformMessage(0); |
|
|
|
|
|
|
|
switch (type){ |
|
|
|
|
|
|
|
case 21: |
|
|
|
|
|
|
|
mark.setIsShowAlert(0); |
|
|
|
|
|
|
|
mark.setIsSmallBell(0); |
|
|
|
|
|
|
|
mark.setIsMask(1); |
|
|
|
|
|
|
|
mark.setIsBroadcast(0); |
|
|
|
|
|
|
|
mark.setIsShortMessage(0); |
|
|
|
|
|
|
|
mark.setIsWxMessage(0); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 22: |
|
|
|
|
|
|
|
mark.setIsShowAlert(1); |
|
|
|
|
|
|
|
mark.setIsSmallBell(0); |
|
|
|
|
|
|
|
mark.setIsMask(1); |
|
|
|
|
|
|
|
mark.setIsBroadcast(1); |
|
|
|
|
|
|
|
mark.setIsShortMessage(1); |
|
|
|
|
|
|
|
mark.setIsWxMessage(1); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
case 23: |
|
|
|
mark.setIsShowAlert(1); |
|
|
|
mark.setIsShowAlert(1); |
|
|
|
mark.setIsSmallBell(1); |
|
|
|
mark.setIsSmallBell(1); |
|
|
|
mark.setIsMask(1); |
|
|
|
mark.setIsMask(1); |
|
|
|
mark.setIsBroadcast(1); |
|
|
|
mark.setIsBroadcast(1); |
|
|
|
mark.setIsPlatformMessage(1); |
|
|
|
|
|
|
|
mark.setIsShortMessage(1); |
|
|
|
mark.setIsShortMessage(1); |
|
|
|
mark.setIsWxMessage(1); |
|
|
|
mark.setIsWxMessage(1); |
|
|
|
|
|
|
|
break; |
|
|
|
|
|
|
|
} |
|
|
|
return mark; |
|
|
|
return mark; |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
@ -148,14 +191,14 @@ public class AlarmConfigDetailServiceImpl extends BaseServiceImpl<AlarmConfigDet |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
private AlarmHandleMarkVo earlyMark(Integer type) { |
|
|
|
private AlarmHandleMarkVo earlyMark(Integer type) { |
|
|
|
AlarmHandleMarkVo mark = new AlarmHandleMarkVo(); |
|
|
|
AlarmHandleMarkVo mark = new AlarmHandleMarkVo(); |
|
|
|
mark.setIsRightTabulation(1); |
|
|
|
mark.setIsRightTabulation(0); |
|
|
|
mark.setIsShowAlert(1); |
|
|
|
mark.setIsShowAlert(1); |
|
|
|
mark.setIsSmallBell(1); |
|
|
|
mark.setIsSmallBell(1); |
|
|
|
mark.setIsMask(1); |
|
|
|
mark.setIsMask(1); |
|
|
|
mark.setIsBroadcast(1); |
|
|
|
mark.setIsBroadcast(1); |
|
|
|
mark.setIsPlatformMessage(1); |
|
|
|
mark.setIsPlatformMessage(0); |
|
|
|
mark.setIsShortMessage(1); |
|
|
|
mark.setIsShortMessage(1); |
|
|
|
mark.setIsWxMessage(1); |
|
|
|
mark.setIsWxMessage(0); |
|
|
|
return mark; |
|
|
|
return mark; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|