@ResponseBody @RequestMapping(value = "/queryContactByOrderId") public String queryContactByOrderId(@RequestParam String orderId) { Order order = null; try { order = orderService.getOrderHistByOrderid(orderId); } catch (Exception e) { } if (order != null) { return order.getContactid(); } return ""; }
@Override public boolean checkOrder(Order order) { // 检查是否主管,如果是的,那么不需要 if (ncodPaytypeList.contains(order.getPaytype())) return true; try { List<AcornRole> roleList = userService.getRoleList(order.getCrusr()); for (AcornRole acornRole : roleList) { if (acornRole.getName().equalsIgnoreCase(SecurityConstants.ROLE_OUTBOUND_MANAGER) || acornRole.getName().equalsIgnoreCase(SecurityConstants.ROLE_INBOUND_MANAGER) || acornRole.getName().equalsIgnoreCase(SecurityConstants.ROLE_OUTBOUND_GROUP_MANAGER) || acornRole.getName().equalsIgnoreCase(SecurityConstants.ROLE_INBOUND_GROUP_MANAGER)) { return true; } } } catch (Exception exp) { logger.error("", exp); } return !transferBlackListService.checkContactBlackList(order.getContactid()); }