public NoticeBean queryNoticeDetail(String noticeID) throws Exception
{
NoticeBean nb = new NoticeBean();
String sq = " select * from z_notice where id = '"+noticeID+"' ";
nb = ds.queryForObject(sq.toString(),new BeanPropertyRowMapper<NoticeBean>(NoticeBean.class));
return nb;
}
Spring jdbc getJdbcTemplate() queryForObject返回对象javabean
最新推荐文章于 2024-07-12 15:32:25 发布