|
|
|
@ -31,6 +31,7 @@ import com.daqing.framework.domain.hrms.UserEntity; |
|
|
|
|
import com.daqing.financial.hrms.service.UserService; |
|
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
|
|
|
|
|
|
import javax.annotation.Resource; |
|
|
|
|
import javax.imageio.ImageIO; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -38,7 +39,7 @@ import javax.imageio.ImageIO; |
|
|
|
|
@Service("userService") |
|
|
|
|
public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements UserService { |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
@Resource |
|
|
|
|
private EmployeeDao employeeDao; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -201,7 +202,7 @@ public class UserServiceImpl extends ServiceImpl<UserDao, UserEntity> implements |
|
|
|
|
} |
|
|
|
|
String code = (int)((Math.random() * 9 + 1) * 100000)+ ""; |
|
|
|
|
// 发送短信
|
|
|
|
|
Boolean result = SendSMS.sendCode(phone, code); |
|
|
|
|
Boolean result = SendSMS.sendCode(phone,"SMS_204155294",code); |
|
|
|
|
if (result){ |
|
|
|
|
RedisUtil.setEx(phone,code,PromptSuccess.OVERDUE_TIME); |
|
|
|
|
return true; |
|
|
|
|