From b28a7f52e8df5889572f86a9422c62c10334f70c Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期一, 25 九月 2023 10:17:49 +0800
Subject: [PATCH] 1.修改出入库模块的新增、修改、列表,operation_details不再保存产品名称和单位,改为读取material 2.修改报废模块的新增,修改、列表,不再使用productName和unit字段

---
 docs/docs.go |   41 +++++++++++++----------------------------
 1 files changed, 13 insertions(+), 28 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 3d921fd..20489c0 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -2118,7 +2118,7 @@
             "type": "object",
             "properties": {
                 "amount": {
-                    "description": "鏁伴噺",
+                    "description": "ProductName string          ` + "`" + `json:\"productName\" gorm:\"type:varchar(255);not null;comment:浜у搧鍚嶇О\"` + "`" + ` //浜у搧鍚嶇О",
                     "type": "number"
                 },
                 "createTime": {
@@ -2131,15 +2131,16 @@
                     "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": {
@@ -2430,6 +2431,7 @@
             "type": "object",
             "properties": {
                 "amount": {
+                    "description": "ProductName    string          ` + "`" + `json:\"productName\"` + "`" + `",
                     "type": "number"
                 },
                 "fromLocationId": {
@@ -2438,17 +2440,11 @@
                 "productId": {
                     "type": "string"
                 },
-                "productName": {
-                    "type": "string"
-                },
                 "sourceNumber": {
                     "type": "string"
                 },
                 "toLocationId": {
                     "type": "integer"
-                },
-                "unit": {
-                    "type": "string"
                 }
             }
         },
@@ -2690,18 +2686,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"
                 }
             }
@@ -2803,6 +2792,7 @@
             "type": "object",
             "properties": {
                 "amount": {
+                    "description": "ProductName    string                   ` + "`" + `json:\"productName\"` + "`" + `",
                     "type": "number"
                 },
                 "fromLocationId": {
@@ -2812,15 +2802,13 @@
                     "type": "integer"
                 },
                 "number": {
+                    "description": "Unit           string                   ` + "`" + `json:\"unit\"` + "`" + `",
                     "type": "string"
                 },
                 "operationDate": {
                     "type": "string"
                 },
                 "productId": {
-                    "type": "string"
-                },
-                "productName": {
                     "type": "string"
                 },
                 "sourceNumber": {
@@ -2831,9 +2819,6 @@
                 },
                 "toLocationId": {
                     "type": "integer"
-                },
-                "unit": {
-                    "type": "string"
                 }
             }
         },

--
Gitblit v1.8.0