BUGFIX:系统模特上传;
This commit is contained in:
@@ -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())){
|
||||
//新增
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user