权限函数!

private String getModuleName(HttpServletRequest request) {

  Integer roleValue = WebUtil.getCurrentBusiNetworkRoleValue(request);
  String sResult = null;
  if(ProjectConsts.ORG_TYPE_BUYER.equals(roleValue)){
   sResult = BUYER_MODULE_CODE;
  } else if(RightsConsts.BUSI_NETWORK_ROLE_TYPE_196.equals(roleValue)){ // 配送
   sResult = PS_VENDOR_MATERIAL_FORECAST_MGT;
  } else if(RightsConsts.BUSI_NETWORK_ROLE_TYPE_VENDOR.equals(roleValue)){ //直送
   sResult = VENDOR_MODULE_CODE;
  }
  
  return sResult;
 }

你可能感兴趣的:(权限函数!)