| | |
| | | @Mapper |
| | | public interface CrmReceivablePlanMapper extends BaseMapperX<CrmReceivablePlanDO> { |
| | | |
| | | /** |
| | | * 查询开票单生成的收款节点 |
| | | */ |
| | | default java.util.List<CrmReceivablePlanDO> selectListByInvoiceId(Long invoiceId) { |
| | | return selectList(new cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX<CrmReceivablePlanDO>() |
| | | .eq(CrmReceivablePlanDO::getInvoiceId, invoiceId) |
| | | .orderByAsc(CrmReceivablePlanDO::getStage) |
| | | .orderByAsc(CrmReceivablePlanDO::getId)); |
| | | } |
| | | |
| | | default CrmReceivablePlanDO selectMaxPeriodByContractId(Long contractId) { |
| | | return selectOne(new MPJLambdaWrapperX<CrmReceivablePlanDO>() |
| | | .eq(CrmReceivablePlanDO::getContractId, contractId) |