| | |
| | | || StringUtils.isBlank(company.getCaptche())){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST ); |
| | | } |
| | | SmsEmailServiceImpl.isCaptcheValide(smsEmailMapper,company.getPhone(),company.getCaptche()); |
| | | if(!debugModel){ |
| | | SmsEmailServiceImpl.isCaptcheValide(smsEmailMapper,company.getPhone(),company.getCaptche()); |
| | | } |
| | | Company model = companyMapper.selectById(company.getId()); |
| | | if(model == null || StringUtils.equals(model.getPhone(),company.getPhone()) ){ |
| | | throw new BusinessException(ResponseStatus.BAD_REQUEST.getCode(),"手机号未发生改变~" ); |
| | |
| | | |
| | | @Override |
| | | public Company findById(Integer id) { |
| | | Company model = findById(id); |
| | | Company model = companyMapper.selectById(id); |
| | | if(model == null ||Constants.equalsInteger(model.getIsdeleted(),Constants.ONE)){ |
| | | throw new BusinessException(ResponseStatus.DATA_EMPTY); |
| | | } |