package com.zhongdao.jlr.business.service.impl;

import com.util.Vo;
import com.zhongdao.jlr.business.dao.OrderCheckDao;
import com.zhongdao.jlr.business.service.OrderCheckService;
import net.sf.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

/***
 * 处理服务结算的业务
 */
@Service(value = "orderCheckServiceImpl")
public class OrderCheckServiceImpl implements OrderCheckService{

    @Autowired
    OrderCheckDao dao;

    @Override
    public Vo list(HttpServletRequest request, int page, int raws, String orderCode, String queryDate1, String rescueCompanyName, String queryDate2, String check_state) {
        return dao.list(request,page,raws,orderCode,queryDate1,rescueCompanyName,queryDate2,check_state);
    }

    @Override
    public Vo lists(HttpServletRequest request, int page, int raws, String code, String orderCode, String queryDate1, String rescueCompanyName, String queryDate2, String check_state,String state) {
        return dao.lists(request,page,raws,code,orderCode,queryDate1,rescueCompanyName,queryDate2,check_state,state);
    }

    @Override
    public JSONObject exportData(HttpServletRequest request, String code, String orderCode, String queryDate1, String rescueCompanyName, String queryDate2, String check_state) {
        return dao.exportData(request,code,orderCode,queryDate1,rescueCompanyName,queryDate2,check_state);
    }

    @Override
    public boolean updateInfo(String uid, String totalFee) {
        return dao.updateInfo(uid,totalFee);
    }
}
