|
@@ -730,6 +730,13 @@ def get_channel_summary(channel,pitcher,page,page_size,order_by,order,state):
|
|
pitcher_op=f" and channel in {get_channels_from_user(pitcher)}" if pitcher!='赞象 admin' else ''
|
|
pitcher_op=f" and channel in {get_channels_from_user(pitcher)}" if pitcher!='赞象 admin' else ''
|
|
channel_op=f" and channel='{channel}'" if channel!='' else ''
|
|
channel_op=f" and channel='{channel}'" if channel!='' else ''
|
|
|
|
|
|
|
|
+ if pitcher!='赞象 admin':
|
|
|
|
+ if get_channels_from_user(pitcher).__len__()==0:
|
|
|
|
+ pitcher_op= f" and pitcher='{pitcher}'"
|
|
|
|
+ else:
|
|
|
|
+ pitcher_op=f" and channel in get_channels_from_user(pitcher)"
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
sql = f"""select a.channel channel,state,'朋友圈' location,toString(start) start,toString(end) end,
|
|
sql = f"""select a.channel channel,state,'朋友圈' location,toString(start) start,toString(end) end,
|
|
toDecimal32(total_cost,2),toDecimal32(total_amount,2),
|
|
toDecimal32(total_cost,2),toDecimal32(total_amount,2),
|