|
@@ -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)
|