Commit 2e5b013f by 墨竹

feat:查询权限修改

parent d702c85b
......@@ -1299,13 +1299,13 @@ public class StaffApiServiceImpl implements StaffApiService {
}
@Override
public List<String> getHaoBanStoreRolesByClerkId(String clerkId,String wxEnterpriseId) {
public List<String> getHaoBanStoreRolesByClerkId(String clerkId, String wxEnterpriseId) {
ClerkDTO clerkDTO = clerkService.getClerkByClerkId(clerkId);
if (clerkDTO == null) {
logger.info("导购不存在:clerkId:{}",clerkId);
logger.info("导购不存在:clerkId:{}", clerkId);
return Collections.emptyList();
}
List<String> enterpriseIdStoreIds = storeRangeService.listStoreIdByWxEnterpriseId(clerkDTO.getEnterpriseId(), wxEnterpriseId);
List<String> enterpriseIdStoreIds = storeRangeService.listStoreIdByWxEnterpriseId(wxEnterpriseId, clerkDTO.getEnterpriseId());
logger.info("好办门店id:{}", JSON.toJSONString(enterpriseIdStoreIds));
List<String> gicStoreIds = getStoreIdList(clerkId);
if (CollectionUtils.isEmpty(gicStoreIds)) {
......@@ -1329,7 +1329,7 @@ public class StaffApiServiceImpl implements StaffApiService {
//商户未关联好办
return Collections.emptyList();
}
List<String> enterpriseIdStoreIds = storeRangeService.listStoreIdByWxEnterpriseId(enterpriseId, enterpriseRelated.getWxEnterpriseId());
List<String> enterpriseIdStoreIds = storeRangeService.listStoreIdByWxEnterpriseId(enterpriseRelated.getWxEnterpriseId(), enterpriseId);
List<String> storeWidgetIdStoreIds = getStoreWidgetIdStoreIds(storeWidgetId, enterpriseId);
//取交集
Sets.SetView<String> intersection = Sets.intersection(Sets.newHashSet(enterpriseIdStoreIds), Sets.newHashSet(storeWidgetIdStoreIds));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment