Commit ab0ba12b by 刘宇峰

组织接口修改

1 parent cb59521e
...@@ -16,11 +16,7 @@ public class ElectricFence extends BaseEntity { ...@@ -16,11 +16,7 @@ public class ElectricFence extends BaseEntity {
*/ */
@Column(name = "fence_name") @Column(name = "fence_name")
private String fenceName; private String fenceName;
/**
* 围栏编号
*/
@Column(name = "fence_no")
private String fenceNo;
/** /**
* 业务围栏类型 5警情围栏,12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应) * 业务围栏类型 5警情围栏,12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应)
*/ */
......
...@@ -149,7 +149,7 @@ public class ApprovalService { ...@@ -149,7 +149,7 @@ public class ApprovalService {
Type type = new TypeToken<List<Organization>>() { Type type = new TypeToken<List<Organization>>() {
}.getType(); }.getType();
vehicleDtoPageInfo.forEach(efd -> { 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); List<Organization> orgList = listR.getDataList(type);
if (CollectionUtils.isNotEmpty(orgList)) { if (CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName()); efd.setArea(orgList.get(1).getOrgName());
...@@ -172,7 +172,7 @@ public class ApprovalService { ...@@ -172,7 +172,7 @@ public class ApprovalService {
Type type = new TypeToken<List<Organization>>() { Type type = new TypeToken<List<Organization>>() {
}.getType(); }.getType();
fenceApproDtoList.forEach(efd -> { 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); List<Organization> orgList = listR.getDataList(type);
if (CollectionUtils.isNotEmpty(orgList)) { if (CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName()); efd.setArea(orgList.get(1).getOrgName());
......
...@@ -73,7 +73,7 @@ public class ElectricFenceService { ...@@ -73,7 +73,7 @@ public class ElectricFenceService {
}.getType(); }.getType();
list.forEach(efd -> { 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); List<Organization> orgList = listR.getDataList(type);
if (CollectionUtils.isNotEmpty(orgList)) { if (CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName()); efd.setArea(orgList.get(1).getOrgName());
...@@ -147,7 +147,6 @@ public class ElectricFenceService { ...@@ -147,7 +147,6 @@ public class ElectricFenceService {
fenceCopy.setAreaText(fenceCopy.getAreaText()); fenceCopy.setAreaText(fenceCopy.getAreaText());
} }
} }
fenceCopy.setFenceNo(localFence.getFenceNo());
//业务围栏类型 12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应) //业务围栏类型 12试驾围栏,13特约店围栏(12,13直接和大数据那边类型对应)
fenceCopy.setBizFenceType(fenceBO.getBizFenceType()); fenceCopy.setBizFenceType(fenceBO.getBizFenceType());
fenceCopy.setLocationType(1); fenceCopy.setLocationType(1);
......
...@@ -109,7 +109,7 @@ public class VehicleDocService { ...@@ -109,7 +109,7 @@ public class VehicleDocService {
Type type = new TypeToken<List<Organization>>() { Type type = new TypeToken<List<Organization>>() {
}.getType(); }.getType();
vehicleDtoPageInfo.forEach(efd -> { 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); List<Organization> orgList = listR.getDataList(type);
if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(orgList)) { if (org.apache.commons.collections4.CollectionUtils.isNotEmpty(orgList)) {
efd.setArea(orgList.get(1).getOrgName()); 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!