Commit dde621e0 authored by liqin's avatar liqin 💬

bug fixed

parent 71d37ed6
...@@ -272,7 +272,11 @@ public class CopyrightOwnerController extends BaseController { ...@@ -272,7 +272,11 @@ public class CopyrightOwnerController extends BaseController {
updateWrapper1.set(ExhibitionBoard::getDeleted, true); updateWrapper1.set(ExhibitionBoard::getDeleted, true);
this.exhibitionBoardService.update(updateWrapper1); this.exhibitionBoardService.update(updateWrapper1);
//todo 删除版权方关联表 LambdaUpdateWrapper<CopyrightOwnerBoardCat> deleteWrapper = Wrappers.<CopyrightOwnerBoardCat>lambdaUpdate().eq(CopyrightOwnerBoardCat::getCopyrightOwnerId, id);
this.copyrightOwnerBoardCatService.remove(deleteWrapper);
LambdaUpdateWrapper<CopyrightOwnerVideoContentCat> deleteWrapper1 = Wrappers.<CopyrightOwnerVideoContentCat>lambdaUpdate().eq(CopyrightOwnerVideoContentCat::getCopyrightOwnerId, id);
this.copyrightOwnerVideoContentCatService.remove(deleteWrapper1);
return getSuccessResult(); return getSuccessResult();
} }
......
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 版权方视频分类 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/copytight-owner-asset-type")
public class CopytightOwnerAssetTypeController extends BaseController {
}
package cn.wisenergy.chnmuseum.party.web.controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import cn.wisenergy.chnmuseum.party.web.controller.base.BaseController;
/**
* <p>
* 版权方展板分类 前端控制器
* </p>
*
* @author Danny Lee
* @since 2021-03-16
*/
@RestController
@RequestMapping("/party/copytight-owner-board-type")
public class CopytightOwnerBoardTypeController extends BaseController {
}
...@@ -32,7 +32,6 @@ import javax.annotation.Resource; ...@@ -32,7 +32,6 @@ import javax.annotation.Resource;
import javax.validation.constraints.NotNull; import javax.validation.constraints.NotNull;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -132,7 +131,7 @@ public class ExhibitionBoardCatController extends BaseController { ...@@ -132,7 +131,7 @@ public class ExhibitionBoardCatController extends BaseController {
if (StringUtils.isNotBlank(copyrightOwnerId)) { if (StringUtils.isNotBlank(copyrightOwnerId)) {
final LambdaQueryWrapper<CopyrightOwnerBoardCat> queryWrapper = Wrappers.<CopyrightOwnerBoardCat>lambdaQuery().eq(CopyrightOwnerBoardCat::getCopyrightOwnerId, copyrightOwnerId); final LambdaQueryWrapper<CopyrightOwnerBoardCat> queryWrapper = Wrappers.<CopyrightOwnerBoardCat>lambdaQuery().eq(CopyrightOwnerBoardCat::getCopyrightOwnerId, copyrightOwnerId);
queryWrapper.select(CopyrightOwnerBoardCat::getBoardCatId); queryWrapper.select(CopyrightOwnerBoardCat::getBoardCatId);
final List<String> boardCatIdList = this.copyrightOwnerBoardCatService.listObjs(queryWrapper, Objects::toString); final List<String> boardCatIdList = this.copyrightOwnerBoardCatService.listObjs(queryWrapper, Object::toString);
exhibitionBoardCatLambdaQueryWrapper.in(ExhibitionBoardCat::getId, boardCatIdList); exhibitionBoardCatLambdaQueryWrapper.in(ExhibitionBoardCat::getId, boardCatIdList);
} }
......
...@@ -28,7 +28,6 @@ import org.springframework.web.bind.annotation.*; ...@@ -28,7 +28,6 @@ import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.Objects;
import java.util.Set; import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
...@@ -94,7 +93,7 @@ public class VideoContentCatController extends BaseController { ...@@ -94,7 +93,7 @@ public class VideoContentCatController extends BaseController {
if (StringUtils.isNotBlank(copyrightOwnerId)) { if (StringUtils.isNotBlank(copyrightOwnerId)) {
final LambdaQueryWrapper<CopyrightOwnerVideoContentCat> queryWrapper = Wrappers.<CopyrightOwnerVideoContentCat>lambdaQuery().eq(CopyrightOwnerVideoContentCat::getCopyrightOwnerId, copyrightOwnerId); final LambdaQueryWrapper<CopyrightOwnerVideoContentCat> queryWrapper = Wrappers.<CopyrightOwnerVideoContentCat>lambdaQuery().eq(CopyrightOwnerVideoContentCat::getCopyrightOwnerId, copyrightOwnerId);
queryWrapper.select(CopyrightOwnerVideoContentCat::getVideoContentCatId); queryWrapper.select(CopyrightOwnerVideoContentCat::getVideoContentCatId);
final List<String> videoContentCatIdList = this.copyrightOwnerVideoContentCatService.listObjs(queryWrapper, Objects::toString); final List<String> videoContentCatIdList = this.copyrightOwnerVideoContentCatService.listObjs(queryWrapper, Object::toString);
videoContentCatLambdaQueryWrapper.in(VideoContentCat::getId, videoContentCatIdList); videoContentCatLambdaQueryWrapper.in(VideoContentCat::getId, videoContentCatIdList);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment