changes 经营性现金流量净额/总债务 参数修改
This commit is contained in:
parent
8a161a694a
commit
4ce0ebf95e
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue