puzhibing
2023-12-08 f88cfa02e36752e4acad7adc4b045155e8e50f21
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
39
40
41
42
package com.dsh.account.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsh.account.dto.IntroduceUserQuery;
import com.dsh.account.entity.IntroduceUser;
import com.dsh.account.entity.TAppGift;
import com.dsh.account.feignclient.course.CourseListClient;
import com.dsh.account.feignclient.course.CoursePaymentClient;
import com.dsh.account.mapper.TAppGiftMapper;
import com.dsh.account.service.TAppGiftService;
import org.checkerframework.checker.units.qual.A;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * <p>
 * 介绍有礼记录表 服务实现类
 * </p>
 *
 * @author administrator
 * @since 2023-09-12
 */
@Service
public class TAppGiftServiceImpl extends ServiceImpl<TAppGiftMapper, TAppGift> implements TAppGiftService {
    @Autowired
    private CoursePaymentClient coursePaymentClient;
    @Autowired
    private TAppGiftMapper mapper;
 
    @Override
    public Integer weeksOfAddHours(Long packetId, Integer appUserId, Integer num) {
        Integer b = coursePaymentClient.sendHours(packetId + "_" + appUserId + "_" + num);
        return b;
    }
 
    @Override
    public List<IntroduceUser> queryIntroduceAll(IntroduceUserQuery query) {
        return mapper.queryIntroduceAll(query);
    }
}