Merge remote-tracking branch 'origin/dev-ltx' into dev/3.1_release_merge

This commit is contained in:
litianxiang
2025-10-15 16:03:56 +08:00

View File

@@ -682,6 +682,9 @@ public class PortfolioServiceImpl extends ServiceImpl<PortfolioMapper, Portfolio
element.setUpdateDate(null); element.setUpdateDate(null);
element.setAccountId(accountId); element.setAccountId(accountId);
element.setProjectId(projectIdNew); element.setProjectId(projectIdNew);
if (element.getLevel3Type() == null) {
element.setLevel3Type(workspaceOld.getSex());
}
collectionElementMapper.insert(element); collectionElementMapper.insert(element);
Long collectionElementNewID = element.getId(); Long collectionElementNewID = element.getId();
if (collectionElementRelModelCopy != null) { if (collectionElementRelModelCopy != null) {
@@ -690,6 +693,17 @@ public class PortfolioServiceImpl extends ServiceImpl<PortfolioMapper, Portfolio
collectionElementRelModelMapper.insert(collectionElementRelModelCopy); collectionElementRelModelMapper.insert(collectionElementRelModelCopy);
} }
; ;
} else if (element.getLevel1Type().equals(CollectionLevel1TypeEnum.SKETCH_BOARD.getRealName())) {
// element.setCollectionId(collectionIdNew);
if (element.getLevel3Type() == null) {
element.setLevel3Type(workspaceOld.getSex());
}
element.setId(null);
element.setCreateDate(new Date());
element.setUpdateDate(null);
element.setAccountId(accountId);
element.setProjectId(projectIdNew);
collectionElementMapper.insert(element);
} else { } else {
// element.setCollectionId(collectionIdNew); // element.setCollectionId(collectionIdNew);
element.setId(null); element.setId(null);