|
|
@ -145,6 +145,26 @@ public abstract class AbstractTask { |
|
|
|
} |
|
|
|
} |
|
|
|
taskService.updateBatchById(taskList); |
|
|
|
} else { |
|
|
|
JSONArray errArr = resultForAcs.getErrArr(); |
|
|
|
if (errArr.size() > 0) { |
|
|
|
for (int i = 0; i < errArr.size(); i++) { |
|
|
|
JSONObject jsonObject = errArr.getJSONObject(i); |
|
|
|
String task_code = jsonObject.getString("task_code"); |
|
|
|
String message = jsonObject.getString("message"); |
|
|
|
SchBaseTask task = taskService.getByCode(task_code); |
|
|
|
task.setRemark("下发失败," + message); |
|
|
|
task.setUpdate_time(DateUtil.now()); |
|
|
|
taskService.updateById(task); |
|
|
|
} |
|
|
|
} else { |
|
|
|
for (int i = 0; i < taskList.size(); i++) { |
|
|
|
SchBaseTask schBaseTask = taskList.get(i); |
|
|
|
schBaseTask.setRemark("下发失败" + resultForAcs.getMessage()); |
|
|
|
schBaseTask.setUpdate_time(DateUtil.now()); |
|
|
|
taskService.updateById(schBaseTask); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return resultForAcs; |
|
|
|
} |
|
|
|