@Override
public DataObject listReceiptDetail(DataObject para) throws AppException {
DataObject vdo = DataObject.getInstance();
DataStore result = DataStore.getInstance();
DataStore vds = queryFeeDao.listReceiptDetail(para).getDataStore("vds");
//数据重组,一行表格显示两组数据
double m = vds.rowCount();
int n = (int)Math.ceil(m/2.0);
for (int i = 0; i < n; i++) {
result.put(i, "bill_name", vds.getString(i, "bill_name"));
result.put(i, "receipt_money", vds.getInt(i, "receipt_money"));
}
for(int i = n; i < m; i++) {
result.put(i-n, "bill_name2", vds.getString(i, "bill_name"));
result.put(i-n, "receipt_money2", vds.getInt(i, "receipt_money"));
}
vdo.put("result", result);
return vdo;
}
06-27
1万+
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
05-01
4307
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)