Commit 5a2b7497 by zhiwj

门店选择

parent e30a642a
......@@ -382,9 +382,13 @@ public class ClerkApiServiceImpl implements ClerkApiService {
}
List<Integer> storeInfoIds = page.getResult().stream().map(StoreDTO::getStoreInfoId)
.collect(Collectors.toList());
Integer totalClerk = clerkService.getTotalClerk(enterpriseId, storeInfoIds, clerkSearchDTO.getSearch());
if (CollectionUtils.isNotEmpty(storeInfoIds)) {
Integer totalClerk = clerkService.getTotalClerk(enterpriseId, storeInfoIds, clerkSearchDTO.getSearch());
return ServiceResponse.success(totalClerk);
} else {
return ServiceResponse.success(0);
}
return ServiceResponse.success(totalClerk);
}
// private String getStoreIdByStoreInfoIds(List<Integer> storeInfoIdsBySearch, String search) {
......
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