耗材绑定关系
This commit is contained in:
@@ -222,8 +222,6 @@ public class ProductDTO implements Serializable {
|
|||||||
* 商品关联耗材列表
|
* 商品关联耗材列表
|
||||||
*/
|
*/
|
||||||
private List<ProdConsRelationDTO> consList;
|
private List<ProdConsRelationDTO> consList;
|
||||||
//
|
|
||||||
private List<ProdConsRelation> prodConsRelations;
|
|
||||||
/**
|
/**
|
||||||
* 耗材信息
|
* 耗材信息
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -185,9 +185,9 @@ public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> impl
|
|||||||
lowMemberPriceIsPresent.ifPresent(record::setLowMemberPrice);
|
lowMemberPriceIsPresent.ifPresent(record::setLowMemberPrice);
|
||||||
}
|
}
|
||||||
record.setSkuList(skuList);
|
record.setSkuList(skuList);
|
||||||
record.setProdConsRelations(prodConsRelationService.list(query()
|
record.setConsList(prodConsRelationService.listAs(query()
|
||||||
.eq(ProdConsRelation::getProductId, record.getId())
|
.eq(ProdConsRelation::getProductId, record.getId())
|
||||||
.eq(ProdConsRelation::getShopId, record.getShopId())));
|
.eq(ProdConsRelation::getShopId, record.getShopId()), ProdConsRelationDTO.class));
|
||||||
});
|
});
|
||||||
return records;
|
return records;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user