ApiUserMapper.java 895 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package com.kmall.api.dao;
  2. import com.kmall.api.entity.SmsLogVo;
  3. import com.kmall.api.entity.UserVo;
  4. import org.apache.ibatis.annotations.Param;
  5. import com.kmall.common.dao.BaseDao;
  6. import org.springframework.stereotype.Component;
  7. /**
  8. * 用户
  9. *
  10. * @author Scott
  11. * @email
  12. * @date 2017-03-23 15:22:06
  13. */
  14. @Component
  15. public interface ApiUserMapper extends BaseDao<UserVo> {
  16. UserVo queryByMobile(String mobile);
  17. UserVo queryByOpenId(@Param("openId") String openId);
  18. /**
  19. * 获取用户最后一条短信
  20. *
  21. * @param id
  22. * @return
  23. */
  24. SmsLogVo querySmsCodeByUserId(@Param("id") Long id);
  25. /**
  26. * 保存短信
  27. *
  28. * @param smsLogVo
  29. * @return
  30. */
  31. int saveSmsCodeLog(SmsLogVo smsLogVo);
  32. UserVo queryObject(Integer id);
  33. UserVo queryObjectByIdNoAndName(@Param("idNo") String idNo,@Param("userName") String userName);
  34. }