| package com.dy.pipIrrDemo.role; | 
|   | 
|   | 
| import com.dy.pipIrrGlobal.daoDemo.DemoRoleMapper; | 
| import com.dy.pipIrrGlobal.pojoDemo.DemoRole; | 
| import org.springframework.beans.factory.annotation.Autowired; | 
| import org.springframework.stereotype.Service; | 
|   | 
| import java.util.List; | 
|   | 
| @Service | 
| public class RoleSv { | 
|     @Autowired | 
|     private DemoRoleMapper demoRoleMapper ; | 
|   | 
|     public List<DemoRole> selectAll() { | 
|         List<DemoRole> list = this.demoRoleMapper.selectAll() ; | 
|         return list ; | 
|     } | 
| } |