Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e63df382
authored
Oct 19, 2021
by
刘宇峰
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
行程油耗等
1 parent
34674f9b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
128 additions
and
0 deletions
src/main/java/cn/com/glsx/stdinterface/api/RouteOilMileageClient.java
src/main/java/cn/com/glsx/stdinterface/dto/RouteOilMileageDto.java
src/main/java/cn/com/glsx/stdinterface/api/RouteOilMileageClient.java
0 → 100644
View file @
e63df38
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
);
}
src/main/java/cn/com/glsx/stdinterface/dto/RouteOilMileageDto.java
0 → 100644
View file @
e63df38
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
;
}
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment