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