Merge branch 'ps1' into 'main'

changes 经营性现金流量净额/总债务 参数修改

See merge request root/IndexCalculation!17
This commit is contained in:
彭森 2023-01-04 07:40:50 +00:00
commit e410df73c6
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ router = APIRouter()
class Params(BaseModel):
经营活动产生的现金流量净额: float
经营性现金流净额: float
短期借款: float
长期借款: float
@ -17,7 +17,7 @@ class Params(BaseModel):
def func(p: Params):
try:
d = p.长期借款 + p.短期借款
result = p.经营活动产生的现金流量净额 / d * 100
result = p.经营性现金流净额 / d * 100
return round(result, 2)
except ZeroDivisionError: