遇到用户usercode重复我们可以通过修改S_USER.xml配置片段进行忽略
<select id="getAllUser" resultType="sUser">
<![CDATA[select did,pid,usercode,username,passwd,email,tel_o,tel_h,
tel_m,card,addr_o,addr_h,qq,bz,islsyh,yxqsrq,yxzzrq,titlearea,
macinfo,checkmac,isempower,fqjs,managedep,mj,shortcut,avatar,usescore,login_page as loginPage ,openid from S_USER
where did in (select max(did) from s_user group by usercode ) ]]>替换上面的代码片段,重启应用即可。