Commit 71fca7bc authored by 赵啸非's avatar 赵啸非

添加事项同步数据

parent b6e6b2f6
package com.mortals.xhx.module.site.service.impl; package com.mortals.xhx.module.site.service.impl;
import com.mortals.framework.model.PageInfo;
import com.mortals.xhx.module.business.model.BusinessEntity; import com.mortals.xhx.module.business.model.BusinessEntity;
import com.mortals.xhx.module.business.model.BusinessQuery; import com.mortals.xhx.module.business.model.BusinessQuery;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -29,15 +30,12 @@ public class SiteBusinessServiceImpl extends AbstractCRUDServiceImpl<SiteBusines ...@@ -29,15 +30,12 @@ public class SiteBusinessServiceImpl extends AbstractCRUDServiceImpl<SiteBusines
@Override @Override
protected void findAfter(SiteBusinessEntity params, Context context, List<SiteBusinessEntity> list) throws AppException { protected void findAfter(SiteBusinessEntity params, PageInfo pageInfo, Context context, List<SiteBusinessEntity> list) throws AppException {
list.stream().peek(item -> { list.stream().peek(item -> {
List<SiteBusinessEntity> childs = this.find(new SiteBusinessQuery().parentId(item.getBusinessId()));
List<SiteBusinessEntity> childs = this.find(new SiteBusinessQuery().parentId(item.getBusinessId())); item.setChildren(childs);
item.setChildren(childs);
}).count(); }).count();
super.findAfter(params, context, list); super.findAfter(params, pageInfo, context, list);
} }
@Override @Override
......
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