Browse Source

增加查询敞口明细接口

zou.yingbin 4 years ago
parent
commit
a6431ced44
3 changed files with 348 additions and 0 deletions
  1. 129 0
      docs/docs.go
  2. 129 0
      docs/swagger.json
  3. 90 0
      docs/swagger.yaml

+ 129 - 0
docs/docs.go

@@ -1007,6 +1007,55 @@ var doc = `{
                 }
             }
         },
+        "/Ermcp/QueryExposureDetail": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "企业风险管理(app)"
+                ],
+                "summary": "查询敞口现货明细",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "所属机构ID",
+                        "name": "areaUserId",
+                        "in": "query",
+                        "required": true
+                    },
+                    {
+                        "type": "integer",
+                        "description": "套保商品",
+                        "name": "middleGoodsId",
+                        "in": "query",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "type": "array",
+                            "items": {
+                                "$ref": "#/definitions/ermcp.ExposureDetailRsp"
+                            }
+                        }
+                    },
+                    "500": {
+                        "description": "Internal Server Error",
+                        "schema": {
+                            "$ref": "#/definitions/app.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/Ermcp/QueryHedgePlan": {
             "get": {
                 "security": [
@@ -5604,6 +5653,9 @@ var doc = `{
                 }
             }
         },
+        "ermcp.ExposureDetailRsp": {
+            "$ref": "#/definitions/models.ErmcpExposureDetailModel"
+        },
         "ermcp.QryBusinessDjRsp": {
             "type": "object",
             "properties": {
@@ -5958,6 +6010,10 @@ var doc = `{
                     "description": "商品名称",
                     "type": "string"
                 },
+                "kxtype": {
+                    "description": "款项类型 1-收付款(PayAmount字段有值) 2-退款(DeductAmount字段有值) 3-收付款/退款(2个字段都有)",
+                    "type": "integer"
+                },
                 "operateapplyid": {
                     "description": "操作申请ID(603+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"
@@ -7747,6 +7803,75 @@ var doc = `{
                 }
             }
         },
+        "models.ErmcpExposureDetailModel": {
+            "type": "object",
+            "properties": {
+                "areauserid": {
+                    "description": "机构ID",
+                    "type": "integer"
+                },
+                "changeQty": {
+                    "description": "套保变动量",
+                    "type": "number"
+                },
+                "contracttype": {
+                    "description": "现货合同类型 - 1:采购 -1:销售",
+                    "type": "integer"
+                },
+                "convertfactor": {
+                    "description": "标仓系数",
+                    "type": "number"
+                },
+                "convertratio": {
+                    "description": "套保系数",
+                    "type": "number"
+                },
+                "createtime": {
+                    "description": "时间",
+                    "type": "string"
+                },
+                "enumdicname": {
+                    "description": "现货商品单位名称",
+                    "type": "string"
+                },
+                "logtype": {
+                    "description": "类型 - 1:套保计划 2:现货合同",
+                    "type": "integer"
+                },
+                "middlegoodsId": {
+                    "description": "套保商品id",
+                    "type": "integer"
+                },
+                "middlegoodscode": {
+                    "description": "套保商品代码",
+                    "type": "string"
+                },
+                "middlegoodsname": {
+                    "description": "套保商品名称",
+                    "type": "string"
+                },
+                "qty": {
+                    "description": "数量",
+                    "type": "number"
+                },
+                "relateNo": {
+                    "description": "现货合同/套保计划编号",
+                    "type": "string"
+                },
+                "wrstandardcode": {
+                    "description": "现货商品代码",
+                    "type": "string"
+                },
+                "wrstandardid": {
+                    "description": "现货商品ID",
+                    "type": "integer"
+                },
+                "wrstandardname": {
+                    "description": "现货商品名称",
+                    "type": "string"
+                }
+            }
+        },
         "models.ErmcpHedgePlan": {
             "type": "object",
             "properties": {
@@ -7879,6 +8004,10 @@ var doc = `{
                     "description": "已开票额",
                     "type": "number"
                 },
+                "margin": {
+                    "description": "保证金",
+                    "type": "number"
+                },
                 "payamount": {
                     "description": "已收付额(收款或付款)",
                     "type": "number"

+ 129 - 0
docs/swagger.json

@@ -991,6 +991,55 @@
                 }
             }
         },
+        "/Ermcp/QueryExposureDetail": {
+            "get": {
+                "security": [
+                    {
+                        "ApiKeyAuth": []
+                    }
+                ],
+                "produces": [
+                    "application/json"
+                ],
+                "tags": [
+                    "企业风险管理(app)"
+                ],
+                "summary": "查询敞口现货明细",
+                "parameters": [
+                    {
+                        "type": "integer",
+                        "description": "所属机构ID",
+                        "name": "areaUserId",
+                        "in": "query",
+                        "required": true
+                    },
+                    {
+                        "type": "integer",
+                        "description": "套保商品",
+                        "name": "middleGoodsId",
+                        "in": "query",
+                        "required": true
+                    }
+                ],
+                "responses": {
+                    "200": {
+                        "description": "OK",
+                        "schema": {
+                            "type": "array",
+                            "items": {
+                                "$ref": "#/definitions/ermcp.ExposureDetailRsp"
+                            }
+                        }
+                    },
+                    "500": {
+                        "description": "Internal Server Error",
+                        "schema": {
+                            "$ref": "#/definitions/app.Response"
+                        }
+                    }
+                }
+            }
+        },
         "/Ermcp/QueryHedgePlan": {
             "get": {
                 "security": [
@@ -5588,6 +5637,9 @@
                 }
             }
         },
+        "ermcp.ExposureDetailRsp": {
+            "$ref": "#/definitions/models.ErmcpExposureDetailModel"
+        },
         "ermcp.QryBusinessDjRsp": {
             "type": "object",
             "properties": {
@@ -5942,6 +5994,10 @@
                     "description": "商品名称",
                     "type": "string"
                 },
+                "kxtype": {
+                    "description": "款项类型 1-收付款(PayAmount字段有值) 2-退款(DeductAmount字段有值) 3-收付款/退款(2个字段都有)",
+                    "type": "integer"
+                },
                 "operateapplyid": {
                     "description": "操作申请ID(603+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"
@@ -7731,6 +7787,75 @@
                 }
             }
         },
+        "models.ErmcpExposureDetailModel": {
+            "type": "object",
+            "properties": {
+                "areauserid": {
+                    "description": "机构ID",
+                    "type": "integer"
+                },
+                "changeQty": {
+                    "description": "套保变动量",
+                    "type": "number"
+                },
+                "contracttype": {
+                    "description": "现货合同类型 - 1:采购 -1:销售",
+                    "type": "integer"
+                },
+                "convertfactor": {
+                    "description": "标仓系数",
+                    "type": "number"
+                },
+                "convertratio": {
+                    "description": "套保系数",
+                    "type": "number"
+                },
+                "createtime": {
+                    "description": "时间",
+                    "type": "string"
+                },
+                "enumdicname": {
+                    "description": "现货商品单位名称",
+                    "type": "string"
+                },
+                "logtype": {
+                    "description": "类型 - 1:套保计划 2:现货合同",
+                    "type": "integer"
+                },
+                "middlegoodsId": {
+                    "description": "套保商品id",
+                    "type": "integer"
+                },
+                "middlegoodscode": {
+                    "description": "套保商品代码",
+                    "type": "string"
+                },
+                "middlegoodsname": {
+                    "description": "套保商品名称",
+                    "type": "string"
+                },
+                "qty": {
+                    "description": "数量",
+                    "type": "number"
+                },
+                "relateNo": {
+                    "description": "现货合同/套保计划编号",
+                    "type": "string"
+                },
+                "wrstandardcode": {
+                    "description": "现货商品代码",
+                    "type": "string"
+                },
+                "wrstandardid": {
+                    "description": "现货商品ID",
+                    "type": "integer"
+                },
+                "wrstandardname": {
+                    "description": "现货商品名称",
+                    "type": "string"
+                }
+            }
+        },
         "models.ErmcpHedgePlan": {
             "type": "object",
             "properties": {
@@ -7863,6 +7988,10 @@
                     "description": "已开票额",
                     "type": "number"
                 },
+                "margin": {
+                    "description": "保证金",
+                    "type": "number"
+                },
                 "payamount": {
                     "description": "已收付额(收款或付款)",
                     "type": "number"

+ 90 - 0
docs/swagger.yaml

@@ -841,6 +841,8 @@ definitions:
     - mindeliveryqty
     - xdeliveryratio
     type: object
+  ermcp.ExposureDetailRsp:
+    $ref: '#/definitions/models.ErmcpExposureDetailModel'
   ermcp.QryBusinessDjRsp:
     properties:
       amount:
@@ -1104,6 +1106,9 @@ definitions:
       goodsname:
         description: 商品名称
         type: string
+      kxtype:
+        description: 款项类型 1-收付款(PayAmount字段有值) 2-退款(DeductAmount字段有值) 3-收付款/退款(2个字段都有)
+        type: integer
       operateapplyid:
         description: 操作申请ID(603+Unix秒时间戳(10位)+xxxxxx)
         type: string
@@ -2428,6 +2433,57 @@ definitions:
     - enumdicid
     - enumitemname
     type: object
+  models.ErmcpExposureDetailModel:
+    properties:
+      areauserid:
+        description: 机构ID
+        type: integer
+      changeQty:
+        description: 套保变动量
+        type: number
+      contracttype:
+        description: 现货合同类型 - 1:采购 -1:销售
+        type: integer
+      convertfactor:
+        description: 标仓系数
+        type: number
+      convertratio:
+        description: 套保系数
+        type: number
+      createtime:
+        description: 时间
+        type: string
+      enumdicname:
+        description: 现货商品单位名称
+        type: string
+      logtype:
+        description: 类型 - 1:套保计划 2:现货合同
+        type: integer
+      middlegoodsId:
+        description: 套保商品id
+        type: integer
+      middlegoodscode:
+        description: 套保商品代码
+        type: string
+      middlegoodsname:
+        description: 套保商品名称
+        type: string
+      qty:
+        description: 数量
+        type: number
+      relateNo:
+        description: 现货合同/套保计划编号
+        type: string
+      wrstandardcode:
+        description: 现货商品代码
+        type: string
+      wrstandardid:
+        description: 现货商品ID
+        type: integer
+      wrstandardname:
+        description: 现货商品名称
+        type: string
+    type: object
   models.ErmcpHedgePlan:
     properties:
       areauserid:
@@ -2526,6 +2582,9 @@ definitions:
       invoiceamount:
         description: 已开票额
         type: number
+      margin:
+        description: 保证金
+        type: number
       payamount:
         description: 已收付额(收款或付款)
         type: number
@@ -6957,6 +7016,37 @@ paths:
       summary: 查询合同(采购和销售)
       tags:
       - 企业风险管理(app)
+  /Ermcp/QueryExposureDetail:
+    get:
+      parameters:
+      - description: 所属机构ID
+        in: query
+        name: areaUserId
+        required: true
+        type: integer
+      - description: 套保商品
+        in: query
+        name: middleGoodsId
+        required: true
+        type: integer
+      produces:
+      - application/json
+      responses:
+        "200":
+          description: OK
+          schema:
+            items:
+              $ref: '#/definitions/ermcp.ExposureDetailRsp'
+            type: array
+        "500":
+          description: Internal Server Error
+          schema:
+            $ref: '#/definitions/app.Response'
+      security:
+      - ApiKeyAuth: []
+      summary: 查询敞口现货明细
+      tags:
+      - 企业风险管理(app)
   /Ermcp/QueryHedgePlan:
     get:
       parameters: