面向实体查询


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;

}

-------------------------------------------------------------------------
## 极客时间全网最便宜最优惠购买方式,优惠券返现 百度网盘 微信关注公众号“选门好课”
扫描下方二维码关注我的公众号"选门好课",与我一起交流知识
原文地址:https://www.cnblogs.com/singworld/p/9727980.html