Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-standard-interfaces
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a0a452fc
authored
Dec 18, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发新E盾gps基站调用基础接口|合并代码
1 parent
6164ea33
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
230 deletions
src/main/java/cn/com/glsx/stdinterface/modules/controller/DeviceLocationController.java
src/main/java/cn/com/glsx/stdinterface/modules/mapper/VehicleMapper.java
src/main/java/cn/com/glsx/stdinterface/modules/model/Vehicle.java
src/main/java/cn/com/glsx/stdinterface/modules/service/DeviceLocationService.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/stdinterface/modules/controller/DeviceLocationController.java
View file @
a0a452f
...
@@ -11,10 +11,7 @@ import io.swagger.annotations.Api;
...
@@ -11,10 +11,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.Collection
;
import
java.util.Collection
;
import
java.util.List
;
import
java.util.List
;
...
@@ -27,10 +24,10 @@ import java.util.List;
...
@@ -27,10 +24,10 @@ import java.util.List;
@Slf4j
@Slf4j
@RestController
@RestController
@RequestMapping
(
value
=
"/devicelocation"
)
@RequestMapping
(
value
=
"/devicelocation"
)
@Api
(
value
=
"设备上点
"
,
tags
=
{
"设备上点
"
})
@Api
(
value
=
"设备上点
和位置验证"
,
tags
=
{
"设备上点和位置验证
"
})
public
class
DeviceLocationController
implements
DeviceLocationClient
{
public
class
DeviceLocationController
implements
DeviceLocationClient
{
private
final
static
String
MODULE
=
"设备上点"
;
private
final
static
String
MODULE
=
"设备上点
和位置验证
"
;
@Autowired
@Autowired
private
DeviceLocationService
deviceLocationService
;
private
DeviceLocationService
deviceLocationService
;
...
@@ -53,6 +50,7 @@ public class DeviceLocationController implements DeviceLocationClient {
...
@@ -53,6 +50,7 @@ public class DeviceLocationController implements DeviceLocationClient {
List
<
String
>
allSns
=
deviceLocationService
.
getAllSnInNewEshield
();
List
<
String
>
allSns
=
deviceLocationService
.
getAllSnInNewEshield
();
return
R
.
ok
().
data
(
allSns
);
return
R
.
ok
().
data
(
allSns
);
}
}
@PostMapping
(
value
=
"/check"
)
@PostMapping
(
value
=
"/check"
)
@SysLog
(
module
=
MODULE
,
value
=
"设备位置点验证"
,
action
=
OperateType
.
AUDIT
)
@SysLog
(
module
=
MODULE
,
value
=
"设备位置点验证"
,
action
=
OperateType
.
AUDIT
)
@ApiOperation
(
value
=
"设备位置点验证"
)
@ApiOperation
(
value
=
"设备位置点验证"
)
...
@@ -60,5 +58,4 @@ public class DeviceLocationController implements DeviceLocationClient {
...
@@ -60,5 +58,4 @@ public class DeviceLocationController implements DeviceLocationClient {
deviceLocationService
.
locationCheck
(
checkBO
);
deviceLocationService
.
locationCheck
(
checkBO
);
return
R
.
ok
();
return
R
.
ok
();
}
}
}
}
src/main/java/cn/com/glsx/stdinterface/modules/mapper/VehicleMapper.java
View file @
a0a452f
package
cn
.
com
.
glsx
.
stdinterface
.
modules
.
mapper
;
package
cn
.
com
.
glsx
.
stdinterface
.
modules
.
mapper
;
import
cn.com.glsx.stdinterface.modules.
model
.Vehicle
;
import
cn.com.glsx.stdinterface.modules.
entity
.Vehicle
;
import
cn.com.glsx.stdinterface.modules.model.export.ZhongliWindReport
;
import
cn.com.glsx.stdinterface.modules.model.export.ZhongliWindReport
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
import
com.glsx.plat.mybatis.mapper.CommonBaseMapper
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Mapper
;
...
...
src/main/java/cn/com/glsx/stdinterface/modules/model/Vehicle.java
deleted
100644 → 0
View file @
6164ea3
package
cn
.
com
.
glsx
.
stdinterface
.
modules
.
model
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
com.glsx.plat.mybatis.base.BaseEntity
;
import
lombok.Data
;
import
javax.persistence.Column
;
import
javax.persistence.Table
;
import
java.util.Date
;
@Table
(
name
=
"t_vehicle"
)
@Data
public
class
Vehicle
extends
BaseEntity
{
/**
* 工单id
*/
@Column
(
name
=
"workorder_id"
)
private
Long
workorderId
;
/**
* 车主姓名
*/
@Column
(
name
=
"owner_name"
)
private
String
ownerName
;
/**
* 车架号
*/
private
String
vin
;
/**
* 车主性别
*/
@Column
(
name
=
"owner_sex"
)
private
String
ownerSex
;
/**
* 车主联系方式
*/
@Column
(
name
=
"owner_tel"
)
private
String
ownerTel
;
/**
* 车辆品牌id
*/
@Column
(
name
=
"brand_id"
)
private
Integer
brandId
;
/**
* 车辆品牌
*/
@Column
(
name
=
"brand_name"
)
private
String
brandName
;
/**
* 车辆子品牌id
*/
@Column
(
name
=
"sub_brand_id"
)
private
Integer
subBrandId
;
/**
* 车辆子品牌
*/
@Column
(
name
=
"sub_brand_name"
)
private
String
subBrandName
;
/**
* 车辆系别id
*/
@Column
(
name
=
"series_id"
)
private
Integer
seriesId
;
/**
* 车辆系别
*/
@Column
(
name
=
"series_name"
)
private
String
seriesName
;
/**
* 车辆类型id
*/
@Column
(
name
=
"type_id"
)
private
Integer
typeId
;
/**
* 车辆类型
*/
@Column
(
name
=
"type_name"
)
private
String
typeName
;
/**
* 车辆型号id
*/
@Column
(
name
=
"model_id"
)
private
Integer
modelId
;
/**
* 车辆型号
*/
@Column
(
name
=
"model_name"
)
private
String
modelName
;
/**
* 车辆配置id
*/
@Column
(
name
=
"config_id"
)
private
Integer
configId
;
/**
* 车辆配置
*/
@Column
(
name
=
"config_desc"
)
private
String
configDesc
;
/**
* 车辆外部颜色
*/
private
String
color
;
/**
* 车辆内饰颜色
*/
@Column
(
name
=
"inner_color"
)
private
String
innerColor
;
/**
* 车牌
*/
@Column
(
name
=
"license_plate"
)
private
String
licensePlate
;
/**
* 车辆类型 1:试乘试驶车 2:深度体验车
*/
@Column
(
name
=
"vehicle_type"
)
private
Integer
vehicleType
;
/**
* 发动机
*/
private
String
engine
;
/**
* 排量
*/
private
String
displacement
;
/**
* 里程
*/
private
String
mileage
;
/**
* 购车时间
*/
@Column
(
name
=
"buy_date"
)
private
Date
buyDate
;
/**
* 车辆说明
*/
private
String
description
;
/**
* 备注
*/
private
String
remark
;
/**
* 服役类型:0未上牌,1已上牌
*/
@Column
(
name
=
"serve_type"
)
private
Integer
serveType
;
/**
* 验证(激活)状态 0默认,1:通过,2 不通过,车辆可能不用关联设备
*/
@Column
(
name
=
"validate_status"
)
private
Integer
validateStatus
;
/**
*
*/
@Column
(
name
=
"validate_info"
)
private
String
validateInfo
;
/**
* 销售经理
*/
@Column
(
name
=
"sale_manager"
)
private
String
saleManager
;
/**
* 销售经理电话
*/
@Column
(
name
=
"sale_manager_phone"
)
private
String
saleManagerPhone
;
/**
* 购置方式
*/
@Column
(
name
=
"buy_type"
)
private
String
buyType
;
/**
* 购置方式
*/
@Column
(
name
=
"registration_date"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
Date
registrationDate
;
/**
* 车辆用途 1 专属用途 2 非专属用途
*/
@Column
(
name
=
"vehicle_usages"
)
private
Integer
vehicleUsages
;
}
\ No newline at end of file
\ No newline at end of file
src/main/java/cn/com/glsx/stdinterface/modules/service/DeviceLocationService.java
View file @
a0a452f
...
@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.service;
...
@@ -3,6 +3,7 @@ package cn.com.glsx.stdinterface.modules.service;
import
cn.com.glsx.stdinterface.dto.DeviceLocationDto
;
import
cn.com.glsx.stdinterface.dto.DeviceLocationDto
;
import
cn.com.glsx.stdinterface.modules.mapper.DeviceLocationMapper
;
import
cn.com.glsx.stdinterface.modules.mapper.DeviceLocationMapper
;
import
cn.com.glsx.stdinterface.modules.model.DeviceLocation
;
import
cn.com.glsx.stdinterface.modules.model.DeviceLocation
;
import
cn.com.glsx.stdinterface.modules.model.LocationCheckBO
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -18,9 +19,6 @@ import java.util.List;
...
@@ -18,9 +19,6 @@ import java.util.List;
*
*
* @author yll
* @author yll
*/
*/
import
cn.com.glsx.stdinterface.modules.model.LocationCheckBO
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
@Slf4j
@Slf4j
@Service
@Service
...
@@ -68,8 +66,13 @@ public class DeviceLocationService {
...
@@ -68,8 +66,13 @@ public class DeviceLocationService {
public
List
<
String
>
getAllSnInNewEshield
()
{
public
List
<
String
>
getAllSnInNewEshield
()
{
return
deviceLocationMapper
.
getAllSnInNewEshield
();
return
deviceLocationMapper
.
getAllSnInNewEshield
();
}
}
/**
* 位置验证
*
* @param checkBO
*/
public
void
locationCheck
(
LocationCheckBO
checkBO
)
{
public
void
locationCheck
(
LocationCheckBO
checkBO
)
{
}
}
}
}
src/main/resources/mapper/VehicleMapper.xml
View file @
a0a452f
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"cn.com.glsx.stdinterface.modules.mapper.VehicleMapper"
>
<mapper
namespace=
"cn.com.glsx.stdinterface.modules.mapper.VehicleMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.stdinterface.modules.
model
.Vehicle"
>
<resultMap
id=
"BaseResultMap"
type=
"cn.com.glsx.stdinterface.modules.
entity
.Vehicle"
>
<!--
<!--
WARNING - @mbg.generated
WARNING - @mbg.generated
-->
-->
...
...
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