| | |
| | | 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> |
| | |
| | | */ |
| | | @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); |
| | | } |
| | | } |