From a9564eae9f0169ca39329b2f14a8f13d13358a0a Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期五, 17 十一月 2023 15:28:44 +0800 Subject: [PATCH] 11.7 --- cloud-server-activity/src/main/java/com/dsh/activity/service/impl/BenefitsVideoClassificationServiceImpl.java | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/BenefitsVideoClassificationServiceImpl.java b/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/BenefitsVideoClassificationServiceImpl.java index 9369d4e..f3bb6b9 100644 --- a/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/BenefitsVideoClassificationServiceImpl.java +++ b/cloud-server-activity/src/main/java/com/dsh/activity/service/impl/BenefitsVideoClassificationServiceImpl.java @@ -3,8 +3,14 @@ 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 @@ -12,4 +18,17 @@ */ @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); + } } -- Gitblit v1.7.1