Commit e9720a1b by 魏强

update;

parent 41bba063
...@@ -68,7 +68,7 @@ class AgentService(): ...@@ -68,7 +68,7 @@ class AgentService():
@staticmethod @staticmethod
def get_spot_info(agent_info): def get_spot_info(agent_info):
spot_info = [] spot_info = []
if agent_info.level == 2 or agent_info.level == 3: if agent_info.level == 2 or agent_info.level == 3 or agent_info == 4 or agent_info == 5:
infos = db.session.query(AgentAccount, AgentSpot, Spot).join(AgentSpot, infos = db.session.query(AgentAccount, AgentSpot, Spot).join(AgentSpot,
AgentAccount.id == AgentSpot.agent_no).join( AgentAccount.id == AgentSpot.agent_no).join(
Spot, Spot.id == AgentSpot.spot_no).filter(AgentAccount.id == agent_info.id, Spot, Spot.id == AgentSpot.spot_no).filter(AgentAccount.id == agent_info.id,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment