From c2d8e537bb18c0892c0df6686ee5f5b5023f5bbb Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期一, 25 九月 2023 17:58:41 +0800
Subject: [PATCH] 1.修改业务类型列表接口,增加已就绪和已完成数量的统计

---
 docs/docs.go |  363 +++++++++++++++++++++++++++++----------------------
 1 files changed, 207 insertions(+), 156 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 3a58589..7e7b11a 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -675,22 +675,7 @@
                     "200": {
                         "description": "鎴愬姛",
                         "schema": {
-                            "allOf": [
-                                {
-                                    "$ref": "#/definitions/util.ResponseList"
-                                },
-                                {
-                                    "type": "object",
-                                    "properties": {
-                                        "data": {
-                                            "type": "array",
-                                            "items": {
-                                                "$ref": "#/definitions/models.OperationType"
-                                            }
-                                        }
-                                    }
-                                }
-                            ]
+                            "$ref": "#/definitions/util.ResponseList"
                         }
                     }
                 }
@@ -775,6 +760,36 @@
                         "name": "id",
                         "in": "path",
                         "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/product/addDisuse": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浜у搧"
+                ],
+                "summary": "娣诲姞鎶ュ簾淇℃伅",
+                "parameters": [
+                    {
+                        "description": "鍏ュ簱/鍑哄簱淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.AddDisuse"
+                        }
                     }
                 ],
                 "responses": {
@@ -887,6 +902,34 @@
                 "parameters": [
                     {
                         "type": "string",
+                        "description": "id",
+                        "name": "id",
+                        "in": "path",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/product/finishDisuse/{id}": {
+            "put": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浜у搧"
+                ],
+                "summary": "楠岃瘉鎶ュ簾",
+                "parameters": [
+                    {
+                        "type": "integer",
                         "description": "id",
                         "name": "id",
                         "in": "path",
@@ -1073,6 +1116,36 @@
                 }
             }
         },
+        "/api-wms/v1/product/listDisuse": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浜у搧"
+                ],
+                "summary": "鎶ュ簾鍒楄〃",
+                "parameters": [
+                    {
+                        "description": "鏌ヨ鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.QueryDisuseList"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/api-wms/v1/product/listOperaton": {
             "post": {
                 "produces": [
@@ -1113,6 +1186,36 @@
                                     }
                                 }
                             ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/product/updateDisuse": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "浜у搧"
+                ],
+                "summary": "淇敼鎶ュ簾淇℃伅",
+                "parameters": [
+                    {
+                        "description": "鍏ュ簱/鍑哄簱淇℃伅",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.UpdateDisuse"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
                         }
                     }
                 }
@@ -1456,7 +1559,8 @@
                 4,
                 5,
                 6,
-                7
+                7,
+                8
             ],
             "x-enum-comments": {
                 "LocationTypeCustomer": "瀹㈡埛浣嶇疆",
@@ -1474,7 +1578,8 @@
                 "LocationTypeCustomer",
                 "LocationTypeInventoryLoss",
                 "LocationTypeProduction",
-                "LocationTypeTransit"
+                "LocationTypeTransit",
+                "LocationTypeDisuse"
             ]
         },
         "constvar.MaterialMode": {
@@ -1998,7 +2103,7 @@
             "type": "object",
             "properties": {
                 "amount": {
-                    "description": "鏁伴噺",
+                    "description": "ProductName string          ` + "`" + `json:\"productName\" gorm:\"type:varchar(255);not null;comment:浜у搧鍚嶇О\"` + "`" + ` //浜у搧鍚嶇О",
                     "type": "number"
                 },
                 "createTime": {
@@ -2011,141 +2116,20 @@
                     "description": "鎿嶄綔id",
                     "type": "integer"
                 },
+                "product": {
+                    "description": "Unit        string          ` + "`" + `json:\"unit\" gorm:\"type:varchar(31);comment:鍗曚綅\"` + "`" + `                    //鍗曚綅",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/models.Material"
+                        }
+                    ]
+                },
                 "productId": {
                     "description": "浜у搧id",
                     "type": "string"
                 },
-                "productName": {
-                    "description": "浜у搧鍚嶇О",
-                    "type": "string"
-                },
-                "unit": {
-                    "type": "string"
-                },
                 "updateTime": {
                     "type": "string"
-                }
-            }
-        },
-        "models.OperationType": {
-            "type": "object",
-            "properties": {
-                "ReservationDaysBeforePriority": {
-                    "description": "鍦ㄤ紭鍏堢骇鐨勫墠鍑犲ぉ",
-                    "type": "integer"
-                },
-                "baseOperationType": {
-                    "description": "鍩虹浣滀笟绫诲瀷",
-                    "allOf": [
-                        {
-                            "$ref": "#/definitions/constvar.BaseOperationType"
-                        }
-                    ]
-                },
-                "company": {
-                    "description": "鍏徃",
-                    "allOf": [
-                        {
-                            "$ref": "#/definitions/models.Company"
-                        }
-                    ]
-                },
-                "companyId": {
-                    "description": "鍏徃id",
-                    "type": "integer"
-                },
-                "createBackorder": {
-                    "description": "鍒涘缓娆犲崟",
-                    "allOf": [
-                        {
-                            "$ref": "#/definitions/constvar.WhetherType"
-                        }
-                    ]
-                },
-                "createTime": {
-                    "type": "string"
-                },
-                "defaultLocationDest": {
-                    "description": "榛樿鐩爣浣嶇疆",
-                    "allOf": [
-                        {
-                            "$ref": "#/definitions/models.Location"
-                        }
-                    ]
-                },
-                "defaultLocationDestId": {
-                    "description": "榛樿鐩爣浣嶇疆id",
-                    "type": "integer"
-                },
-                "defaultLocationSrc": {
-                    "description": "榛樿婧愪綅缃�",
-                    "allOf": [
-                        {
-                            "$ref": "#/definitions/models.Location"
-                        }
-                    ]
-                },
-                "defaultLocationSrcId": {
-                    "description": "榛樿婧愪綅缃甶d",
-                    "type": "integer"
-                },
-                "earlyOperations": {
-                    "description": "棰勫~鍐欎綔涓氳鎯�",
-                    "type": "boolean"
-                },
-                "id": {
-                    "type": "integer"
-                },
-                "name": {
-                    "description": "浠撳簱鍚嶇О",
-                    "type": "string"
-                },
-                "prefix": {
-                    "description": "鍓嶇紑",
-                    "type": "string"
-                },
-                "printLabel": {
-                    "description": "鏄惁鎵撳嵃鏍囩",
-                    "type": "boolean"
-                },
-                "reservationDaysBefore": {
-                    "description": "鏀惰揣鍓嶅嚑澶�",
-                    "type": "integer"
-                },
-                "reservationMethod": {
-                    "description": "淇濈暀鏂瑰紡",
-                    "allOf": [
-                        {
-                            "$ref": "#/definitions/constvar.ReservationMethod"
-                        }
-                    ]
-                },
-                "returnOperationType": {
-                    "description": "閫�璐х被鍨嬪悕绉�",
-                    "type": "string"
-                },
-                "returnOperationTypeID": {
-                    "description": "閫�璐х被鍨婭D",
-                    "type": "integer"
-                },
-                "showOperations": {
-                    "description": "鏄剧ず浣滀笟璇︽儏",
-                    "type": "boolean"
-                },
-                "updateTime": {
-                    "type": "string"
-                },
-                "warehouse": {
-                    "description": "浠撳簱",
-                    "allOf": [
-                        {
-                            "$ref": "#/definitions/models.Warehouse"
-                        }
-                    ]
-                },
-                "warehouseId": {
-                    "description": "浠撳簱id",
-                    "type": "integer"
                 }
             }
         },
@@ -2303,6 +2287,27 @@
                 "remark": {
                     "description": "澶囨敞",
                     "type": "string"
+                }
+            }
+        },
+        "request.AddDisuse": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "description": "ProductName    string          ` + "`" + `json:\"productName\"` + "`" + `",
+                    "type": "number"
+                },
+                "fromLocationId": {
+                    "type": "integer"
+                },
+                "productId": {
+                    "type": "string"
+                },
+                "sourceNumber": {
+                    "type": "string"
+                },
+                "toLocationId": {
+                    "type": "integer"
                 }
             }
         },
@@ -2544,18 +2549,11 @@
                     "type": "integer"
                 },
                 "amount": {
-                    "description": "鏁伴噺",
+                    "description": "ProductName string          ` + "`" + `json:\"productName\" gorm:\"type:varchar(255);not null;comment:浜у搧鍚嶇О\"` + "`" + ` //浜у搧鍚嶇О",
                     "type": "number"
                 },
                 "productId": {
                     "description": "浜у搧id",
-                    "type": "string"
-                },
-                "productName": {
-                    "description": "浜у搧鍚嶇О",
-                    "type": "string"
-                },
-                "unit": {
                     "type": "string"
                 }
             }
@@ -2568,6 +2566,25 @@
                 },
                 "operationTypeId": {
                     "type": "integer"
+                },
+                "page": {
+                    "description": "椤电爜",
+                    "type": "integer"
+                },
+                "pageSize": {
+                    "description": "姣忛〉澶у皬",
+                    "type": "integer"
+                },
+                "sourceNumber": {
+                    "type": "string"
+                }
+            }
+        },
+        "request.QueryDisuseList": {
+            "type": "object",
+            "properties": {
+                "number": {
+                    "type": "string"
                 },
                 "page": {
                     "description": "椤电爜",
@@ -2634,6 +2651,40 @@
                 }
             }
         },
+        "request.UpdateDisuse": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "description": "ProductName    string                   ` + "`" + `json:\"productName\"` + "`" + `",
+                    "type": "number"
+                },
+                "fromLocationId": {
+                    "type": "integer"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "number": {
+                    "description": "Unit           string                   ` + "`" + `json:\"unit\"` + "`" + `",
+                    "type": "string"
+                },
+                "operationDate": {
+                    "type": "string"
+                },
+                "productId": {
+                    "type": "string"
+                },
+                "sourceNumber": {
+                    "type": "string"
+                },
+                "status": {
+                    "$ref": "#/definitions/constvar.OperationStatus"
+                },
+                "toLocationId": {
+                    "type": "integer"
+                }
+            }
+        },
         "request.UpdateOperation": {
             "type": "object",
             "properties": {

--
Gitblit v1.8.0