Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
shahaibo
2023-11-08 15:25:54 +08:00

View File

@@ -422,9 +422,9 @@ public class DesignItemServiceImpl extends ServiceImpl<DesignItemMapper, DesignI
throw new BusinessException("sysFile.not.found"); throw new BusinessException("sysFile.not.found");
} }
modelUrl = sysFile.getUrl(); modelUrl = sysFile.getUrl();
high = 1050; high = 700;
width = 500; width = 320;
} else { } else if (design.getModelType().equals(ModelType.LIBRARY.getValue())){
Library libFile = libraryService.getById(design.getTemplateId()); Library libFile = libraryService.getById(design.getTemplateId());
if (Objects.isNull(libFile)) { if (Objects.isNull(libFile)) {
throw new BusinessException("sysFile.not.found"); throw new BusinessException("sysFile.not.found");
@@ -432,6 +432,8 @@ public class DesignItemServiceImpl extends ServiceImpl<DesignItemMapper, DesignI
modelUrl = libFile.getUrl(); modelUrl = libFile.getUrl();
high = libFile.getHigh(); high = libFile.getHigh();
width = libFile.getWidth(); width = libFile.getWidth();
}else {
throw new BusinessException("unknown.modelType");
} }
LibraryModelPoint modelPoint = libraryModelPointService.getByRelationId(design.getTemplateId(), design.getModelType()); LibraryModelPoint modelPoint = libraryModelPointService.getByRelationId(design.getTemplateId(), design.getModelType());
if (Objects.isNull(modelPoint)) { if (Objects.isNull(modelPoint)) {