Kaynağa Gözat

修改拷贝逻辑

tianboguang 3 yıl önce
ebeveyn
işleme
61d093e97e

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

@@ -1371,7 +1371,7 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
         scenePro.setThumb(scenePro.getThumb().replace(num,newNum));
         scenePro.setVideos(scenePro.getVideos().replaceAll(num,newNum));
         scenePro.setNum(newNum);
-        sceneProService.save(scenePro);
+        sceneProService.saveOrUpdate(scenePro);
 
         SceneProExt proExt = sceneProExtService.findBySceneProId(proId);
         proExt.setDataSource(paramVO.getDatasource());
@@ -1384,7 +1384,7 @@ public class SceneServiceImpl extends ServiceImpl<ISceneMapper, Scene> implement
         scenePlus.setNum(newNum);
         scenePlus.setId(paramVO.getNewSceneProId());
         scenePlus.setTitle(scenePro.getSceneName());
-        scenePlusService.save(scenePlus);
+        scenePlusService.saveOrUpdate(scenePlus);
 
         ScenePlusExt plusExt = scenePlusExtService.getScenePlusExtByPlusId(plusId);
         plusExt.setId(null);