package com.sqx.modules.firstLogin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sqx.modules.firstLogin.dao.DepartmentDao;
import com.sqx.modules.firstLogin.entity.Department;
import com.sqx.modules.firstLogin.service.DepartmentService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DepartmentServiceImpl extends ServiceImpl<DepartmentDao, Department> implements DepartmentService {
    @Override
    public List<Department> getDepartmentList(Department department){

        return   baseMapper.selectList(new QueryWrapper<>(department));
    }
}
