|
|
@@ -5,6 +5,7 @@ import cn.hutool.core.util.StrUtil;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.ServletUtils;
|
|
|
import com.zhongzheng.modules.course.bo.CourseProjectTypeQueryBo;
|
|
|
+import com.zhongzheng.modules.course.domain.CourseEducationType;
|
|
|
import com.zhongzheng.modules.course.service.ICourseProjectTypeService;
|
|
|
import com.zhongzheng.modules.course.vo.CourseProjectTypeVo;
|
|
|
import com.zhongzheng.modules.user.bo.*;
|
|
|
@@ -45,7 +46,16 @@ public class SchoolServiceImpl extends ServiceImpl<SchoolMapper, School> impleme
|
|
|
@Override
|
|
|
public SchoolVo queryById(Long id){
|
|
|
School db = this.baseMapper.selectById(id);
|
|
|
- return BeanUtil.toBean(db, SchoolVo.class);
|
|
|
+ SchoolVo schoolVo = BeanUtil.toBean(db, SchoolVo.class);
|
|
|
+
|
|
|
+ CourseProjectTypeQueryBo courseProjectTypeQueryBo = new CourseProjectTypeQueryBo();
|
|
|
+ courseProjectTypeQueryBo.setId(schoolVo.getId());
|
|
|
+ List<Integer> status = new ArrayList<>();
|
|
|
+ status.add(1);
|
|
|
+ courseProjectTypeQueryBo.setStatus(status);
|
|
|
+ List<CourseProjectTypeVo> courseProjectTypeVos = baseMapper.selectProject(courseProjectTypeQueryBo);
|
|
|
+ schoolVo.setCourseProjectTypes(courseProjectTypeVos);
|
|
|
+ return schoolVo;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
@@ -53,9 +63,9 @@ public class SchoolServiceImpl extends ServiceImpl<SchoolMapper, School> impleme
|
|
|
LambdaQueryWrapper<School> lqw = Wrappers.lambdaQuery();
|
|
|
lqw.like(StrUtil.isNotBlank(bo.getSchoolName()), School::getSchoolName, bo.getSchoolName());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getEncoder()), School::getEncoder, bo.getEncoder());
|
|
|
- lqw.eq(bo.getStatus() != null, School::getStatus, bo.getStatus());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getSchoolProvince()), School::getSchoolProvince, bo.getSchoolProvince());
|
|
|
lqw.eq(StrUtil.isNotBlank(bo.getSchoolCity()), School::getSchoolCity, bo.getSchoolCity());
|
|
|
+ lqw.in(bo.getStatus() != null, School::getStatus, bo.getStatus());
|
|
|
return entity2Vo(this.list(lqw));
|
|
|
}
|
|
|
|