1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- package com.iamberry.app.mapper;
- import java.util.Date;
- import org.apache.ibatis.annotations.Param;
- import com.iamberry.app.core.entity.CodeValid;
- /**
- * @company 深圳爱贝源科技有限公司
- * @website www.iamberry.com
- * @author 献
- * @tel 18271840547
- * @date 2016年11月1日
- * @explain 验证码 SQL Mapper映射
- */
- public interface CodeMapper {
- /**
- * 保存一条发送记录
- * @param codeValid
- * @return
- */
- public int save(CodeValid codeValid);
-
- /**
- * 获取某一个手机号码最后的发送记录
- * @param phone
- * @return
- */
- public CodeValid getLast(String phone);
-
- /**
- * 更新状态
- * @param codeId
- * @return
- */
- public int update(Long codeId);
-
- /**
- *
- * @param startDate
- * @param endDate
- * @return
- * @author 献
- * @Time 2016年12月5日
- */
- public int getInterval(@Param("startDate") Date startDate, @Param("enDate") Date endDate, @Param("phone")String phone);
- }
|