|
|
@@ -8,8 +8,10 @@ import com.zhongzheng.modules.user.bo.SchoolEditBo;
|
|
|
import com.zhongzheng.modules.user.bo.SchoolQueryBo;
|
|
|
import com.zhongzheng.modules.user.domain.School;
|
|
|
import com.zhongzheng.modules.user.mapper.SchoolMapper;
|
|
|
+import com.zhongzheng.modules.user.mapper.UserSchoolInfoMapper;
|
|
|
import com.zhongzheng.modules.user.service.ISchoolService;
|
|
|
import com.zhongzheng.modules.user.vo.SchoolVo;
|
|
|
+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 SchoolServiceImpl extends ServiceImpl<SchoolMapper, School> implements ISchoolService {
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private SchoolMapper schoolMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public SchoolVo queryById(Long id){
|
|
|
School db = this.baseMapper.selectById(id);
|
|
|
@@ -52,6 +57,11 @@ public class SchoolServiceImpl extends ServiceImpl<SchoolMapper, School> impleme
|
|
|
return entity2Vo(this.list(lqw));
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public List<School> selectList(SchoolQueryBo bo) {
|
|
|
+ return schoolMapper.selectList(bo);
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 实体类转化成视图对象
|
|
|
*
|