# from skuapp.table.t_upload_shopname import t_upload_shopname from brick.public.django_wrap import django_wrap from brick.pydata.py_redis.py_SynRedis_tables import py_SynRedis_tables from brick.classredis.classlisting import classlisting from brick.classredis.classshopsku import classshopsku from brick.classredis.classmainsku import classmainsku # from mymall_app.table.t_mymall_online_info import t_mymall_online_info from mymall_app.table.t_mymall_online_info_detail import t_mymall_online_info_detail from mymall_app.views import syndata_by_mymall_api # from mymall_app.table.t_mymall_cutprice_log import t_mymall_cutprice_log from skuapp.table.t_store_configuration_file import t_store_configuration_file from brick.classredis.classsku import classsku from brick.pricelist.calculate_price import calculate_price redis_conn = get_redis_connection(alias='product') py_SynRedis_tables_obj = py_SynRedis_tables() classsku_obj = classsku() listingobjs = classlisting(connection, redis_conn) classshopskuobjs = classshopsku(connection, redis_conn) classmainsku_obj = classmainsku(connection, redis_conn) class t_online_info_amazon_listing_Admin(object): amazon_listing_plugin = True # search_box_flag = True # amazon_listing_secondplugin = True # site_left_menu_flag = True search_box_flag = True amazon_site_left_menu_tree_flag = True
import sys #sys.path.append('/data/djangostack-1.9.7/apps/django/django_projects/Project') from cg_StockOrderD import * from cg_StockOrderM import * from public import * from brick.pydata.py_redis.py_SynRedis_tables import py_SynRedis_tables from datetime import datetime cf = ConfigParser.ConfigParser() cf.read( "/data/djangostack-1.9.7/apps/django/django_projects/Project/brick/pydata/py_syn/select.conf" ) OrderNIDsNum = cf.getint('myconfig', 'OrderNIDsNum') maxnumFetchone = cf.getint('myconfig', 'maxnumFetchone') flag = cf.getint('myconfig', 'flag') tt = py_SynRedis_tables() '''获取当前时间-12月''' my_time = tt.getCurTimeOneYear(-12) ''' 健壮性 增加一层判断 是否全量redis和log表增量 全量:全部获取skuid且不持久化 增量:获取新增的orderid且持久化 ''' if flag == 0: flag = '' class py_information_by_cg_stocklogs(): def __init__(self, db_conn, sqlserver_conn): self.db_conn = db_conn