---
title: "向已获取的list中插入值"
author: "pphqq"
date: "2011-08-08T11:23:08Z"
tags: []
categories: ["编程语言"]
slug: "list"
draft: false
lastmod: "2011-05-26T15:08:37Z"
id: 1059737
url: "https://pphqq.iteye.com/blog/1059737"
---

public List getWfList(String id){
		NetSpGeneralbillInfo vo = this.findOne(id);
		String sql = " select flowId,<span style="color:red">pdkey pd</span> from net_SP_billAndWf  where billId='"+vo.getBillId()+"' ";
		List list = this.getListBySql(sql);
		
		NetWorkInstanceUtil instanceutil = new NetWorkInstanceUtil();
		Map pds = instanceutil.getPdDescriptions();
		for(int i=0;i<list.size();i++){
			Object obj = (Object)list.get(i);
			obj= pds.get(obj.toString());//<span style="color:red">pd值发生改变</span>
		}
		
		return list;
	}