首页 > 技术文章 > jdbcTemplate查询结果为对象list

gxl1 2019-12-24 17:31 原文

RowMapper<WmsExpensesSettleEntity> rowMapper1=new BeanPropertyRowMapper<WmsExpensesSettleEntity>(WmsExpensesSettleEntity.class);
List<WmsExpensesSettleEntity> list= jdbcTemplate.query(s+where + " and (bill_orderno ='' or bill_orderno = null) order by create_date Desc", rowMapper1);

推荐阅读