package com.xueyi.system.version.manager.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.xueyi.common.web.entity.manager.impl.BaseManagerImpl;
import com.xueyi.system.version.domain.dto.DmDeployHistoryDto;
import com.xueyi.system.version.domain.dto.DmReleaseManagerDto;
import com.xueyi.system.version.domain.model.DmDeployHistoryConverter;
import com.xueyi.system.version.domain.model.DmReleaseManagerConverter;
import com.xueyi.system.version.domain.po.DmDeployHistoryPo;
import com.xueyi.system.version.domain.po.DmReleaseManagerPo;
import com.xueyi.system.version.domain.query.DmDeployHistoryQuery;
import com.xueyi.system.version.domain.query.DmReleaseManagerQuery;
import com.xueyi.system.version.manager.IDmDeployHistoryManager;
import com.xueyi.system.version.manager.IDmReleaseManagerManager;
import com.xueyi.system.version.mapper.DmDeployHistoryMapper;
import com.xueyi.system.version.mapper.DmReleaseManagerMapper;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.List;

/**
 * 发布管理管理 数据封装层处理
 *
 * @author xueyi
 */
@Component
public class DmDeployHistoryManager extends BaseManagerImpl<DmDeployHistoryQuery, DmDeployHistoryDto, DmDeployHistoryPo, DmDeployHistoryMapper, DmDeployHistoryConverter> implements IDmDeployHistoryManager {
    @Override
    public List<DmDeployHistoryDto> selectHistoryByDevId(Serializable id) {
        return mapperDto(super.baseMapper.selectList(new LambdaQueryWrapper<DmDeployHistoryPo>().eq(DmDeployHistoryPo::getDevId, id)));
    }
}