package com.sqx.modules.resumes.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sqx.common.utils.DateUtils;
import com.sqx.common.utils.PageUtils;
import com.sqx.common.utils.Result;
import com.sqx.modules.app.entity.Msg;
import com.sqx.modules.app.entity.UserEntity;
import com.sqx.modules.app.service.MsgService;
import com.sqx.modules.app.service.UserService;
import com.sqx.modules.message.entity.MessageInfo;
import com.sqx.modules.message.service.MessageService;
import com.sqx.modules.resumes.dao.CompanyDao;
import com.sqx.modules.resumes.dao.InvoiceDao;
import com.sqx.modules.resumes.entity.Company;
import com.sqx.modules.resumes.entity.Invoice;
import com.sqx.modules.resumes.service.CompanyService;
import com.sqx.modules.resumes.service.InvoiceService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;


@Service
public class InvoiceServiceImpl extends ServiceImpl<InvoiceDao, Invoice> implements InvoiceService {


    @Override
    public Result selectInvoiceList(Integer page, Integer limit, Long userId, String userName, String companyName, String title, String content, String phone,Integer status) {
        return Result.success().put("data",new PageUtils(baseMapper.selectInvoiceList(new Page<>(page,limit),userId,userName,companyName,title,content,phone,status)));
    }


}
