|
|
@@ -10,6 +10,8 @@ import com.zhongzheng.modules.bank.domain.ExamNote;
|
|
|
import com.zhongzheng.modules.bank.mapper.ExamNoteMapper;
|
|
|
import com.zhongzheng.modules.bank.service.IExamNoteService;
|
|
|
import com.zhongzheng.modules.bank.vo.ExamNoteVo;
|
|
|
+import com.zhongzheng.modules.course.mapper.CourseMapper;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
@@ -30,6 +32,9 @@ import java.util.stream.Collectors;
|
|
|
@Service
|
|
|
public class ExamNoteServiceImpl extends ServiceImpl<ExamNoteMapper, ExamNote> implements IExamNoteService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private ExamNoteMapper examNoteMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public ExamNoteVo queryById(Long fileId){
|
|
|
ExamNote db = this.baseMapper.selectById(fileId);
|
|
|
@@ -45,12 +50,17 @@ public class ExamNoteServiceImpl extends ServiceImpl<ExamNoteMapper, ExamNote> i
|
|
|
lqw.eq(bo.getPrice() != null, ExamNote::getPrice, bo.getPrice());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getCoverUrl()), ExamNote::getCoverUrl, bo.getCoverUrl());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getIntroduction()), ExamNote::getIntroduction, bo.getIntroduction());
|
|
|
- lqw.eq(bo.getStatus() != null, ExamNote::getStatus, bo.getStatus());
|
|
|
+ lqw.in(bo.getStatus() != null, ExamNote::getStatus, bo.getStatus());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getFileUrls()), ExamNote::getFileUrls, bo.getFileUrls());
|
|
|
lqw.eq(bo.getSort() != null, ExamNote::getSort, bo.getSort());
|
|
|
return entity2Vo(this.list(lqw));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<ExamNoteVo> selectExamNoteList(ExamNoteQueryBo bo) {
|
|
|
+ return examNoteMapper.selectExamNoteList(bo);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
|
*
|