面向实体查询


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;

}

posted @ 2018-09-30 09:30  剑小新  阅读(140)  评论(0)    收藏  举报