package com.xxl.job.executor.report.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xxl.job.executor.report.entity.KuaishouReportDailyAccount;
import com.xxl.job.executor.report.mapper.KuaishouReportDailyAccountMapper;
import com.xxl.job.executor.report.service.IKuaishouReportDailyAccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class KuaishouReportDailyAccountServiceImpl extends ServiceImpl<KuaishouReportDailyAccountMapper, KuaishouReportDailyAccount> implements IKuaishouReportDailyAccountService {

    @Autowired
    private KuaishouReportDailyAccountMapper dailyAccountMapper;

    @Override
    public List<JSONObject> selectCost(Long accountId, String startDate, String endDate) {
        return dailyAccountMapper.selectCost(accountId, startDate, endDate);
    }
}
