diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighOrderController.java b/hai-bweb/src/main/java/com/bweb/controller/HighOrderController.java index c9c962c4..ed50a6dc 100644 --- a/hai-bweb/src/main/java/com/bweb/controller/HighOrderController.java +++ b/hai-bweb/src/main/java/com/bweb/controller/HighOrderController.java @@ -109,11 +109,21 @@ public class HighOrderController { HttpServletRequest request) { try { -// // 用户 -// SessionObject sessionObject = userCenter.getSessionObject(request); -// HighUserModel userInfoModel = (HighUserModel) sessionObject.getObject(); + SessionObject sessionObject = userCenter.getSessionObject(request); + UserInfoModel userInfoModel = (UserInfoModel) sessionObject.getObject(); + Map map = new HashMap<>(); + + if (userInfoModel.getSecRole().getRoleType() == 5) { + map.put("companyId" , userInfoModel.getBsCompany().getId()); + } + if (userInfoModel.getSecRole().getRoleType() == 2) { + map.put("merchantId" , userInfoModel.getMerchant().getId()); + } + if (userInfoModel.getSecRole().getRoleType() == 3) { + map.put("storeId" , userInfoModel.getMerchantStore().getId()); + } map.put("status", status); map.put("orderNo", orderNo); map.put("phone", phone);