BUGFIX:系统模特上传;
This commit is contained in:
@@ -55,7 +55,6 @@ public class LibraryModelPointServiceImpl extends ServiceImpl<LibraryModelPointM
|
||||
// Library library = libraryService.getById(libraryModelPointDTO.getLibraryId());
|
||||
// Assert.notNull(library,"library does not exist!");
|
||||
LibraryModelPointVO libraryModelPointVO =CopyUtil.copyObject(libraryModelPointDTO,LibraryModelPointVO.class);
|
||||
libraryModelPointVO.setRelationId(libraryModelPointDTO.getLibraryId());
|
||||
if(Objects.isNull(libraryModelPointDTO.getTemplateId())){
|
||||
//新增
|
||||
LibraryModelPoint libraryModelPoint = resolvePoint(libraryModelPointDTO);
|
||||
@@ -76,6 +75,7 @@ public class LibraryModelPointServiceImpl extends ServiceImpl<LibraryModelPointM
|
||||
}
|
||||
private LibraryModelPoint resolvePoint(LibraryModelPointDTO libraryModelPointDTO){
|
||||
LibraryModelPoint libraryModelPoint = CopyUtil.copyObject(libraryModelPointDTO,LibraryModelPoint.class);
|
||||
libraryModelPoint.setRelationId(libraryModelPointDTO.getLibraryId());
|
||||
libraryModelPoint.setHandLeft(JSON.toJSONString(libraryModelPointDTO.getHandLeft()));
|
||||
libraryModelPoint.setHandRight(JSON.toJSONString(libraryModelPointDTO.getHandRight()));
|
||||
libraryModelPoint.setWaistbandLeft(JSON.toJSONString(libraryModelPointDTO.getWaistbandLeft()));
|
||||
|
||||
Reference in New Issue
Block a user