|
@@ -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");
|