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