BUGFIX:系统模特上传;

This commit is contained in:
shahaibo
2023-10-04 16:20:36 +08:00
parent b560deb1f3
commit 4068a64c54
2 changed files with 3 additions and 2 deletions

View File

@@ -21,7 +21,7 @@ public class LibraryModelPointVO implements Serializable {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
@ApiModelProperty("libraryId") @ApiModelProperty("libraryId")
private Long libraryId; private Long relationId;
@ApiModelProperty("templateId") @ApiModelProperty("templateId")
private Long templateId; private Long templateId;

View File

@@ -54,7 +54,8 @@ public class LibraryModelPointServiceImpl extends ServiceImpl<LibraryModelPointM
public LibraryModelPointVO saveOrEditTemplatePoint(LibraryModelPointDTO libraryModelPointDTO) { public LibraryModelPointVO saveOrEditTemplatePoint(LibraryModelPointDTO libraryModelPointDTO) {
// Library library = libraryService.getById(libraryModelPointDTO.getLibraryId()); // 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);
libraryModelPointVO.setRelationId(libraryModelPointDTO.getLibraryId());
if(Objects.isNull(libraryModelPointDTO.getTemplateId())){ if(Objects.isNull(libraryModelPointDTO.getTemplateId())){
//新增 //新增
LibraryModelPoint libraryModelPoint = resolvePoint(libraryModelPointDTO); LibraryModelPoint libraryModelPoint = resolvePoint(libraryModelPointDTO);