fix: OA发送失败的补发,添加等待时间

This commit is contained in:
wxyclub
2024-04-22 17:46:26 +08:00
parent 581610e750
commit b307e99919
@@ -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";