mybatis-plus 查询view视图

package cn.x.test;

import cn.x.domain.ViewDepartmentEmployee;
import cn.x.mapper.ViewDepartmentEmployeeMapper;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.List;

@SpringBootTest
@RunWith(SpringRunner.class)
public class 查询view视图 {

    @Autowired
    private ViewDepartmentEmployeeMapper viewDepartmentEmployeeMapper;

    @Test
    public void findAll(){
        List<ViewDepartmentEmployee> viewDepartmentEmployees = viewDepartmentEmployeeMapper.selectList(null);
        for (ViewDepartmentEmployee viewDepartmentEmployee : viewDepartmentEmployees) {
            System.out.println(viewDepartmentEmployee);
        }
    }
}


版权声明:本文为weixin_53867644原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。