| | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.activity.entity.BenefitsVideoClassification; |
| | | import com.dsh.activity.mapper.BenefitsVideoClassificationMapper; |
| | | import com.dsh.activity.model.BenefitsVedioChangeStateVO; |
| | | import com.dsh.activity.model.QueryBenefitsVedioVO; |
| | | import com.dsh.activity.model.TQueryBenefitsVO; |
| | | import com.dsh.activity.service.IBenefitsVideoClassificationService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | */ |
| | | @Service |
| | | public class BenefitsVideoClassificationServiceImpl extends ServiceImpl<BenefitsVideoClassificationMapper, BenefitsVideoClassification> implements IBenefitsVideoClassificationService { |
| | | @Autowired |
| | | private BenefitsVideoClassificationMapper benefitsVideoClassificationMapper; |
| | | |
| | | @Override |
| | | public List<TQueryBenefitsVO> listAll(QueryBenefitsVedioVO vo) { |
| | | return benefitsVideoClassificationMapper.listAll(vo); |
| | | } |
| | | |
| | | @Override |
| | | public Object changeState(BenefitsVedioChangeStateVO vo) { |
| | | List<Integer> ids = vo.getIds(); |
| | | Integer state = vo.getState(); |
| | | return benefitsVideoClassificationMapper.changeState(ids, state); |
| | | } |
| | | } |