|
@@ -341,11 +341,16 @@ public class KwaixiaodianItemGetController extends BaseController {
|
|
|
}
|
|
|
requestMap.put("companyId", companyId);
|
|
|
} else if ("industry_sale_manager".equals(roleId)) { // 销售经理角色查看部门下所有成员数据
|
|
|
- List<Long> userIds = kwaixiaodianItemGetService.getUserIds(userId);
|
|
|
- if (Check.isNull(userIds)) {
|
|
|
- throw new Exception("此用户未查询到部门成员信息");
|
|
|
+// List<Long> userIds = kwaixiaodianItemGetService.getUserIds(userId);
|
|
|
+// if (Check.isNull(userIds)) {
|
|
|
+// throw new Exception("此用户未查询到部门成员信息");
|
|
|
+// }
|
|
|
+// requestMap.put("userIds", userIds);
|
|
|
+ companyId = kwaixiaodianItemGetService.getCompanyId(userId);
|
|
|
+ if (Check.isNull(companyId)) {
|
|
|
+ throw new Exception("此用户未查询到归属公司");
|
|
|
}
|
|
|
- requestMap.put("userIds", userIds);
|
|
|
+ requestMap.put("companyId", companyId);
|
|
|
} else if ("industry_sale".equals(roleId)) { // 销售 查看自己的数据
|
|
|
List<Long> userIds = new ArrayList<>();
|
|
|
userIds.add(userId);
|
|
@@ -357,9 +362,14 @@ public class KwaixiaodianItemGetController extends BaseController {
|
|
|
}
|
|
|
requestMap.put("courtshipPurchaseIds", courtshipPurchaseIds);
|
|
|
} else if ("industry_purchase".equals(roleId) || "industry_courtship".equals(roleId)) { // 采购 招商 查看自己的数据
|
|
|
- List<Long> courtshipPurchaseIds = new ArrayList<>();
|
|
|
- courtshipPurchaseIds.add(userId);
|
|
|
- requestMap.put("courtshipPurchaseIds", courtshipPurchaseIds);
|
|
|
+// List<Long> courtshipPurchaseIds = new ArrayList<>();
|
|
|
+// courtshipPurchaseIds.add(userId);
|
|
|
+// requestMap.put("courtshipPurchaseIds", courtshipPurchaseIds);
|
|
|
+ companyId = kwaixiaodianItemGetService.getCompanyId(userId);
|
|
|
+ if (Check.isNull(companyId)) {
|
|
|
+ throw new Exception("此用户未查询到归属公司");
|
|
|
+ }
|
|
|
+ requestMap.put("companyId", companyId);
|
|
|
}
|
|
|
|
|
|
if (!Check.isNull(shopId)) {
|