소스 검색

修改拷贝逻辑

tianboguang 3 년 전
부모
커밋
61d093e97e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      4dkankan-center-scene/src/main/java/com/fdkankan/scene/service/impl/SceneServiceImpl.java

+ 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);