package cn.iocoder.yudao.module.system.dal.mysql.biz;


import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
import cn.iocoder.yudao.module.system.dal.dataobject.biz.ExpenseOrderItemDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 长者账单明细 Mapper
 *
 * @author 系统管理员
 */
@Mapper
public interface ExpenseOrderItemMapper extends BaseMapperX<ExpenseOrderItemDO> {
    List<ExpenseOrderItemDO> selectListById(@Param("id") Long id, @Param("expenseItem") String expenseItem, @Param("dailyExpenses") String dailyExpenses);


    List<ExpenseOrderItemDO> selectListByOrderId(@Param("orderId") Long orderId,@Param("tenantId") Long tenantId);
//    default PageResult<ExpenseBillItemDO> selectPage(ExpenseBillItemPageReqVO reqVO) {
//        return selectPage(reqVO, new LambdaQueryWrapperX<ExpenseBillItemDO>()
//                .eqIfPresent(ExpenseBillItemDO::getExpenseBillId, reqVO.getExpenseBillId())
//                .eqIfPresent(ExpenseBillItemDO::getExpenseItemId, reqVO.getExpenseItemId())
//                .likeIfPresent(ExpenseBillItemDO::getItemName, reqVO.getItemName())
//                .eqIfPresent(ExpenseBillItemDO::getPrice, reqVO.getPrice())
//                .eqIfPresent(ExpenseBillItemDO::getActualPrice, reqVO.getActualPrice())
//                .eqIfPresent(ExpenseBillItemDO::getCount, reqVO.getCount())
//                .eqIfPresent(ExpenseBillItemDO::getPayStatus, reqVO.getPayStatus())
//                .betweenIfPresent(ExpenseBillItemDO::getCreatedTime, reqVO.getCreatedTime())
//                .eqIfPresent(ExpenseBillItemDO::getCreatedBy, reqVO.getCreatedBy())
//                .orderByDesc(ExpenseBillItemDO::getId));
//    }

}