Ver código fonte

找回密码

huangxingxing 2 anos atrás
pai
commit
e11ba6ac6b

+ 8 - 0
src/main/java/com/miniframe/bisiness/system/A00001Service.java

@@ -49,6 +49,14 @@ public class A00001Service extends A00001BaseModel implements ExecProcessFlow {
         SysUserSQLBuilder sb = new SysUserSQLBuilder();
         sb.createCriteria().andUseremailEqualTo(this.getA_a00001().getMailOrPhone());
         List<SysUser> userList = dao.selectByExample(sb);
+        if (CollectionUtils.isEmpty(userList)) {
+            sb.clear();
+            sb.createCriteria().andUsermobnubEqualTo(this.getA_a00001().getMailOrPhone());
+            userList = dao.selectByExample(sb);
+            if (CollectionUtils.isEmpty(userList)) {
+                throw new BusinessException("EB8000029");
+            }
+        }
         if(type.equals("1")) {//注册
             if (userList != null && userList.size() > 0) {
                 throw new BusinessException("EB8000020");