Ver Fonte

QueryMyPerformanc添加返回字段:
EXECUTESIDE int32 `json:"executeside" xorm:"EXECUTESIDE"` // 步骤执行方 - 1:买方 2:卖方

deng.yinping há 2 anos atrás
pai
commit
4e28216e01
4 ficheiros alterados com 15 adições e 2 exclusões
  1. 4 0
      docs/docs.go
  2. 4 0
      docs/swagger.json
  3. 3 0
      docs/swagger.yaml
  4. 4 2
      models/guangzuan.go

+ 4 - 0
docs/docs.go

@@ -39218,6 +39218,10 @@ const docTemplate = `{
                     "description": "当前步骤ID",
                     "type": "string"
                 },
+                "executeside": {
+                    "description": "步骤执行方 - 1:买方 2:卖方",
+                    "type": "integer"
+                },
                 "goodsno": {
                     "description": "商品编号",
                     "type": "string"

+ 4 - 0
docs/swagger.json

@@ -39209,6 +39209,10 @@
                     "description": "当前步骤ID",
                     "type": "string"
                 },
+                "executeside": {
+                    "description": "步骤执行方 - 1:买方 2:卖方",
+                    "type": "integer"
+                },
                 "goodsno": {
                     "description": "商品编号",
                     "type": "string"

+ 3 - 0
docs/swagger.yaml

@@ -14200,6 +14200,9 @@ definitions:
       curstepid:
         description: 当前步骤ID
         type: string
+      executeside:
+        description: 步骤执行方 - 1:买方 2:卖方
+        type: integer
       goodsno:
         description: 商品编号
         type: string

+ 4 - 2
models/guangzuan.go

@@ -2072,7 +2072,8 @@ type MyPerformanc struct {
 	SIZEDISPLAY                string  `json:"sizedisplay" xorm:"SIZEDISPLAY"`                               // 尺寸
 	GOODSNO                    string  `json:"goodsno" xorm:"GOODSNO"`                                       // 商品编号
 
-	WEIGHT float64 `json:"weight" xorm:"WEIGHT"` // 总重量(克拉重量) - 类型:1,2,3,4,5
+	WEIGHT      float64 `json:"weight" xorm:"WEIGHT"`           // 总重量(克拉重量) - 类型:1,2,3,4,5
+	EXECUTESIDE int32   `json:"executeside" xorm:"EXECUTESIDE"` // 步骤执行方 - 1:买方 2:卖方
 
 	USERID    int64  `json:"-" form:"userid" binding:"required"` // 用户ID
 	BuyOrSell int64  `json:"buyorsell" form:"buyorsell"`         // 方向 - 0:买 1:卖
@@ -2142,7 +2143,8 @@ func (r *MyPerformanc) buildSql() string {
 			ELSE wr.SIZE1
 		END AS SIZEDISPLAY,
 		ps.REMAINDAYS,
-		wr.WEIGHT
+		wr.WEIGHT,
+		ps.EXECUTESIDE
 	FROM PerformancePlan pp
 	inner join PerformanceStep ps on pp.curstepid = ps.performancestepid
 	inner join wrtrade_tradedetail td on pp.relatedorderid = td.wrtradedetailid