Commit 4bf306f9 by 徐高华

gic超管

parent 701c372d
...@@ -235,6 +235,8 @@ public interface StaffApiService { ...@@ -235,6 +235,8 @@ public interface StaffApiService {
*/ */
List<String> getHaoBanStoreIdsRolesByClerkId(String clerkId, String wxEnterpriseId); List<String> getHaoBanStoreIdsRolesByClerkId(String clerkId, String wxEnterpriseId);
List<String> isGicSuper(String clerkId , String wxEnterpriseId) ;
/** /**
* 门店筛选器id和好办企业门店交集 * 门店筛选器id和好办企业门店交集
......
...@@ -76,6 +76,12 @@ public class AuditApiServiceImpl implements AuditApiService { ...@@ -76,6 +76,12 @@ public class AuditApiServiceImpl implements AuditApiService {
} }
if (storeIdList.contains("-1")) { if (storeIdList.contains("-1")) {
storeIdList = null; storeIdList = null;
}else {
List<String> superList = this.staffApiService.isGicSuper(clerkId,wxEnterpriseId) ;
if(CollectionUtils.isNotEmpty(superList) && superList.contains("-1")) {
logger.info("gic超管");
storeIdList = null ;
}
} }
PageHelper.startPage(pageInfo.getPageNum(), pageInfo.getPageSize()); PageHelper.startPage(pageInfo.getPageNum(), pageInfo.getPageSize());
com.github.pagehelper.Page<TabHaobanAudit> page = auditMapper.page(wxEnterpriseId, auditType, storeIdList, search, enterpriseId, auditStatus, auditFlag); com.github.pagehelper.Page<TabHaobanAudit> page = auditMapper.page(wxEnterpriseId, auditType, storeIdList, search, enterpriseId, auditStatus, auditFlag);
......
...@@ -890,6 +890,17 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -890,6 +890,17 @@ public class StaffApiServiceImpl implements StaffApiService {
} }
@Override @Override
public List<String> isGicSuper(String clerkId, String wxEnterpriseId) {
ClerkDTO clerkDTO = clerkService.getClerkByClerkId(clerkId);
if (clerkDTO == null) {
logger.info("导购不存在:clerkId:{},无门店", clerkId);
return Collections.emptyList();
}
List<String> gicStoreIds = getStoreIdList(clerkDTO);
return gicStoreIds;
}
@Override
public List<String> getHaoBanStoreIdsRolesByClerkId(String clerkId, String wxEnterpriseId) { public List<String> getHaoBanStoreIdsRolesByClerkId(String clerkId, String wxEnterpriseId) {
logger.info("查询导购权限,clerkId={},wxEnterpriseId={}", clerkId, wxEnterpriseId); logger.info("查询导购权限,clerkId={},wxEnterpriseId={}", clerkId, wxEnterpriseId);
if (StringUtils.isAnyBlank(clerkId, wxEnterpriseId)) { if (StringUtils.isAnyBlank(clerkId, wxEnterpriseId)) {
......
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