# -*- coding: utf-8 -*-
"""

Created on 2018408

@author: Matthew
"""

# 首先找到所有需要用到的表
# 所有的指标中文、英文名、数据表名称
DataTable = \
{
    "存货周转率":["InventoryTurnover","CY_FinacialRatio_RP"],
    "应收账款周转率":["AccountsReceivableTurnover","CY_FinacialRatio_RP"],
    "固定资产周转率":["FixedAssetsTurnover","CY_FinacialRatio_RP"],
    "主营收入同比":["OperatingRevenueYoY","CY_FinacialRatio_RP"],
    "归属于母公司股东的扣除非经常性损益后的净利润同比":['DeductNetProfitYoY',"CY_FinacialRatio_RP"],
    "总资产":["TotalAssets","CY_FinacialIndicators_RP"],
    "预收款项":["AdvanceReceipts","CY_FinacialIndicators_RP"],
    "净资产":["EquityBelongedToPC","CY_FinacialIndicators_RP"],
    "总负债":["TotalLiability","CY_FinacialIndicators_RP"],
    "流动负债":["TotalCurrentLiability","CY_FinacialIndicators_RP"],
    "流动资产":["TotalCurrentAssets","CY_FinacialIndicators_RP"],
    "现金及存放中央银行款项":["CashOrDepositInCentralBank","CY_FinacialIndicators_RP"],
    "净利润":["NetProfit","CY_FinacialIndicators_RP"],
    "经营活动产生的现金流":["NetOperateCashFlow","CY_FinacialIndicators_RP"],
    "最新流通A股":["RMBShares","CY_ValueDaily_Quote"],
    "最新有效流通股":["ValidShares","CY_ValueDaily_Quote"],
    "最新总市值":["MarketValue","CY_ValueDaily_Quote"],
    "市盈率(TTM)":["PE1","CY_ValueDaily_Quote"],
    "市销率":["PB","CY_ValueDaily_Quote"],
    "市净率":["PS","CY_ValueDaily_Quote"],
}

def findTable(criteria):
    for key in DataTable:
        if key == criteria:
            DataTable[key]










