Sfoglia il codice sorgente

返回空的分页

buzhanyi 2 anni fa
parent
commit
67ed5faa91

+ 1 - 1
purchase-system/src/main/java/com/ozs/base/service/impl/BaseExpertServiceImpl.java

@@ -85,7 +85,7 @@ public class BaseExpertServiceImpl extends ServiceImpl<BaseExpertMapper, BaseExp
         // 通过专家ID查询 与专家库关联的采购执行管理ID
         List<Integer> demandIdList = pmDemandExpertRefService.selectByExpertId(baseExpertVo.getId());
         if (ObjectUtils.isEmpty(demandIdList)) {
-            return AjaxResult.success(demandIdList);
+            return AjaxResult.success(new PageInfo<>(demandIdList));
         }
         List<PmDemand> pmDemandList = pmDemandService.selectByDemandIdList(demandIdList);
         List<PmDemandResVo> pmDemandResponseVoList = changTo(pmDemandList);