package cn.iocoder.yudao.module.crm.dal.mysql.business; import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; import cn.iocoder.yudao.module.crm.dal.dataobject.business.CrmBusinessStatusDO; import org.apache.ibatis.annotations.Mapper; import java.util.List; /** * 商机状态 Mapper * * @author ljlleo */ @Mapper public interface CrmBusinessStatusMapper extends BaseMapperX { default int deleteByTypeId(Long typeId) { return delete(CrmBusinessStatusDO::getTypeId, typeId); } default List selectListByTypeId(Long typeId) { return selectList(CrmBusinessStatusDO::getTypeId, typeId); } default CrmBusinessStatusDO selectByTypeIdAndId(Long statusTypeId, Long statusId) { return selectOne(CrmBusinessStatusDO::getTypeId, statusTypeId, CrmBusinessStatusDO::getId, statusId); } }