Commit 0fe1173b by 谢海旭

车辆基本信息接口具体实现

1 parent f0998168
......@@ -20,6 +20,11 @@ public class BasicInformationDTO implements Serializable {
private String lesseeName;
/**
* 承租人联系电话
*/
private String lesseePhone;
/**
* 店面名称
*/
private String shopName;
......@@ -35,11 +40,31 @@ public class BasicInformationDTO implements Serializable {
private String workOrderNo;
/**
* 工单安装城市
*/
private String installationCity;
/**
* 车架号
*/
private String vin;
/**
* 车辆品牌
*/
private String brandName;
/**
* 车系
*/
private String seriesName;
/**
* 车型
*/
private String typeName;
/**
* 创建时间
*/
private String createTime;
......
......@@ -53,18 +53,6 @@ public class BasicInformationVO implements Serializable {
private String vin;
/**
* 工单创建时间
*/
@ApiModelProperty(value = "创建时间")
private String createTime;
/**
* 风险评估设备信息集合
*/
@ApiModelProperty(value = "设备状态")
private List<DeviceInformationVO> deviceInformationVOList;
/**
* 工单安装城市
*/
@ApiModelProperty(value = "工单安装城市")
......@@ -87,4 +75,17 @@ public class BasicInformationVO implements Serializable {
*/
@ApiModelProperty(value = "车辆类型名称")
private String typeName;
/**
* 工单创建时间
*/
@ApiModelProperty(value = "创建时间")
private String createTime;
/**
* 风险评估设备信息集合
*/
@ApiModelProperty(value = "设备状态")
private List<DeviceInformationVO> deviceInformationVOList;
}
......@@ -144,7 +144,7 @@ public class RiskAssessmentService {
}
/**
* 获取设备基础信息
* 获取车辆基础信息
*
* @param vehicleId 车辆ID
* @return 设备基础信息
......@@ -162,11 +162,16 @@ public class RiskAssessmentService {
throw new AdminException(vehicleId + "该车辆信息为空");
}
basicInformationVO.setLesseeName(basicInformationDTO.getLesseeName());
basicInformationVO.setLesseePhone(basicInformationDTO.getLesseePhone());
basicInformationVO.setShopName(basicInformationDTO.getShopName());
// 取组织层级一级名称
basicInformationVO.setUserName(organizationApiService.getFirstLevelOrgName(basicInformationDTO.getCreatedBy()));
basicInformationVO.setWorkOrderNo(basicInformationDTO.getWorkOrderNo());
basicInformationVO.setInstallationCity(basicInformationDTO.getInstallationCity());
basicInformationVO.setVin(basicInformationDTO.getVin());
basicInformationVO.setBrandName(basicInformationDTO.getBrandName());
basicInformationVO.setSeriesName(basicInformationDTO.getSeriesName());
basicInformationVO.setTypeName(basicInformationDTO.getTypeName());
basicInformationVO.setCreateTime(basicInformationDTO.getCreateTime());
// 通过设备号获取设备组合信息
String sns = basicInformationDTO.getSns();
......
......@@ -1525,9 +1525,14 @@
resultType="cn.com.glsx.admin.modules.model.dto.BasicInformationDTO">
select tv.id,
twv.lessee_name AS lesseeName,
twv.lessee_phone AS lesseePhone,
tw.`shop_name` AS shopName,
tw.partner_order_no AS workOrderNo,
concat(tw.province, tw.city) AS installationCity,
tv.vin as vin,
tv.brand_name as brandName,
tv.series_name as seriesName,
tv.type_name as typeName,
tw.created_date AS createTime,
group_concat(tvd.sn ORDER BY tvd.id) as sns,
group_concat(td.source ORDER BY tvd.id) as sources,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!