1. 程式人生 > >Object轉list,拿原來實體類的屬性值

Object轉list,拿原來實體類的屬性值

Object object = map.get("Customerlist");
				List<CustomerVo> vos = new Gson().fromJson(new Gson().toJson(object), new TypeToken<List<CustomerVo>>(){}.getType());
				for (CustomerVo vo : vos) {
					customerids += vo.getId() + ",";
				}

web端呼叫不同的server實現