BUGFIX:系统模特上传;

This commit is contained in:
shahaibo
2023-10-04 16:09:11 +08:00
parent 9c3ab437fb
commit b46a1815e5
3 changed files with 4 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ public class LibraryModelPointDTO implements Serializable {
@NotNull(message = "libraryId cannot be empty!") @NotNull(message = "libraryId cannot be empty!")
@ApiModelProperty("libraryId") @ApiModelProperty("libraryId")
private Long relationId; private Long libraryId;
private String modelType; private String modelType;

View File

@@ -52,8 +52,8 @@ public class LibraryModelPointServiceImpl extends ServiceImpl<LibraryModelPointM
@Override @Override
public LibraryModelPointVO saveOrEditTemplatePoint(LibraryModelPointDTO libraryModelPointDTO) { public LibraryModelPointVO saveOrEditTemplatePoint(LibraryModelPointDTO libraryModelPointDTO) {
Library library = libraryService.getById(libraryModelPointDTO.getRelationId()); // Library library = libraryService.getById(libraryModelPointDTO.getLibraryId());
Assert.notNull(library,"library does not exist!"); // Assert.notNull(library,"library does not exist!");
LibraryModelPointVO libraryModelPointVO =CopyUtil.copyObject(libraryModelPointDTO,LibraryModelPointVO.class);; LibraryModelPointVO libraryModelPointVO =CopyUtil.copyObject(libraryModelPointDTO,LibraryModelPointVO.class);;
if(Objects.isNull(libraryModelPointDTO.getTemplateId())){ if(Objects.isNull(libraryModelPointDTO.getTemplateId())){
//新增 //新增

View File

@@ -209,6 +209,7 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
sysFile.setCreateDate(new Date()); sysFile.setCreateDate(new Date());
sysFileMapper.insert(sysFile); sysFileMapper.insert(sysFile);
Library library = new Library(); Library library = new Library();
library.setId(sysFile.getId());
library.setUrl(sysFile.getUrl()); library.setUrl(sysFile.getUrl());
return library; return library;
}else { }else {