Iterator<String> it = lstPermission.iterator(); |
while (it.hasNext()) { |
permissionId = it.next().toString(); |
if (permissionId != null & permissionId.length() > 0 ) { |
// 根据应用Id,查找应用 |
String strsql = "select permissionName from " + dataDaseName |
+ ".ta_application where id='" + permissionId |
+ "' and isDelete = 0" ; |
// 当数据不存在的时候需要进行判断,不得直接读取 |
if ( this .queryBySql(strsql).size() != 0 ) { |
// 查找应用存入集合里面 |
lstApplication.add( this .queryBySql(strsql).get( 0 ) |
.toString()); |
} |
} |
} |