From f0248f54f90a12f491245f0ee3ccfbe8f477a76b Mon Sep 17 00:00:00 2001
From: Administrator <admin@example.com>
Date: 星期五, 22 十二月 2023 14:24:20 +0800
Subject: [PATCH] bug修复

---
 code_attribute/gpcode_manager.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/code_attribute/gpcode_manager.py b/code_attribute/gpcode_manager.py
index 0bef2bf..5f119e3 100644
--- a/code_attribute/gpcode_manager.py
+++ b/code_attribute/gpcode_manager.py
@@ -763,6 +763,12 @@
     return tool.to_price(decimal.Decimal(str(price)) * decimal.Decimal("1.1"))
 
 
+def get_limit_down_price_by_preprice(price):
+    if price is None:
+        return None
+    return tool.to_price(decimal.Decimal(str(price)) * decimal.Decimal("0.9"))
+
+
 # 鑾峰彇璺屽仠浠�
 def get_limit_down_price(code):
     price = CodePrePriceManager.get_price_pre_cache(code)

--
Gitblit v1.8.0