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/swagger.json | 41 +++++++++++++---------------------------- 1 files changed, 13 insertions(+), 28 deletions(-) diff --git a/docs/swagger.json b/docs/swagger.json index a8ff32a..9c6e3e4 100644 --- a/docs/swagger.json +++ b/docs/swagger.json @@ -2106,7 +2106,7 @@ "type": "object", "properties": { "amount": { - "description": "鏁伴噺", + "description": "ProductName string `json:\"productName\" gorm:\"type:varchar(255);not null;comment:浜у搧鍚嶇О\"` //浜у搧鍚嶇О", "type": "number" }, "createTime": { @@ -2119,15 +2119,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": { @@ -2418,6 +2419,7 @@ "type": "object", "properties": { "amount": { + "description": "ProductName string `json:\"productName\"`", "type": "number" }, "fromLocationId": { @@ -2426,17 +2428,11 @@ "productId": { "type": "string" }, - "productName": { - "type": "string" - }, "sourceNumber": { "type": "string" }, "toLocationId": { "type": "integer" - }, - "unit": { - "type": "string" } } }, @@ -2678,18 +2674,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" } } @@ -2791,6 +2780,7 @@ "type": "object", "properties": { "amount": { + "description": "ProductName string `json:\"productName\"`", "type": "number" }, "fromLocationId": { @@ -2800,15 +2790,13 @@ "type": "integer" }, "number": { + "description": "Unit string `json:\"unit\"`", "type": "string" }, "operationDate": { "type": "string" }, "productId": { - "type": "string" - }, - "productName": { "type": "string" }, "sourceNumber": { @@ -2819,9 +2807,6 @@ }, "toLocationId": { "type": "integer" - }, - "unit": { - "type": "string" } } }, -- Gitblit v1.8.0