作者 dengyuting

fix

... ... @@ -28,6 +28,7 @@ request:
buyer: '客户名称${get_stringcode(5)}'
orderDist: '订单区域${get_stringcode(5)}'
commissionProportion: $commissionProportion
saleDate: '2020-10-10 00:00:00'
product:
- productName: $productName
orderNum: $orderNum1
... ...
... ... @@ -27,7 +27,7 @@ def convert_to_int(value):
def get_nowtime():
return time.strftime("%Y%m%d%H%M%S",time.localtime(time.time()))
return time.strftime("%Y%m%d%H%M%S", time.localtime(time.time()))
def get_today():
... ... @@ -35,7 +35,6 @@ def get_today():
str_time = now_today.strftime("%Y-%m-%d")
return str_time
def get_tomorrow():
tomorrow = (date.today() + timedelta(days=1)).strftime("%Y-%m-%d")
return tomorrow
... ... @@ -43,7 +42,7 @@ def get_tomorrow():
def get_second():
curr_time = datetime.datetime.now()
return curr_time.second
return curr_time.second
def create_channel(num):
... ...
... ... @@ -7,14 +7,6 @@ import psycopg2
from datetime import date, timedelta
import datetime,time
def get_today():
now_today = datetime.datetime.now()
str_time = now_today.strftime("%Y-%m-%d")
return str_time
def get_tomorrow():
tomorrow = (date.today() + timedelta(days=1)).strftime("%Y-%m-%d")
return tomorrow
def getMonth():
year = str(datetime.date.today().year)
d = datetime.date.today()
... ...