refactor(admin): 替换型号配置服务为产品模型参数服务
- 将 modelConfigItemService 替换为 productModelParamsDataService - 修改查询逻辑以获取 ProductModelParamsData 代替 QuotationModelConfigItem - 更新映射部分名称字段由 partName 改为 name - 调整相关代码以适配新的数据类型和服务接口
This commit is contained in:
parent
8cf1ef0c9a
commit
64e8b481cc
|
|
@ -57,7 +57,7 @@ public class AdminShoppingController extends ControllerBase {
|
||||||
private IQuotationShoppingOrderAdjustItemService shoppingOrderAdjustItemService;
|
private IQuotationShoppingOrderAdjustItemService shoppingOrderAdjustItemService;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IQuotationModelConfigItemService modelConfigItemService;
|
private IProductModelParamsDataService productModelParamsDataService;
|
||||||
|
|
||||||
@Resource
|
@Resource
|
||||||
private IQuotationShoppingCartService shoppingCartService;
|
private IQuotationShoppingCartService shoppingCartService;
|
||||||
|
|
@ -102,8 +102,8 @@ public class AdminShoppingController extends ControllerBase {
|
||||||
.list();
|
.list();
|
||||||
Map<Long, List<QuotationShoppingOrderAdjustItem>> adjustGroup = adjustItems.stream()
|
Map<Long, List<QuotationShoppingOrderAdjustItem>> adjustGroup = adjustItems.stream()
|
||||||
.collect(Collectors.groupingBy(QuotationShoppingOrderAdjustItem::getAdjustId));
|
.collect(Collectors.groupingBy(QuotationShoppingOrderAdjustItem::getAdjustId));
|
||||||
List<QuotationModelConfigItem> items = modelConfigItemService.lambdaQuery()
|
List<ProductModelParamsData> items = productModelParamsDataService.lambdaQuery()
|
||||||
.in(QuotationModelConfigItem::getId, adjustItems.stream()
|
.in(ProductModelParamsData::getId, adjustItems.stream()
|
||||||
.map(QuotationShoppingOrderAdjustItem::getConfigItemId)
|
.map(QuotationShoppingOrderAdjustItem::getConfigItemId)
|
||||||
.collect(Collectors.toList())
|
.collect(Collectors.toList())
|
||||||
)
|
)
|
||||||
|
|
@ -140,7 +140,7 @@ public class AdminShoppingController extends ControllerBase {
|
||||||
.setPartName(items.stream()
|
.setPartName(items.stream()
|
||||||
.filter(i -> i.getId().equals(item.getConfigItemId()))
|
.filter(i -> i.getId().equals(item.getConfigItemId()))
|
||||||
.findFirst()
|
.findFirst()
|
||||||
.map(QuotationModelConfigItem::getPartName)
|
.map(ProductModelParamsData::getName)
|
||||||
.orElse("")
|
.orElse("")
|
||||||
)
|
)
|
||||||
.setOldFee(item.getOldFee())
|
.setOldFee(item.getOldFee())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue