weidy
2023-06-20 cfededd9721be4322e660fc879f11a806fcc7963
Source/UBCS/ubcs-service/ubcs-omd/src/main/java/com/vci/ubcs/omd/feign/BtmTypeClient.java
@@ -1,6 +1,7 @@
package com.vci.ubcs.omd.feign;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.vci.ubcs.omd.entity.BtmType;
@@ -83,6 +84,9 @@
      query.setSize(pageHelper.getLimit());
      query.setCurrent(pageHelper.getPage());
      IPage<BtmType> page = btmTypeService.page(Condition.getPage(query), Condition.getQueryWrapper(queryObj).lambda().eq(BtmType::getDomain, domainValue).orderByAsc(BtmType::getId));
      if (CollectionUtils.isEmpty(page.getRecords())){
         return R.data(null);
      }
      Page<BtmTypeVO> pageVO = new Page<>();
      BeanUtil.copy(page,pageVO);
      pageVO.setRecords(BtmTypeWrapper.build().listEntityVO(page.getRecords()));
@@ -112,6 +116,9 @@
      BtmType queryObj = new BtmType();
      BeanMap.create(queryObj).putAll(conditionMap);
      List<BtmType> list = btmTypeService.list(Condition.getQueryWrapper(queryObj).lambda().eq(BtmType::getDomain, domainValue).orderByAsc(BtmType::getId));
      if (CollectionUtils.isEmpty(list)){
         return R.data(null);
      }
      return R.data(BtmTypeWrapper.build().listEntityVO(list));
   }
@@ -131,6 +138,9 @@
            )
         ).orElseGet(ArrayList::new)
      );
      if (CollectionUtils.isEmpty(voList)){
         return R.data(null);
      }
      return R.data(voList);
   }
@@ -150,6 +160,9 @@
            )
         ).orElseGet(ArrayList::new)
      );
      if (CollectionUtils.isEmpty(voList)){
         return R.data(null);
      }
      return R.data(voList);
   }