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

20 lines
509 B
Python
Raw Normal View History

2022-04-29 15:08:11 +08:00
from DBHelper.MongoHelper import MongoHelper
2022-05-05 14:45:06 +08:00
from Objects.InProject.Industry.Industry import IndustryReportRecord
2022-04-29 15:08:11 +08:00
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']