TASK:3d print;
This commit is contained in:
@@ -20,7 +20,8 @@ public class ThreeDModule implements Serializable {
|
|||||||
private Long id;
|
private Long id;
|
||||||
private Long projectId;
|
private Long projectId;
|
||||||
private Long threeDSimpleId;
|
private Long threeDSimpleId;
|
||||||
private String printMinioUrl;
|
// private String printMinioUrl;
|
||||||
|
private Long collectionElementId;
|
||||||
private BigDecimal x;
|
private BigDecimal x;
|
||||||
private BigDecimal y;
|
private BigDecimal y;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ import java.math.BigDecimal;
|
|||||||
@Data
|
@Data
|
||||||
public class PatternMaking3DDTO {
|
public class PatternMaking3DDTO {
|
||||||
private Long threeDSimpleId;
|
private Long threeDSimpleId;
|
||||||
private String printMinioUrl;
|
// private String printMinioUrl;
|
||||||
|
private Long collectionElementId;
|
||||||
private BigDecimal x;
|
private BigDecimal x;
|
||||||
private BigDecimal y;
|
private BigDecimal y;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ import lombok.Data;
|
|||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class ThreeDModuleVO extends ThreeDModule {
|
public class ThreeDModuleVO extends ThreeDModule {
|
||||||
// private String printMinioUrl;
|
private String printMinioUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1719,15 +1719,15 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
ThreeDModule threeDModule = threeDModules.get(0);
|
ThreeDModule threeDModule = threeDModules.get(0);
|
||||||
if (null != threeDModule.getThreeDSimpleId()){
|
if (null != threeDModule.getThreeDSimpleId()){
|
||||||
ThreeDModuleVO threeDModuleVO = CopyUtil.copyObject(threeDModule, ThreeDModuleVO.class);
|
ThreeDModuleVO threeDModuleVO = CopyUtil.copyObject(threeDModule, ThreeDModuleVO.class);
|
||||||
// if (null != threeDModule.getCollectionElementId()) {
|
if (null != threeDModule.getCollectionElementId()) {
|
||||||
// CollectionElement collectionElement = collectionElementMapper.selectById(threeDModule.getCollectionElementId());
|
CollectionElement collectionElement = collectionElementMapper.selectById(threeDModule.getCollectionElementId());
|
||||||
// if (Objects.nonNull(collectionElement)) {
|
if (Objects.nonNull(collectionElement)) {
|
||||||
// threeDModuleVO.setPrintMinioUrl(minioUtil.getPreSignedUrl(collectionElement.getUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
threeDModuleVO.setPrintMinioUrl(minioUtil.getPreSignedUrl(collectionElement.getUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
// }
|
}
|
||||||
// }
|
|
||||||
if (!StringUtils.isEmpty(threeDModuleVO.getPrintMinioUrl())) {
|
|
||||||
threeDModuleVO.setPrintMinioUrl(minioUtil.getPreSignedUrl(threeDModuleVO.getPrintMinioUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
|
||||||
}
|
}
|
||||||
|
// if (!StringUtils.isEmpty(threeDModuleVO.getPrintMinioUrl())) {
|
||||||
|
// threeDModuleVO.setPrintMinioUrl(minioUtil.getPreSignedUrl(threeDModuleVO.getPrintMinioUrl(), CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
|
||||||
|
// }
|
||||||
moduleChooseVO.setPatternMaking3D(threeDModuleVO);
|
moduleChooseVO.setPatternMaking3D(threeDModuleVO);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -2000,7 +2000,8 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
threeDModule.setThreeDSimpleId(patternMaking3D.getThreeDSimpleId());
|
threeDModule.setThreeDSimpleId(patternMaking3D.getThreeDSimpleId());
|
||||||
threeDModule.setX(patternMaking3D.getX());
|
threeDModule.setX(patternMaking3D.getX());
|
||||||
threeDModule.setY(patternMaking3D.getY());
|
threeDModule.setY(patternMaking3D.getY());
|
||||||
threeDModule.setPrintMinioUrl(patternMaking3D.getPrintMinioUrl());
|
// threeDModule.setPrintMinioUrl(patternMaking3D.getPrintMinioUrl());
|
||||||
|
threeDModule.setCollectionElementId(patternMaking3D.getCollectionElementId());
|
||||||
threeDModuleMapper.insert(threeDModule);
|
threeDModuleMapper.insert(threeDModule);
|
||||||
}else {
|
}else {
|
||||||
ThreeDModule threeDModule = threeDModuleList.get(0);
|
ThreeDModule threeDModule = threeDModuleList.get(0);
|
||||||
@@ -2010,7 +2011,8 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
|||||||
threeDModule.setThreeDSimpleId(patternMaking3D.getThreeDSimpleId());
|
threeDModule.setThreeDSimpleId(patternMaking3D.getThreeDSimpleId());
|
||||||
threeDModule.setX(patternMaking3D.getX());
|
threeDModule.setX(patternMaking3D.getX());
|
||||||
threeDModule.setY(patternMaking3D.getY());
|
threeDModule.setY(patternMaking3D.getY());
|
||||||
threeDModule.setPrintMinioUrl(patternMaking3D.getPrintMinioUrl());
|
// threeDModule.setPrintMinioUrl(patternMaking3D.getPrintMinioUrl());
|
||||||
|
threeDModule.setCollectionElementId(patternMaking3D.getCollectionElementId());
|
||||||
threeDModuleMapper.updateById(threeDModule);
|
threeDModuleMapper.updateById(threeDModule);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user