Commit 260569d2 by 杨林龙

1.60.1 开发1.60.1需求版本 修改风险监控业务管理基本信息中的客户姓名为组织层级一级名称

1 parent eaa24144
package cn.com.glsx.admin.modules.model.dto; package cn.com.glsx.admin.modules.model.dto;
import cn.com.glsx.admin.modules.model.vo.DeviceInformationVO;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.io.Serializable; import java.io.Serializable;
import java.util.List;
/** /**
* 风险评估返回参数 * 风险评估返回参数
...@@ -62,4 +59,8 @@ public class BasicInformationDTO implements Serializable { ...@@ -62,4 +59,8 @@ public class BasicInformationDTO implements Serializable {
*/ */
private String deviceTypes; private String deviceTypes;
/**
* 车辆创建人
*/
private Long createdBy;
} }
...@@ -23,11 +23,7 @@ import org.apache.commons.collections4.CollectionUtils; ...@@ -23,11 +23,7 @@ import org.apache.commons.collections4.CollectionUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Collection; import java.util.*;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.stream.Collectors; import java.util.stream.Collectors;
@Slf4j @Slf4j
...@@ -209,7 +205,7 @@ public class OrganizationApiService { ...@@ -209,7 +205,7 @@ public class OrganizationApiService {
/** /**
* 获取一级组织名称 * 获取一级组织名称
*/ */
private String GetTheFirstLevelOrganizationName(Long userId) { public String getFirstLevelOrgName(Long userId) {
R<List<Organization>> tenantPathsByUserId = organizationService.getTenantPathsByUserId(userId); R<List<Organization>> tenantPathsByUserId = organizationService.getTenantPathsByUserId(userId);
List<Organization> dataList = tenantPathsByUserId.getDataList(new TypeToken<List<Organization>>() { List<Organization> dataList = tenantPathsByUserId.getDataList(new TypeToken<List<Organization>>() {
}.getType()); }.getType());
......
...@@ -164,7 +164,7 @@ public class RiskAssessmentService { ...@@ -164,7 +164,7 @@ public class RiskAssessmentService {
basicInformationVO.setLesseeName(basicInformationDTO.getLesseeName()); basicInformationVO.setLesseeName(basicInformationDTO.getLesseeName());
basicInformationVO.setShopName(basicInformationDTO.getShopName()); basicInformationVO.setShopName(basicInformationDTO.getShopName());
// 取组织层级一级名称 // 取组织层级一级名称
basicInformationVO.setUserName(ShieldContextHolder.getTenant().getTenantName()); basicInformationVO.setUserName(organizationApiService.getFirstLevelOrgName(basicInformationDTO.getCreatedBy()));
basicInformationVO.setWorkOrderNo(basicInformationDTO.getWorkOrderNo()); basicInformationVO.setWorkOrderNo(basicInformationDTO.getWorkOrderNo());
basicInformationVO.setVin(basicInformationDTO.getVin()); basicInformationVO.setVin(basicInformationDTO.getVin());
basicInformationVO.setCreateTime(basicInformationDTO.getCreateTime()); basicInformationVO.setCreateTime(basicInformationDTO.getCreateTime());
......
...@@ -1531,7 +1531,8 @@ ...@@ -1531,7 +1531,8 @@
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,
group_concat(td.device_type ORDER BY tvd.id) AS deviceTypes group_concat(td.device_type ORDER BY tvd.id) AS deviceTypes,
tv.created_by AS createdBy
from t_vehicle tv from t_vehicle tv
LEFT JOIN t_vehicle_device tvd ON tvd.vehicle_id = tv.id LEFT JOIN t_vehicle_device tvd ON tvd.vehicle_id = tv.id
LEFT JOIN t_device td ON td.sn = tvd.sn LEFT JOIN t_device td ON td.sn = tvd.sn
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!