拿来

	if (null != caseList && 0 != caseList.size()) {
for (Iterator it = caseList.iterator(); it.hasNext();) {
int beginRow = ++r;
Object[] row = (Object[]) it.next();
requisitionTime=(Date) row[0];
businessTitle= (String) row[1];
problem=(String) row[2];
solution=(String) row[3];

addCellbyMerge(0,beginRow,0,r,ToDateString(requisitionTime),false,sheet);
addCellbyMerge(1,beginRow,1,r,businessTitle,false,sheet);
addCellbyMerge(2,beginRow,2,r,problem,false,sheet);
addCellbyMerge(3,beginRow,3,r,solution,false,sheet);
addCellbyMerge(4,beginRow,4,r,"",false,sheet);

}
}
Map map = null;
String businessTitle=null;
Timestamp requisitionTime=null;
String problem=null;
String solution=null;

if (null != caseList && 0 != caseList.size()) {
for (Iterator it = caseList.iterator(); it.hasNext();) {
int beginRow = ++r;
map = (Map) it.next();
businessTitle=(String)map.get("businessTitle");
requisitionTime=(Timestamp)map.get("requisitionTime");
problem=(String)map.get("problem");
solution=(String)map.get("solution");

addCellbyMerge(0,beginRow,0,r,ToDateString(requisitionTime),false,sheet);
addCellbyMerge(1,beginRow,1,r,businessTitle,false,sheet);
addCellbyMerge(2,beginRow,2,r,problem,false,sheet);
addCellbyMerge(3,beginRow,3,r,solution,false,sheet);
addCellbyMerge(4,beginRow,4,r,"",false,sheet);

}
}
StringBuffer hql = new StringBuffer("Select new Map(t.requisitionTime as requisitionTime," +
"t.businessTitle as businessTitle,t.problem as problem, r.solution as solution ) from BusinessInfo t ,MyProjectInfo p ,BusinessProcess r " +
"where t.id=r.businessId and r.processType='2' and p.projectId=t.projectId and p.clientId=" + clientId);
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值