/**
 * Copyright (c) 2022 雷掣 All rights reserved.
 *
 * https://www.lc_crm.com
 *
 * 版权所有，侵权必究！
 */

package io.renren.modules.job.task;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.renren.common.advert.AdvertPlatformOauthContext;
import io.renren.common.advert.AdvertService;
import io.renren.common.utils.DateUtils;
import io.renren.modules.demo.service.RemoteAdvertPort;
import io.renren.modules.sys.dao.AdvertOauthAccountDao;
import io.renren.modules.sys.dao.RdAccountDailyStatDao;
import io.renren.modules.sys.dao.RdAccountLogDao;
import io.renren.modules.sys.dao.RdAdvertiserDao;
import io.renren.modules.sys.dto.AdvertiserFundTransactionPageDTO;
import io.renren.modules.sys.dto.RdAccountDailyStatDTO;
import io.renren.modules.sys.dto.RdAccountLogDTO;
import io.renren.modules.sys.entity.AdvertOauthAccountEntity;
import io.renren.modules.sys.entity.RdAccountDailyStatEntity;
import io.renren.modules.sys.entity.RdAccountLogEntity;
import io.renren.modules.sys.entity.RdAdvertiserEntity;
import io.renren.modules.sys.service.RdAccountLogService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.util.CollectionUtils;

import java.util.Date;
import java.util.List;

/**
 * 刷新账户日流水明细
 *
 */
@Component("refreshAdvertiserFundTransactionTask")
public class RefreshAdvertiserFundTransactionTask implements ITask{
	private Logger logger = LoggerFactory.getLogger(getClass());
	@Autowired
	private RdAccountLogService rdAccountLogService;

	@Override
	public void run(String params){
		logger.debug("RefreshAdvertiserFundTransactionTask定时任务正在执行，参数为：{}", params);
		rdAccountLogService.refreshRdAccountLog(null,"RECHARGE");
		rdAccountLogService.refreshRdAccountLog(null,"TRANSFER");
	}
}