def __init__(self, today): #获取所有直通车软件 self.id_data = SOFT_CODE.items() self.today = today self.yesterday = self.today - datetime.timedelta(days=1) self.id_name = '' self.order_dict = ZtcOrder.get_store_order(self.id_data, CURRENT_DIR, self.today)
def __init__(self): #获取所有直通车软件 self.id_data = SOFT_CODE.items() self.today = datetime.date.today() self.yesterday = self.today - datetime.timedelta(days=1) self.strNum = STRNUM self.head = HEAD self.result = [] self.yesterday_reports = self.get_yesterday_report(str(self.yesterday)) self.get_store_order(str(self.yesterday)) self.id_name = ''