|
@@ -3,6 +3,7 @@ package com.zhongzheng.modules.course.service.impl;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.bean.BeanUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import cn.hutool.core.util.StrUtil;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
|
+import com.zhongzheng.modules.course.domain.CourseEducationType;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -40,8 +41,8 @@ public class CourseSubjectServiceImpl extends ServiceImpl<CourseSubjectMapper, C
|
|
public List<CourseSubjectVo> queryList(CourseSubjectQueryBo bo) {
|
|
public List<CourseSubjectVo> queryList(CourseSubjectQueryBo bo) {
|
|
LambdaQueryWrapper<CourseSubject> lqw = Wrappers.lambdaQuery();
|
|
LambdaQueryWrapper<CourseSubject> lqw = Wrappers.lambdaQuery();
|
|
lqw.eq(StrUtil.isNotBlank(bo.getEncoder()), CourseSubject::getEncoder, bo.getEncoder());
|
|
lqw.eq(StrUtil.isNotBlank(bo.getEncoder()), CourseSubject::getEncoder, bo.getEncoder());
|
|
- lqw.eq(bo.getStatus() != null, CourseSubject::getStatus, bo.getStatus());
|
|
|
|
lqw.like(StrUtil.isNotBlank(bo.getSubjectName()), CourseSubject::getSubjectName, bo.getSubjectName());
|
|
lqw.like(StrUtil.isNotBlank(bo.getSubjectName()), CourseSubject::getSubjectName, bo.getSubjectName());
|
|
|
|
+ lqw.in(bo.getStatus() != null, CourseSubject::getStatus, bo.getStatus());
|
|
return entity2Vo(this.list(lqw));
|
|
return entity2Vo(this.list(lqw));
|
|
}
|
|
}
|
|
|
|
|