zhou.xiaoning 1 rok pred
rodič
commit
c36ec78893

+ 1 - 0
controllers/ermcp/qryGoods.go

@@ -23,6 +23,7 @@ type GetErmcpGoodsReq struct {
 // @Security ApiKeyAuth
 // @Param    userid         query    int    false "用户id(风管云平台版本传值, 只显示用户下设置了套保关联的品种)"
 // @Param    lastUpdateTime query    string false "最后修改时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss"
+// @Param    loginid        query    int    false "登录账号,传入后会进行有权限的市场过滤结果"
 // @Success  200            {object} models.ErmcpGoods
 // @Failure  500            {object} app.Response
 // @Router   /Ermcp/GetErmcpGoods [get]

+ 4 - 4
controllers/guangzuan/tradeService.go

@@ -18,8 +18,8 @@ import (
 // @Security Group
 // @Param    userid   query    int    true  "用户ID"
 // @Param    executestatus query    int false "执行状态 - 1:未生效 2:进行中 3:已结束"
-// @Param    page     query    int    false "页码"
-// @Param    pagesize query    int    false "每页条数"
+// @Param    page          query    int false "页码"
+// @Param    pagesize      query    int false "每页条数"
 // @Success  200           {array}  models.GzcjjcorderM
 // @Failure  500     {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrder [get]
@@ -39,8 +39,8 @@ func QueryGZCJJCOrder(c *gin.Context) {
 // @Security Group
 // @Param    userid        query    int true  "用户ID"
 // @Param    orderid  query    string false "单据ID"
-// @Param    page          query    int false "页码"
-// @Param    pagesize      query    int false "每页条数"
+// @Param    page     query    int    false "页码"
+// @Param    pagesize query    int    false "每页条数"
 // @Success  200      {array}  models.GzcjjcorderdetailM
 // @Failure  500           {object} app.Response
 // @Router   /Guangzuan/QueryGZCJJCOrderDetail [get]

+ 6 - 0
docs/docs.go

@@ -1953,6 +1953,12 @@ const docTemplate = `{
                         "description": "最后修改时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss",
                         "name": "lastUpdateTime",
                         "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "登录账号,传入后会进行有权限的市场过滤结果",
+                        "name": "loginid",
+                        "in": "query"
                     }
                 ],
                 "responses": {

+ 6 - 0
docs/swagger.json

@@ -1944,6 +1944,12 @@
                         "description": "最后修改时间 - 闭区间,格式:yyyy-MM-dd HH:mm:ss",
                         "name": "lastUpdateTime",
                         "in": "query"
+                    },
+                    {
+                        "type": "integer",
+                        "description": "登录账号,传入后会进行有权限的市场过滤结果",
+                        "name": "loginid",
+                        "in": "query"
                     }
                 ],
                 "responses": {

+ 4 - 0
docs/swagger.yaml

@@ -32172,6 +32172,10 @@ paths:
         in: query
         name: lastUpdateTime
         type: string
+      - description: 登录账号,传入后会进行有权限的市场过滤结果
+        in: query
+        name: loginid
+        type: integer
       produces:
       - application/json
       responses:

+ 22 - 5
services/asign/apiModels.go

@@ -171,11 +171,11 @@ type APItableData struct {
 
 // APITemplate 合同模板
 type APITemplate struct {
-	TemplateNo string `json:"templateNo" binding:"required"` // 合同模板编号
-	// ContractNo    string             `json:"contractNo" structs:",omitempty"`    // 合同编号(此处可传已完成签署的合同编号,实现追加签章的场景)
-	// FillData      APIFillData        `json:"fillData" structs:",omitempty"`      // 单行文本、多行文本、日期、身份证类型参数填充。
-	// ComponentData []APIComponentData `json:"componentData" structs:",omitempty"` // 单选、复选、勾选、图片类型参数填充
-	// TableDatas    []APItableData     `json:"tableDatas" structs:",omitempty"`    // 表格填充数据
+	TemplateNo    string             `json:"templateNo" binding:"required"`      // 合同模板编号
+	ContractNo    string             `json:"contractNo" structs:",omitempty"`    // 合同编号(此处可传已完成签署的合同编号,实现追加签章的场景)
+	FillData      APIFillData        `json:"fillData" structs:",omitempty"`      // 单行文本、多行文本、日期、身份证类型参数填充。
+	ComponentData []APIComponentData `json:"componentData" structs:",omitempty"` // 单选、复选、勾选、图片类型参数填充
+	TableDatas    []APItableData     `json:"tableDatas" structs:",omitempty"`    // 表格填充数据
 }
 
 // APICreateContractReq 上传待签署文件入参
@@ -292,3 +292,20 @@ type APIContractStatusRsp struct {
 	ContractName string `json:"contractName"` // 合同名称
 	Status       int    `json:"status"`       // 合同状态:0:等待签约 1:签约中 2:已签约 3:过期 4:拒签 6:作废 -2:状态异常
 }
+
+// APIDownloadContractReq 下载合同入参
+type APIDownloadContractReq struct {
+	ContractNo       string `json:"contractNo" binding:"required"` // 合同唯一编码
+	Outfile          string `json:"outfile"`                       // 文件本地路径(下载的文件,写到本地,当文件数为1时,下载的文件类型是pdf,否则为zip)
+	Force            int    `json:"force"`                         // 强制下载标识 0(默认):未签署完的无法下载 1:无论什么状态都强制下载
+	DownloadFileType int    `json:"downloadFileType"`              // 下载文件类型,多附件下载:1:PDF文件 2:多个单张PNG文件,含PDF文件,单附件对应单张图片 3:分页PNG压缩文件,含PDF文件 4:合同单张图片,不含PDF文件 5:所有分页图片,不含PDF文件
+}
+
+// APIDownloadContractRsp 下载合同出参
+type APIDownloadContractRsp struct {
+	FileName string `json:"fileName"` // 文件名
+	Md5      string `json:"md5"`      // 文件md5值
+	FileType int    `json:"fileType"` // 文件类型:0:PDF 1:ZIP
+	Size     int    `json:"size"`     // 文件大小
+	Data     string `json:"data"`     // Base64字符串
+}