feat(制品库功能开发): 产品库增加打包下载产品库功能

新增接口:获取产品库打包下载地址
返回打包文件名称
This commit is contained in:
OTTO 2024-08-22 16:24:24 +08:00
parent 88e4690ad9
commit 26d980e9cf
2 changed files with 4 additions and 0 deletions

View File

@ -16,4 +16,7 @@ public class ProductPackagedResultVo {
@ApiModelProperty(value = "打包下载地址")
private String downloadUrl;
@ApiModelProperty(value = "打包文件名")
private String fileName;
}

View File

@ -149,6 +149,7 @@ public class PmsProductLibraryServiceImpl implements IPmsProductLibraryService {
);
if (sysFileInfo != null) {
productPackagedResultVo.setDownloadUrl(sysFileInfo.getDownloadUrl());
productPackagedResultVo.setFileName(sysFileInfo.getFileOriginName());
}
} catch (Exception e) {
log.error("获取产品库打包文件失败:{}", e.getMessage());