TASK:模块化;

This commit is contained in:
shahaibo
2025-04-23 11:22:52 +08:00
parent 56ec903807
commit 938ad7366f
4 changed files with 18 additions and 13 deletions

View File

@@ -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);
}
}
}