package com.clx.performance.dao.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.clx.performance.dao.OrderChildOperateRecordDao;
import com.clx.performance.mapper.OrderChildOperateRecordMapper;
import com.clx.performance.model.OrderChildOperateRecord;
import com.clx.performance.param.pc.OrderChildCancelRecordParam;
import com.clx.performance.vo.app.OrderChildVO;
import com.clx.performance.vo.pc.OrderChildOperateRecordVO;
import com.msl.common.dao.impl.BaseDaoImpl;
import org.springframework.stereotype.Repository;

/**
 * @author jiangwujie
 * Date 2024-08-08
 * Time 11:20
 */
@Repository
public class OrderChildOperateRecordDaoImpl extends BaseDaoImpl<OrderChildOperateRecordMapper, OrderChildOperateRecord, Integer> implements OrderChildOperateRecordDao {
    @Override
    public IPage<OrderChildOperateRecordVO> orderChildOperateRecord(OrderChildCancelRecordParam param) {
        Page<OrderChildOperateRecordVO> page = Page.of(param.getPage(), param.getPageSize());
        return baseMapper.orderChildOperateRecord(page, param);
    }
}
