Commit 3dff740e authored by 赵啸非's avatar 赵啸非

修改根据业务查询部门逻辑

parent f4449d66
...@@ -24,6 +24,9 @@ import java.util.Map; ...@@ -24,6 +24,9 @@ import java.util.Map;
*/ */
public interface MatterService extends ICRUDService<MatterEntity, Long> { public interface MatterService extends ICRUDService<MatterEntity, Long> {
MatterEntity getCache(String id);
/** /**
* 添加业务到站点 * 添加业务到站点
* *
......
...@@ -34,7 +34,7 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao ...@@ -34,7 +34,7 @@ public class SiteMatterServiceImpl extends AbstractCRUDServiceImpl<SiteMatterDao
protected void findAfter(SiteMatterEntity params, PageInfo pageInfo, Context context, List<SiteMatterEntity> list) throws AppException { protected void findAfter(SiteMatterEntity params, PageInfo pageInfo, Context context, List<SiteMatterEntity> list) throws AppException {
list.forEach(item -> { list.forEach(item -> {
if (!ObjectUtils.isEmpty(item.getMatterId())) { if (!ObjectUtils.isEmpty(item.getMatterId())) {
MatterEntity matterEntity = matterService.get(item.getMatterId()); MatterEntity matterEntity = matterService.getCache(item.getMatterId().toString());
if (!ObjectUtils.isEmpty(matterEntity)) { if (!ObjectUtils.isEmpty(matterEntity)) {
item.setBelongDept(matterEntity.getBelongDept()); item.setBelongDept(matterEntity.getBelongDept());
item.setWindowToTheSceneNum(matterEntity.getWindowToTheSceneNum()); item.setWindowToTheSceneNum(matterEntity.getWindowToTheSceneNum());
......
...@@ -4,10 +4,9 @@ POST {{baseUrl}}/site/matter/list ...@@ -4,10 +4,9 @@ POST {{baseUrl}}/site/matter/list
Content-Type: application/json Content-Type: application/json
{ {
"siteId":35, "siteId":1,
"matterId": 5809,
"page":1, "page":1,
"size":10 "size":-1
} }
......
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