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

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

/**
 * 模具维保明细 Mapper
 *
 * @author 内蒙必硕
 */
@Mapper
public interface MoldRecordSubjectDetailMapper extends BaseMapperX<MoldRecordSubjectDetailDO> {

    default List<MoldRecordSubjectDetailDO> selectListByRecordId(Long recordId) {
        return selectList(MoldRecordSubjectDetailDO::getRecordId, recordId);
    }

    default int deleteByRecordId(Long recordId) {
        return delete(MoldRecordSubjectDetailDO::getRecordId, recordId);
    }

}