| 
					
				 | 
			
			
				@@ -19,6 +19,8 @@ import com.ozs.common.core.domain.entity.SysUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.core.domain.model.LoginUser; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.common.enums.BusinessType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.framework.web.service.TokenService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.pm.doman.PmDemand; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import com.ozs.pm.service.IPmDemandService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import com.ozs.system.service.ISysDeptService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.Api; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import io.swagger.annotations.ApiOperation; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -49,6 +51,8 @@ public class BaseNoticeController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private TokenService tokenService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     private ISysDeptService iSysDeptService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    @Autowired 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    private IPmDemandService pmDemandService; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @ApiOperation(value = "分页查询公告信息") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     @PostMapping("/page") 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -171,6 +175,10 @@ public class BaseNoticeController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         pagev.setSize(page.getSize()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (!ObjectUtils.isEmpty(page) && page.getRecords().size() > 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            //查询已发布公告的项目列表 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<Long> dids = page.getRecords().stream().map(BaseNotice::getDemandId).collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            List<PmDemand> demandList = pmDemandService.listByIds(dids); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             List<BaseNoticeType> list = baseNoticeTypeService.list(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             List<Long> ids = list.stream().map(BaseNoticeType::getId).collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             List<BaseNoticeVo> collect = page.getRecords().stream().map(o -> { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -183,6 +191,11 @@ public class BaseNoticeController extends BaseController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                for (PmDemand demand : demandList) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (demand.getDemandId().equals(o.getDemandId())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        baseNoticeVo.setProjectStatus(demand.getProjectStatus()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 return baseNoticeVo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             }).collect(Collectors.toList()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             pagev.setRecords(collect); 
			 |