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

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.dvchecksubject.DvCheckSubjectDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 维保计划项目 Mapper
 *
 * @author 内蒙必硕
 */
@Mapper
public interface DvCheckSubjectMapper extends BaseMapperX<DvCheckSubjectDO> {

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

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

}