From 27bccf679a48389285b788742cf7aa4b16ad4ecc Mon Sep 17 00:00:00 2001
From: jiangshuai <291802688@qq.com>
Date: 星期五, 08 十二月 2023 11:12:47 +0800
Subject: [PATCH] 操作excel 手动变比io资源。 文件模版配置表增加字段taleInfo
---
controllers/operation.go | 2 +
models/file_template_attachment.go | 1
docs/swagger.yaml | 24 ++++++++++++
docs/docs.go | 38 +++++++++++++++++++
docs/swagger.json | 38 +++++++++++++++++++
5 files changed, 103 insertions(+), 0 deletions(-)
diff --git a/controllers/operation.go b/controllers/operation.go
index 143c959..aea483f 100644
--- a/controllers/operation.go
+++ b/controllers/operation.go
@@ -927,6 +927,7 @@
return "", errors.New("璇诲彇excel妯$増澶辫触锛�" + err.Error())
}
readerCloser.Close()
+ defer f.Close()
style, _ := f.NewStyle(&excelize.Style{
Border: []excelize.Border{
@@ -1007,6 +1008,7 @@
return "", errors.New("璇诲彇excel妯$増澶辫触锛�" + err.Error())
}
readerCloser.Close()
+ defer f.Close()
style, _ := f.NewStyle(&excelize.Style{
Border: []excelize.Border{
diff --git a/docs/docs.go b/docs/docs.go
index 477c6e3..1ea6fb1 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1097,6 +1097,25 @@
}
}
},
+ "/api-wms/v1/operation/getClientList": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "鍏ュ簱/鍑哄簱"
+ ],
+ "summary": "鑾峰彇鐗╂祦鍏徃鍒楄〃",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/operation/getLogisticCompanyList": {
"get": {
"produces": [
@@ -1131,6 +1150,25 @@
}
}
},
+ "/api-wms/v1/operation/getSupplierList": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "鍏ュ簱/鍑哄簱"
+ ],
+ "summary": "鑾峰彇鐗╂祦鍏徃鍒楄〃",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/operation/list": {
"post": {
"produces": [
diff --git a/docs/swagger.json b/docs/swagger.json
index aff7979..81393c2 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -1085,6 +1085,25 @@
}
}
},
+ "/api-wms/v1/operation/getClientList": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "鍏ュ簱/鍑哄簱"
+ ],
+ "summary": "鑾峰彇鐗╂祦鍏徃鍒楄〃",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/operation/getLogisticCompanyList": {
"get": {
"produces": [
@@ -1119,6 +1138,25 @@
}
}
},
+ "/api-wms/v1/operation/getSupplierList": {
+ "get": {
+ "produces": [
+ "application/json"
+ ],
+ "tags": [
+ "鍏ュ簱/鍑哄簱"
+ ],
+ "summary": "鑾峰彇鐗╂祦鍏徃鍒楄〃",
+ "responses": {
+ "200": {
+ "description": "鎴愬姛",
+ "schema": {
+ "$ref": "#/definitions/util.Response"
+ }
+ }
+ }
+ }
+ },
"/api-wms/v1/operation/list": {
"post": {
"produces": [
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 667604e..b481d9a 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -2261,6 +2261,18 @@
summary: 鏇存敼璁板綍鐘舵��
tags:
- 鍏ュ簱/鍑哄簱
+ /api-wms/v1/operation/getClientList:
+ get:
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ $ref: '#/definitions/util.Response'
+ summary: 鑾峰彇鐗╂祦鍏徃鍒楄〃
+ tags:
+ - 鍏ュ簱/鍑哄簱
/api-wms/v1/operation/getLogisticCompanyList:
get:
produces:
@@ -2280,6 +2292,18 @@
summary: 鑾峰彇鐗╂祦鍏徃鍒楄〃
tags:
- 鍏ュ簱/鍑哄簱
+ /api-wms/v1/operation/getSupplierList:
+ get:
+ produces:
+ - application/json
+ responses:
+ "200":
+ description: 鎴愬姛
+ schema:
+ $ref: '#/definitions/util.Response'
+ summary: 鑾峰彇鐗╂祦鍏徃鍒楄〃
+ tags:
+ - 鍏ュ簱/鍑哄簱
/api-wms/v1/operation/list:
post:
parameters:
diff --git a/models/file_template_attachment.go b/models/file_template_attachment.go
index 59f6853..575213e 100644
--- a/models/file_template_attachment.go
+++ b/models/file_template_attachment.go
@@ -15,6 +15,7 @@
Name string `json:"name" gorm:"type:varchar(63);comment:妯$増鍚嶇О"`
AttachmentId uint `json:"attachmentId" gorm:"comment:闄勪欢琛ㄥ閿�"`
Attachment Attachment `json:"attachment" gorm:"foreignKey:AttachmentId;references:Id"`
+ TableInfo string `json:"tableInfo" gorm:"type:varchar(31);comment:琛ㄥ悕"`
}
FileTemplateAttachmentSearch struct {
FileTemplateAttachment
--
Gitblit v1.8.0