BUGFIX:designSingle 系统默认模特宽高修改
This commit is contained in:
@@ -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)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user