From 73b6baf6af3d88cdcb0e2df7932a9bd96b0b85c5 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期一, 01 七月 2024 22:32:34 +0800
Subject: [PATCH] 月度统计出入库按类型汇总报表定时任务和手动跑任务接口

---
 docs/swagger.yaml |  116 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 112 insertions(+), 4 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 71233a6..08e97ae 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -60,6 +60,17 @@
     - BaseOperationTypeInternal
     - BaseOperationTypeDisuse
     - BaseOperationTypeAdjust
+  constvar.BoolType:
+    enum:
+    - 1
+    - 2
+    type: integer
+    x-enum-comments:
+      BoolTypeFalse: "false"
+      BoolTypeTrue: "true"
+    x-enum-varnames:
+    - BoolTypeTrue
+    - BoolTypeFalse
   constvar.CostingMethod:
     enum:
     - 1
@@ -200,15 +211,18 @@
     - 1
     - 2
     - 3
+    - 4
     type: integer
     x-enum-comments:
       StockoutType: 鍑哄簱绫诲瀷
       StorageType: 鍏ュ簱绫诲瀷
+      TakeStock: 鐩樼偣绫诲瀷
       TransferType: 璋冩嫧绫诲瀷
     x-enum-varnames:
-    - TransferType
     - StorageType
     - StockoutType
+    - TransferType
+    - TakeStock
   constvar.OperationSource:
     enum:
     - 1
@@ -1006,6 +1020,8 @@
         type: integer
       updateTime:
         type: string
+      warehouse:
+        $ref: '#/definitions/models.Warehouse'
       warehouseId:
         type: integer
       waybillNumber:
@@ -1029,6 +1045,9 @@
         description: 鎴愭湰鍗曚环
         type: number
       createTime:
+        type: string
+      dealerType:
+        description: 鍑哄叆搴撶被鍨�
         type: string
       fromLocation:
         allOf:
@@ -1223,6 +1242,10 @@
       name:
         description: 浠撳簱鍚嶇О
         type: string
+      openMonthStats:
+        allOf:
+        - $ref: '#/definitions/constvar.BoolType'
+        description: 鏄惁寮�鍚湀搴︾粺璁�
       outboundTransportation:
         description: 鍑哄簱杩愯緭
         type: integer
@@ -1377,6 +1400,8 @@
           $ref: '#/definitions/request.OperationDetails'
         type: array
       id:
+        type: integer
+      inventoryDealerType:
         type: integer
       locationId:
         description: 婧愪綅缃甶d
@@ -1540,6 +1565,11 @@
       token:
         type: string
     type: object
+  request.DoWarehouseMonthStats:
+    properties:
+      token:
+        type: string
+    type: object
   request.EditMiniDict:
     properties:
       id:
@@ -1688,6 +1718,10 @@
         type: integer
       pageSize:
         description: 姣忛〉澶у皬
+        type: integer
+      preload:
+        type: boolean
+      warehouseID:
         type: integer
     type: object
   request.GetProductList:
@@ -2077,6 +2111,8 @@
         type: array
       id:
         type: integer
+      inventoryDealerType:
+        type: integer
       locationId:
         description: 婧愪綅缃甶d
         type: integer
@@ -2118,6 +2154,9 @@
         description: 鐘舵��
       toLocationId:
         description: 鐩爣浣嶇疆id
+        type: integer
+      warehouseId:
+        description: 浠撳簱id
         type: integer
       waybillNumber:
         description: 杩愬崟鍙�
@@ -2771,6 +2810,37 @@
       summary: 鎵嬪姩璺戞湀搴︾粺璁″簱瀛樻姤琛�
       tags:
       - 鎶ヨ〃
+  /api-wms/v1/forms/doWarehouseMonthStats:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.DoWarehouseMonthStats'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/models.MonthStats'
+                  type: array
+              type: object
+      summary: 鎵嬪姩璺戞湀搴︾粺璁″簱瀛樻姤琛�
+      tags:
+      - 鎶ヨ〃
   /api-wms/v1/forms/downloadHistory:
     post:
       parameters:
@@ -3017,6 +3087,37 @@
                   type: array
               type: object
       summary: 鏈堝害缁熻搴撳瓨鎶ヨ〃
+      tags:
+      - 鎶ヨ〃
+  /api-wms/v1/forms/warehouseMonthStats:
+    post:
+      parameters:
+      - description: 鏌ヨ鍙傛暟
+        in: body
+        name: object
+        required: true
+        schema:
+          $ref: '#/definitions/request.GetMonthStats'
+      - description: token
+        in: header
+        name: Authorization
+        required: true
+        type: string
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: 鎴愬姛
+          schema:
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/models.MonthStats'
+                  type: array
+              type: object
+      summary: 浠撳簱鏈堝害缁熻搴撳瓨鎶ヨ〃
       tags:
       - 鎶ヨ〃
   /api-wms/v1/location/addLocation:
@@ -3482,7 +3583,14 @@
         "200":
           description: 鎴愬姛
           schema:
-            $ref: '#/definitions/util.Response'
+            allOf:
+            - $ref: '#/definitions/util.ResponseList'
+            - properties:
+                data:
+                  items:
+                    $ref: '#/definitions/models.Operation'
+                  type: array
+              type: object
       summary: 鍏ュ簱/鍑哄簱鍒楄〃
       tags:
       - 鍏ュ簱/鍑哄簱
@@ -3631,8 +3739,8 @@
         type: integer
       - description: 浠撳簱id
         in: query
-        name: warehouseId
-        type: integer
+        name: warehouseIds
+        type: string
       produces:
       - application/json
       responses:

--
Gitblit v1.8.0