| | |
| | | |
| | | 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; |
| | |
| | | |
| | | @Override |
| | | public DockingLogeVO entityVO(DockingLog entity) { |
| | | entity.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(entity.getType())); |
| | | DockingLogeVO dockingLogeVO = Objects.requireNonNull(BeanUtil.copy(entity, DockingLogeVO.class)); |
| | | return dockingLogeVO; |
| | | } |
| | |
| | | List<DockingLogeVO> vos=new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(entitys)) { |
| | | entitys.stream().forEach(vo -> { |
| | | vo.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(vo.getType())); |
| | | vos.add(entityVO(vo)); |
| | | }); |
| | | } |
| | |
| | | List<DockingLog>entitys =new ArrayList<>(); |
| | | if(!CollectionUtils.isEmpty(vos)) { |
| | | vos.stream().forEach(entity -> { |
| | | entity.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(entity.getType())); |
| | | entitys.add(voentity(entity)); |
| | | }); |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | public DockingLog voentity( DockingLogeVO vo) { |
| | | vo.setTypeText(SysIntegrationLogTypeEnum.getTextByValue(vo.getType())); |
| | | DockingLog entity = Objects.requireNonNull(BeanUtil.copy(vo, DockingLog.class)); |
| | | return entity; |
| | | } |