fix: OA发送失败的补发,添加等待时间
This commit is contained in:
+3
@@ -105,16 +105,19 @@ public class WebServiceOAController extends BaseAction {
|
||||
JSONObject processNewJsonObject = jsonObject.getJSONObject("mesg");
|
||||
BusProcessNew busProcessNew = JSONObject.toJavaObject(processNewJsonObject, BusProcessNew.class);
|
||||
webServiceOAService.sendTodo(busProcessNew);
|
||||
Thread.sleep(3000);
|
||||
} else if ("1".equals(msgType)) {
|
||||
// 已办
|
||||
JSONObject notifyTodoSendContextJsonObject = JSONObject.parseObject(mesg);
|
||||
NotifyTodoSendContext notifyTodoSendContext = JSONObject.toJavaObject(notifyTodoSendContextJsonObject, NotifyTodoSendContext.class);
|
||||
webServiceOAService.setTodoDone(notifyTodoSendContext);
|
||||
Thread.sleep(3000);
|
||||
} else if ("3".equals(msgType)) {
|
||||
// 删除
|
||||
String todoId = sendTodoLog.getTodoId();
|
||||
String userId = sendTodoLog.getUserId();
|
||||
webServiceOAService.deleteOAByMandatory(todoId,userId);
|
||||
Thread.sleep(3000);
|
||||
}
|
||||
}
|
||||
return "ok";
|
||||
|
||||
Reference in New Issue
Block a user