|
|
@@ -346,15 +346,16 @@ def ymdtj(brand_id, ymd, lastymd):
|
346
|
346
|
def v2_tj_distributor(request):
|
347
|
347
|
brand_id = get_query_value(request, 'brand_id', settings.KODO_DEFAULT_BRAND_ID)
|
348
|
348
|
|
349
|
|
- # year = tc.local_string(format='%Y')
|
|
349
|
+ year = tc.local_string(format='%Y')
|
350
|
350
|
month = tc.local_string(format='%Y%m')
|
351
|
351
|
day = tc.local_string(format='%Y%m%d')
|
352
|
352
|
|
353
|
|
- # lastyear = tc.local_string(years=-1, format='%Y')
|
|
353
|
+ lastyear = tc.local_string(years=-1, format='%Y')
|
354
|
354
|
lastmonth = tc.local_string(months=-1, format='%Y%m')
|
355
|
355
|
lastday = tc.local_string(days=-1, format='%Y%m%d')
|
356
|
356
|
|
357
|
|
- year_data = ytj(brand_id)
|
|
357
|
+ # year_data = ytj(brand_id)
|
|
358
|
+ year_data = ymdtj(brand_id, year, lastyear)
|
358
|
359
|
month_data = ymdtj(brand_id, month, lastmonth)
|
359
|
360
|
day_data = ymdtj(brand_id, day, lastday)
|
360
|
361
|
|