CouponUseMapper.java 993 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. package com.dk.oauth.mapper.integral;
  2. import com.dk.oauth.model.pojo.integral.CouponUse;
  3. import com.dk.common.mapper.BaseMapper;
  4. import com.dk.oauth.model.query.integral.CouponUseQuery;
  5. import com.dk.oauth.model.response.integral.CouponUseResponse;
  6. import org.apache.ibatis.annotations.Param;
  7. import org.springframework.stereotype.Repository;
  8. import java.util.List;
  9. /**
  10. * 优惠券使用 Mapper
  11. */
  12. @Repository
  13. public interface CouponUseMapper extends BaseMapper<CouponUse>{
  14. /**
  15. * @desc : 根据id查询
  16. * @date : 2024/7/24 9:02
  17. * @author : 寇珊珊
  18. */
  19. CouponUseResponse selectById(@Param("id") String id);
  20. /**
  21. * @desc : 条件查询
  22. * @date : 2024/7/24 9:02
  23. * @author : 寇珊珊
  24. */
  25. List<CouponUseResponse> selectByCond(CouponUseQuery couponUseQuery);
  26. /**
  27. * @desc : 条件查询个数
  28. * @date : 2024/7/24 9:02
  29. * @author : 寇珊珊
  30. */
  31. Long countByCond(CouponUseQuery couponUseQuery);
  32. }