TASK:模块化;
This commit is contained in:
@@ -34,5 +34,5 @@ public class ModuleChooseVO {
|
||||
// private moodBoardModuleChooseVO patternMaking3D;
|
||||
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 String threeDPatternLayoutUrl;
|
||||
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);
|
||||
if (CollectionUtil.isNotEmpty(threeDModules)) {
|
||||
ThreeDModule threeDModule = threeDModules.get(0);
|
||||
ThreeDVO patternMaking3D = getLayoutDetail(threeDModule.getThreeDSimpleId());
|
||||
if (null != threeDModule.getThreeDSimpleId()) {
|
||||
CollectionElement collectionElement = collectionElementMapper.selectById(threeDModule.getCollectionElementId());
|
||||
if (Objects.nonNull(collectionElement)) {
|
||||
patternMaking3D.setPrintUrl(minioUtil.getPreSignedUrl(collectionElement.getUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||
patternMaking3D.setX(threeDModule.getX());
|
||||
patternMaking3D.setY(threeDModule.getY());
|
||||
if (null != threeDModule.getThreeDSimpleId()){
|
||||
ThreeDModuleVO threeDModuleVO = CopyUtil.copyObject(threeDModule, ThreeDModuleVO.class);
|
||||
if (null != threeDModule.getCollectionElementId()) {
|
||||
CollectionElement collectionElement = collectionElementMapper.selectById(threeDModule.getCollectionElementId());
|
||||
if (Objects.nonNull(collectionElement)) {
|
||||
threeDModuleVO.setPrintMinioUrl(minioUtil.getPreSignedUrl(collectionElement.getUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||
}
|
||||
}
|
||||
moduleChooseVO.setPatternMaking3D(threeDModuleVO);
|
||||
}
|
||||
moduleChooseVO.setPatternMaking3D(patternMaking3D);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user