bidendtime.py 778 B

1234567891011121314151617181920212223
  1. #投标文件递交截止时间(投标截止日期)
  2. class BidendtimeChecker(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,bidendtime:int,bidstarttime:int) -> bool:
  14. """
  15. return true 代表返回异常
  16. """
  17. if toptype == '招标':
  18. if bidendtime and bidstarttime:
  19. if bidendtime < bidstarttime:
  20. return True
  21. return False