| | |
| | | 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 org.checkerframework.checker.units.qual.A; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | public class TAppGiftServiceImpl extends ServiceImpl<TAppGiftMapper, TAppGift> implements TAppGiftService { |
| | | @Autowired |
| | | private CoursePaymentClient coursePaymentClient; |
| | | @Autowired |
| | | private TAppGiftMapper mapper; |
| | | |
| | | @Override |
| | | public Boolean weeksOfAddHours(Integer packetId,Integer appUserId,Integer num) { |
| | | Boolean b = coursePaymentClient.sendHours(packetId+"_"+appUserId+"_"+num); |
| | | 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); |
| | | } |
| | | } |