package com.rj.service; import com.baomidou.mybatisplus.extension.service.IService; import com.rj.entity.LbUserCoupon; import jakarta.servlet.http.HttpServletResponse; import java.math.BigDecimal; import java.util.Map; public interface ILbUserCouponService extends IService { Map add(LbUserCoupon entity); Map update(LbUserCoupon entity); Map deleteById(String id); Map pageQuery(Integer current, Integer size, String tenantId, String userId, String userPhone, String userNickname, String parentPhone, String parentNickname, String dataType, String couponDateStart, String couponDateEnd, BigDecimal couponAmountMin); /** * 同步用户优惠券 * * @param tenantId 租户ID * @param recentDays 最近天数 * @return 同步结果 */ Map syncUserCoupons(String tenantId, Integer recentDays); /** * 按月统计用户优惠券金额 * * @param tenantId 租户ID * @param couponDateStart 优惠日期起 * @param couponDateEnd 优惠日期止 * @return 统计结果 */ Map monthlyStatistic(String tenantId, String couponDateStart, String couponDateEnd); /** * 导出用户优惠券Excel * * @param tenantId 租户ID * @param userId 用户ID * @param userPhone 用户手机号 * @param userNickname 用户昵称 * @param parentPhone 用户上级手机号 * @param parentNickname 上级昵称 * @param dataType 数据类型 * @param couponDateStart 优惠日期起 * @param couponDateEnd 优惠日期止 * @param couponAmountMin 优惠券金额最小值 * @param response HTTP响应 */ void exportExcel(String tenantId, String userId, String userPhone, String userNickname, String parentPhone, String parentNickname, String dataType, String couponDateStart, String couponDateEnd, BigDecimal couponAmountMin, HttpServletResponse response); }