|
@@ -596,7 +596,7 @@ public class AnalyzeService {
|
|
|
if(task!=null)res.setTaskName(task.getName());
|
|
|
String caseTakeId = caseId+"-"+taskId;
|
|
|
// 部分数据从主战接口中取得
|
|
|
- String result = HTTP.sendGet("http://114.55.91.83:8191/api/user/" + workerId, "");
|
|
|
+ String result = HTTP.sendGet(mainSite + mainUserInfoApi + workerId, "");
|
|
|
if (result != null && !result.equals("")) {
|
|
|
JSONObject json = new JSONObject(result);
|
|
|
if (json.has("name") && !json.isNull("name")) {
|
|
@@ -749,7 +749,7 @@ public class AnalyzeService {
|
|
|
for(int i=0;i<list.size();i++) {
|
|
|
String workerId = list.get(i).getKey();
|
|
|
int grade=list.get(i).getValue();
|
|
|
- String result = HTTP.sendGet("http://114.55.91.83:8191/api/user/" + workerId, "");
|
|
|
+ String result = HTTP.sendGet(mainSite + mainUserInfoApi + workerId, "");
|
|
|
String name = "";
|
|
|
String school = "";
|
|
|
String province="";
|
|
@@ -918,17 +918,9 @@ public class AnalyzeService {
|
|
|
for(String bugId:bugIds){
|
|
|
String workerId=bugWorkerMap.get(bugId);
|
|
|
if(workerId!=null){
|
|
|
- if (workerDistribution.containsKey(workerId)) {
|
|
|
- workerDistribution.replace(workerId, workerDistribution.get(workerId) + -1);
|
|
|
- } else {
|
|
|
- workerDistribution.put(workerId, -1);
|
|
|
- }
|
|
|
- }
|
|
|
- if (gradeDistribution.containsKey(-1)) {
|
|
|
- gradeDistribution.replace(-1, gradeDistribution.get(-1) + 1);
|
|
|
- } else {
|
|
|
- gradeDistribution.put(-1, 1);
|
|
|
+ workerDistribution.put(workerId, -1);
|
|
|
}
|
|
|
+ gradeDistribution.put(-1, 1);
|
|
|
}
|
|
|
|
|
|
int forkNum=0;
|