|
@@ -16,6 +16,7 @@ import com.fdkankan.common.exception.BusinessException;
|
|
import com.fdkankan.common.util.FileUtils;
|
|
import com.fdkankan.common.util.FileUtils;
|
|
import com.fdkankan.model.constants.ConstantFilePath;
|
|
import com.fdkankan.model.constants.ConstantFilePath;
|
|
import com.fdkankan.model.constants.UploadFilePath;
|
|
import com.fdkankan.model.constants.UploadFilePath;
|
|
|
|
+import com.fdkankan.scene.bean.LaserSceneBean;
|
|
import com.fdkankan.scene.bean.SceneJsonBean;
|
|
import com.fdkankan.scene.bean.SceneJsonBean;
|
|
import com.fdkankan.scene.entity.SceneEditControls;
|
|
import com.fdkankan.scene.entity.SceneEditControls;
|
|
import com.fdkankan.scene.entity.SceneEditInfoExt;
|
|
import com.fdkankan.scene.entity.SceneEditInfoExt;
|
|
@@ -273,4 +274,22 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
|
|
|
|
|
|
return ResultData.ok();
|
|
return ResultData.ok();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public ResultData editScene(LaserSceneBean param) {
|
|
|
|
+
|
|
|
|
+ ScenePlus scenePlus = this.getScenePlusByNum(param.getNum());
|
|
|
|
+ if(Objects.isNull(scenePlus))
|
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_5005);
|
|
|
|
+
|
|
|
|
+ ScenePlusExt scenePlusExt = scenePlusExtService.getScenePlusExtByPlusId(scenePlus.getId());
|
|
|
|
+ scenePlusExt.setThumb(param.getThumb());
|
|
|
|
+ scenePlusExtService.updateById(scenePlusExt);
|
|
|
|
+
|
|
|
|
+ SceneEditInfo sceneEditInfo = sceneEditInfoService.getByScenePlusId(scenePlus.getId());
|
|
|
|
+ sceneEditInfo.setTitle(param.getTitle());
|
|
|
|
+ sceneEditInfoService.updateById(sceneEditInfo);
|
|
|
|
+
|
|
|
|
+ return ResultData.ok();
|
|
|
|
+ }
|
|
}
|
|
}
|