| | |
| | | IPage<MeasuringInstrumentLedgerRecord> measuringInstrumentLedgerRecordIPage = measuringInstrumentLedgerRecordMapper.listPage(page, measuringInstrumentLedgerRecord); |
| | | measuringInstrumentLedgerRecordIPage.getRecords().forEach(item -> { |
| | | LambdaQueryWrapper<CommonFile> salesLedgerFileWrapper = new LambdaQueryWrapper<>(); |
| | | salesLedgerFileWrapper.eq(CommonFile::getCommonId, item.getId()); |
| | | salesLedgerFileWrapper.eq(CommonFile::getCommonId, item.getId()) |
| | | .eq(CommonFile::getType, FileNameType.MEASURINGRecord.getValue()); |
| | | List<CommonFile> commonFiles = commonFileMapper.selectList(salesLedgerFileWrapper); |
| | | item.setCommonFiles(commonFiles); |
| | | }); |