77 lines
2.6 KiB
Java
77 lines
2.6 KiB
Java
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<LbUserCoupon> {
|
|
|
|
Map<String, Object> add(LbUserCoupon entity);
|
|
|
|
Map<String, Object> update(LbUserCoupon entity);
|
|
|
|
Map<String, Object> deleteById(String id);
|
|
|
|
Map<String, Object> 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<String, Object> syncUserCoupons(String tenantId, Integer recentDays);
|
|
|
|
/**
|
|
* 按月统计用户优惠券金额
|
|
*
|
|
* @param tenantId 租户ID
|
|
* @param couponDateStart 优惠日期起
|
|
* @param couponDateEnd 优惠日期止
|
|
* @return 统计结果
|
|
*/
|
|
Map<String, Object> 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);
|
|
}
|