Selaa lähdekoodia

修改定时任务

sss 3 vuotta sitten
vanhempi
commit
e73b3f4507

+ 5 - 1
eladmin-system/src/main/java/me/zhengjie/modules/quartz/task/ZkDataPushTask.java

@@ -75,7 +75,11 @@ public class ZkDataPushTask {
                 JSONObject param = new JSONObject();
                 param.put("deptId",deptDto.getId());
                 param.put("deptName",deptDto.getName());
-                param.put("pDeptId",deptDto.getPid());
+                if(!ObjectUtils.isEmpty(deptDto.getPid())){
+                    param.put("pDeptId",deptDto.getPid());
+                } else {
+                    param.put("pDeptId","@");
+                }
                 param.put("sort",deptDto.getDeptSort());
                 param.put("operateType",1);
                 String res = HttpRequest.post(fpApi+api)