面向实体查询


public String FindCid(SH_CITIES sh_cities) throws Exception {
String result = null;

SqlCommand command = new SqlCommand(SH_AREASSql.getCityID);

DataTable table = this.daoProvider().query(command,sh_cities);
List<Object> ids = new ArrayList<Object>();

if( NoneType.isNullOrEmpty(table) ){
return result ;
}

for( DataRow row : table ){
ids.add( row.get(0).getValue() );
}

result = ListUtil.toString(ids);
return result;

}

猜你喜欢

转载自www.cnblogs.com/singworld/p/9727980.html