Merge branch 'tiangong-v2.1.2' into tiangong-v2.2.0
This commit is contained in:
@ -127,7 +127,8 @@ public class ModelConvertor {
|
|||||||
public Optional<UploadObject> toUploadObject(String json) {
|
public Optional<UploadObject> toUploadObject(String json) {
|
||||||
return Optional.ofNullable(json).map(content -> {
|
return Optional.ofNullable(json).map(content -> {
|
||||||
try {
|
try {
|
||||||
return new UploadObject().setId(toUploadPO(json).getFileId());
|
SysStorageVO sysStorageVO = toUploadPO(json);
|
||||||
|
return new UploadObject().setId(sysStorageVO.getFileId()).setFilePath(sysStorageVO.getFilePath());
|
||||||
} catch (JsonProcessingException e) {
|
} catch (JsonProcessingException e) {
|
||||||
log.error(json);
|
log.error(json);
|
||||||
log.error(e.getMessage());
|
log.error(e.getMessage());
|
||||||
|
@ -9,4 +9,5 @@ public class UploadObject {
|
|||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
private String filePath;
|
||||||
}
|
}
|
||||||
|
@ -22,4 +22,7 @@ public class SysStorageVO {
|
|||||||
/* 文件唯一标识 */
|
/* 文件唯一标识 */
|
||||||
private String fileName;
|
private String fileName;
|
||||||
|
|
||||||
|
/* 文件唯一标识 */
|
||||||
|
private String filePath;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user