|
@@ -293,37 +293,37 @@ public class SceneServiceImpl extends IBaseServiceImpl<SceneEntity, Long> implem
|
|
|
}
|
|
|
|
|
|
|
|
|
- @Override
|
|
|
- public Result setIndex(String id, Long workId) {
|
|
|
- WorkEntity entity = workService.findById(workId);
|
|
|
-
|
|
|
- if (entity == null) {
|
|
|
- log.error("作品不存在,id: {}", workId);
|
|
|
- return Result.failure("作品不存在");
|
|
|
- }
|
|
|
- entity.setSceneIndex(id);
|
|
|
- entity.setUpdateTime(new Date());
|
|
|
- workService.update(entity);
|
|
|
-
|
|
|
- return Result.success();
|
|
|
- }
|
|
|
-
|
|
|
- @Override
|
|
|
- public Result getIndex(Long workId) {
|
|
|
- WorkEntity entity = workService.findById(workId);
|
|
|
+// @Override
|
|
|
+// public Result setIndex(String id, Long workId) {
|
|
|
+// WorkEntity entity = workService.findById(workId);
|
|
|
+//
|
|
|
+// if (entity == null) {
|
|
|
+// log.error("作品不存在,id: {}", workId);
|
|
|
+// return Result.failure("作品不存在");
|
|
|
+// }
|
|
|
+// entity.setSceneIndex(id);
|
|
|
+// entity.setUpdateTime(new Date());
|
|
|
+// workService.update(entity);
|
|
|
+//
|
|
|
+// return Result.success();
|
|
|
+// }
|
|
|
|
|
|
- if (entity == null) {
|
|
|
- log.error("作品不存在,id: {}", workId);
|
|
|
- return Result.failure("作品不存在");
|
|
|
- }
|
|
|
- String sceneIndex = entity.getSceneIndex();
|
|
|
- SceneEntity sceneEntity = null;
|
|
|
- // 字符串判断需要用isNotBlank
|
|
|
- if (StringUtils.isNotBlank(sceneIndex)) {
|
|
|
- sceneEntity = this.findById(Long.valueOf(sceneIndex));
|
|
|
- }
|
|
|
- return Result.success(sceneEntity);
|
|
|
- }
|
|
|
+// @Override
|
|
|
+// public Result getIndex(Long workId) {
|
|
|
+// WorkEntity entity = workService.findById(workId);
|
|
|
+//
|
|
|
+// if (entity == null) {
|
|
|
+// log.error("作品不存在,id: {}", workId);
|
|
|
+// return Result.failure("作品不存在");
|
|
|
+// }
|
|
|
+// String sceneIndex = entity.getSceneIndex();
|
|
|
+// SceneEntity sceneEntity = null;
|
|
|
+// // 字符串判断需要用isNotBlank
|
|
|
+// if (StringUtils.isNotBlank(sceneIndex)) {
|
|
|
+// sceneEntity = this.findById(Long.valueOf(sceneIndex));
|
|
|
+// }
|
|
|
+// return Result.success(sceneEntity);
|
|
|
+// }
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -455,23 +455,23 @@ public class SceneServiceImpl extends IBaseServiceImpl<SceneEntity, Long> implem
|
|
|
return entityMapper.findByWorkId(workId);
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public Result getVoIndex(Long workId) {
|
|
|
- WorkEntity entity = workService.findById(workId);
|
|
|
-
|
|
|
- if (entity == null) {
|
|
|
- log.error("作品不存在,id: {}", workId);
|
|
|
- return Result.failure("作品不存在");
|
|
|
- }
|
|
|
- String sceneIndex = entity.getSceneIndex();
|
|
|
- CatalogSceneVo vo = null;
|
|
|
- // 字符串判断需要用isNotBlank
|
|
|
- if (StringUtils.isNotBlank(sceneIndex)) {
|
|
|
- Long sceneId = Long.valueOf(sceneIndex);
|
|
|
- vo = entityMapper.findVoById(sceneId);
|
|
|
- }
|
|
|
- return Result.success(vo);
|
|
|
- }
|
|
|
+// @Override
|
|
|
+// public Result getVoIndex(Long workId) {
|
|
|
+// WorkEntity entity = workService.findById(workId);
|
|
|
+//
|
|
|
+// if (entity == null) {
|
|
|
+// log.error("作品不存在,id: {}", workId);
|
|
|
+// return Result.failure("作品不存在");
|
|
|
+// }
|
|
|
+// String sceneIndex = entity.getSceneIndex();
|
|
|
+// CatalogSceneVo vo = null;
|
|
|
+// // 字符串判断需要用isNotBlank
|
|
|
+// if (StringUtils.isNotBlank(sceneIndex)) {
|
|
|
+// Long sceneId = Long.valueOf(sceneIndex);
|
|
|
+// vo = entityMapper.findVoById(sceneId);
|
|
|
+// }
|
|
|
+// return Result.success(vo);
|
|
|
+// }
|
|
|
|
|
|
@Override
|
|
|
public Result editEntity(BaseDto param) {
|