Ver código fonte

1、泛微待办

wanghaiwu 2 semanas atrás
pai
commit
c3dbcbc99f

+ 20 - 0
code/jyyy/nckd-jimin-jyyy-bd/src/main/java/nckd/jimin/jyyy/bd/plugin/msg/ecology/FanweiServiceHelper.java

@@ -47,12 +47,19 @@ public class FanweiServiceHelper extends AbstractMessageServiceHandler {
             return;
         }
 
+        logger.info("泛微待办 人员:" + userIds.toString());
+
         Map<String, String> params = new HashMap<>(3);
         params.put("isremark", "0");
         params.put("viewtype", "0");
 
         for(int i = 0; i < userIds.size(); i++){
             Long userId = userIds.get(i);
+
+            if(userId == null){
+                continue;
+            }
+
             params.put("userId", userId.toString());
 
             try {
@@ -90,12 +97,19 @@ public class FanweiServiceHelper extends AbstractMessageServiceHandler {
             return;
         }
 
+        logger.info("处理待办 人员:" + userIds.toString());
+
         Map<String, String> params = new HashMap<>(3);
         params.put("isremark", "2");
         params.put("viewtype", "1");
 
         for(int i = 0; i < userIds.size(); i++){
             Long userId = userIds.get(i);
+
+            if(userId == null){
+                continue;
+            }
+
             params.put("userId", userId.toString());
 
             try {
@@ -124,6 +138,8 @@ public class FanweiServiceHelper extends AbstractMessageServiceHandler {
             return;
         }
 
+        logger.info("处理待办 人员:" + userIds.toString());
+
         Map<String, String> params = new HashMap<>(3);
         params.put("isremark", "-1");
         params.put("viewtype", "1");
@@ -131,6 +147,10 @@ public class FanweiServiceHelper extends AbstractMessageServiceHandler {
         for(int i = 0; i < userIds.size(); i++){
             Long userId = userIds.get(i);
 
+            if(userId == null){
+                continue;
+            }
+
             params.put("userId", userId.toString());
 
             try {