耗材绑定关系

This commit is contained in:
2026-04-10 15:00:15 +08:00
parent 4948e6e7c8
commit c4b93b6a5b
2 changed files with 2 additions and 4 deletions

View File

@@ -185,9 +185,9 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
lowMemberPriceIsPresent.ifPresent(record::setLowMemberPrice);
}
record.setSkuList(skuList);
record.setProdConsRelations(prodConsRelationService.list(query()
record.setConsList(prodConsRelationService.listAs(query()
.eq(ProdConsRelation::getProductId, record.getId())
.eq(ProdConsRelation::getShopId, record.getShopId())));
.eq(ProdConsRelation::getShopId, record.getShopId()), ProdConsRelationDTO.class));
});
return records;
}