From 307c699810c39714e82efac9de56f70b93a718a2 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期二, 31 十月 2023 11:54:23 +0800
Subject: [PATCH] 重订货规则开发

---
 docs/docs.go |  352 ++++++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 326 insertions(+), 26 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 80291e3..58d7d71 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -736,7 +736,7 @@
                         "in": "body",
                         "required": true,
                         "schema": {
-                            "$ref": "#/definitions/request.AddLocationProductAmount"
+                            "$ref": "#/definitions/request.UpdateLocationProductAmount"
                         }
                     }
                 ],
@@ -943,7 +943,7 @@
                 }
             }
         },
-        "/api-wms/v1/operation/listAll": {
+        "/api-wms/v1/operation/listTransfer": {
             "post": {
                 "produces": [
                     "application/json"
@@ -951,7 +951,7 @@
                 "tags": [
                     "鍏ュ簱/鍑哄簱"
                 ],
-                "summary": "璋冩嫧",
+                "summary": "搴撳瓨璋冩嫧鍒楄〃",
                 "parameters": [
                     {
                         "description": "鍙傛暟",
@@ -1056,6 +1056,32 @@
                         "description": "鎴愬姛",
                         "schema": {
                             "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/operationType/listTransfer": {
+            "get": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "涓氬姟绫诲瀷"
+                ],
+                "summary": "璋冩嫧绫诲瀷鍒楄〃",
+                "parameters": [
+                    {
+                        "type": "string",
+                        "name": "keyword",
+                        "in": "query"
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.ResponseList"
                         }
                     }
                 }
@@ -1731,6 +1757,187 @@
                         "required": true,
                         "schema": {
                             "$ref": "#/definitions/models.ProductCategory"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/reorderRule/addReorderRule": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閲嶈璐ц鍒�"
+                ],
+                "summary": "娣诲姞閲嶈璐ц鍒�",
+                "parameters": [
+                    {
+                        "description": "閲嶈璐ц鍒�",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/models.ReorderRule"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/reorderRule/getAmountAndPrediction": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閲嶈璐ц鍒�"
+                ],
+                "summary": "鑾峰彇鍦ㄥ簱涓庨娴嬫暟閲�",
+                "parameters": [
+                    {
+                        "description": "閲嶈璐ц鍒�",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.GetAmountAndPrediction"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.ResponseList"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "type": "object",
+                                                "additionalProperties": true
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/reorderRule/getReorderRuleList": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閲嶈璐ц鍒�"
+                ],
+                "summary": "鑾峰彇閲嶈璐ц鍒欏垪琛�",
+                "parameters": [
+                    {
+                        "description": "鍙傛暟",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/request.GetReorderRuleList"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "allOf": [
+                                {
+                                    "$ref": "#/definitions/util.ResponseList"
+                                },
+                                {
+                                    "type": "object",
+                                    "properties": {
+                                        "data": {
+                                            "type": "array",
+                                            "items": {
+                                                "$ref": "#/definitions/models.ReorderRule"
+                                            }
+                                        }
+                                    }
+                                }
+                            ]
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/reorderRule/orderAgain": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閲嶈璐ц鍒�"
+                ],
+                "summary": "鍐嶈涓�娆�",
+                "parameters": [
+                    {
+                        "description": "閲嶈璐ц鍒�",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/models.ReorderRule"
+                        }
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "鎴愬姛",
+                        "schema": {
+                            "$ref": "#/definitions/util.Response"
+                        }
+                    }
+                }
+            }
+        },
+        "/api-wms/v1/reorderRule/updateReorderRule": {
+            "post": {
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "閲嶈璐ц鍒�"
+                ],
+                "summary": "鏇存柊閲嶈璐ц鍒�",
+                "parameters": [
+                    {
+                        "description": "閲嶈璐ц鍒�",
+                        "name": "object",
+                        "in": "body",
+                        "required": true,
+                        "schema": {
+                            "$ref": "#/definitions/models.ReorderRule"
                         }
                     }
                 ],
@@ -2662,6 +2869,62 @@
                 }
             }
         },
+        "models.ReorderRule": {
+            "type": "object",
+            "properties": {
+                "amount": {
+                    "description": "鍦ㄥ簱鏁伴噺",
+                    "type": "number"
+                },
+                "createTime": {
+                    "type": "string"
+                },
+                "id": {
+                    "type": "integer"
+                },
+                "location": {
+                    "$ref": "#/definitions/models.Location"
+                },
+                "locationId": {
+                    "description": "浣嶇疆id",
+                    "type": "integer"
+                },
+                "maxInventory": {
+                    "description": "鏈�澶у簱瀛�",
+                    "type": "number"
+                },
+                "minInventory": {
+                    "description": "鏈�灏忓簱瀛�",
+                    "type": "number"
+                },
+                "orderNumber": {
+                    "description": "璁㈣喘鏁伴噺",
+                    "type": "number"
+                },
+                "prediction": {
+                    "description": "棰勬祴鏁伴噺",
+                    "type": "number"
+                },
+                "product": {
+                    "$ref": "#/definitions/models.Material"
+                },
+                "productId": {
+                    "description": "浜у搧id",
+                    "type": "string"
+                },
+                "route": {
+                    "description": "璺嚎",
+                    "type": "string"
+                },
+                "unit": {
+                    "description": "鍗曚綅",
+                    "type": "string"
+                },
+                "updateTime": {
+                    "type": "string"
+                }
+            }
+        },
         "models.Warehouse": {
             "type": "object",
             "required": [
@@ -2809,29 +3072,6 @@
                 },
                 "productId": {
                     "description": "浜у搧id",
-                    "type": "string"
-                }
-            }
-        },
-        "request.AddLocationProductAmount": {
-            "type": "object",
-            "properties": {
-                "Amount": {
-                    "description": "搴撳瓨鏁伴噺",
-                    "type": "number"
-                },
-                "adjustAmount": {
-                    "description": "宸��",
-                    "type": "number"
-                },
-                "differenceAmount": {
-                    "description": "璁℃暟鏁伴噺",
-                    "type": "number"
-                },
-                "locationId": {
-                    "type": "integer"
-                },
-                "productId": {
                     "type": "string"
                 }
             }
@@ -3052,6 +3292,17 @@
                 }
             }
         },
+        "request.GetAmountAndPrediction": {
+            "type": "object",
+            "properties": {
+                "locationId": {
+                    "type": "integer"
+                },
+                "productId": {
+                    "type": "string"
+                }
+            }
+        },
         "request.GetInventoryForms": {
             "type": "object",
             "properties": {
@@ -3083,6 +3334,14 @@
         "request.GetInventoryHistory": {
             "type": "object",
             "properties": {
+                "baseOperationType": {
+                    "description": "鍩虹浣滀笟绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.BaseOperationType"
+                        }
+                    ]
+                },
                 "keyWord": {
                     "description": "鎼滅储鏉′欢",
                     "type": "string"
@@ -3122,6 +3381,12 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "productId": {
+                    "type": "string"
+                },
+                "wareHouseCode": {
+                    "type": "string"
                 }
             }
         },
@@ -3131,6 +3396,22 @@
                 "categoryId": {
                     "type": "integer"
                 },
+                "keyWord": {
+                    "type": "string"
+                },
+                "page": {
+                    "description": "椤电爜",
+                    "type": "integer"
+                },
+                "pageSize": {
+                    "description": "姣忛〉澶у皬",
+                    "type": "integer"
+                }
+            }
+        },
+        "request.GetReorderRuleList": {
+            "type": "object",
+            "properties": {
                 "keyWord": {
                     "type": "string"
                 },
@@ -3209,6 +3490,9 @@
                 "pageSize": {
                     "description": "姣忛〉澶у皬",
                     "type": "integer"
+                },
+                "status": {
+                    "$ref": "#/definitions/constvar.OperationStatus"
                 }
             }
         },
@@ -3386,8 +3670,16 @@
                     "description": "璁℃暟鏁伴噺",
                     "type": "number"
                 },
+                "locationId": {
+                    "description": "浣嶇疆id",
+                    "type": "integer"
+                },
                 "operationId": {
                     "description": "鍑哄叆搴搃d",
+                    "type": "integer"
+                },
+                "productCategoryId": {
+                    "description": "浜у搧绉嶇被id",
                     "type": "integer"
                 },
                 "productId": {
@@ -3602,6 +3894,14 @@
                     "description": "鏁伴噺",
                     "type": "number"
                 },
+                "baseOperationType": {
+                    "description": "鍩虹浣滀笟绫诲瀷",
+                    "allOf": [
+                        {
+                            "$ref": "#/definitions/constvar.BaseOperationType"
+                        }
+                    ]
+                },
                 "contactedName": {
                     "description": "瀹屾垚鑰�",
                     "type": "string"

--
Gitblit v1.8.0