NutzCN Logo
问答 如何过滤参数
发布于 3188天前 作者 erick0071987 2062 次浏览 复制 上一个帖子 下一个帖子
标签:

想根据订单状态显示对应的页面,但订单号和订单状态会因此显示在页面中,有什么办法能够屏蔽掉state参数的显示么?

@At("/manage/showAuditPage")
@Ok("re")
public String showAuditPage(HttpServletRequest request, @Param("orderId")
String orderId, @Param("state")
String state, ViewModel model)
{
OrderVO orderVO = dao.fetch(OrderVO.class, orderId);
if (orderVO != null)
{
HttpSession session = request.getSession();
UserVO userVO = (UserVO) session.getAttribute(CommonConstants.SESSION_USER_KEY);
orderVO = this.initOrderVO(orderVO, userVO);
//将订单对象放入request中
model.setOrRemove("orderVO", orderVO);

     //查找下单的经销商和加盟记录
     JoinInVO joininVO = JoinInBO.fetchJoinIn(dao, orderVO.getSupplyerId(), orderVO.getSalesId());//查找加盟的记录
     dao.fetchLinks(joininVO, "salesVO");
     dao.fetchLinks(joininVO, "joinInLevelVO");
     dao.fetchLinks(joininVO, "supplyerVO");
     model.setOrRemove("joininVO", joininVO);

     //待订单审核
     if (CommonConstants.ORDER.ORDER_STATE_INITCHECK.equals(state))
        return "jsp:/manage/orderManage/orderInitAudit";
     //待财务审核
     else if (CommonConstants.ORDER.ORDER_STATE_FINACECHECK.equals(state))
        return "jsp:/manage/orderManage/orderDetail";
     //待出库审核
     else if (CommonConstants.ORDER.ORDER_STATE_STORECHECK.equals(state))
        return "jsp:/manage/orderManage/orderOutStorage.jsp";
     //待发货审核
     else if (CommonConstants.ORDER.ORDER_STATE_TRANSFERCHECK.equals(state))
        return "jsp:/manage/orderManage/orderDeliver";
     //待收货确认
     else if (CommonConstants.ORDER.ORDER_STATE_RECEIVECHECK.equals(state))
        return "jsp:/manage/orderManage/orderReceive";
  }
  return "";

}

```
如图:
QQ图片20160331182720_png

2 回复

这想法有点诡异,地址栏的参数隐藏???

除非是POST过来, 不然没法"隐藏"

添加回复
请先登陆
回到顶部