?? merchantcustomerbizrecorddao.java
字號:
package com.mole.struts.dao;
import java.util.ArrayList;
import java.util.Iterator;
import com.mole.struts.bean.merchantBusinessRecordDetailBean;
public class MerchantCustomerBizRecordDAO extends AbstractPageDAO {
public MerchantCustomerBizRecordDAO(String column, String where, String id,
String group, String order, int pageSize) {
this.setColumnCondition(column);
this.setWhereCondition(where);
this.setIdCondition(id);
this.setGroupCondition(group);
this.setOrderCondition(order);
this.setPageSize(pageSize);
}
public merchantBusinessRecordDetailBean[] getAllBizRecordInfo() {
ArrayList<Object[]> arrayList = this.executeQuery(getSql());
if (arrayList == null)
return null;
merchantBusinessRecordDetailBean[] records = new merchantBusinessRecordDetailBean[arrayList
.size()];
Iterator<Object[]> it = arrayList.iterator();
int i = 0;
while (it.hasNext()) {
Object[] obj = it.next();
merchantBusinessRecordDetailBean record = new merchantBusinessRecordDetailBean();
record.setSwiftId(obj[0].toString());
record.setGoodsName(obj[1].toString());
record.setGoodsId(obj[2].toString());
record.setAmount(obj[3].toString());
record.setFactPrice(obj[4].toString());
record.setNominalPrice(obj[5].toString());
record.setDiscount(obj[6].toString());
record.setGoodsNumber(obj[7].toString());
records[i++] = record;
}
return records;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -