代理及用户初始化步骤说明:
1、检查用户表的 account 是否有重复的,有的话去重
4、根据上下级账号的关系,更新 parent_id 字段
update gp_user u set parent_id=(select id from gp_user where account=u.parent_agent_account) where parent_agent_account is not null and parent_agent_account<>''
5、初始化所有代理的和用户姓名的拼音。优先级:id_name > real_name > nick_name
初始化代理和用户的拼音