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

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

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