LearningContentBoardServiceImpl.java 2.09 KB
Newer Older
liqin's avatar
liqin committed
1
package cn.chnmuseum.party.service.impl;
liqin's avatar
liqin committed
2

liqin's avatar
liqin committed
3 4 5 6 7
import cn.chnmuseum.party.mapper.LearningContentBoardMapper;
import cn.chnmuseum.party.model.Asset;
import cn.chnmuseum.party.model.ExhibitionBoard;
import cn.chnmuseum.party.model.LearningContentBoard;
import cn.chnmuseum.party.service.LearningContentBoardService;
liqin's avatar
liqin committed
8 9
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
liqin's avatar
liqin committed
10 11 12
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

liqin's avatar
liqin committed
13 14 15
import javax.annotation.Resource;
import java.util.List;

liqin's avatar
liqin committed
16 17 18 19 20 21 22 23 24 25 26
/**
 * <p>
 * 学习内容展板 服务实现类
 * </p>
 *
 * @author Danny Lee
 * @since 2021-03-16
 */
@Service
public class LearningContentBoardServiceImpl extends ServiceImpl<LearningContentBoardMapper, LearningContentBoard> implements LearningContentBoardService {

liqin's avatar
liqin committed
27 28 29 30 31 32 33 34
    @Resource
    private LearningContentBoardMapper learningContentBoardMapper;

    @Override
    public List<LearningContentBoard> getBoardListByLearningContentId(String learningContentId) {
        return learningContentBoardMapper.selectBoardListByLearningContentId(learningContentId);
    }

liqin's avatar
liqin committed
35 36 37 38 39
    @Override
    public IPage<ExhibitionBoard> getBoardPageByLearningContentId(Page<ExhibitionBoard> page, String learningContentId, String nameOrCode) {
        return learningContentBoardMapper.selectBoardPageByLearningContentId(page, learningContentId, nameOrCode);
    }

liqin's avatar
liqin committed
40
    @Override
liqin's avatar
liqin committed
41
    public IPage<Asset> getAssetPageByOrganCode(Page<Asset> page, String organCode) {
wzp's avatar
wzp committed
42 43 44 45
        //查询所有可看子学习内容视频列表
//        return learningContentBoardMapper.selectAssetPageByOrganCode(page, organCode);
        //直接查询主学习内容更新视频
        return learningContentBoardMapper.selectAssetPageAll(page);
liqin's avatar
liqin committed
46 47
    }

wzp's avatar
wzp committed
48 49
    @Override
    public IPage<ExhibitionBoard> getBoardPageByLearningProjectId(Page<ExhibitionBoard> page, String learningProjectId, String nameOrCode) {
wzp's avatar
wzp committed
50
        //直接关联主学习内容查询展板
wzp's avatar
wzp committed
51 52 53
        return learningContentBoardMapper.getBoardPageByLearningProjectId(page, learningProjectId, nameOrCode);
    }

liqin's avatar
liqin committed
54
}