Commit 6a91a81a authored by 赵啸非's avatar 赵啸非

Merge remote-tracking branch 'origin/master'

parents 852e2c82 5683341a
...@@ -106,6 +106,10 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity ...@@ -106,6 +106,10 @@ public class UserServiceImpl extends AbstractCRUDServiceImpl<UserDao, UserEntity
@Override @Override
protected void saveBefore(UserEntity entity, Context context) throws AppException { protected void saveBefore(UserEntity entity, Context context) throws AppException {
UserEntity sysUser = this.findByLoginName(entity.getLoginName());
if(sysUser!=null){
throw new AppException("用户名重复");
}
this.doHandlerUser(entity); this.doHandlerUser(entity);
} }
......
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