| | |
| | | from code_attribute import code_volumn_manager, gpcode_manager |
| | | from db.mysql_data_delegate import Mysqldb |
| | | from utils import global_util, ths_industry_util |
| | | from code_attribute.code_data_util import ZYLTGBUtil |
| | | |
| | |
| | | global_util.zyltgb_map[code] = result |
| | | |
| | | |
| | | def load_zyltgb_volume_from_db(): |
| | | # 拉取自由流通量 |
| | | mysqldb = Mysqldb() |
| | | fresults = mysqldb.select_all("select code, zylt_volume from kpl_zylt_volume") |
| | | if fresults: |
| | | for result in fresults: |
| | | global_util.zylt_volume_map[result[0]] = result[1] |
| | | |
| | | |
| | | # 加载名称代码隐射 |
| | | def load_name_codes(): |
| | | dict_ = gpcode_manager.get_name_codes() |