package com.rongwei.sfcommon.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.rongwe.scentity.domian.ThemeCheckWorkparkDo;
import com.rongwei.rwcommon.base.BaseDo;
import com.rongwei.sfcommon.sys.dao.ThemeCheckWorkparkDao;
import com.rongwei.sfcommon.sys.service.ThemeCheckWorkparkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("themeCheckWorkparkService")
public class ThemeCheckWorkparkServiceImpl extends ServiceImpl<ThemeCheckWorkparkDao, ThemeCheckWorkparkDo> implements ThemeCheckWorkparkService {

    @Autowired
    private ThemeCheckWorkparkDao themeCheckWorkparkDao;

    /**
     * 根据themeCheckIds查询集合
     *
     * @param themeCheckIdList
     * @return {@link List< ThemeCheckWorkparkDo>}
     * @date 2023/12/27 13:43
     * @author shangmi
     *
     */

    @Override
    public List<ThemeCheckWorkparkDo> getListBytheneCheckIds(List<String> themeCheckIdList) {
        LambdaQueryWrapper<ThemeCheckWorkparkDo> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(ThemeCheckWorkparkDo::getThemecheckid,themeCheckIdList)
                .eq(BaseDo::getDeleted,0);
        return themeCheckWorkparkDao.selectList(queryWrapper);
    }
}
