xiejun
2023-09-05 c6b118cf77295f4c23583cde9d7890b014691e66
Source/UBCS/ubcs-service/ubcs-code/src/main/java/com/vci/ubcs/code/wrapper/DockingLogeWrapper.java
@@ -2,6 +2,7 @@
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
import com.vci.ubcs.code.entity.DockingLog;
import com.vci.ubcs.code.enumpack.SysIntegrationLogTypeEnum;
import com.vci.ubcs.code.vo.pagemodel.DockingLogeVO;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
@@ -18,6 +19,7 @@
   @Override
   public DockingLogeVO entityVO(DockingLog entity) {
      entity.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(entity.getType()));
      DockingLogeVO dockingLogeVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingLogeVO.class));
      return dockingLogeVO;
   }
@@ -33,6 +35,7 @@
      List<DockingLogeVO> vos=new ArrayList<>();
      if(!CollectionUtils.isEmpty(entitys)) {
         entitys.stream().forEach(vo -> {
            vo.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(vo.getType()));
            vos.add(entityVO(vo));
         });
      }
@@ -49,6 +52,7 @@
      List<DockingLog>entitys =new ArrayList<>();
      if(!CollectionUtils.isEmpty(vos)) {
         vos.stream().forEach(entity -> {
            entity.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(entity.getType()));
            entitys.add(voentity(entity));
         });
      }
@@ -61,6 +65,7 @@
    * @return
    */
   public DockingLog voentity( DockingLogeVO vo) {
      vo.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(vo.getType()));
      DockingLog entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingLog.class));
      return entity;
   }