| 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); | 
|     } | 
| } |