|
|
@ -52,6 +52,7 @@ public class EIDimServiceImpl implements EIDimService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询可更新的单位 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private List<CustomerAgencyEntity> listAgencies2Update() { |
|
|
@ -69,6 +70,7 @@ public class EIDimServiceImpl implements EIDimService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询可增加的单位 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private List<CustomerAgencyEntity> listAgencies2Add() { |
|
|
@ -92,6 +94,7 @@ public class EIDimServiceImpl implements EIDimService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询需要更新的部门列表 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private List<CustomerDepartmentEntity> listDepts2Update() { |
|
|
@ -109,6 +112,7 @@ public class EIDimServiceImpl implements EIDimService { |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询需要新增的部门列表 |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
private List<CustomerDepartmentEntity> listDepts2Add() { |
|
|
@ -132,11 +136,9 @@ public class EIDimServiceImpl implements EIDimService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public Map<String, Integer> updateCenterPointByName(GridCenterPointForm param) { |
|
|
|
//todo 怎么反向判断 左匹配
|
|
|
|
List<ScreenProjectGridDailyDTO> gridInfos = screenCustomerGridService.selectGridInfoByCustomerId(param.getCustomerId()); |
|
|
|
Map<String, Integer> result = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
|
|
gridInfos.forEach(grid -> { |
|
|
|
//客户id 和组织id 都相等 且 名字 包含关系时才修改
|
|
|
|
if (grid.getCustomerId().equals(param.getCustomerId())) { |
|
|
@ -150,12 +152,6 @@ public class EIDimServiceImpl implements EIDimService { |
|
|
|
}); |
|
|
|
} |
|
|
|
}); |
|
|
|
/*param.getCenterDataList().forEach(o ->{ |
|
|
|
Integer integer = screenCustomerGridService.updateCenterPointByName(param.getCustomerId(),param.getAgencyId(), o.getTitle(), o.getCenter()); |
|
|
|
if (integer == 0 || integer > 1){ |
|
|
|
result.put(o.getTitle(),integer); |
|
|
|
} |
|
|
|
});*/ |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|