TASK:模块化;
This commit is contained in:
@@ -34,5 +34,5 @@ public class ModuleChooseVO {
|
|||||||
// private moodBoardModuleChooseVO patternMaking3D;
|
// private moodBoardModuleChooseVO patternMaking3D;
|
||||||
private SketchReconstructionVO deReconstruction;
|
private SketchReconstructionVO deReconstruction;
|
||||||
|
|
||||||
private ThreeDVO patternMaking3D;
|
private ThreeDModuleVO patternMaking3D;
|
||||||
}
|
}
|
||||||
|
|||||||
9
src/main/java/com/ai/da/model/vo/ThreeDModuleVO.java
Normal file
9
src/main/java/com/ai/da/model/vo/ThreeDModuleVO.java
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
package com.ai.da.model.vo;
|
||||||
|
|
||||||
|
import com.ai.da.mapper.primary.entity.ThreeDModule;
|
||||||
|
import lombok.Data;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
public class ThreeDModuleVO extends ThreeDModule {
|
||||||
|
private String printMinioUrl;
|
||||||
|
}
|
||||||
@@ -16,8 +16,4 @@ public class ThreeDVO {
|
|||||||
// private ThreeDPatternLayout threeDPatternLayoutUrl;
|
// private ThreeDPatternLayout threeDPatternLayoutUrl;
|
||||||
private String threeDPatternLayoutUrl;
|
private String threeDPatternLayoutUrl;
|
||||||
private String threeDSimpleUrl;
|
private String threeDSimpleUrl;
|
||||||
|
|
||||||
private BigDecimal x;
|
|
||||||
private BigDecimal y;
|
|
||||||
private String printUrl;
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1642,16 +1642,16 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
List<ThreeDModule> threeDModules = threeDModuleMapper.selectList(qw);
|
List<ThreeDModule> threeDModules = threeDModuleMapper.selectList(qw);
|
||||||
if (CollectionUtil.isNotEmpty(threeDModules)) {
|
if (CollectionUtil.isNotEmpty(threeDModules)) {
|
||||||
ThreeDModule threeDModule = threeDModules.get(0);
|
ThreeDModule threeDModule = threeDModules.get(0);
|
||||||
ThreeDVO patternMaking3D = getLayoutDetail(threeDModule.getThreeDSimpleId());
|
if (null != threeDModule.getThreeDSimpleId()){
|
||||||
if (null != threeDModule.getThreeDSimpleId()) {
|
ThreeDModuleVO threeDModuleVO = CopyUtil.copyObject(threeDModule, ThreeDModuleVO.class);
|
||||||
CollectionElement collectionElement = collectionElementMapper.selectById(threeDModule.getCollectionElementId());
|
if (null != threeDModule.getCollectionElementId()) {
|
||||||
if (Objects.nonNull(collectionElement)) {
|
CollectionElement collectionElement = collectionElementMapper.selectById(threeDModule.getCollectionElementId());
|
||||||
patternMaking3D.setPrintUrl(minioUtil.getPreSignedUrl(collectionElement.getUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
if (Objects.nonNull(collectionElement)) {
|
||||||
patternMaking3D.setX(threeDModule.getX());
|
threeDModuleVO.setPrintMinioUrl(minioUtil.getPreSignedUrl(collectionElement.getUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
patternMaking3D.setY(threeDModule.getY());
|
}
|
||||||
}
|
}
|
||||||
|
moduleChooseVO.setPatternMaking3D(threeDModuleVO);
|
||||||
}
|
}
|
||||||
moduleChooseVO.setPatternMaking3D(patternMaking3D);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user