package com.yeejoin.equipmanage.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.equipmanage.common.entity.WlCarMileage;
import com.yeejoin.equipmanage.controller.Coordinate;

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

/**
 * 车量里程表 服务类
 *
 * @author duanwei
 * @date 2023-02-01
 */
public interface IWlCarMileageService extends IService<WlCarMileage> {

	Page<WlCarMileage> page(Page<WlCarMileage> page, WlCarMileage wlCarMileage);

	Double totalMileage(String iotCode);

	
	Map<String,Boolean> getCalender(long id,Date date);


	/**
	 * 里程切分（0点若里程未结束，自动切分设置结束信息，并开始新里程）
	 */
	void mileageSegmentation();
	//根据iot编码查询是否有未结束里程
	Boolean getUncompleteMileagByIotCode(String iotCode);

	Double getTotalTravelByIotCodeAndDate(String date,String iotCode);
	Double getTotalTravelByIotCodeAndDateProd(String StartDate,String endDate,String iotCode);
}
