|
@@ -252,32 +252,6 @@ public class SceneServiceImpl extends IBaseServiceImpl<SceneEntity, Long> implem
|
|
|
return entity;
|
|
|
}
|
|
|
|
|
|
-// private Long createCatalog(CatalogSceneDto params) {
|
|
|
-// Long parentId = params.getParentId();
|
|
|
-// String parentName = params.getParentName();
|
|
|
-// Long workId = params.getWorkId();
|
|
|
-//
|
|
|
-// CatalogEntity entity = new CatalogEntity();
|
|
|
-// entity.setName(params.getCatalogName());
|
|
|
-// entity.setWorkId(workId);
|
|
|
-// // 当父id不为空时
|
|
|
-// if (parentId != null) {
|
|
|
-// entity.setParentId(parentId);
|
|
|
-// }
|
|
|
-//
|
|
|
-// // 创建父目录
|
|
|
-// if (parentId == null && parentName != null) {
|
|
|
-// CatalogEntity parentEntity = new CatalogEntity();
|
|
|
-// parentEntity.setWorkId(workId);
|
|
|
-// parentEntity.setName(parentName);
|
|
|
-// catalogService.save(parentEntity);
|
|
|
-// entity.setParentId(parentEntity.getId());
|
|
|
-//
|
|
|
-// }
|
|
|
-// // 创建目录
|
|
|
-// catalogService.save(entity);
|
|
|
-// return entity.getId();
|
|
|
-// }
|
|
|
|
|
|
|
|
|
|
|
@@ -293,39 +267,6 @@ 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);
|
|
|
-//
|
|
|
-// 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 setSort(Map<String, String> param) {
|
|
|
log.info("sort size: " + param.size());
|
|
@@ -455,23 +396,6 @@ 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 editEntity(BaseDto param) {
|