public List<MicroMetaBean> queryMetaBeanByCondition(String tableName, String condition) {
		List<MicroMetaBean> retBeanList=new ArrayList();
		/*		JdbcTemplate jdbcTemplate = (JdbcTemplate) MicroDbHolder
		.getDbSource(dbName);*/
		JdbcTemplate jdbcTemplate = getMicroJdbcTemplate();
		String sql = "select * from " + tableName + " where "+condition;
		logger.debug(sql);
		List<Map<String, Object>> retList = jdbcTemplate.queryForList(sql);
		if(retList==null){
			return retBeanList;
		}
		
		for(Map<String,Object> rowMap:retList){
			MicroMetaBean metaBean = new MicroMetaBean();
			metaBean.setId((String) rowMap.get("id"));
			metaBean.setMeta_content((String) rowMap.get("meta_content"));
			metaBean.setMeta_key((String) rowMap.get("meta_key"));
			metaBean.setMeta_name((String) rowMap.get("meta_name"));
			metaBean.setMeta_type((String) rowMap.get("meta_type"));
			metaBean.setRemark((String) rowMap.get("remark"));
			metaBean.setCreate_time((Date) rowMap.get("create_time"));
			metaBean.setUpdate_time((Date) rowMap.get("update_time"));
			retBeanList.add(metaBean);
		}
		return retBeanList;
	}
public List < MicroMetaBean > queryMetaBeanByCondition ( String tableName , String condition ) { List < MicroMetaBean > retBeanList = new ArrayList ( ) ; JdbcTemplate jdbcTemplate = getMicroJdbcTemplate ( ) ; String sql = "select * from " + tableName + " where " + condition ; logger . debug ( sql ) ; List < Map < String , Object > > retList = jdbcTemplate . queryForList ( sql ) ; if ( retList == null ) { return retBeanList ; } for ( Map < String , Object > rowMap : retList ) { MicroMetaBean metaBean = new MicroMetaBean ( ) ; metaBean . setId ( ( String ) rowMap . get ( "id" ) ) ; metaBean . setMeta_content ( ( String ) rowMap . get ( "meta_content" ) ) ; metaBean . setMeta_key ( ( String ) rowMap . get ( "meta_key" ) ) ; metaBean . setMeta_name ( ( String ) rowMap . get ( "meta_name" ) ) ; metaBean . setMeta_type ( ( String ) rowMap . get ( "meta_type" ) ) ; metaBean . setRemark ( ( String ) rowMap . get ( "remark" ) ) ; metaBean . setCreate_time ( ( Date ) rowMap . get ( "create_time" ) ) ; metaBean . setUpdate_time ( ( Date ) rowMap . get ( "update_time" ) ) ; retBeanList . add ( metaBean ) ; } return retBeanList ; }
/*
锟斤拷荼锟斤拷锟斤拷锟斤拷锟斤拷锟窖拷锟阶硷拷锟斤拷bean