|
@@ -3,8 +3,10 @@ from model.DataBaseUtils import *
|
|
from model.log import logger
|
|
from model.log import logger
|
|
from model.CommonUtils import *
|
|
from model.CommonUtils import *
|
|
from model import UserAuthUtils
|
|
from model import UserAuthUtils
|
|
|
|
+from model.UserAuthUtils import super_auth
|
|
du = DateUtils()
|
|
du = DateUtils()
|
|
-from config.common_config import *
|
|
|
|
|
|
+
|
|
|
|
+
|
|
from data_manage.operate import get_pitcher
|
|
from data_manage.operate import get_pitcher
|
|
|
|
|
|
log = logger()
|
|
log = logger()
|
|
@@ -113,7 +115,7 @@ where 1=1 {op1}
|
|
|
|
|
|
def get_channel_overview(user_id,channel,pitcher,stage,start,end,page,page_size,order_by,order):
|
|
def get_channel_overview(user_id,channel,pitcher,stage,start,end,page,page_size,order_by,order):
|
|
db=MysqlUtils()
|
|
db=MysqlUtils()
|
|
- if user_id in super_auth:
|
|
|
|
|
|
+ if user_id in super_auth():
|
|
op = ''
|
|
op = ''
|
|
else:
|
|
else:
|
|
if len(UserAuthUtils.get_auth_channel(user_id)) == 0:
|
|
if len(UserAuthUtils.get_auth_channel(user_id)) == 0:
|
|
@@ -365,7 +367,7 @@ select
|
|
|
|
|
|
def get_channel_active(user_id,channel,pitcher,start,end,page,page_size,order_by,order):
|
|
def get_channel_active(user_id,channel,pitcher,start,end,page,page_size,order_by,order):
|
|
db = MysqlUtils()
|
|
db = MysqlUtils()
|
|
- if user_id in super_auth:
|
|
|
|
|
|
+ if user_id in super_auth():
|
|
op = ''
|
|
op = ''
|
|
else:
|
|
else:
|
|
if len(UserAuthUtils.get_auth_channel(user_id)) == 0:
|
|
if len(UserAuthUtils.get_auth_channel(user_id)) == 0:
|
|
@@ -448,7 +450,7 @@ left join dw_channel_user_daily b using(dt,channel) {op5}
|
|
def get_channel_order_trend(user_id,channel,pitcher,start,end,page,page_size,order_by,order):
|
|
def get_channel_order_trend(user_id,channel,pitcher,start,end,page,page_size,order_by,order):
|
|
db = MysqlUtils()
|
|
db = MysqlUtils()
|
|
|
|
|
|
- if user_id in super_auth:
|
|
|
|
|
|
+ if user_id in super_auth():
|
|
op = ''
|
|
op = ''
|
|
else:
|
|
else:
|
|
if len(UserAuthUtils.get_auth_channel(user_id)) == 0:
|
|
if len(UserAuthUtils.get_auth_channel(user_id)) == 0:
|
|
@@ -589,7 +591,7 @@ left join src_book_info c on a.dt=c.dt and a.book=c.book and a.type=c.type and
|
|
def get_channel_summary(user_id,channel,pitcher,page,page_size,order_by,order,state,location,start,end):
|
|
def get_channel_summary(user_id,channel,pitcher,page,page_size,order_by,order,state,location,start,end):
|
|
db=MysqlUtils()
|
|
db=MysqlUtils()
|
|
|
|
|
|
- if user_id in super_auth:
|
|
|
|
|
|
+ if user_id in super_auth():
|
|
op = ''
|
|
op = ''
|
|
else:
|
|
else:
|
|
if len(UserAuthUtils.get_auth_channel(user_id))==0:
|
|
if len(UserAuthUtils.get_auth_channel(user_id))==0:
|