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