Commit 078fffe6 by 墨竹

fix:查询门店数量修改

parent 7af89be9
...@@ -921,8 +921,19 @@ public class StaffApiServiceImpl implements StaffApiService { ...@@ -921,8 +921,19 @@ public class StaffApiServiceImpl implements StaffApiService {
@Override @Override
public StoreRoleDTO getCountHaoBanStoreIdsByClerkId(String clerkId, String wxEnterpriseId) { public StoreRoleDTO getCountHaoBanStoreIdsByClerkId(String clerkId, String wxEnterpriseId) {
List<String> storeIds = getHaoBanStoreIdsRolesByClerkId(clerkId, wxEnterpriseId);
StoreRoleDTO storeRoleDTO = new StoreRoleDTO(); StoreRoleDTO storeRoleDTO = new StoreRoleDTO();
ClerkDTO clerkDTO = clerkService.getClerkByClerkIdNoStatus(clerkId);
if (clerkDTO == null) {
storeRoleDTO.setStoreCount(0);
return storeRoleDTO;
}
Integer clerkType = clerkDTO.getClerkType();
if (clerkType != null && clerkType != 2) {
storeRoleDTO.setStoreCount(1);
storeRoleDTO.setStoreId(clerkDTO.getStoreId());
return storeRoleDTO;
}
List<String> storeIds = getHaoBanStoreIdsRolesByClerkId(clerkId, wxEnterpriseId);
if (CollectionUtils.isEmpty(storeIds)) { if (CollectionUtils.isEmpty(storeIds)) {
storeRoleDTO.setStoreCount(0); storeRoleDTO.setStoreCount(0);
return storeRoleDTO; return storeRoleDTO;
......
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