CusAuthInfoDao.java 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package com.boot.security.server.dao;
  2. import java.util.List;
  3. import java.util.Map;
  4. import org.apache.ibatis.annotations.Delete;
  5. import org.apache.ibatis.annotations.Insert;
  6. import org.apache.ibatis.annotations.Mapper;
  7. import org.apache.ibatis.annotations.Param;
  8. import org.apache.ibatis.annotations.Select;
  9. import com.boot.security.server.model.CusAuthInfo;
  10. @Mapper
  11. public interface CusAuthInfoDao {
  12. @Select("select * from cus_auth_info t where t.openId = #{openid}")
  13. CusAuthInfo getByOpenId(String openid);
  14. @Delete("delete from cus_auth_info where id = #{id}")
  15. int delete(Long id);
  16. int update(CusAuthInfo cusAuthInfo);
  17. @Insert("insert into cus_auth_info(id,openId, cus_self_id, mobile, status, create_time, last_mod_time) values(#{id},#{openId}, #{cusSelfId}, #{mobile}, #{status}, #{createTime}, #{lastModTime})")
  18. int save(CusAuthInfo cusAuthInfo);
  19. int count(@Param("params") Map<String, Object> params);
  20. List<CusAuthInfo> list(@Param("params") Map<String, Object> params, @Param("offset") Integer offset, @Param("limit") Integer limit);
  21. CusAuthInfo getBySelective(@Param("params") Map<String, Object> params);
  22. @Select("select * from cus_auth_info t where t.mobile = #{mobile}")
  23. CusAuthInfo getDetailByMobile(String mobile);
  24. }