wlzboy
2025-12-06 847a7773ef1a8ad418c6934d35b5f205a97c04d0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
package com.ruoyi.system.mapper;
 
import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ruoyi.system.domain.VehicleMileageStats;
import com.ruoyi.system.domain.TaskTimeInterval;
 
/**
 * 车辆里程统计Mapper接口
 */
public interface VehicleMileageStatsMapper {
    
    /**
     * 查询车辆里程统计
     * 
     * @param statsId 统计ID
     * @return 车辆里程统计
     */
    public VehicleMileageStats selectVehicleMileageStatsById(Long statsId);
 
    /**
     * 查询车辆里程统计列表
     * 
     * @param vehicleMileageStats 车辆里程统计
     * @return 车辆里程统计集合
     */
    public List<VehicleMileageStats> selectVehicleMileageStatsList(VehicleMileageStats vehicleMileageStats);
 
    /**
     * 新增车辆里程统计
     * 
     * @param vehicleMileageStats 车辆里程统计
     * @return 结果
     */
    public int insertVehicleMileageStats(VehicleMileageStats vehicleMileageStats);
 
    /**
     * 修改车辆里程统计
     * 
     * @param vehicleMileageStats 车辆里程统计
     * @return 结果
     */
    public int updateVehicleMileageStats(VehicleMileageStats vehicleMileageStats);
 
    /**
     * 删除车辆里程统计
     * 
     * @param statsId 统计ID
     * @return 结果
     */
    public int deleteVehicleMileageStatsById(Long statsId);
 
    /**
     * 批量删除车辆里程统计
     * 
     * @param statsIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteVehicleMileageStatsByIds(Long[] statsIds);
 
    /**
     * 查询车辆在指定日期的统计记录
     * 
     * @param vehicleId 车辆ID
     * @param statDate 统计日期
     * @return 统计记录
     */
    public VehicleMileageStats selectByVehicleIdAndDate(@Param("vehicleId") Long vehicleId, 
                                                         @Param("statDate") Date statDate);
 
    /**
     * 查询车辆在指定时间范围内的任务时间区间
     * 
     * @param vehicleId 车辆ID
     * @param startTime 开始时间
     * @param endTime 结束时间
     * @return 任务时间区间列表
     */
    public List<TaskTimeInterval> selectTaskTimeIntervals(@Param("vehicleId") Long vehicleId,
                                                           @Param("startTime") Date startTime,
                                                           @Param("endTime") Date endTime);
}