From f14850e0836c14235dc52776814bb13574c4c991 Mon Sep 17 00:00:00 2001 From: yuanye <418471657@qq.com> Date: Sat, 3 Apr 2021 02:08:20 +0800 Subject: [PATCH] 1 --- .../com/bweb/controller/HighOrderController.java | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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);