Commit fa1f90d1 by 墨竹

feat:新增查询导购是否为超管接口

parent c741e044
......@@ -283,5 +283,16 @@ public interface StaffApiService {
* @date 2022-05-18 14:19:11
*/
boolean isFlagByStoreIdAndEnterpriseId(String storeId,String enterpriseId,String wxEnterpriseId);
/**
* 是否超级管理员 true是
*
* @param clerkId 职员id
* @return boolean
* @author mozhu
* @date 2022-05-27 09:43:00
*/
boolean isSuperAdmin(String clerkId);
}
......@@ -1353,6 +1353,16 @@ public class StaffApiServiceImpl implements StaffApiService {
return enterpriseIdStoreIds.contains(storeId);
}
@Override
public boolean isSuperAdmin(String clerkId) {
ClerkDTO clerkDTO = clerkService.getClerkByClerkId(clerkId);
if (clerkDTO == null) {
return false;
}
Integer superAdmin = clerkDTO.getSuperAdmin();
return superAdmin != null && superAdmin == 1;
}
/**
* 门店筛选器id企业端获取gic门店id列表
*
......
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