Newspaper 2 anni fa
parent
commit
5558802ceb

+ 4 - 1
huimv-farm-video/src/main/java/com/huimv/video/dhicc/test/request/PersonListRequestCn.java

@@ -1,5 +1,6 @@
 package com.huimv.video.dhicc.test.request;
 
+import cn.hutool.core.util.ObjectUtil;
 import com.alibaba.fastjson.JSON;
 import com.huimv.video.dhicc.test.config.OauthConfigBaseInfo;
 import com.huimv.video.dhicc.test.config.OauthConfigBaseInfo03;
@@ -61,7 +62,9 @@ public class PersonListRequestCn extends BaseRequest03<String> {
         map.put("isContain", this.isContain);
         map.put("searchKey", this.searchKey);
         map.put("statusList", this.statusList);
-        map.put("departmentId", this.departmentId);
+        if(ObjectUtil.isNotNull(this.departmentId)){
+            map.put("departmentId", this.departmentId);
+        }
         this.setBody(JSON.toJSONString(map));
 
     }

+ 4 - 1
huimv-farm-video/src/main/java/com/huimv/video/dhicc/test/request/PersonListRequestHn.java

@@ -1,5 +1,6 @@
 package com.huimv.video.dhicc.test.request;
 
+import cn.hutool.core.util.ObjectUtil;
 import com.alibaba.fastjson.JSON;
 import com.huimv.video.dhicc.test.config.OauthConfigBaseInfo;
 import com.huimv.video.dhicc.test.config.OauthConfigBaseInfo02;
@@ -61,7 +62,9 @@ public class PersonListRequestHn extends BaseRequest02<String> {
         map.put("isContain", this.isContain);
         map.put("searchKey", this.searchKey);
         map.put("statusList", this.statusList);
-        map.put("departmentId", this.departmentId);
+        if(ObjectUtil.isNotNull(this.departmentId)){
+            map.put("departmentId", this.departmentId);
+        }
         this.setBody(JSON.toJSONString(map));
 
     }

+ 4 - 1
huimv-farm-video/src/main/java/com/huimv/video/dhicc/test/request/PersonListRequestSg.java

@@ -1,5 +1,6 @@
 package com.huimv.video.dhicc.test.request;
 
+import cn.hutool.core.util.ObjectUtil;
 import com.alibaba.fastjson.JSON;
 import com.huimv.video.dhicc.test.config.OauthConfigBaseInfo;
 import com.huimv.video.dhicc.test.constant.Constant;
@@ -61,7 +62,9 @@ public class PersonListRequestSg extends BaseRequest<String> {
         map.put("isContain", this.isContain);
         map.put("searchKey", this.searchKey);
         map.put("statusList", this.statusList);
-        map.put("departmentId", this.departmentId);
+        if(ObjectUtil.isNotNull(this.departmentId)){
+            map.put("departmentId", this.departmentId);
+        }
         this.setBody(JSON.toJSONString(map));
 
     }