|
版本: |
X5.2.7 |
小版本号: |
|
|
|
数据库: |
MS SQLServer |
服务器操作系统: |
Windows |
应用服务器: |
Tomcat |
客户端操作系统: |
Windows 7 |
浏览器: |
Chrome |
|
|
代码如下:
public static List<String> getQLRS_COUNT(String YWH){
String sql=null;
sql = "select a.*,b.fName QLRZJZLMC,c.fName QLRLXMC from SQR a "+
"left join BD_BDCDJZD b ON b.fParentNumber = 'A30' AND b.fNamber = a.QLRZJZL "+
"left join BD_BDCDJZD C ON C.fNamber = a.QLRLX AND C.fType = '权利人类型' "+
"where YWH = '" + YWH + "' AND QLRMC <> ''";
HashMap<String, String> sqlMap = new HashMap<String, String>();
Table table = SQL.select(sqlMap, null, dataModel);
Iterator<Row> ro = table.iterator();
Row row;
List<String> list = new ArrayList<String>();
while (ro.hasNext()) {
row = ro.next();
list.add(row.getString("YWH"));
list.add(row.getString("YSDM"));
list.add(row.getString("QLRMC"));
list.add(row.getString("QLRZJH"));
list.add(row.getString("QLRZJZL"));
list.add(row.getString("QLRZJZLMC"));
list.add(row.getString("QLRLXMC"));
list.add(row.getString("QLRDH"));
list.add(row.getString("SXH"));
}
return list;
}
以上为实现多权利人的方法。我分别使用多个流程都调用此方法,可是一个流程只能返回一条数据,即list中只有一条数据,而实际上是多条。我跟代码发现,在这个流程调用的时候,while循环值走一次,为什么?求解!急,在线等
|
|