2bba3a4dbd00217561718d7077c9e15a6d6d1ad3.svn-base 942 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. package com.iamberry.app.mapper;
  2. import java.util.Date;
  3. import org.apache.ibatis.annotations.Param;
  4. import com.iamberry.app.core.entity.CodeValid;
  5. /**
  6. * @company 深圳爱贝源科技有限公司
  7. * @website www.iamberry.com
  8. * @author 献
  9. * @tel 18271840547
  10. * @date 2016年11月1日
  11. * @explain 验证码 SQL Mapper映射
  12. */
  13. public interface CodeMapper {
  14. /**
  15. * 保存一条发送记录
  16. * @param codeValid
  17. * @return
  18. */
  19. public int save(CodeValid codeValid);
  20. /**
  21. * 获取某一个手机号码最后的发送记录
  22. * @param phone
  23. * @return
  24. */
  25. public CodeValid getLast(String phone);
  26. /**
  27. * 更新状态
  28. * @param codeId
  29. * @return
  30. */
  31. public int update(Long codeId);
  32. /**
  33. *
  34. * @param startDate
  35. * @param endDate
  36. * @return
  37. * @author 献
  38. * @Time 2016年12月5日
  39. */
  40. public int getInterval(@Param("startDate") Date startDate, @Param("enDate") Date endDate, @Param("phone")String phone);
  41. }