Bläddra i källkod

1.查仓单持仓/持仓明细 增加MINIVALUE字段

zou.yingbin 4 år sedan
förälder
incheckning
cfa2a6f265
4 ändrade filer med 70 tillägg och 1 borttagningar
  1. 24 0
      docs/docs.go
  2. 24 0
      docs/swagger.json
  3. 18 0
      docs/swagger.yaml
  4. 4 1
      models/wrTrade2.go

+ 24 - 0
docs/docs.go

@@ -29759,6 +29759,10 @@ var doc = `{
                     "description": "提单ID(208+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -29888,6 +29892,10 @@ var doc = `{
                     "description": "市场ID",
                     "type": "integer"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -30210,6 +30218,10 @@ var doc = `{
                     "description": "中间商用户ID",
                     "type": "integer"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -30375,6 +30387,10 @@ var doc = `{
                     "description": "是否有仓单-卖方 - 0:无仓单 1:有仓单",
                     "type": "integer"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "modifytime": {
                     "description": "修改时间(过户时间)",
                     "type": "string"
@@ -30496,6 +30512,10 @@ var doc = `{
                     "description": "指定方",
                     "type": "string"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -30629,6 +30649,10 @@ var doc = `{
                     "description": "对手方",
                     "type": "string"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"

+ 24 - 0
docs/swagger.json

@@ -29743,6 +29743,10 @@
                     "description": "提单ID(208+Unix秒时间戳(10位)+xxxxxx)",
                     "type": "string"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -29872,6 +29876,10 @@
                     "description": "市场ID",
                     "type": "integer"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -30194,6 +30202,10 @@
                     "description": "中间商用户ID",
                     "type": "integer"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -30359,6 +30371,10 @@
                     "description": "是否有仓单-卖方 - 0:无仓单 1:有仓单",
                     "type": "integer"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "modifytime": {
                     "description": "修改时间(过户时间)",
                     "type": "string"
@@ -30480,6 +30496,10 @@
                     "description": "指定方",
                     "type": "string"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"
@@ -30613,6 +30633,10 @@
                     "description": "对手方",
                     "type": "string"
                 },
+                "minivalue": {
+                    "description": "现货商品最小变动值",
+                    "type": "integer"
+                },
                 "optioncompare": {
                     "description": "选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较",
                     "type": "string"

+ 18 - 0
docs/swagger.yaml

@@ -13485,6 +13485,9 @@ definitions:
       ladingbillid:
         description: 提单ID(208+Unix秒时间戳(10位)+xxxxxx)
         type: string
+      minivalue:
+        description: 现货商品最小变动值
+        type: integer
       optioncompare:
         description: 选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
         type: string
@@ -13581,6 +13584,9 @@ definitions:
       marketid:
         description: 市场ID
         type: integer
+      minivalue:
+        description: 现货商品最小变动值
+        type: integer
       optioncompare:
         description: 选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
         type: string
@@ -13820,6 +13826,9 @@ definitions:
       middleuserid:
         description: 中间商用户ID
         type: integer
+      minivalue:
+        description: 现货商品最小变动值
+        type: integer
       optioncompare:
         description: 选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
         type: string
@@ -13947,6 +13956,9 @@ definitions:
       haswr:
         description: 是否有仓单-卖方 - 0:无仓单 1:有仓单
         type: integer
+      minivalue:
+        description: 现货商品最小变动值
+        type: integer
       modifytime:
         description: 修改时间(过户时间)
         type: string
@@ -14037,6 +14049,9 @@ definitions:
       matchusername:
         description: 指定方
         type: string
+      minivalue:
+        description: 现货商品最小变动值
+        type: integer
       optioncompare:
         description: 选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
         type: string
@@ -14137,6 +14152,9 @@ definitions:
       matchusername:
         description: 对手方
         type: string
+      minivalue:
+        description: 现货商品最小变动值
+        type: integer
       optioncompare:
         description: 选择项比较串【{选择项ID}+{冒号}+选择项值 } ,逗号分隔,头尾加逗号】-- 所有选择项拼接,用于比较
         type: string

+ 4 - 1
models/wrTrade2.go

@@ -356,6 +356,7 @@ type Wr2FactorType struct {
 	DELIVERYGOODSNAME string `json:"deliverygoodsname"  xorm:"'DELIVERYGOODSNAME'"` // 品种名称
 	ENUMDICNAME       string `json:"enumdicname" xorm:"'enumdicname'"`              // 单位名称
 	WAREHOUSENAME     string `json:"warehousename"  xorm:"'WAREHOUSENAME'"`         // 仓库名称
+	MINIVALUE         int32  `json:"minivalue"  xorm:"'MINIVALUE'"`                 // 现货商品最小变动值
 
 	WRTYPENAME string `json:"wrtypename" xorm:"'WRTYPENAME'"` // 商品
 }
@@ -467,7 +468,7 @@ func (r *WrPosition) buildSql1() string {
 		"    from tmp k" +
 		"   where 1 = 1" +
 		"   group by k.deliverygoodsid, k.wrstandardname, k.wrtypename, k.wrstandardid)" +
-		"select h.*, g.deliverygoodsname, g.deliverygoodscode, e.enumdicname" +
+		"select h.*, g.deliverygoodsname, g.deliverygoodscode, e.enumdicname, wd.minivalue" +
 		"  from hld h" +
 		"  left join deliverygoods g" +
 		"    on h.deliverygoodsid = g.deliverygoodsid" +
@@ -518,6 +519,7 @@ func (r *WrPosition) buildSql3() string {
 		"       dg.deliverygoodsname," +
 		"       wd.wrstandardcode," +
 		"       wd.wrstandardname," +
+		"       wd.minivalue," +
 		"       h.warehousecode," +
 		"       h.warehousename," +
 		"       e.enumdicname" +
@@ -1232,6 +1234,7 @@ func (r *WrHoldLB) buildSql() string {
 		"         g.deliverygoodsname," +
 		"         w.wrstandardcode," +
 		"         w.wrstandardname," +
+		"         w.minivalue," +
 		"         h.warehousecode," +
 		"         h.warehousename," +
 		"         e.enumdicname," +