liujie
2023-09-23 852681bc9257e9eaae64d027a9bc6d88f93f35b4
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
package com.dsh.activity.service.impl;
 
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dsh.activity.entity.IntroduceRewards;
import com.dsh.activity.mapper.IntroduceRewardsMapper;
import com.dsh.activity.model.IntroduceChangeStateDTO;
import com.dsh.activity.service.IntroduceRewardsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.List;
 
/**
 * <p>
 * 介绍奖励 服务实现类
 * </p>
 *
 * @author jqs
 * @since 2023-06-29
 */
@Service
public class IntroduceRewardsServiceImpl extends ServiceImpl<IntroduceRewardsMapper, IntroduceRewards> implements IntroduceRewardsService {
    @Autowired
    private IntroduceRewardsMapper introduceRewardsMapper;
    @Override
    public Object changeState(IntroduceChangeStateDTO dto) {
        List<Integer> ids = dto.getIds();
        Integer state = dto.getState();
        return introduceRewardsMapper.changeState(ids,state);
    }
}