package org.jeecg.modules.system.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.system.app.entity.ReceiptPaymentDetailsInfo;
import org.jeecg.modules.system.app.entity.StatisticsInfo;
import org.jeecg.modules.system.app.vo.statistics.FindByShopSumVO;
import org.jeecg.modules.system.app.vo.statistics.FindByStatisticsChartVO;
import org.jeecg.modules.system.app.vo.statistics.FindByStatisticsVO;

import java.math.BigDecimal;
import java.util.List;

/**
 * @Description: 首页统计表
 * @Author: jeecg-boot
 * @Date:   2025-08-18
 * @Version: V1.0
 */
public interface IStatisticsInfoService extends IService<StatisticsInfo> {

    Result<String> add(ReceiptPaymentDetailsInfo receiptPaymentDetailsInfo, BigDecimal money);

    StatisticsInfo findByCode(String orgCode);

    FindByStatisticsVO findByStatistics(String orgCode, int dateAsInt, int firstDayInt, int yesterdayNum );

    List<FindByStatisticsChartVO> findByShopMoneyList(String orgCode, Integer type);

    List<FindByShopSumVO> findByShopSumList(String orgCode, Integer type);
}
