refactor(sip): 调整订单信息获取接口和映射查询
- 修改 ExternalController 中的 getOrderInfo 方法,使用 orderInfoService 替代 projectOrderInfoService- 更新 getNumberInfo 方法,使用 deliveryListService 替代 deliveryService - 在 ProductInfoMapper.xml 中添加 product_info 表和 delivery_list 表的关联查询dev_1.0.0
parent
3c58f9f254
commit
f62c51e2ac
|
|
@ -54,7 +54,7 @@ public class ExternalController {
|
||||||
if (!API_KEY.equals(apiKey)) {
|
if (!API_KEY.equals(apiKey)) {
|
||||||
return AjaxResult.error("鉴权失败");
|
return AjaxResult.error("鉴权失败");
|
||||||
}
|
}
|
||||||
return AjaxResult.success(projectOrderInfoService.getOrderInfo(dto));
|
return AjaxResult.success(orderInfoService.getOrderInfo(dto));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/v1/number/info")
|
@GetMapping("/v1/number/info")
|
||||||
|
|
@ -66,6 +66,6 @@ public class ExternalController {
|
||||||
if (!API_KEY.equals(apiKey)){
|
if (!API_KEY.equals(apiKey)){
|
||||||
return AjaxResult.error("鉴权失败");
|
return AjaxResult.error("鉴权失败");
|
||||||
}
|
}
|
||||||
return AjaxResult.success(deliveryService.getNumberInfo(dto));
|
return AjaxResult.success(deliveryListService.getNumberInfo(dto));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
t1.deleted_at ,
|
t1.deleted_at ,
|
||||||
t1.catalogue_price,
|
t1.catalogue_price,
|
||||||
t1.guidance_discount,
|
t1.guidance_discount,
|
||||||
t1.vendor_code
|
t1.vendor_code,
|
||||||
t2.serial_number
|
t2.serial_number
|
||||||
FROM
|
FROM
|
||||||
product_info t1 left join delivery_list t2 on t1.product_code=t2.product_code
|
product_info t1 left join delivery_list t2 on t1.product_code=t2.product_code
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue