package cn.iocoder.yudao.module.mes.dal.mysql.dvcheckdevice;

import java.util.*;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.framework.common.pojo.PageParam;
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.mes.dal.dataobject.dvcheckdevice.DvCheckDeviceDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 维保计划设备 Mapper
 *
 * @author 内蒙必硕
 */
@Mapper
public interface DvCheckDeviceMapper extends BaseMapperX<DvCheckDeviceDO> {

    default List<DvCheckDeviceDO> selectListByPlanId(Long planId) {
        return selectList(DvCheckDeviceDO::getPlanId, planId);
    }

    default int deleteByPlanId(Long planId) {
        return delete(DvCheckDeviceDO::getPlanId, planId);
    }

}