Commit 092e0b1b authored by 赵啸非's avatar 赵啸非

添加自定义导入修改

parent baa769c6
...@@ -32,7 +32,6 @@ public class DemoStartedService implements IApplicationStartedService { ...@@ -32,7 +32,6 @@ public class DemoStartedService implements IApplicationStartedService {
log.info("开始服务..[初始化用户站点树]"); log.info("开始服务..[初始化用户站点树]");
//删除redis 中的 站点树 //删除redis 中的 站点树
cacheService.del(USER_SITE_TREE); cacheService.del(USER_SITE_TREE);
//从门户获取所有站点用户 //从门户获取所有站点用户
try { try {
userService.refreshUser(); userService.refreshUser();
......
...@@ -79,7 +79,7 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu ...@@ -79,7 +79,7 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
} }
if (bool) { if (bool) {
//排除掉父id //排除掉父id
notIdSet.remove(root.getId()); notIdSet.remove(root.getBusinessId());
} }
} }
params.setBusinessIdNotList(notIdSet.stream().collect(Collectors.toList())); params.setBusinessIdNotList(notIdSet.stream().collect(Collectors.toList()));
...@@ -93,7 +93,7 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu ...@@ -93,7 +93,7 @@ public class SiteBusinessServiceImpl extends AbstractCRUDCacheServiceImpl<SiteBu
protected void findAfter(SiteBusinessEntity params, PageInfo pageInfo, Context context, List<SiteBusinessEntity> list) throws AppException { protected void findAfter(SiteBusinessEntity params, PageInfo pageInfo, Context context, List<SiteBusinessEntity> list) throws AppException {
if (!ObjectUtils.isEmpty(params.getBusinessIdNotList())) { if (!ObjectUtils.isEmpty(params.getBusinessIdNotList())) {
//排除掉已经存在的ids //排除掉已经存在的ids
log.info("idNotList:{}", JSON.toJSONString(params.getBusinessIdNotList())); log.info("BusinessIdNotList():{}", JSON.toJSONString(params.getBusinessIdNotList()));
Iterator<SiteBusinessEntity> iterator = list.iterator(); Iterator<SiteBusinessEntity> iterator = list.iterator();
while (iterator.hasNext()) { while (iterator.hasNext()) {
SiteBusinessQuery siteBusinessQuery = new SiteBusinessQuery(); SiteBusinessQuery siteBusinessQuery = new SiteBusinessQuery();
......
...@@ -5,7 +5,8 @@ Content-Type: application/json ...@@ -5,7 +5,8 @@ Content-Type: application/json
{ {
"siteId": 1, "siteId": 1,
"size":100 "size":1,
"businessIdNotList": [498,500]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment