From 6c409986a37483f353613e4a6f62f74cb91f5b65 Mon Sep 17 00:00:00 2001
From: Cui Zhi Feng <cuizf@fengyuntec.com>
Date: 星期五, 13 九月 2024 19:02:39 +0800
Subject: [PATCH] 质检打印

---
 src/main/java/com/mzl/flower/web/payment/DeliveryOrderController.java  |    6 ++++++
 src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java |   12 ++++++++++++
 2 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java b/src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java
index fb22949..a071bcd 100644
--- a/src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java
+++ b/src/main/java/com/mzl/flower/service/payment/DeliveryOrderService.java
@@ -277,6 +277,18 @@
         return dto;
     }
 
+    public List<DeliveryOrderItemDTO> getDeliveryOrderItems(PostQueryDTO dto){
+        List<String> idList = dto.getIds();
+        List<DeliveryOrderItemDTO> ls = new ArrayList<>();
+        if(idList != null && idList.size() > 0){
+            for(String id : idList){
+                ls.add(getDeliveryOrderItem(id));
+            }
+        }
+
+        return ls;
+    }
+
     public DeliveryOrderItemDTO getDeliveryOrderItem(String id) {
         DeliveryOrderItemDTO dto = new DeliveryOrderItemDTO();
 
diff --git a/src/main/java/com/mzl/flower/web/payment/DeliveryOrderController.java b/src/main/java/com/mzl/flower/web/payment/DeliveryOrderController.java
index d1e7b97..50c0a55 100644
--- a/src/main/java/com/mzl/flower/web/payment/DeliveryOrderController.java
+++ b/src/main/java/com/mzl/flower/web/payment/DeliveryOrderController.java
@@ -144,6 +144,12 @@
         return returnData(R.SUCCESS.getCode(), deliveryOrderService.getDeliveryOrderItem(id));
     }
 
+    @PostMapping("/list/items/views")
+    @ApiOperation(value = "获取商品详情列表")
+    public ResponseEntity<ReturnDataDTO<List<DeliveryOrderItemDTO>>> getDeliveryOrderItem(@RequestBody PostQueryDTO dto){
+        return returnData(R.SUCCESS.getCode(), deliveryOrderService.getDeliveryOrderItems(dto));
+    }
+
     //////////////////////////////////////////////////////////新接口
     @GetMapping("/check/list")
     @ApiOperation(value = "查询集货站供应商配送列表")

--
Gitblit v1.9.3