修改取值逻辑

于相涌/mail
YXY 2 years ago
parent 809af2613d
commit 02588501d5

@ -52,9 +52,8 @@ public class LarkTableHelper extends LarkHelper{
.recordId(request.getRecord()).
build());
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
return null;
}
public CreateAppTableRecordRespBody addTableRecord(LarkTableRequest request) {
@ -69,9 +68,8 @@ public class LarkTableHelper extends LarkHelper{
.build())
.build()).getData();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
return null;
}
public DeleteAppTableRecordRespBody deleteTableRecord(LarkTableRequest request) {
@ -84,9 +82,8 @@ public class LarkTableHelper extends LarkHelper{
.build()
).getData();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
return null;
}
public UpdateAppTableRecordRespBody updateTableRecord(LarkTableRequest request) {
@ -103,8 +100,7 @@ public class LarkTableHelper extends LarkHelper{
).build()
).getData();
} catch (Exception e) {
throw new RuntimeException(e.getMessage());
}
return null;
}
}

@ -146,7 +146,7 @@ public class ApprovalCallbackOperate extends LarkAbstract {
Map<String, Object> result = new HashMap<>();
Map<String, String> colRelation = request.getTableColRelationMap().getOrDefault(request.getTableRelationId(), new HashMap<>());
for (Map.Entry<String, String> entry : colRelation.entrySet()) {
String[] split = entry.getValue().split("@");
String[] split = entry.getKey().split("@");
String toColName = split[0];
String path = split[1];
result.put(entry.getValue(), recursiveValue(bodyMap.get(toColName), path));

Loading…
Cancel
Save