#招标文件获取开始时间 class DocstarttimeChecker(object): def __init__(self): self.errors_tables = { "0101": { "name": "招标文件获取开始时间<发布时间", "parent_name": "时间有效性异常", "parent_code": "01", "checkFn": self.check0101 } } #招标文件获取开始时间>发布时间 def check0101(self,toptype:str, publishtime:int,docstarttime:int) -> bool: """ return true 代表返回异常 """ if toptype == '招标': if docstarttime and publishtime: if docstarttime < publishtime: return True return False