Commit a6271abd by guanchen

修复bug

parent 0e42deca
......@@ -18,9 +18,9 @@ public class UserAgentSqlProvider {
"WHERE a.agent_id=#{agentId} and b.agent_level<=4";
}
public String getChildListByUserId(@Param("userId") Integer userId, @Param("parentColumnName") String parentColumnName) {
return "SELECT b.* " +
return "SELECT a.* " +
"FROM user_agent a " +
"JOIN user_agent b on a." + parentColumnName + "=b.agent_id " +
"WHERE a.user_id=#{userId} and b.agent_level<=4";
"WHERE b.user_id=#{userId} and b.agent_level<=4";
}
}
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