| | |
| | | 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; |
| | |
| | | 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(); |