tfse-app-api-v0.2/Implements/Industry/IndustryImpl.py

20 lines
509 B
Python

from DBHelper.MongoHelper import MongoHelper
from Objects.InProject.Industry.Industry import IndustryReportRecord
class IndustryReportRecordImpl(IndustryReportRecord):
db = MongoHelper("tfse_v0.21")
def get_latest_fid(self):
result = self.db.find_single_data_with_single_sort(
"行业数据",
"行业报告",
{"一级行业": self.industry},
["报告fid"],
{"上传日期": -1}
)
self.fid = result['报告fid']