From 915803074bba519a3edd25431e5ee878e5fb516a Mon Sep 17 00:00:00 2001 From: feige <feige@qq.com> Date: 星期三, 17 五月 2023 16:02:09 +0800 Subject: [PATCH] 修改了家庭模块的导出模块,可以选择导出了 --- zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java index d805402..8b1a5bf 100644 --- a/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java +++ b/zhang-content/src/main/java/com/ruoyi/service/impl/ZfEquipmentServiceImpl.java @@ -22,6 +22,8 @@ import org.springframework.web.multipart.MultipartFile; import javax.annotation.Resource; +import java.util.ArrayList; +import java.util.Arrays; import java.util.HashMap; import java.util.List; import java.util.stream.Collectors; @@ -203,6 +205,15 @@ return markOwnData(familyIds, beanRecords); } + @Override + public List<ZfEquipment> selectByIds(Long[] ids) { + List<ZfEquipment> list = new ArrayList<>(); + if(ids.length!=0) + list = listByIds(Arrays.asList(ids)); + else + list = list(); + return list; } + private static List<ZfEquipment> markOwnData(String familyIds, List<ZfEquipment> beanRecords) { return beanRecords.stream().peek(record -> { String recordFamilyId = record.getFamilyId(); -- Gitblit v1.9.1