Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 0fe1173b
authored
Jun 03, 2024
by
谢海旭
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
车辆基本信息接口具体实现
1 parent
f0998168
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
13 deletions
src/main/java/cn/com/glsx/admin/modules/model/dto/BasicInformationDTO.java
src/main/java/cn/com/glsx/admin/modules/model/vo/BasicInformationVO.java
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/model/dto/BasicInformationDTO.java
View file @
0fe1173
...
@@ -20,6 +20,11 @@ public class BasicInformationDTO implements Serializable {
...
@@ -20,6 +20,11 @@ public class BasicInformationDTO implements Serializable {
private
String
lesseeName
;
private
String
lesseeName
;
/**
/**
* 承租人联系电话
*/
private
String
lesseePhone
;
/**
* 店面名称
* 店面名称
*/
*/
private
String
shopName
;
private
String
shopName
;
...
@@ -35,11 +40,31 @@ public class BasicInformationDTO implements Serializable {
...
@@ -35,11 +40,31 @@ public class BasicInformationDTO implements Serializable {
private
String
workOrderNo
;
private
String
workOrderNo
;
/**
/**
* 工单安装城市
*/
private
String
installationCity
;
/**
* 车架号
* 车架号
*/
*/
private
String
vin
;
private
String
vin
;
/**
/**
* 车辆品牌
*/
private
String
brandName
;
/**
* 车系
*/
private
String
seriesName
;
/**
* 车型
*/
private
String
typeName
;
/**
* 创建时间
* 创建时间
*/
*/
private
String
createTime
;
private
String
createTime
;
...
...
src/main/java/cn/com/glsx/admin/modules/model/vo/BasicInformationVO.java
View file @
0fe1173
...
@@ -53,18 +53,6 @@ public class BasicInformationVO implements Serializable {
...
@@ -53,18 +53,6 @@ public class BasicInformationVO implements Serializable {
private
String
vin
;
private
String
vin
;
/**
/**
* 工单创建时间
*/
@ApiModelProperty
(
value
=
"创建时间"
)
private
String
createTime
;
/**
* 风险评估设备信息集合
*/
@ApiModelProperty
(
value
=
"设备状态"
)
private
List
<
DeviceInformationVO
>
deviceInformationVOList
;
/**
* 工单安装城市
* 工单安装城市
*/
*/
@ApiModelProperty
(
value
=
"工单安装城市"
)
@ApiModelProperty
(
value
=
"工单安装城市"
)
...
@@ -87,4 +75,17 @@ public class BasicInformationVO implements Serializable {
...
@@ -87,4 +75,17 @@ public class BasicInformationVO implements Serializable {
*/
*/
@ApiModelProperty
(
value
=
"车辆类型名称"
)
@ApiModelProperty
(
value
=
"车辆类型名称"
)
private
String
typeName
;
private
String
typeName
;
/**
* 工单创建时间
*/
@ApiModelProperty
(
value
=
"创建时间"
)
private
String
createTime
;
/**
* 风险评估设备信息集合
*/
@ApiModelProperty
(
value
=
"设备状态"
)
private
List
<
DeviceInformationVO
>
deviceInformationVOList
;
}
}
src/main/java/cn/com/glsx/admin/modules/service/RiskAssessmentService.java
View file @
0fe1173
...
@@ -144,7 +144,7 @@ public class RiskAssessmentService {
...
@@ -144,7 +144,7 @@ public class RiskAssessmentService {
}
}
/**
/**
* 获取
设备
基础信息
* 获取
车辆
基础信息
*
*
* @param vehicleId 车辆ID
* @param vehicleId 车辆ID
* @return 设备基础信息
* @return 设备基础信息
...
@@ -162,11 +162,16 @@ public class RiskAssessmentService {
...
@@ -162,11 +162,16 @@ public class RiskAssessmentService {
throw
new
AdminException
(
vehicleId
+
"该车辆信息为空"
);
throw
new
AdminException
(
vehicleId
+
"该车辆信息为空"
);
}
}
basicInformationVO
.
setLesseeName
(
basicInformationDTO
.
getLesseeName
());
basicInformationVO
.
setLesseeName
(
basicInformationDTO
.
getLesseeName
());
basicInformationVO
.
setLesseePhone
(
basicInformationDTO
.
getLesseePhone
());
basicInformationVO
.
setShopName
(
basicInformationDTO
.
getShopName
());
basicInformationVO
.
setShopName
(
basicInformationDTO
.
getShopName
());
// 取组织层级一级名称
// 取组织层级一级名称
basicInformationVO
.
setUserName
(
organizationApiService
.
getFirstLevelOrgName
(
basicInformationDTO
.
getCreatedBy
()));
basicInformationVO
.
setUserName
(
organizationApiService
.
getFirstLevelOrgName
(
basicInformationDTO
.
getCreatedBy
()));
basicInformationVO
.
setWorkOrderNo
(
basicInformationDTO
.
getWorkOrderNo
());
basicInformationVO
.
setWorkOrderNo
(
basicInformationDTO
.
getWorkOrderNo
());
basicInformationVO
.
setInstallationCity
(
basicInformationDTO
.
getInstallationCity
());
basicInformationVO
.
setVin
(
basicInformationDTO
.
getVin
());
basicInformationVO
.
setVin
(
basicInformationDTO
.
getVin
());
basicInformationVO
.
setBrandName
(
basicInformationDTO
.
getBrandName
());
basicInformationVO
.
setSeriesName
(
basicInformationDTO
.
getSeriesName
());
basicInformationVO
.
setTypeName
(
basicInformationDTO
.
getTypeName
());
basicInformationVO
.
setCreateTime
(
basicInformationDTO
.
getCreateTime
());
basicInformationVO
.
setCreateTime
(
basicInformationDTO
.
getCreateTime
());
// 通过设备号获取设备组合信息
// 通过设备号获取设备组合信息
String
sns
=
basicInformationDTO
.
getSns
();
String
sns
=
basicInformationDTO
.
getSns
();
...
...
src/main/resources/mapper/VehicleMapper.xml
View file @
0fe1173
...
@@ -1525,9 +1525,14 @@
...
@@ -1525,9 +1525,14 @@
resultType=
"cn.com.glsx.admin.modules.model.dto.BasicInformationDTO"
>
resultType=
"cn.com.glsx.admin.modules.model.dto.BasicInformationDTO"
>
select tv.id,
select tv.id,
twv.lessee_name AS lesseeName,
twv.lessee_name AS lesseeName,
twv.lessee_phone AS lesseePhone,
tw.`shop_name` AS shopName,
tw.`shop_name` AS shopName,
tw.partner_order_no AS workOrderNo,
tw.partner_order_no AS workOrderNo,
concat(tw.province, tw.city) AS installationCity,
tv.vin as vin,
tv.vin as vin,
tv.brand_name as brandName,
tv.series_name as seriesName,
tv.type_name as typeName,
tw.created_date AS createTime,
tw.created_date AS createTime,
group_concat(tvd.sn ORDER BY tvd.id) as sns,
group_concat(tvd.sn ORDER BY tvd.id) as sns,
group_concat(td.source ORDER BY tvd.id) as sources,
group_concat(td.source ORDER BY tvd.id) as sources,
...
...
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