package com.jwipc.shopping.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.shopping.entity.ShoppingPayDetail;
import com.jwipc.shopping.mapper.ShoppingPayDetailMapper;
import com.jwipc.shopping.model.po.ShoppingPayDetailPO;
import com.jwipc.shopping.model.query.ShoppingPayDetailQuery;
import com.jwipc.shopping.service.IShoppingPayDetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 商城付款明细表 服务实现类
 * </p>
 *
 * @author zx
 * @since 2024-04-10
 */
@Service
public class ShoppingPayDetailServiceImpl extends ServiceImpl<ShoppingPayDetailMapper, ShoppingPayDetail> implements IShoppingPayDetailService {

    @Override
    public List<ShoppingPayDetailPO> selectDetailOrderByQuery(Page<ShoppingPayDetail> page, ShoppingPayDetailQuery query) {
        if (page==null){
            return baseMapper.selectDetailOrderByQuery(query);
        }
        return baseMapper.selectDetailOrderByQuery(page,query);
    }
}
