|
@@ -1,9 +1,6 @@
|
|
|
package com.dgtly.system.service.impl;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
-import java.util.Iterator;
|
|
|
-import java.util.List;
|
|
|
-import java.util.Map;
|
|
|
+import java.util.*;
|
|
|
|
|
|
import com.dgtly.common.utils.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -88,11 +85,13 @@ public class AlertConfigurationServiceImpl implements IAlertConfigurationService
|
|
|
}
|
|
|
while (it.hasNext()) {
|
|
|
AlertConfiguration alert = it.next();
|
|
|
- if(orgCodes !=null && orgCodes.size()>0){
|
|
|
+ if(orgCodes !=null && orgCodes.size()>0 && alert.getOrgCode() !=null && !("null").equals(alert.getOrgCode())){
|
|
|
if(orgCodes.contains(alert.getOrgCode())){
|
|
|
return 1;
|
|
|
}
|
|
|
- }
|
|
|
+ }else{
|
|
|
+ return 1;
|
|
|
+ }
|
|
|
}
|
|
|
}else{
|
|
|
return 0;
|