refactor(ratioDirectConfig): 优化产品数据查询逻辑
- 将产品查询接口由 productModelService.searchForQuotation 替换为 ratioAgentService.search - 修改结果类型为 ProductModelSimpleVO,简化数据结构 - 保持后续数据处理逻辑不变,提高代码的可维护性和扩展性
This commit is contained in:
parent
4690d8b2b3
commit
9966cff8ce
|
|
@ -289,7 +289,7 @@ public class RatioDirectConfigController extends ControllerBase {
|
|||
.collect(Collectors.toList())
|
||||
);
|
||||
List<UserModelPriceDTO> userPrices = new ArrayList<>();
|
||||
IPage<ProductModel> pdatas = productModelService.searchForQuotation(request);
|
||||
IPage<ProductModelSimpleVO> pdatas = ratioAgentService.search(request);
|
||||
pdatas.getRecords().forEach(model -> {
|
||||
Map<String, Object> data = new HashMap<>();
|
||||
data.put("modelId", model.getBatchNumber());
|
||||
|
|
|
|||
Loading…
Reference in New Issue