44323
2024-04-23 16b704d18a875d1fb63827aaa507790ba2bef5be
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.stylefeng.guns.modular.system.service.impl;
 
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.stylefeng.guns.modular.system.dao.CouponMapper;
import com.stylefeng.guns.modular.system.model.Coupon;
import com.stylefeng.guns.modular.system.service.ICouponService;
import com.stylefeng.guns.modular.system.vo.CouPonQuery;
import com.stylefeng.guns.modular.system.vo.CouponListVO;
import com.stylefeng.guns.modular.system.vo.CouponReceiveVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * <p>
 * 优惠券管理 服务实现类
 * </p>
 *
 * @author 无关风月
 * @since 2024-02-06
 */
@Service
public class CouponServiceImpl extends ServiceImpl<CouponMapper, Coupon> implements ICouponService {
 
    @Autowired
    private CouponMapper couponMapper;
    @Override
    public List<Coupon> couponList(String couponName, Integer timeType, Integer grantType) {
        return couponMapper.couponList(couponName,timeType,grantType);
    }
 
    @Override
    public List<CouponReceiveVO> couponReceive(CouPonQuery couPonQuery) {
 
        return couponMapper.couponReceive(couPonQuery);
    }
}