docstarttime.py 691 B

12345678910111213141516171819202122
  1. #招标文件获取开始时间
  2. class DocstarttimeChecker(object):
  3. def __init__(self):
  4. self.errors_tables = {
  5. "0101": {
  6. "name": "招标文件获取开始时间<发布时间",
  7. "parent_name": "时间有效性异常",
  8. "parent_code": "01",
  9. "checkFn": self.check0101
  10. }
  11. }
  12. #招标文件获取开始时间>发布时间
  13. def check0101(self,toptype:str, publishtime:int,docstarttime:int) -> bool:
  14. """
  15. return true 代表返回异常
  16. """
  17. if toptype == '招标':
  18. if docstarttime < publishtime:
  19. return True
  20. return False