Commit 2da73e3a by 徐高华

Merge branch 'developer' of http://git.gicdev.com/haoban3.0/haoban-manage3.0.git into developer

parents 334aa44e fa1f90d1
...@@ -283,5 +283,16 @@ public interface StaffApiService { ...@@ -283,5 +283,16 @@ public interface StaffApiService {
* @date 2022-05-18 14:19:11 * @date 2022-05-18 14:19:11
*/ */
boolean isFlagByStoreIdAndEnterpriseId(String storeId,String enterpriseId,String wxEnterpriseId); 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 { ...@@ -1353,6 +1353,16 @@ public class StaffApiServiceImpl implements StaffApiService {
return enterpriseIdStoreIds.contains(storeId); 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列表 * 门店筛选器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