tianboguang преди 3 години
родител
ревизия
18e396312a

+ 2 - 2
4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneServiceImpl.java

@@ -1365,7 +1365,7 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
 
         // 拷贝数据
         Long proId = scenePro.getId();
-        scenePro.setId(null);
+        scenePro.setId(paramVO.getNewSceneProId());
         scenePro.setWebSite(scenePro.getWebSite().replace(num,newNum));
         scenePro.setSceneName(paramVO.getNewSceneName());
         scenePro.setThumb(scenePro.getThumb().replace(num,newNum));
@@ -1382,7 +1382,7 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
         ScenePlus scenePlus = scenePlusService.getScenePlusByNum(num);
         Long plusId = scenePlus.getId();
         scenePlus.setNum(newNum);
-        scenePlus.setId(null);
+        scenePlus.setId(paramVO.getNewSceneProId());
         scenePlus.setTitle(scenePro.getSceneName());
         scenePlusService.save(scenePlus);
 

+ 3 - 0
4dkankan-center-scene/src/main/java/com/fdkankan/scene/vo/CopySceneParamVO.java

@@ -18,6 +18,9 @@ public class CopySceneParamVO {
     @NotNull(message = "oldNum不能为空")
     private String oldNum;
 
+    @NotNull(message = "newSceneProId不能为空")
+    private Long newSceneProId;
+
     @NotNull(message = "newNum不能为空")
     private String newNum;