package cn.iocoder.yudao.module.mes.dal.mysql.pd.reel; import cn.iocoder.yudao.framework.common.pojo.PageResult; import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX; import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX; import cn.iocoder.yudao.module.mes.controller.admin.pd.reel.vo.ProductCtcReelPageReqVO; import cn.iocoder.yudao.module.mes.dal.dataobject.pd.reel.ProductCtcReelDO; import org.apache.ibatis.annotations.Mapper; import java.util.List; @Mapper public interface ProductCtcReelMapper extends BaseMapperX { default PageResult selectPage(ProductCtcReelPageReqVO reqVO) { return selectPage(reqVO, new LambdaQueryWrapperX() .eqIfPresent(ProductCtcReelDO::getCtcId, reqVO.getCtcId()) .eqIfPresent(ProductCtcReelDO::getReelType, reqVO.getReelType()) .orderByDesc(ProductCtcReelDO::getId)); } default List selectListByCtcId(Long ctcId) { return selectList(ProductCtcReelDO::getCtcId, ctcId); } default int deleteByCtcId(Long ctcId) { return delete(ProductCtcReelDO::getCtcId, ctcId); } }