| | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.context.annotation.Lazy; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | private SystemUserMapper systemUserMapper; |
| | | |
| | | @Autowired |
| | | @Lazy |
| | | private SmsEmailService smsEmailService; |
| | | |
| | | @Value("${debug_model}") |
| | |
| | | if(model ==null ||Constants.equalsInteger(member.getIsdeleted(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY.getCode(),"对不起,该员工信息不存在,请刷新页面重试!"); |
| | | } |
| | | member.setSex(model.getSex());//默认是原来的性别 |
| | | if (StringUtils.isNotBlank(member.getPhone()) ){ |
| | | if ( !PhoneUtil.isPhone(member.getPhone())) { |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(), "电话号码格式有误"); |