Commit ab0ba12b by 刘宇峰

组织接口修改

1 parent cb59521e
......@@ -16,11 +16,7 @@ public class ElectricFence extends BaseEntity {
*/
@Column(name = "fence_name")
private String fenceName;
/**
* 围栏编号
*/
@Column(name = "fence_no")
private String fenceNo;
/**
* 业务围栏类型 5警情围栏,12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应)
*/
......
......@@ -149,7 +149,7 @@ public class ApprovalService {
Type type = new TypeToken<List<Organization>>() {
}.getType();
vehicleDtoPageInfo.forEach(efd -> {
R<List<Organization>> listR = organizationService.getSuperiorsBySubId(ShieldContextHolder.getDepartmentId());
R<List<Organization>> listR = organizationService.getTenantPathsByUserId(ShieldContextHolder.getUserId());
List<Organization> orgList = listR.getDataList(type);
if (CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName());
......@@ -172,7 +172,7 @@ public class ApprovalService {
Type type = new TypeToken<List<Organization>>() {
}.getType();
fenceApproDtoList.forEach(efd -> {
R<List<Organization>> listR = organizationService.getSuperiorsBySubId(ShieldContextHolder.getDepartmentId());
R<List<Organization>> listR = organizationService.getTenantPathsByUserId(ShieldContextHolder.getUserId());
List<Organization> orgList = listR.getDataList(type);
if (CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName());
......
......@@ -73,7 +73,7 @@ public class ElectricFenceService {
}.getType();
list.forEach(efd -> {
R<List<Organization>> listR = organizationService.getSuperiorsBySubId(efd.getDepartmentId());
R<List<Organization>> listR = organizationService.getTenantPathsByUserId(efd.getDepartmentId());
List<Organization> orgList = listR.getDataList(type);
if (CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName());
......@@ -147,7 +147,6 @@ public class ElectricFenceService {
fenceCopy.setAreaText(fenceCopy.getAreaText());
}
}
fenceCopy.setFenceNo(localFence.getFenceNo());
//业务围栏类型 12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应)
fenceCopy.setBizFenceType(fenceBO.getBizFenceType());
fenceCopy.setLocationType(1);
......
......@@ -109,7 +109,7 @@ public class VehicleDocService {
Type type = new TypeToken<List<Organization>>() {
}.getType();
vehicleDtoPageInfo.forEach(efd -> {
R<List<Organization>> listR = organizationService.getSuperiorsBySubId(ShieldContextHolder.getDepartmentId());
R<List<Organization>> listR = organizationService.getTenantPathsByUserId(ShieldContextHolder.getDepartmentId());
List<Organization> orgList = listR.getDataList(type);
if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName());
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!