浏览代码

仓单贸易委托单/成交单/仓单持有记录 等接口增加商品缩略图字段

zou.yingbin 3 年之前
父节点
当前提交
2b1e4fb1da
共有 4 个文件被更改,包括 39 次插入0 次删除
  1. 12 0
      docs/docs.go
  2. 12 0
      docs/swagger.json
  3. 9 0
      docs/swagger.yaml
  4. 6 0
      models/wrTrade2.go

+ 12 - 0
docs/docs.go

@@ -36106,6 +36106,10 @@ var doc = `{
                     "description": "提单子单号",
                     "type": "integer"
                 },
+                "thumurls": {
+                    "description": "缩略图",
+                    "type": "string"
+                },
                 "tradedate": {
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"
@@ -36464,6 +36468,10 @@ var doc = `{
                     "description": "交易用户名称(资金账号名称)",
                     "type": "string"
                 },
+                "thumurls": {
+                    "description": "缩略图",
+                    "type": "string"
+                },
                 "tradedate": {
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"
@@ -38355,6 +38363,10 @@ var doc = `{
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
                 },
+                "thumurls": {
+                    "description": "缩略图",
+                    "type": "string"
+                },
                 "tradedate": {
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"

+ 12 - 0
docs/swagger.json

@@ -36091,6 +36091,10 @@
                     "description": "提单子单号",
                     "type": "integer"
                 },
+                "thumurls": {
+                    "description": "缩略图",
+                    "type": "string"
+                },
                 "tradedate": {
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"
@@ -36449,6 +36453,10 @@
                     "description": "交易用户名称(资金账号名称)",
                     "type": "string"
                 },
+                "thumurls": {
+                    "description": "缩略图",
+                    "type": "string"
+                },
                 "tradedate": {
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"
@@ -38340,6 +38348,10 @@
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
                 },
+                "thumurls": {
+                    "description": "缩略图",
+                    "type": "string"
+                },
                 "tradedate": {
                     "description": "交易日(yyyyMMdd)",
                     "type": "string"

+ 9 - 0
docs/swagger.yaml

@@ -15988,6 +15988,9 @@ definitions:
       subnum:
         description: 提单子单号
         type: integer
+      thumurls:
+        description: 缩略图
+        type: string
       tradedate:
         description: 交易日(yyyyMMdd)
         type: string
@@ -16259,6 +16262,9 @@ definitions:
       taname:
         description: 交易用户名称(资金账号名称)
         type: string
+      thumurls:
+        description: 缩略图
+        type: string
       tradedate:
         description: 交易日(yyyyMMdd)
         type: string
@@ -17671,6 +17677,9 @@ definitions:
       optioncompare:
         description: 选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
         type: string
+      thumurls:
+        description: 缩略图
+        type: string
       tradedate:
         description: 交易日(yyyyMMdd)
         type: string

+ 6 - 0
models/wrTrade2.go

@@ -699,6 +699,7 @@ type WrOrderDetail struct {
 	LADINGBILLID          string   `json:"ladingbillid"  xorm:"LADINGBILLID" form:"ladingbillid"` // 提单ID(208+Unix秒时间戳(10位)+xxxxxx)
 	SUBNUM                int32    `json:"-"  xorm:"SUBNUM" form:"subnum"`                        // 提单子单号
 	BANNERPICURL          string   `json:"bannerpicurl"  xorm:"BANNERPICURL"`                     // Banner图
+	THUMURLS              string   `json:"thumurls"  xorm:"thumurls"`                             // 缩略图
 
 	Wr2FactorType `xorm:"extends"`
 	PageEx        `xorm:"extends"`
@@ -757,6 +758,7 @@ with tmp as
          w.wrstandardcode,
          w.wrstandardname,
          w.bannerpicurl,
+         w.thumurls,
          h.warehousecode,
          h.warehousename,
          e.enumdicname,
@@ -977,6 +979,7 @@ type WrTradeDetail struct {
 	MATCHACCOUNTID  int64   `json:"matchaccountid"  xorm:"MATCHACCOUNTID"`              // 对手账号
 	MATCHUSERNAME   string  `json:"matchusername"  xorm:"'MATCHUSERNAME'"`              // 对手方
 	BANNERPICURL    string  `json:"bannerpicurl"  xorm:"BANNERPICURL"`                  // Banner图
+	THUMURLS        string  `json:"thumurls"  xorm:"thumurls"`                          // 缩略图
 	Wr2FactorType   `xorm:"extends"`
 	PageEx          `xorm:"extends"`
 
@@ -1000,6 +1003,7 @@ func (r *WrTradeDetail) buildSql() string {
 		"         w.wrstandardcode," +
 		"         w.wrstandardname," +
 		"         w.bannerpicurl," +
+		"         w.thumurls," +
 		"         h.warehousecode," +
 		"         h.warehousename," +
 		"         e.enumdicname," +
@@ -1783,6 +1787,7 @@ type WrHoldLB struct {
 	PARENTSUBNUM    int32   `json:"parentsubnum"  xorm:"PARENTSUBNUM" form:"parentsubnum"`          // 拆分父子单号
 	PLEDGEQTY       float64 `json:"pledgeqty"  xorm:"'-'"`                                          // 质押数量
 	BANNERPICURL    string  `json:"bannerpicurl"  xorm:"BANNERPICURL"`                              // Banner图
+	THUMURLS        string  `json:"thumurls"  xorm:"thumurls"`                                      // 缩略图
 	Wr2FactorType   `xorm:"extends"`
 
 	WRHOLDENO string  `json:"wrholdeno"` // 仓单编号
@@ -1809,6 +1814,7 @@ func (r *WrHoldLB) buildSql() string {
 		"         w.wrstandardcode," +
 		"         w.wrstandardname," +
 		"         w.bannerpicurl," +
+		"         w.thumurls," +
 		"         w.minivalue," +
 		"         h.warehousecode," +
 		"         h.warehousename," +