多维表格信息同步(待测试)

于相涌/Lark
YXY 2 years ago
parent b7e1d5c7a1
commit d30ceb45f8

@ -44,6 +44,7 @@ public class LarkRequest {
private String callBackMessage; private String callBackMessage;
private Event event; private Event event;
private EventOperateType eventOperateType; private EventOperateType eventOperateType;
private String operateInfo;
/** /**
* *
*/ */

@ -209,6 +209,7 @@ public class MultidimensionalTableOperate extends LarkAbstract {
} }
protected void send(String type, String url, Map<Object, Map<Object, Object>> body, LarkRequest request) { protected void send(String type, String url, Map<Object, Map<Object, Object>> body, LarkRequest request) {
request.setOperateInfo(String.valueOf(body));
String token = request.getToken(); String token = request.getToken();
if (CREATE_OPERATE.equals(type)) { if (CREATE_OPERATE.equals(type)) {
JSONObject result = larkTokenHelper.postLark(url, body, token); JSONObject result = larkTokenHelper.postLark(url, body, token);
@ -245,6 +246,7 @@ public class MultidimensionalTableOperate extends LarkAbstract {
} }
} }
if (eventLog != null) { if (eventLog != null) {
eventLog.setOperateInfo(request.getOperateType());
eventLogService.insertEventLog(eventLog); eventLogService.insertEventLog(eventLog);
} }
} }

Loading…
Cancel
Save