姜永辉 2 лет назад
Родитель
Сommit
1fdab100a3

+ 11 - 0
src/main/java/com/dk/mdm/controller/ivt/OutboundController.java

@@ -48,6 +48,17 @@ public class OutboundController{
         return outboundService.selectOutboundInfoById(id);
     }
 
+
+    /**
+     * @desc : 查询明细信息
+     * @author : 付斌
+     * @date : 2024/3/6 10:36
+     */
+    @PostMapping({"/{id}"})
+    public ResponseResultVO selectById(@PathVariable String id) {
+        return outboundService.selectById(id);
+    }
+
     /**
      * @desc : 新建出库单
      * @author : 付斌

+ 4 - 0
src/main/java/com/dk/mdm/model/response/ivt/OutboundResponse.java

@@ -22,6 +22,7 @@ import java.io.Serializable;
 import java.math.BigDecimal;
 import java.time.LocalDate;
 import java.time.LocalDateTime;
+import java.util.List;
 
 /**
  *  出库单
@@ -315,6 +316,9 @@ public class OutboundResponse extends PageInfo<OutboundResponse> implements Seri
     @TableField(typeHandler = TimestampTypeHandler.class)
     private LocalDateTime opTimestamp;
 
+    @ApiModelProperty(value = "出库单明细")
+    private List<OutboundItemResponse> goodsList;
+
 
     /**
      * 数据操作数据库用户 (触发器自动处理)

+ 19 - 0
src/main/java/com/dk/mdm/service/ivt/OutboundService.java

@@ -119,6 +119,25 @@ public class OutboundService extends BaseService<Outbound> {
     }
 
     /**
+     * @desc : 查询订单明细(货物、收款、附件)
+     * @author : 付斌
+     * @date : 2024-02-28 13:25
+     */
+    @Pagination
+    public ResponseResultVO selectById(String id) {
+
+        OutboundResponse outboundResponse = outboundMapper.selectById(id);
+        // 商品明细
+        List<OutboundItemResponse> outboundItem = outboundItemMapper.selectByCond(new OutboundItemQuery().setOutId(id));
+        outboundResponse.setGoodsList(outboundItem);
+
+        // 收款
+
+        // 附件
+        return ResponseResultUtil.success(outboundResponse);
+    }
+
+    /**
      * @desc : 新建方法
      * @author : 付斌
      * @date : 2023/1/9 10:49