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

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

View File

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