Commit e63df382 by 刘宇峰

行程油耗等

1 parent 34674f9b
package cn.com.glsx.stdinterface.api;
import cn.com.glsx.stdinterface.dto.RouteOilMileageDto;
import cn.com.glsx.stdinterface.factory.StatisticsDriveFallbackFactory;
import com.glsx.plat.core.web.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import java.util.Collection;
import java.util.List;
@FeignClient(name = "ne-shield-standard-interfaces", path = "/stdinterface/routeoilmileage", fallbackFactory = StatisticsDriveFallbackFactory.class, decode404 = true)
public interface RouteOilMileageClient {
/**
* 获取行程
*
* @param sn
* @param beginTime
* @param endTime
* @return
*/
@GetMapping(value = "/getList")
R<List<RouteOilMileageDto>> getListBySn(@RequestParam String sn, @RequestParam String beginTime, @RequestParam String endTime);
/**
* 插入行程
*
* @param routeOilMileageDto
* @return
*/
@PostMapping(value = "/insert")
R<Integer> insert(@RequestBody RouteOilMileageDto routeOilMileageDto);
/**
* 入库行程,重复行程忽略
*
* @param collection
* @return
*/
@PostMapping(value = "/storeIgnoreExists")
R<Integer> storeIgnoreExists(@RequestBody Collection<RouteOilMileageDto> collection);
}
package cn.com.glsx.stdinterface.dto;
import lombok.Data;
import java.util.Date;
@Data
public class RouteOilMileageDto {
/**
* 设备号
*/
private String sn;
private String facId;
/**
* 行程开始时间
*/
private Date beginTime;
/**
* 行程结束时间
*/
private Date endTime;
/**
* 驾驶时长 单位秒
*/
private Integer totalTime;
/**
* 行驶里程 单位米
*/
private Integer mileage;
/**
* 行驶油耗
*/
private Integer oil;
/**
* 怠速时间
*/
private Integer idleTime;
/**
* 急加速总次数
*/
private Integer rushUpCount;
/**
* 急减速总次数
*/
private Integer rushSlowCount;
/**
* 急转弯总次数
*/
private Integer rushTurnCount;
/**
* 超速次数
*/
private Integer overSpeedCount;
/**
* 行程开始时间
*/
private Date time;
/**
* 创建时间
*/
private Date createdTime;
/**
* 更新时间
*/
private Date updatedTime;
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!