feat: 设备优化

lh_dev_fifo^2
chenhc 1 week ago
parent c8c00768e4
commit 5ab099ee85

@ -1217,13 +1217,13 @@ public class HeartService {
dataResponse.setPurContractEntities(purContractEntities);
remark.append("合同单据:").append(purContractEntities.size()).append("条\n");
}
List<String> codeList = purContractEntities.stream()
.map(PurContractEntity::getCode)
List<Long> ids = purContractEntities.stream()
.map(PurContractEntity::getId)
.filter(Objects::nonNull) // 过滤掉可能的null值
.distinct() // 去重
.collect(Collectors.toList());
List<PurContractDetailEntity> purContractDetailEntities = purContractDetailService.list(Wrappers.lambdaQuery(PurContractDetailEntity.class)
.in(CollectionUtil.isNotEmpty(codeList), PurContractDetailEntity::getOrderIdFk, codeList)
.in(CollectionUtil.isNotEmpty(ids), PurContractDetailEntity::getOrderIdFk, ids)
);
if (CollectionUtil.isNotEmpty(purContractDetailEntities)) {
if (dataResponse == null) {

Loading…
Cancel
Save