在BEAN中存了MAP
BEAN: UpgradeRouteBean
MAP: ( private Map<String, Object> sourceMap;)
Map<String,UpgradeRouteBean> mapBean = (Map<String,UpgradeRouteBean>) request.getSession().getAttribute("getBean");
从SESSION中获取 BEAN的MAP
删除的时候,直接remove
Map<String,UpgradeRouteBean> getFirstBean = (Map<String,UpgradeRouteBean>) request.getSession().getAttribute("getBean");
Map<String,UpgradeRouteBean> getBean = getListUpgradeBean(getFirstBean,null,tarkId,sourceId);
增加的时候,setAttribute
Map<String,UpgradeRouteBean> getFirstBean = (Map<String,UpgradeRouteBean>) request.getSession().getAttribute("getBean");
Map<String,UpgradeRouteBean> getBean = getListUpgradeBean(getFirstBean,sourceId,tarkId,null);
request.getSession().setAttribute("getBean",getBean);