TASK:模块化;
This commit is contained in:
@@ -127,6 +127,8 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
||||
private ThreeDDetailMapper threeDDetailMapper;
|
||||
@Resource
|
||||
private ThreeDSimpleMapper threeDSimpleMapper;
|
||||
@Resource
|
||||
private ThreeDModuleMapper threeDModuleMapper;
|
||||
|
||||
@Override
|
||||
public void deleteUserGroup(Long userGroupId) {
|
||||
@@ -1648,6 +1650,15 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
||||
}else if (module.equals(Module.poseTransfer.name())){
|
||||
List<PoseTransformationVO> poseTransformationResultList = generateService.getPoseTransformationResultList(projectDTO.getId());
|
||||
moduleChooseVO.setPoseTransfer(poseTransformationResultList);
|
||||
}else if (module.equals(Module.patternMaking3D.name())) {
|
||||
QueryWrapper<ThreeDModule> qw = new QueryWrapper<>();
|
||||
qw.lambda().eq(ThreeDModule::getProjectId, projectDTO.getId());
|
||||
List<ThreeDModule> threeDModules = threeDModuleMapper.selectList(qw);
|
||||
if (CollectionUtil.isNotEmpty(threeDModules)) {
|
||||
ThreeDModule threeDModule = threeDModules.get(0);
|
||||
ThreeDVO patternMaking3D = getLayoutDetail(threeDModule.getThreeDSimpleId());
|
||||
moduleChooseVO.setPatternMaking3D(patternMaking3D);
|
||||
}
|
||||
}
|
||||
}
|
||||
return moduleChooseVO;
|
||||
@@ -1882,6 +1893,12 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
||||
collectionElementMapper.deleteBatchIds(old);
|
||||
}
|
||||
}
|
||||
if (moduleSaveDTO.getPatternMaking3D() != null) {
|
||||
ThreeDModule threeDModule = new ThreeDModule();
|
||||
threeDModule.setProjectId(projectId);
|
||||
threeDModule.setThreeDSimpleId(moduleSaveDTO.getPatternMaking3D());
|
||||
threeDModuleMapper.insert(threeDModule);
|
||||
}
|
||||
if (boundingBox) {
|
||||
QueryWrapper<CollectionElement> qw = new QueryWrapper<>();
|
||||
qw.lambda().eq(CollectionElement::getLevel1Type, CollectionLevel1TypeEnum.SKETCH_BOARD.getRealName());
|
||||
|
||||
Reference in New Issue
Block a user