Browse Source

接口增加入参与出参

zhou.xiaoning 3 years ago
parent
commit
466bfec0ae
5 changed files with 162 additions and 70 deletions
  1. 18 16
      controllers/guangzuan/wrposition.go
  2. 23 3
      docs/docs.go
  3. 23 3
      docs/swagger.json
  4. 17 3
      docs/swagger.yaml
  5. 81 45
      models/guangzuan.go

+ 18 - 16
controllers/guangzuan/wrposition.go

@@ -13,15 +13,15 @@ import (
 // @Security ApiKeyAuth
 // @Security ApiKeyAuth
 // @Security LoginID
 // @Security LoginID
 // @Security Group
 // @Security Group
-// @Param    page        query    int false "页码"
-// @Param    pagesize    query    int false "每页条数"
+// @Param    page           query    int    false "页码"
+// @Param    pagesize       query    int    false "每页条数"
 // @Param    wruserid        query    int    true  "登录用户ID"
 // @Param    wruserid        query    int    true  "登录用户ID"
 // @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
 // @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
 // @Param    zscategorys query    string false "钻石分类, 格式:1,2,3"
 // @Param    zscategorys query    string false "钻石分类, 格式:1,2,3"
 // @Param    warehouseid     query    int    false "仓库ID"
 // @Param    warehouseid     query    int    false "仓库ID"
 // @Param    marketflag      query    int    false "是否上架,0-全部 1-是 2-否"
 // @Param    marketflag      query    int    false "是否上架,0-全部 1-是 2-否"
 // @Success  200             {array}  models.MyWRPosition
 // @Success  200             {array}  models.MyWRPosition
-// @Failure  500         {object} app.Response
+// @Failure  500            {object} app.Response
 // @Router   /Guangzuan/QueryMyWRPosition [get]
 // @Router   /Guangzuan/QueryMyWRPosition [get]
 // @Tags     广钻
 // @Tags     广钻
 func QueryMyWRPosition(c *gin.Context) {
 func QueryMyWRPosition(c *gin.Context) {
@@ -37,9 +37,9 @@ func QueryMyWRPosition(c *gin.Context) {
 // @Security ApiKeyAuth
 // @Security ApiKeyAuth
 // @Security LoginID
 // @Security LoginID
 // @Security Group
 // @Security Group
-// @Param    userid      query    int true  "用户ID"
-// @Param    page        query    int false "页码"
-// @Param    pagesize    query    int false "每页条数"
+// @Param    userid         query    int    true  "用户ID"
+// @Param    page              query    int    false "页码"
+// @Param    pagesize          query    int    false "每页条数"
 // @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
 // @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
 // @Param    zscategorys     query    string false "钻石分类, 格式:1,2,3"
 // @Param    zscategorys     query    string false "钻石分类, 格式:1,2,3"
 // @Param    wrtradeorderid  query    int    false "委托单号"
 // @Param    wrtradeorderid  query    int    false "委托单号"
@@ -47,7 +47,7 @@ func QueryMyWRPosition(c *gin.Context) {
 // @Param    begindate       query    string false "开始交易日(yyyymmdd)"
 // @Param    begindate       query    string false "开始交易日(yyyymmdd)"
 // @Param    enddate         query    string false "结束交易日(yyyymmdd)"
 // @Param    enddate         query    string false "结束交易日(yyyymmdd)"
 // @Success  200             {array}  models.MyBuyOrder
 // @Success  200             {array}  models.MyBuyOrder
-// @Failure  500         {object} app.Response
+// @Failure  500               {object} app.Response
 // @Router   /Guangzuan/QueryMyBuyOrder [get]
 // @Router   /Guangzuan/QueryMyBuyOrder [get]
 // @Tags     广钻
 // @Tags     广钻
 func QueryMyBuyOrder(c *gin.Context) {
 func QueryMyBuyOrder(c *gin.Context) {
@@ -63,7 +63,7 @@ func QueryMyBuyOrder(c *gin.Context) {
 // @Security ApiKeyAuth
 // @Security ApiKeyAuth
 // @Security LoginID
 // @Security LoginID
 // @Security Group
 // @Security Group
-// @Param    userid      query    int true  "用户ID"
+// @Param    userid            query    int    true  "用户ID"
 // @Param    page        query    int    false "页码"
 // @Param    page        query    int    false "页码"
 // @Param    pagesize    query    int    false "每页条数"
 // @Param    pagesize    query    int    false "每页条数"
 // @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
 // @Param    zsallproperties query    string false "商品(查询字段-模糊查询)"
@@ -111,7 +111,7 @@ func QueryMyDeListing(c *gin.Context) {
 }
 }
 
 
 // QueryMyBargainApply
 // QueryMyBargainApply
-// @Summary  查询我的询价-求购
+// @Summary  查询询价-求购
 // @Produce  json
 // @Produce  json
 // @Security ApiKeyAuth
 // @Security ApiKeyAuth
 // @Security LoginID
 // @Security LoginID
@@ -119,9 +119,10 @@ func QueryMyDeListing(c *gin.Context) {
 // @Param    userid          query    int    true  "用户ID"
 // @Param    userid          query    int    true  "用户ID"
 // @Param    page            query    int    false "页码"
 // @Param    page            query    int    false "页码"
 // @Param    pagesize        query    int    false "每页条数"
 // @Param    pagesize        query    int    false "每页条数"
-// @Param    applystatus query    int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
-// @Param    type        query    int false "查询类型 - 0:我的询价 1:我订单的询价"
-// @Success  200         {array}  models.MyBargainApply
+// @Param    applystatus    query    int    false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
+// @Param    type           query    int    false "查询类型 - 0:我的询价 1:我订单的询价"
+// @Param    wrtradeorderid query    string false "关联委托单ID"
+// @Success  200            {array}  models.MyBargainApply
 // @Failure  500             {object} app.Response
 // @Failure  500             {object} app.Response
 // @Router   /Guangzuan/QueryMyBargainApply [get]
 // @Router   /Guangzuan/QueryMyBargainApply [get]
 // @Tags     广钻
 // @Tags     广钻
@@ -133,7 +134,7 @@ func QueryMyBargainApply(c *gin.Context) {
 }
 }
 
 
 // QueryMyDelistingApply
 // QueryMyDelistingApply
-// @Summary  查询我的询价-出售
+// @Summary  查询询价-出售
 // @Produce  json
 // @Produce  json
 // @Security ApiKeyAuth
 // @Security ApiKeyAuth
 // @Security LoginID
 // @Security LoginID
@@ -141,9 +142,10 @@ func QueryMyBargainApply(c *gin.Context) {
 // @Param    userid          query    int    true  "用户ID"
 // @Param    userid          query    int    true  "用户ID"
 // @Param    page            query    int    false "页码"
 // @Param    page            query    int    false "页码"
 // @Param    pagesize        query    int    false "每页条数"
 // @Param    pagesize        query    int    false "每页条数"
-// @Param    applystatus query    int false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
-// @Param    type        query    int false "查询类型 - 0:我的询价 1:我订单的询价"
-// @Success  200         {array}  models.MyDelistingApply
+// @Param    applystatus       query    int    false "申请状态(不传查全部) - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中"
+// @Param    type              query    int    false "查询类型 - 0:我的询价 1:我订单的询价"
+// @Param    buywrtradeorderid query    string false "买委托单ID"
+// @Success  200               {array}  models.MyDelistingApply
 // @Failure  500             {object} app.Response
 // @Failure  500             {object} app.Response
 // @Router   /Guangzuan/QueryMyDelistingApply [get]
 // @Router   /Guangzuan/QueryMyDelistingApply [get]
 // @Tags     广钻
 // @Tags     广钻

+ 23 - 3
docs/docs.go

@@ -7740,7 +7740,7 @@ const docTemplate = `{
                 "tags": [
                 "tags": [
                     "广钻"
                     "广钻"
                 ],
                 ],
-                "summary": "查询我的询价-求购",
+                "summary": "查询询价-求购",
                 "parameters": [
                 "parameters": [
                     {
                     {
                         "type": "integer",
                         "type": "integer",
@@ -7772,6 +7772,12 @@ const docTemplate = `{
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "name": "type",
                         "name": "type",
                         "in": "query"
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "关联委托单ID",
+                        "name": "wrtradeorderid",
+                        "in": "query"
                     }
                     }
                 ],
                 ],
                 "responses": {
                 "responses": {
@@ -8010,7 +8016,7 @@ const docTemplate = `{
                 "tags": [
                 "tags": [
                     "广钻"
                     "广钻"
                 ],
                 ],
-                "summary": "查询我的询价-出售",
+                "summary": "查询询价-出售",
                 "parameters": [
                 "parameters": [
                     {
                     {
                         "type": "integer",
                         "type": "integer",
@@ -8042,6 +8048,12 @@ const docTemplate = `{
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "name": "type",
                         "name": "type",
                         "in": "query"
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "买委托单ID",
+                        "name": "buywrtradeorderid",
+                        "in": "query"
                     }
                     }
                 ],
                 ],
                 "responses": {
                 "responses": {
@@ -30479,6 +30491,10 @@ const docTemplate = `{
                     "description": "确认人",
                     "description": "确认人",
                     "type": "integer"
                     "type": "integer"
                 },
                 },
+                "goodsno": {
+                    "description": "商品编号",
+                    "type": "string"
+                },
                 "handlestatus": {
                 "handlestatus": {
                     "description": "处理状态",
                     "description": "处理状态",
                     "type": "integer"
                     "type": "integer"
@@ -30548,7 +30564,7 @@ const docTemplate = `{
                 },
                 },
                 "wrtradeorderid": {
                 "wrtradeorderid": {
                     "description": "关联委托单ID",
                     "description": "关联委托单ID",
-                    "type": "integer"
+                    "type": "string"
                 },
                 },
                 "zscerttypedisplay": {
                 "zscerttypedisplay": {
                     "type": "string"
                     "type": "string"
@@ -31030,6 +31046,10 @@ const docTemplate = `{
                     "description": "卖方用户ID",
                     "description": "卖方用户ID",
                     "type": "integer"
                     "type": "integer"
                 },
                 },
+                "sizedisplay": {
+                    "description": "尺寸",
+                    "type": "string"
+                },
                 "subnum": {
                 "subnum": {
                     "description": "卖方提单子单号",
                     "description": "卖方提单子单号",
                     "type": "integer"
                     "type": "integer"

+ 23 - 3
docs/swagger.json

@@ -7731,7 +7731,7 @@
                 "tags": [
                 "tags": [
                     "广钻"
                     "广钻"
                 ],
                 ],
-                "summary": "查询我的询价-求购",
+                "summary": "查询询价-求购",
                 "parameters": [
                 "parameters": [
                     {
                     {
                         "type": "integer",
                         "type": "integer",
@@ -7763,6 +7763,12 @@
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "name": "type",
                         "name": "type",
                         "in": "query"
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "关联委托单ID",
+                        "name": "wrtradeorderid",
+                        "in": "query"
                     }
                     }
                 ],
                 ],
                 "responses": {
                 "responses": {
@@ -8001,7 +8007,7 @@
                 "tags": [
                 "tags": [
                     "广钻"
                     "广钻"
                 ],
                 ],
-                "summary": "查询我的询价-出售",
+                "summary": "查询询价-出售",
                 "parameters": [
                 "parameters": [
                     {
                     {
                         "type": "integer",
                         "type": "integer",
@@ -8033,6 +8039,12 @@
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "description": "查询类型 - 0:我的询价 1:我订单的询价",
                         "name": "type",
                         "name": "type",
                         "in": "query"
                         "in": "query"
+                    },
+                    {
+                        "type": "string",
+                        "description": "买委托单ID",
+                        "name": "buywrtradeorderid",
+                        "in": "query"
                     }
                     }
                 ],
                 ],
                 "responses": {
                 "responses": {
@@ -30470,6 +30482,10 @@
                     "description": "确认人",
                     "description": "确认人",
                     "type": "integer"
                     "type": "integer"
                 },
                 },
+                "goodsno": {
+                    "description": "商品编号",
+                    "type": "string"
+                },
                 "handlestatus": {
                 "handlestatus": {
                     "description": "处理状态",
                     "description": "处理状态",
                     "type": "integer"
                     "type": "integer"
@@ -30539,7 +30555,7 @@
                 },
                 },
                 "wrtradeorderid": {
                 "wrtradeorderid": {
                     "description": "关联委托单ID",
                     "description": "关联委托单ID",
-                    "type": "integer"
+                    "type": "string"
                 },
                 },
                 "zscerttypedisplay": {
                 "zscerttypedisplay": {
                     "type": "string"
                     "type": "string"
@@ -31021,6 +31037,10 @@
                     "description": "卖方用户ID",
                     "description": "卖方用户ID",
                     "type": "integer"
                     "type": "integer"
                 },
                 },
+                "sizedisplay": {
+                    "description": "尺寸",
+                    "type": "string"
+                },
                 "subnum": {
                 "subnum": {
                     "description": "卖方提单子单号",
                     "description": "卖方提单子单号",
                     "type": "integer"
                     "type": "integer"

+ 17 - 3
docs/swagger.yaml

@@ -10808,6 +10808,9 @@ definitions:
       confirmuserid:
       confirmuserid:
         description: 确认人
         description: 确认人
         type: integer
         type: integer
+      goodsno:
+        description: 商品编号
+        type: string
       handlestatus:
       handlestatus:
         description: 处理状态
         description: 处理状态
         type: integer
         type: integer
@@ -10860,7 +10863,7 @@ definitions:
         type: string
         type: string
       wrtradeorderid:
       wrtradeorderid:
         description: 关联委托单ID
         description: 关联委托单ID
-        type: integer
+        type: string
       zscerttypedisplay:
       zscerttypedisplay:
         type: string
         type: string
       zsclaritytype1display:
       zsclaritytype1display:
@@ -11203,6 +11206,9 @@ definitions:
       selluserid:
       selluserid:
         description: 卖方用户ID
         description: 卖方用户ID
         type: integer
         type: integer
+      sizedisplay:
+        description: 尺寸
+        type: string
       subnum:
       subnum:
         description: 卖方提单子单号
         description: 卖方提单子单号
         type: integer
         type: integer
@@ -27212,6 +27218,10 @@ paths:
         in: query
         in: query
         name: type
         name: type
         type: integer
         type: integer
+      - description: 关联委托单ID
+        in: query
+        name: wrtradeorderid
+        type: string
       produces:
       produces:
       - application/json
       - application/json
       responses:
       responses:
@@ -27229,7 +27239,7 @@ paths:
       - ApiKeyAuth: []
       - ApiKeyAuth: []
       - LoginID: []
       - LoginID: []
       - Group: []
       - Group: []
-      summary: 查询我的询价-求购
+      summary: 查询询价-求购
       tags:
       tags:
       - 广钻
       - 广钻
   /Guangzuan/QueryMyBuyOrder:
   /Guangzuan/QueryMyBuyOrder:
@@ -27380,6 +27390,10 @@ paths:
         in: query
         in: query
         name: type
         name: type
         type: integer
         type: integer
+      - description: 买委托单ID
+        in: query
+        name: buywrtradeorderid
+        type: string
       produces:
       produces:
       - application/json
       - application/json
       responses:
       responses:
@@ -27397,7 +27411,7 @@ paths:
       - ApiKeyAuth: []
       - ApiKeyAuth: []
       - LoginID: []
       - LoginID: []
       - Group: []
       - Group: []
-      summary: 查询我的询价-出售
+      summary: 查询询价-出售
       tags:
       tags:
       - 广钻
       - 广钻
   /Guangzuan/QueryMyFavorite:
   /Guangzuan/QueryMyFavorite:

+ 81 - 45
models/guangzuan.go

@@ -1445,7 +1445,7 @@ func (r *MyDeListing) GetDataByPage() (interface{}, error, int, int, int) {
 	return sData, err, r.Page, r.PageSize, total
 	return sData, err, r.Page, r.PageSize, total
 }
 }
 
 
-// MyBargainApply 我的询价-求购
+// MyBargainApply 询价-求购
 type MyBargainApply struct {
 type MyBargainApply struct {
 	ZSCURRENCYTYPEDISPLAY      string  `json:"zscurrencytypedisplay" xorm:"ZSCURRENCYTYPEDISPLAY"`           //
 	ZSCURRENCYTYPEDISPLAY      string  `json:"zscurrencytypedisplay" xorm:"ZSCURRENCYTYPEDISPLAY"`           //
 	ZSCURRENCYTYPEDISPLAYUNIT  string  `json:"zscurrencytypedisplayunit" xorm:"ZSCURRENCYTYPEDISPLAYUNIT"`   //
 	ZSCURRENCYTYPEDISPLAYUNIT  string  `json:"zscurrencytypedisplayunit" xorm:"ZSCURRENCYTYPEDISPLAYUNIT"`   //
@@ -1472,31 +1472,32 @@ type MyBargainApply struct {
 	SIZEDISPLAY                string  `json:"sizedisplay" xorm:"SIZEDISPLAY"`                               // 尺寸
 	SIZEDISPLAY                string  `json:"sizedisplay" xorm:"SIZEDISPLAY"`                               // 尺寸
 	PRICE                      float64 `json:"price" xorm:"PRICE"`                                           // 价格
 	PRICE                      float64 `json:"price" xorm:"PRICE"`                                           // 价格
 	PRICEPER                   string  `json:"priceper" xorm:"PRICEPER"`                                     // 克拉单价 - 类型:1,2,3,5
 	PRICEPER                   string  `json:"priceper" xorm:"PRICEPER"`                                     // 克拉单价 - 类型:1,2,3,5
+	GOODSNO                    string  `json:"goodsno" xorm:"GOODSNO"`                                       // 商品编号
 
 
-	WRBARGAINID    string    `json:"wrbargainid" xorm:"WRBARGAINID1"`                       // [询价单号]议价申请单ID(327+Unix秒时间戳(10位)+xxxxxx)
-	WRTRADEORDERID int64     `json:"wrtradeorderid" xorm:"WRTRADEORDERID"`                  // 关联委托单ID
-	TRADEDATE      string    `json:"tradedate" xorm:"TRADEDATE"`                            // 交易日(yyyyMMdd)
-	MARKETID       int64     `json:"marketid" xorm:"MARKETID"`                              // 市场ID
-	USERID         int64     `json:"userid" xorm:"USERID" form:"userid" binding:"required"` // 摘牌人用户ID
-	ACCOUNTID      int64     `json:"accountid" xorm:"ACCOUNTID"`                            // 摘牌资金账号
-	BUYORSELL      int32     `json:"buyorsell" xorm:"BUYORSELL"`                            // 买卖 - 0:买 1:卖
-	APPLYQTY       int64     `json:"-" xorm:"APPLYQTY"`                                     // 摘牌数量
-	APPLYPRICE     string    `json:"applyprice" xorm:"APPLYPRICE"`                          // 申请价格
-	APPLYSTATUS    int32     `json:"applystatus" xorm:"APPLYSTATUS" form:"applystatus"`     // 申请状态 - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中
-	HANDLESTATUS   int32     `json:"handlestatus" xorm:"HANDLESTATUS"`                      // 处理状态
-	APPLYTIME      string    `json:"applytime" xorm:"APPLYTIME1"`                           // 申请时间
-	APPLYREMARK    string    `json:"applyremark" xorm:"APPLYREMARK"`                        // 申请备注
-	CONFIRMQTY     int64     `json:"confirmqty" xorm:"CONFIRMQTY"`                          // 可接受数量(拒绝时填写)-作废
-	CONFIRMPRICE   float64   `json:"confirmprice" xorm:"CONFIRMPRICE"`                      // 可接受价格(拒绝时填写)-作废
-	CONFIRMUSERID  int64     `json:"confirmuserid" xorm:"CONFIRMUSERID"`                    // 确认人
-	CONFIRMTIME    time.Time `json:"confirmtime" xorm:"CONFIRMTIME"`                        // 确认时间
-	CONFIRMREMARK  string    `json:"confirmremark" xorm:"CONFIRMREMARK"`                    // 确认备注
-	REFPRICE       string    `json:"refprice" xorm:"REFPRICE"`                              // 参考价格
-	RETCODE        int32     `json:"retcode" xorm:"RETCODE"`                                // 委托返回代码
-	MATCHUSERID    int64     `json:"matchuserid" xorm:"MATCHUSERID"`                        // 挂牌方用户ID
-	MATCHACCOUNTID int64     `json:"matchaccountid" xorm:"MATCHACCOUNTID"`                  // 挂牌方资金账号
-	LADINGBILLID   int64     `json:"ladingbillid" xorm:"LADINGBILLID"`                      // 摘牌方提单ID [卖]
-	SUBNUM         int32     `json:"subnum" xorm:"SUBNUM"`                                  // 摘牌方提单子单号 [卖]
+	WRBARGAINID    string    `json:"wrbargainid" xorm:"WRBARGAINID1"`                             // [询价单号]议价申请单ID(327+Unix秒时间戳(10位)+xxxxxx)
+	WRTRADEORDERID string    `json:"wrtradeorderid" xorm:"WRTRADEORDERID1" form:"wrtradeorderid"` // 关联委托单ID
+	TRADEDATE      string    `json:"tradedate" xorm:"TRADEDATE"`                                  // 交易日(yyyyMMdd)
+	MARKETID       int64     `json:"marketid" xorm:"MARKETID"`                                    // 市场ID
+	USERID         int64     `json:"userid" xorm:"USERID" form:"userid" binding:"required"`       // 摘牌人用户ID
+	ACCOUNTID      int64     `json:"accountid" xorm:"ACCOUNTID"`                                  // 摘牌资金账号
+	BUYORSELL      int32     `json:"buyorsell" xorm:"BUYORSELL"`                                  // 买卖 - 0:买 1:卖
+	APPLYQTY       int64     `json:"-" xorm:"APPLYQTY"`                                           // 摘牌数量
+	APPLYPRICE     string    `json:"applyprice" xorm:"APPLYPRICE"`                                // 申请价格
+	APPLYSTATUS    int32     `json:"applystatus" xorm:"APPLYSTATUS" form:"applystatus"`           // 申请状态 - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中
+	HANDLESTATUS   int32     `json:"handlestatus" xorm:"HANDLESTATUS"`                            // 处理状态
+	APPLYTIME      string    `json:"applytime" xorm:"APPLYTIME1"`                                 // 申请时间
+	APPLYREMARK    string    `json:"applyremark" xorm:"APPLYREMARK"`                              // 申请备注
+	CONFIRMQTY     int64     `json:"confirmqty" xorm:"CONFIRMQTY"`                                // 可接受数量(拒绝时填写)-作废
+	CONFIRMPRICE   float64   `json:"confirmprice" xorm:"CONFIRMPRICE"`                            // 可接受价格(拒绝时填写)-作废
+	CONFIRMUSERID  int64     `json:"confirmuserid" xorm:"CONFIRMUSERID"`                          // 确认人
+	CONFIRMTIME    time.Time `json:"confirmtime" xorm:"CONFIRMTIME"`                              // 确认时间
+	CONFIRMREMARK  string    `json:"confirmremark" xorm:"CONFIRMREMARK"`                          // 确认备注
+	REFPRICE       string    `json:"refprice" xorm:"REFPRICE"`                                    // 参考价格
+	RETCODE        int32     `json:"retcode" xorm:"RETCODE"`                                      // 委托返回代码
+	MATCHUSERID    int64     `json:"matchuserid" xorm:"MATCHUSERID"`                              // 挂牌方用户ID
+	MATCHACCOUNTID int64     `json:"matchaccountid" xorm:"MATCHACCOUNTID"`                        // 挂牌方资金账号
+	LADINGBILLID   int64     `json:"ladingbillid" xorm:"LADINGBILLID"`                            // 摘牌方提单ID [卖]
+	SUBNUM         int32     `json:"subnum" xorm:"SUBNUM"`                                        // 摘牌方提单子单号 [卖]
 
 
 	SELLUSERNAME string `json:"sellusername" xorm:"SELLUSERNAME"` // 卖方
 	SELLUSERNAME string `json:"sellusername" xorm:"SELLUSERNAME"` // 卖方
 
 
@@ -1535,6 +1536,7 @@ func (r *MyBargainApply) buildSql() string {
 		q.ZSCZCOLOR1TYPEDISPLAY,
 		q.ZSCZCOLOR1TYPEDISPLAY,
 		q.ZSCZCOLOR2TYPEDISPLAY,
 		q.ZSCZCOLOR2TYPEDISPLAY,
 		q.ZSCZCOLOR3TYPEDISPLAY,
 		q.ZSCZCOLOR3TYPEDISPLAY,
+		q.GOODSNO,
 		ua.accountname SELLUSERNAME,
 		ua.accountname SELLUSERNAME,
 		CASE WHEN
 		CASE WHEN
 			q.SIZE1 IS NOT NULL AND q.SIZE2 IS NOT NULL AND q.SIZE2 IS NOT NULL THEN q.SIZE1 || '*' || q.SIZE2 || '*' || q.SIZE3
 			q.SIZE1 IS NOT NULL AND q.SIZE2 IS NOT NULL AND q.SIZE2 IS NOT NULL THEN q.SIZE1 || '*' || q.SIZE2 || '*' || q.SIZE3
@@ -1545,7 +1547,30 @@ func (r *MyBargainApply) buildSql() string {
 		(t.APPLYQTY / 100) QTY,
 		(t.APPLYQTY / 100) QTY,
 		to_char(t.APPLYTIME, 'yyyy-mm-dd hh24:mi:ss') APPLYTIME1,
 		to_char(t.APPLYTIME, 'yyyy-mm-dd hh24:mi:ss') APPLYTIME1,
 		to_char(t.WRBARGAINID) WRBARGAINID1,
 		to_char(t.WRBARGAINID) WRBARGAINID1,
-		t.*
+		t.WRBARGAINID   ,
+		to_char(t.WRTRADEORDERID) WRTRADEORDERID1,
+		t.TRADEDATE     ,
+		t.MARKETID      ,
+		t.USERID        ,
+		t.ACCOUNTID     ,
+		t.BUYORSELL     ,
+		t.APPLYQTY      ,
+		t.APPLYPRICE    ,
+		t.APPLYSTATUS   ,
+		t.HANDLESTATUS  ,
+		t.APPLYTIME     ,
+		t.APPLYREMARK   ,
+		t.CONFIRMQTY    ,
+		t.CONFIRMPRICE  ,
+		t.CONFIRMUSERID ,
+		t.CONFIRMTIME   ,
+		t.CONFIRMREMARK ,
+		t.REFPRICE      ,
+		t.RETCODE       ,
+		t.MATCHUSERID   ,
+		t.MATCHACCOUNTID,
+		t.LADINGBILLID  ,
+		t.SUBNUM        
 	FROM WRTrade_BargainApply t
 	FROM WRTrade_BargainApply t
 	LEFT JOIN UserAccount ua ON t.MATCHUSERID = ua.userid
 	LEFT JOIN UserAccount ua ON t.MATCHUSERID = ua.userid
 	LEFT JOIN Wrtrade_Orderdetail d ON d.wrtradeorderid = t.wrtradeorderid
 	LEFT JOIN Wrtrade_Orderdetail d ON d.wrtradeorderid = t.wrtradeorderid
@@ -1559,6 +1584,9 @@ func (r *MyBargainApply) buildSql() string {
 		sqlId.And("t.MatchUserID", r.USERID)
 		sqlId.And("t.MatchUserID", r.USERID)
 	}
 	}
 	sqlId.AndEx("t.APPLYSTATUS", r.APPLYSTATUS, r.APPLYSTATUS > 0)
 	sqlId.AndEx("t.APPLYSTATUS", r.APPLYSTATUS, r.APPLYSTATUS > 0)
+	if r.WRTRADEORDERID != "" {
+		sqlId.FormatParam(" and t.WRTRADEORDERID = %v", r.WRTRADEORDERID)
+	}
 	sqlId.OrderByDesc("t.WRBARGAINID")
 	sqlId.OrderByDesc("t.WRBARGAINID")
 
 
 	sqlId.Page(r.Page, r.PageSize)
 	sqlId.Page(r.Page, r.PageSize)
@@ -1576,7 +1604,7 @@ func (r *MyBargainApply) GetDataByPage() (interface{}, error, int, int, int) {
 	return sData, err, r.Page, r.PageSize, total
 	return sData, err, r.Page, r.PageSize, total
 }
 }
 
 
-// MyDelistingApply 我的询价-出售
+// MyDelistingApply 询价-出售
 type MyDelistingApply struct {
 type MyDelistingApply struct {
 	ZSALLPROPERTIES           string `json:"zsallproperties" xorm:"ZSALLPROPERTIES"`                     //
 	ZSALLPROPERTIES           string `json:"zsallproperties" xorm:"ZSALLPROPERTIES"`                     //
 	ZSTABLEDISPLAY            string `json:"zstabledisplay" xorm:"ZSTABLEDISPLAY"`                       //
 	ZSTABLEDISPLAY            string `json:"zstabledisplay" xorm:"ZSTABLEDISPLAY"`                       //
@@ -1597,29 +1625,30 @@ type MyDelistingApply struct {
 	ZSCZCOLOR2TYPEDISPLAY     string `json:"zsczcolor2typedisplay" xorm:"ZSCZCOLOR2TYPEDISPLAY"`         //
 	ZSCZCOLOR2TYPEDISPLAY     string `json:"zsczcolor2typedisplay" xorm:"ZSCZCOLOR2TYPEDISPLAY"`         //
 	ZSCZCOLOR3TYPEDISPLAY     string `json:"zsczcolor3typedisplay" xorm:"ZSCZCOLOR3TYPEDISPLAY"`         //
 	ZSCZCOLOR3TYPEDISPLAY     string `json:"zsczcolor3typedisplay" xorm:"ZSCZCOLOR3TYPEDISPLAY"`         //
 	WAREHOUSEINFOSDISPLAY     string `json:"warehouseinfosdisplay" xorm:"WAREHOUSEINFOSDISPLAY"`         //
 	WAREHOUSEINFOSDISPLAY     string `json:"warehouseinfosdisplay" xorm:"WAREHOUSEINFOSDISPLAY"`         //
+	SIZEDISPLAY               string `json:"sizedisplay" xorm:"SIZEDISPLAY"`                             // 尺寸
 
 
 	GOODSNO string  `json:"goodsno" xorm:"GOODSNO"` // 商品编号
 	GOODSNO string  `json:"goodsno" xorm:"GOODSNO"` // 商品编号
 	PRICE   float64 `json:"price" xorm:"PRICE"`     // 价格
 	PRICE   float64 `json:"price" xorm:"PRICE"`     // 价格
 	WEIGHT  float64 `json:"weight" xorm:"WEIGHT"`   // 克拉重量
 	WEIGHT  float64 `json:"weight" xorm:"WEIGHT"`   // 克拉重量
 
 
-	SELLDELISTINGAPPLYID string    `json:"selldelistingapplyid" xorm:"SELLDELISTINGAPPLYID1"`             // [询价单号]卖摘牌申请ID(916+Unix秒时间戳(10位)+xxxxxx)
-	BUYWRTRADEORDERID    string    `json:"buywrtradeorderid" xorm:"BUYWRTRADEORDERID1"`                   // 买委托单ID
-	BUYUSERID            int64     `json:"buyuserid" xorm:"BUYUSERID"`                                    // 买方用户ID
-	SELLUSERID           int64     `json:"selluserid" xorm:"SELLUSERID" form:"userid" binding:"required"` // 卖方用户ID
-	SELLACCOUNTID        int64     `json:"sellaccountid" xorm:"SELLACCOUNTID"`                            // 卖方账户ID
-	WRSTANDARDID         int64     `json:"wrstandardid" xorm:"WRSTANDARDID"`                              // 现货商品ID
-	WRFACTORTYPEID       string    `json:"wrfactortypeid" xorm:"WRFACTORTYPEID1"`                         // 仓单要素类型ID
-	APPLYQTY             float64   `json:"applyqty" xorm:"APPLYQTY"`                                      // 申请数量
-	APPLYPRICE           float64   `json:"applyprice" xorm:"APPLYPRICE"`                                  // 申请价格
-	APPLYSTATUS          int32     `json:"applystatus" xorm:"APPLYSTATUS" form:"applystatus"`             // 申请状态 - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中
-	APPLYREMARK          string    `json:"applyremark" xorm:"APPLYREMARK"`                                // 申请备注
-	APPLYTIME            string    `json:"applytime" xorm:"APPLYTIME1"`                                   // 申请时间
-	AUDITREMARK          string    `json:"auditremark" xorm:"AUDITREMARK"`                                // 确认备注
-	SELLTRADEORDERID     string    `json:"selltradeorderid" xorm:"SELLTRADEORDERID1"`                     // 卖方委托ID(买方确认成交后更新)
-	AUDITTIME            time.Time `json:"audittime" xorm:"AUDITTIME"`                                    // 确认时间
-	LADINGBILLID         string    `json:"ladingbillid" xorm:"LADINGBILLID1"`                             // 卖方提单ID
-	SUBNUM               int32     `json:"subnum" xorm:"SUBNUM"`                                          // 卖方提单子单号
-	MARKETID             int32     `json:"marketid" xorm:"MARKETID"`                                      // 市场ID
+	SELLDELISTINGAPPLYID string    `json:"selldelistingapplyid" xorm:"SELLDELISTINGAPPLYID1"`                    // [询价单号]卖摘牌申请ID(916+Unix秒时间戳(10位)+xxxxxx)
+	BUYWRTRADEORDERID    string    `json:"buywrtradeorderid" xorm:"BUYWRTRADEORDERID1" form:"buywrtradeorderid"` // 买委托单ID
+	BUYUSERID            int64     `json:"buyuserid" xorm:"BUYUSERID"`                                           // 买方用户ID
+	SELLUSERID           int64     `json:"selluserid" xorm:"SELLUSERID" form:"userid" binding:"required"`        // 卖方用户ID
+	SELLACCOUNTID        int64     `json:"sellaccountid" xorm:"SELLACCOUNTID"`                                   // 卖方账户ID
+	WRSTANDARDID         int64     `json:"wrstandardid" xorm:"WRSTANDARDID"`                                     // 现货商品ID
+	WRFACTORTYPEID       string    `json:"wrfactortypeid" xorm:"WRFACTORTYPEID1"`                                // 仓单要素类型ID
+	APPLYQTY             float64   `json:"applyqty" xorm:"APPLYQTY"`                                             // 申请数量
+	APPLYPRICE           float64   `json:"applyprice" xorm:"APPLYPRICE"`                                         // 申请价格
+	APPLYSTATUS          int32     `json:"applystatus" xorm:"APPLYSTATUS" form:"applystatus"`                    // 申请状态 - 1:待确认 2:已确认 3:已拒绝 4:已撤销 5:系统撤销 6:处理失败 7:确认中
+	APPLYREMARK          string    `json:"applyremark" xorm:"APPLYREMARK"`                                       // 申请备注
+	APPLYTIME            string    `json:"applytime" xorm:"APPLYTIME1"`                                          // 申请时间
+	AUDITREMARK          string    `json:"auditremark" xorm:"AUDITREMARK"`                                       // 确认备注
+	SELLTRADEORDERID     string    `json:"selltradeorderid" xorm:"SELLTRADEORDERID1"`                            // 卖方委托ID(买方确认成交后更新)
+	AUDITTIME            time.Time `json:"audittime" xorm:"AUDITTIME"`                                           // 确认时间
+	LADINGBILLID         string    `json:"ladingbillid" xorm:"LADINGBILLID1"`                                    // 卖方提单ID
+	SUBNUM               int32     `json:"subnum" xorm:"SUBNUM"`                                                 // 卖方提单子单号
+	MARKETID             int32     `json:"marketid" xorm:"MARKETID"`                                             // 市场ID
 
 
 	TYPE   int              `json:"-" form:"type"` // 查询类型 - 0:我的询价 1:我订单的询价
 	TYPE   int              `json:"-" form:"type"` // 查询类型 - 0:我的询价 1:我订单的询价
 	PageEx `xorm:"extends"` // 页码信息
 	PageEx `xorm:"extends"` // 页码信息
@@ -1654,6 +1683,10 @@ func (r *MyDelistingApply) buildSql() string {
 		p.ZSCZCOLOR2TYPEDISPLAY    ,
 		p.ZSCZCOLOR2TYPEDISPLAY    ,
 		p.ZSCZCOLOR3TYPEDISPLAY    ,
 		p.ZSCZCOLOR3TYPEDISPLAY    ,
 		p.WAREHOUSEINFOSDISPLAY    ,
 		p.WAREHOUSEINFOSDISPLAY    ,
+		CASE WHEN
+			q.SIZE1 IS NOT NULL AND q.SIZE2 IS NOT NULL AND q.SIZE2 IS NOT NULL THEN q.SIZE1 || '*' || q.SIZE2 || '*' || q.SIZE3
+			ELSE q.SIZE1
+		END AS SIZEDISPLAY,
 		to_char(t.APPLYTIME, 'yyyy-mm-dd hh24:mi:ss') APPLYTIME1,
 		to_char(t.APPLYTIME, 'yyyy-mm-dd hh24:mi:ss') APPLYTIME1,
 		to_char(t.SELLDELISTINGAPPLYID) SELLDELISTINGAPPLYID1,
 		to_char(t.SELLDELISTINGAPPLYID) SELLDELISTINGAPPLYID1,
 		to_char(t.BUYWRTRADEORDERID) BUYWRTRADEORDERID1,  
 		to_char(t.BUYWRTRADEORDERID) BUYWRTRADEORDERID1,  
@@ -1685,6 +1718,9 @@ func (r *MyDelistingApply) buildSql() string {
 		sqlId.And("t.BuyUserID", r.SELLUSERID)
 		sqlId.And("t.BuyUserID", r.SELLUSERID)
 	}
 	}
 	sqlId.AndEx("t.APPLYSTATUS", r.APPLYSTATUS, r.APPLYSTATUS > 0)
 	sqlId.AndEx("t.APPLYSTATUS", r.APPLYSTATUS, r.APPLYSTATUS > 0)
+	if r.BUYWRTRADEORDERID != "" {
+		sqlId.FormatParam(" and t.BUYWRTRADEORDERID = %v", r.BUYWRTRADEORDERID)
+	}
 	sqlId.OrderByDesc("t.SELLDELISTINGAPPLYID")
 	sqlId.OrderByDesc("t.SELLDELISTINGAPPLYID")
 
 
 	sqlId.Page(r.Page, r.PageSize)
 	sqlId.Page(r.Page, r.PageSize)