package com.chaozhanggui.admin.system.service;

import com.chaozhanggui.common.system.config.Pager;
import com.chaozhanggui.common.system.config.RespBody;
import com.chaozhanggui.dao.system.dao.TbPlussMercOrderDetailMapper;
import com.chaozhanggui.dao.system.entity.TbPlussMercOrderDetail;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author lyf
 */
@Service
public class MerOrderDetailService {
    @Resource
    private TbPlussMercOrderDetailMapper merOrderDetailMapper;
    public RespBody merOrderDetail(Integer current, Integer size, TbPlussMercOrderDetail condition){
        PageHelper.startPage(current, size);
        List<TbPlussMercOrderDetail> mercOrderDetailsList = merOrderDetailMapper.selectByOrderDetailList(condition);
        PageInfo<TbPlussMercOrderDetail> mercOrderDetailPageInfo = new PageInfo<>(mercOrderDetailsList);
        return new RespBody("000000",mercOrderDetailPageInfo);
    }
}
