spring
parent
df51baf6c6
commit
41e4fb210a
|
|
@ -205,7 +205,7 @@ public class PaperServiceImpl extends ServiceImpl<PaperMapper, PaperDO> implemen
|
||||||
@Override
|
@Override
|
||||||
@Transactional(rollbackFor = Exception.class)
|
@Transactional(rollbackFor = Exception.class)
|
||||||
public boolean bindQuestions(Long paperId, List<Long> questionIds) {
|
public boolean bindQuestions(Long paperId, List<Long> questionIds) {
|
||||||
Db.remove(Wrappers.<PaperQuestionRelDO>lambdaQuery()
|
Db.remove(new LambdaQueryWrapper<PaperQuestionRelDO>()
|
||||||
.eq(PaperQuestionRelDO::getPaperId, paperId));
|
.eq(PaperQuestionRelDO::getPaperId, paperId));
|
||||||
if (CollectionUtils.isEmpty(questionIds)) {
|
if (CollectionUtils.isEmpty(questionIds)) {
|
||||||
return true;
|
return true;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue