2022-05-26 17:15:30 +08:00
|
|
|
from Utils.ObjUtil import SpecObject
|
|
|
|
from Utils.ValidateUtil import ValidateAttr, Validate
|
|
|
|
|
|
|
|
|
|
|
|
class RatingRecord(SpecObject):
|
|
|
|
"""评级记录"""
|
|
|
|
|
|
|
|
rid = ValidateAttr(field="rid", type=str)
|
|
|
|
report_date = ValidateAttr(field="report_date", func=Validate.date_format)
|
|
|
|
status = ValidateAttr(field="status", in_list=["完成", "进行"])
|
|
|
|
cid = ValidateAttr(field="cid", type=str)
|
|
|
|
company_name = ValidateAttr(field="company_name", type=str)
|
2022-06-16 16:17:33 +08:00
|
|
|
rank_time = ValidateAttr(field="rank_time", func=Validate.date_format)
|
2022-06-09 11:22:56 +08:00
|
|
|
credit_level = ValidateAttr(field="credit_level", type=str)
|
2022-05-26 17:15:30 +08:00
|
|
|
credit_score = ValidateAttr(field="credit_score", type=float)
|
|
|
|
rating_report = ValidateAttr(field="rating_report", type=str)
|
2022-06-16 15:35:30 +08:00
|
|
|
province = ValidateAttr(field="province", type=str)
|
|
|
|
city = ValidateAttr(field="city", type=str)
|
2022-05-26 17:15:30 +08:00
|
|
|
|
|
|
|
fields_map = {
|
|
|
|
"rid": "评级ID",
|
|
|
|
"report_date": "报告期",
|
|
|
|
"status": "评级状态",
|
|
|
|
"cid": "企业ID",
|
|
|
|
"company_name": "企业名称",
|
2022-06-16 16:17:33 +08:00
|
|
|
"rank_time": "评级时间",
|
2022-06-09 11:22:56 +08:00
|
|
|
"credit_level": "信用级别",
|
2022-06-16 16:17:33 +08:00
|
|
|
"credit_score": "信用得分",
|
2022-05-26 17:15:30 +08:00
|
|
|
"rating_report": "评级报告",
|
2022-06-16 15:35:30 +08:00
|
|
|
"province": "所在省份",
|
|
|
|
"city": "所在城市",
|
2022-05-26 17:15:30 +08:00
|
|
|
}
|