{
int result = Constants.Base.FAIL;
UserCriteria userCriteria = new UserCriteria();
Criteria criteria = userCriteria.createCriteria();
criteria.andUserNameEqualTo(user.getUserName());
List<User> users = userMapper.selectByCriteria(userCriteria);
if (users.size() < 1)
{
if(userMapper.updateByPrimaryKeySelective(user) > 0)
{