mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-24 01:59:20 +08:00
fix: 导出公司概览时按companyId过滤店铺列表,防止数据串公司
This commit is contained in:
+3
-1
@@ -81,7 +81,9 @@ public class ExportServiceImpl implements ExportService {
|
||||
Long companyId = currentUserContext.getCurrentCompanyId();
|
||||
LocalDate[] dateRange = parseDateRange(dto.getDateRange());
|
||||
|
||||
List<ShopPO> shops = shopService.list();
|
||||
List<ShopPO> shops = shopService.list(
|
||||
new LambdaQueryWrapper<ShopPO>().eq(ShopPO::getCompanyId, companyId)
|
||||
);
|
||||
if (dto.getShopIds() != null && !dto.getShopIds().isEmpty()) {
|
||||
shops = shops.stream()
|
||||
.filter(s -> dto.getShopIds().contains(s.getId()))
|
||||
|
||||
Reference in New Issue
Block a user