refactor(admin): 替换型号配置服务为产品模型参数服务

- 将 modelConfigItemService 替换为 productModelParamsDataService
- 修改查询逻辑以获取 ProductModelParamsData 代替 QuotationModelConfigItem
- 更新映射部分名称字段由 partName 改为 name
- 调整相关代码以适配新的数据类型和服务接口
This commit is contained in:
曹鹏飞 2026-05-25 10:48:07 +08:00
parent 8cf1ef0c9a
commit 64e8b481cc
1 changed files with 4 additions and 4 deletions

View File

@ -57,7 +57,7 @@ public class AdminShoppingController extends ControllerBase {
private IQuotationShoppingOrderAdjustItemService shoppingOrderAdjustItemService;
@Resource
private IQuotationModelConfigItemService modelConfigItemService;
private IProductModelParamsDataService productModelParamsDataService;
@Resource
private IQuotationShoppingCartService shoppingCartService;
@ -102,8 +102,8 @@ public class AdminShoppingController extends ControllerBase {
.list();
Map<Long, List<QuotationShoppingOrderAdjustItem>> adjustGroup = adjustItems.stream()
.collect(Collectors.groupingBy(QuotationShoppingOrderAdjustItem::getAdjustId));
List<QuotationModelConfigItem> items = modelConfigItemService.lambdaQuery()
.in(QuotationModelConfigItem::getId, adjustItems.stream()
List<ProductModelParamsData> items = productModelParamsDataService.lambdaQuery()
.in(ProductModelParamsData::getId, adjustItems.stream()
.map(QuotationShoppingOrderAdjustItem::getConfigItemId)
.collect(Collectors.toList())
)
@ -140,7 +140,7 @@ public class AdminShoppingController extends ControllerBase {
.setPartName(items.stream()
.filter(i -> i.getId().equals(item.getConfigItemId()))
.findFirst()
.map(QuotationModelConfigItem::getPartName)
.map(ProductModelParamsData::getName)
.orElse("")
)
.setOldFee(item.getOldFee())