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