package com.cf.imes.module.plan.dal.mysql.orderParts;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.cf.imes.framework.mybatis.core.injector.BaseBatchMapper;
import com.cf.imes.module.plan.dal.dataobject.orderParts.PartsDO;
import org.apache.ibatis.annotations.Mapper;

/**
 * 配件表 parts_{N} Mapper
 *
 * @author 晨丰科技
 */
@Mapper
public interface PartsMapper extends BaseBatchMapper<PartsDO> {
    default PartsDO selectByGoodID(String goodId , Long organId) {
        return selectOne(new LambdaQueryWrapper<PartsDO>().eq(PartsDO::getGoodsId, goodId).eq(PartsDO::getOrganId, organId));
    }
}
