|
@@ -112,15 +112,25 @@ public class KwaixiaodianItemGetController extends BaseController {
|
|
userIds.add(userId);
|
|
userIds.add(userId);
|
|
requestMap.put("userIds", userIds);
|
|
requestMap.put("userIds", userIds);
|
|
} else if ("industry_courtship_manager".equals(roleId) || "industry_purchase_manager".equals(roleId)) { // 招商、采购经理角色查看部门下所有成员数据
|
|
} else if ("industry_courtship_manager".equals(roleId) || "industry_purchase_manager".equals(roleId)) { // 招商、采购经理角色查看部门下所有成员数据
|
|
- List<Long> courtshipPurchaseIds = kwaixiaodianItemGetService.getUserIds(userId);
|
|
|
|
- if (Check.isNull(courtshipPurchaseIds)) {
|
|
|
|
- throw new Exception("此用户未查询到部门成员信息");
|
|
|
|
|
|
+// List<Long> courtshipPurchaseIds = kwaixiaodianItemGetService.getUserIds(userId);
|
|
|
|
+// if (Check.isNull(courtshipPurchaseIds)) {
|
|
|
|
+// throw new Exception("此用户未查询到部门成员信息");
|
|
|
|
+// }
|
|
|
|
+// requestMap.put("courtshipPurchaseIds", courtshipPurchaseIds);
|
|
|
|
+ Long companyId = kwaixiaodianItemGetService.getCompanyId(userId);
|
|
|
|
+ if (Check.isNull(companyId)) {
|
|
|
|
+ throw new Exception("此用户未查询到归属公司");
|
|
}
|
|
}
|
|
- requestMap.put("courtshipPurchaseIds", courtshipPurchaseIds);
|
|
|
|
|
|
+ requestMap.put("companyId", companyId);
|
|
} else if ("industry_purchase".equals(roleId) || "industry_courtship".equals(roleId)) { // 采购 招商 查看自己的数据
|
|
} 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);
|
|
|
|
+ Long companyId = kwaixiaodianItemGetService.getCompanyId(userId);
|
|
|
|
+ if (Check.isNull(companyId)) {
|
|
|
|
+ throw new Exception("此用户未查询到归属公司");
|
|
|
|
+ }
|
|
|
|
+ requestMap.put("companyId", companyId);
|
|
}
|
|
}
|
|
|
|
|
|
if (!Check.isNull(itemId)) {
|
|
if (!Check.isNull(itemId)) {
|