| | |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.sxkj.gd.workorder.entity.GdWorkOrderFlowEntity; |
| | | import org.sxkj.gd.workorder.vo.GdWorkOrderFlowVO; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | import java.util.stream.Collectors; |
| | | |
| | | /** |
| | | * 流程记录表 包装类,返回视图层所需的字段 |
| | |
| | | return gdWorkOrderFlowVO; |
| | | } |
| | | |
| | | /** |
| | | * 将实体列表转换为VO列表 |
| | | * @param list 实体列表 |
| | | * @return VO列表 |
| | | */ |
| | | public List<GdWorkOrderFlowVO> entityVOList(List<GdWorkOrderFlowEntity> list) { |
| | | if (list == null || list.isEmpty()) { |
| | | return new ArrayList<>(); |
| | | } |
| | | return list.stream() |
| | | .map(this::entityVO) |
| | | .collect(Collectors.toList()); |
| | | } |
| | | |
| | | } |