|
@@ -177,7 +177,7 @@ public class JkApiServiceImpl implements IJkApiService {
|
|
|
//部门状态,启用:1,停用:0
|
|
//部门状态,启用:1,停用:0
|
|
|
String status = json.getString("idt_org__status");
|
|
String status = json.getString("idt_org__status");
|
|
|
status = status.equals("1") ? "0" : "1";
|
|
status = status.equals("1") ? "0" : "1";
|
|
|
- sysDept.setStatus("1");
|
|
|
|
|
|
|
+ sysDept.setStatus(status);
|
|
|
deptList.add(sysDept);
|
|
deptList.add(sysDept);
|
|
|
}
|
|
}
|
|
|
return deptList;
|
|
return deptList;
|
|
@@ -209,7 +209,7 @@ public class JkApiServiceImpl implements IJkApiService {
|
|
|
//部门状态,启用:1,停用:0
|
|
//部门状态,启用:1,停用:0
|
|
|
String status = json.getString("idt_job__status");
|
|
String status = json.getString("idt_job__status");
|
|
|
status = status.equals("1") ? "0" : "1";
|
|
status = status.equals("1") ? "0" : "1";
|
|
|
- sysPost.setStatus("1");
|
|
|
|
|
|
|
+ sysPost.setStatus(status);
|
|
|
postList.add(sysPost);
|
|
postList.add(sysPost);
|
|
|
}
|
|
}
|
|
|
return postList;
|
|
return postList;
|
|
@@ -219,6 +219,7 @@ public class JkApiServiceImpl implements IJkApiService {
|
|
|
List<JSONObject> objectList = new ArrayList<>();
|
|
List<JSONObject> objectList = new ArrayList<>();
|
|
|
int page = 1;
|
|
int page = 1;
|
|
|
int total = 1;
|
|
int total = 1;
|
|
|
|
|
+ logger.info("获取建科"+objectName+"请求url:" + url);
|
|
|
while(total >= page){
|
|
while(total >= page){
|
|
|
|
|
|
|
|
Request request = buildRequest(url,page);
|
|
Request request = buildRequest(url,page);
|
|
@@ -245,6 +246,8 @@ public class JkApiServiceImpl implements IJkApiService {
|
|
|
total = dataObject.getInteger(TOTAL);
|
|
total = dataObject.getInteger(TOTAL);
|
|
|
page++;
|
|
page++;
|
|
|
continue;
|
|
continue;
|
|
|
|
|
+ } else {
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
} catch (IOException e) {
|
|
} catch (IOException e) {
|
|
|
throw new IOException("获取建科用"+objectName+"信息失败 ", e);
|
|
throw new IOException("获取建科用"+objectName+"信息失败 ", e);
|