产品/客户详情缓存:避免重复调用 select_product/select_customer/find_sender_history
This commit is contained in:
@@ -551,6 +551,8 @@ class PickupEngine:
|
||||
return
|
||||
|
||||
if self._product_choice is not None:
|
||||
if self._product_detail:
|
||||
return
|
||||
biz_id = self._product_choice.get("productId", "")
|
||||
biz_no = self._product_choice.get("bizProductNo", "")
|
||||
if biz_id and biz_no:
|
||||
@@ -595,6 +597,8 @@ class PickupEngine:
|
||||
return
|
||||
|
||||
if self._customer_choice is not None:
|
||||
if self._customer_detail:
|
||||
return
|
||||
cust_id = self._customer_choice.get("customerId", "")
|
||||
if cust_id:
|
||||
self._customer_detail = self._api.select_customer(str(cust_id))
|
||||
|
||||
Reference in New Issue
Block a user