list 转 实体对象

String sql = "SELECT * from aeo_employee_files  where emp_flag  = 0   ";
        RowMapper<AeoEmployeeFilesEntity> rowMapper=new BeanPropertyRowMapper<AeoEmployeeFilesEntity>(AeoEmployeeFilesEntity.class);
        List<AeoEmployeeFilesEntity> list= jdbcTemplate.query(sql, rowMapper);

 

posted @ 2020-10-26 14:49  薛柏梁  阅读(1246)  评论(0编辑  收藏  举报