绩效任务新增项目名称
This commit is contained in:
+1
-4
@@ -49,13 +49,10 @@ public class TaskExport {
|
||||
Thread.sleep(60 * 1000)
|
||||
taskDetail = ApiUtil.getTaskDetail(task.getId())
|
||||
}
|
||||
if ("穆良书" == task.getResponse().getName() && task.getId() == "e3f81b0381b44696b06fb6242a44902f") {
|
||||
print("穆良书")
|
||||
}
|
||||
if (taskDetail.getRealityEndDate() != null && taskDetail.getRealityEndDate() > monthStartTime && taskDetail.getRealityEndDate() < endTime) {
|
||||
TaskPersonDTO dto = new TaskPersonDTO()
|
||||
dto.name = task.response.name
|
||||
dto.project = ""
|
||||
dto.project = task.project.name
|
||||
dto.taskName = task.name
|
||||
dto.score = org.apache.commons.lang3.StringUtils.isBlank(taskDetail.flowConten) ? 0d : Double.valueOf(taskDetail.flowConten)
|
||||
dto.workTime = com.fangjia.script.common.DataHandleUtils.getDoubleRound(0, Double.valueOf(taskDetail.workTime))
|
||||
|
||||
+5
-5
@@ -140,11 +140,11 @@ class GaoDeUtils {
|
||||
} else if (json && json.infocode && json.infocode == "10044") {
|
||||
//throw new RuntimeException("开发者的日访问量超限,被系统自动封停,第二天0:00会自动解封")
|
||||
// 多线程情况下还是exit有效果,抛异常不会停止程序
|
||||
//System.exit(1)
|
||||
AmapPoi amapPoi = new AmapPoi()
|
||||
amapPoi.id = "10044"
|
||||
result.add(amapPoi)
|
||||
break;
|
||||
System.exit(1)
|
||||
// AmapPoi amapPoi = new AmapPoi()
|
||||
// amapPoi.id = "10044"
|
||||
// result.add(amapPoi)
|
||||
// break;
|
||||
} else if (json && json.infocode && json.infocode == "10004") {
|
||||
// 开发者的单位时间内(1分钟)访问量超限,被系统自动封停,下一分钟自动解封。
|
||||
Thread.sleep(60000)
|
||||
|
||||
@@ -340,7 +340,9 @@ public class ApiUtil {
|
||||
JSONObject obj = JSONObject.parseObject(String.valueOf(result.get("data")));
|
||||
detail = obj.toJavaObject(TaskDetail.class);
|
||||
} else if (code == 90001){
|
||||
throw new RuntimeException("每个企业调用单个接口的频率不可超过60次/分钟,会返回错误码90001:getTaskDetail");
|
||||
Thread.sleep(1000 * 60);
|
||||
return getTaskDetail(taskId);
|
||||
//throw new RuntimeException("每个企业调用单个接口的频率不可超过60次/分钟,会返回错误码90001:getTaskDetail");
|
||||
} else if (code == 90009) {
|
||||
throw new RuntimeException("每个企业单个接口每天的最大上限为1000次,若超出会返回错误码90009:getTaskDetail");
|
||||
}
|
||||
|
||||
@@ -32,6 +32,8 @@ public class Task {
|
||||
private FlowDTO flow;
|
||||
@JSONField(name = "createDate")
|
||||
private String createDate;
|
||||
@JSONField(name = "project")
|
||||
private ProjectDTO project;
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
@@ -61,4 +63,13 @@ public class Task {
|
||||
@JSONField(name = "userid")
|
||||
private String userid;
|
||||
}
|
||||
|
||||
@NoArgsConstructor
|
||||
@Data
|
||||
public static class ProjectDTO {
|
||||
@JSONField(name = "id")
|
||||
private String id;
|
||||
@JSONField(name = "proname")
|
||||
private String name;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user