| 1234567891011121314151617181920212223 |
- package com.ruoyi.app.flashdelivery.service;
- import com.ruoyi.app.flashdelivery.dto.FlashDeliveryStopView;
- import com.ruoyi.system.domain.flash.FlashDeliveryOrderStop;
- import org.springframework.beans.BeanUtils;
- import java.util.List;
- /** 用户端订单卡片逐站列表:全部站点返回文字地址与备注,寄件收件同口径;联系人、电话、坐标、凭证与收货码不落卡片。 */
- public final class FlashDeliveryUserCardStops {
- private FlashDeliveryUserCardStops() {}
- public static List<FlashDeliveryStopView> of(List<FlashDeliveryOrderStop> rows) {
- return rows.stream().map(stop -> {
- FlashDeliveryStopView view = new FlashDeliveryStopView();
- BeanUtils.copyProperties(stop, view);
- view.setDeliveryPinCode(null);
- view.setName(null); view.setPhone(null);
- view.setLongitude(null); view.setLatitude(null);
- return view;
- }).toList();
- }
- }
|