You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.2 KiB
36 lines
1.2 KiB
package com.example.demo.service;
|
|
|
|
import com.example.demo.domain.entity.Statistics;
|
|
|
|
import java.util.Date;
|
|
|
|
/**
|
|
* @program: gold-java
|
|
* @ClassName StatisticsService
|
|
* @description: 统计相关
|
|
* @author: Ethan
|
|
* @create: 2025−06-18 12:00
|
|
* @Version 1.0
|
|
**/
|
|
|
|
|
|
public interface StatisticsService {
|
|
//12点,18点,23点30分执行定时任务更新当天part2数据
|
|
public void runHourlyTaskPart1();
|
|
//12点,18点执行定时任务更新当天part2数据
|
|
public void runHourlyTaskPart2();
|
|
//0点执行定时任务更新近一周part2数据
|
|
public void runDailyTaskPart2();
|
|
//查询某地区某天是否已存在统计数据
|
|
public Statistics getExistStatistics(String market,Date date);
|
|
|
|
//新增或更新或不修改某地区某天part1统计数据
|
|
public void saveStatisticsPart1(String market, Date date);
|
|
//新增或更新或不修改某地区某天part2统计数据
|
|
public void saveStatisticsPart2(String market, Date date);
|
|
//根据地区与日期获取part1(余量属性)统计数据
|
|
public Statistics getStatisticsPart1(String market, Date date);
|
|
//根据地区与日期获取part2(余量外属性)统计数据
|
|
public Statistics getStatisticsPart2(String market, Date date);
|
|
|
|
}
|