Parcourir la source

1、按需求增加出售大厅出参;
2、修改钻石搜索分页查询BUG;

zhou.xiaoning il y a 3 ans
Parent
commit
899e73c0f1
4 fichiers modifiés avec 512 ajouts et 3 suppressions
  1. 111 0
      docs/docs.go
  2. 111 0
      docs/swagger.json
  3. 74 0
      docs/swagger.yaml
  4. 216 3
      models/guangzuan.go

+ 111 - 0
docs/docs.go

@@ -29594,6 +29594,9 @@ const docTemplate = `{
                     "description": "撤销时间",
                     "type": "string"
                 },
+                "cerno": {
+                    "type": "string"
+                },
                 "chargealgorithm": {
                     "description": "手续费收取方式 1:比率  2:固定",
                     "type": "integer"
@@ -29610,6 +29613,9 @@ const docTemplate = `{
                     "description": "客户端委托时间",
                     "type": "string"
                 },
+                "cpcertno": {
+                    "type": "string"
+                },
                 "exchangerate": {
                     "description": "汇率[67]",
                     "type": "number"
@@ -29638,6 +29644,9 @@ const docTemplate = `{
                     "description": "商品编号",
                     "type": "string"
                 },
+                "imagepath": {
+                    "type": "string"
+                },
                 "isQueryDiamond": {
                     "description": "是否钻石查询",
                     "type": "boolean"
@@ -29646,6 +29655,12 @@ const docTemplate = `{
                     "description": "是否指定对手 - 0:不指定 1:指定好友(贸易圈) 2:指定对手    -   [挂牌]",
                     "type": "integer"
                 },
+                "kppath": {
+                    "type": "string"
+                },
+                "kpweight": {
+                    "type": "string"
+                },
                 "marginalgorithm": {
                     "description": "保证金方式 - 1:比率  2:固定",
                     "type": "integer"
@@ -29658,6 +29673,9 @@ const docTemplate = `{
                     "description": "市场ID",
                     "type": "integer"
                 },
+                "marketprice": {
+                    "type": "string"
+                },
                 "orderamount": {
                     "description": "挂牌金额[账户] [67]= OrderQty * FixedPrice * ExchangeRate /100",
                     "type": "number"
@@ -29678,6 +29696,9 @@ const docTemplate = `{
                     "description": "升贴水(浮动价时填写)    -   [挂牌]",
                     "type": "number"
                 },
+                "priceper": {
+                    "type": "string"
+                },
                 "relatedwrtradeorderid": {
                     "description": "关联委托单号(摘牌委托关联挂牌委托单ID)",
                     "type": "integer"
@@ -29686,6 +29707,9 @@ const docTemplate = `{
                     "description": "剩余重量",
                     "type": "number"
                 },
+                "remark": {
+                    "type": "string"
+                },
                 "retcode": {
                     "description": "错误代码",
                     "type": "integer"
@@ -29694,6 +29718,21 @@ const docTemplate = `{
                     "description": "卖方(查询字段-模糊查询)",
                     "type": "string"
                 },
+                "settingmaterial": {
+                    "type": "string"
+                },
+                "size1": {
+                    "type": "string"
+                },
+                "size2": {
+                    "type": "string"
+                },
+                "size3": {
+                    "type": "string"
+                },
+                "stonedesc": {
+                    "type": "string"
+                },
                 "totalqty": {
                     "description": "总重量",
                     "type": "number"
@@ -29734,6 +29773,9 @@ const docTemplate = `{
                     "description": "有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效",
                     "type": "integer"
                 },
+                "warehousenamedisplay": {
+                    "type": "string"
+                },
                 "wrbargainid": {
                     "description": "议价申请单ID",
                     "type": "integer"
@@ -29742,6 +29784,9 @@ const docTemplate = `{
                     "description": "仓单要素类型ID/商品ID(77)",
                     "type": "integer"
                 },
+                "wrpath": {
+                    "type": "string"
+                },
                 "wrpricetype": {
                     "description": "价格方式 - 1:固定价 2-浮动价  -   [挂牌]",
                     "type": "integer"
@@ -29774,9 +29819,75 @@ const docTemplate = `{
                     "description": "钻石分类 - 描述",
                     "type": "string"
                 },
+                "zscerttypedisplay": {
+                    "type": "string"
+                },
+                "zsclaritytype1display": {
+                    "type": "string"
+                },
+                "zsclaritytype2display": {
+                    "type": "string"
+                },
+                "zscolortype1display": {
+                    "type": "string"
+                },
+                "zscolortype2display": {
+                    "type": "string"
+                },
+                "zscrystaltype": {
+                    "type": "string"
+                },
+                "zscrystaltypedisplay": {
+                    "type": "string"
+                },
                 "zscurrencytype": {
                     "description": "货币类型 - 枚举“ZSCurrencyType”",
                     "type": "integer"
+                },
+                "zscurrencytypedisplay": {
+                    "type": "string"
+                },
+                "zscurrencytypedisplayunit": {
+                    "type": "string"
+                },
+                "zscuttype1display": {
+                    "type": "string"
+                },
+                "zscuttype2display": {
+                    "type": "string"
+                },
+                "zsczcolor1typedisplay": {
+                    "type": "string"
+                },
+                "zsczcolor2typedisplay": {
+                    "type": "string"
+                },
+                "zsczcolor3typedisplay": {
+                    "type": "string"
+                },
+                "zsfluorescencetype1display": {
+                    "type": "string"
+                },
+                "zsfluorescencetype2display": {
+                    "type": "string"
+                },
+                "zspolishtype1display": {
+                    "type": "string"
+                },
+                "zspolishtype2display": {
+                    "type": "string"
+                },
+                "zsshapetypedisplay": {
+                    "type": "string"
+                },
+                "zsstyletypedisplay": {
+                    "type": "string"
+                },
+                "zssymmetrytype1display": {
+                    "type": "string"
+                },
+                "zssymmetrytype2display": {
+                    "type": "string"
                 }
             }
         },

+ 111 - 0
docs/swagger.json

@@ -29585,6 +29585,9 @@
                     "description": "撤销时间",
                     "type": "string"
                 },
+                "cerno": {
+                    "type": "string"
+                },
                 "chargealgorithm": {
                     "description": "手续费收取方式 1:比率  2:固定",
                     "type": "integer"
@@ -29601,6 +29604,9 @@
                     "description": "客户端委托时间",
                     "type": "string"
                 },
+                "cpcertno": {
+                    "type": "string"
+                },
                 "exchangerate": {
                     "description": "汇率[67]",
                     "type": "number"
@@ -29629,6 +29635,9 @@
                     "description": "商品编号",
                     "type": "string"
                 },
+                "imagepath": {
+                    "type": "string"
+                },
                 "isQueryDiamond": {
                     "description": "是否钻石查询",
                     "type": "boolean"
@@ -29637,6 +29646,12 @@
                     "description": "是否指定对手 - 0:不指定 1:指定好友(贸易圈) 2:指定对手    -   [挂牌]",
                     "type": "integer"
                 },
+                "kppath": {
+                    "type": "string"
+                },
+                "kpweight": {
+                    "type": "string"
+                },
                 "marginalgorithm": {
                     "description": "保证金方式 - 1:比率  2:固定",
                     "type": "integer"
@@ -29649,6 +29664,9 @@
                     "description": "市场ID",
                     "type": "integer"
                 },
+                "marketprice": {
+                    "type": "string"
+                },
                 "orderamount": {
                     "description": "挂牌金额[账户] [67]= OrderQty * FixedPrice * ExchangeRate /100",
                     "type": "number"
@@ -29669,6 +29687,9 @@
                     "description": "升贴水(浮动价时填写)    -   [挂牌]",
                     "type": "number"
                 },
+                "priceper": {
+                    "type": "string"
+                },
                 "relatedwrtradeorderid": {
                     "description": "关联委托单号(摘牌委托关联挂牌委托单ID)",
                     "type": "integer"
@@ -29677,6 +29698,9 @@
                     "description": "剩余重量",
                     "type": "number"
                 },
+                "remark": {
+                    "type": "string"
+                },
                 "retcode": {
                     "description": "错误代码",
                     "type": "integer"
@@ -29685,6 +29709,21 @@
                     "description": "卖方(查询字段-模糊查询)",
                     "type": "string"
                 },
+                "settingmaterial": {
+                    "type": "string"
+                },
+                "size1": {
+                    "type": "string"
+                },
+                "size2": {
+                    "type": "string"
+                },
+                "size3": {
+                    "type": "string"
+                },
+                "stonedesc": {
+                    "type": "string"
+                },
                 "totalqty": {
                     "description": "总重量",
                     "type": "number"
@@ -29725,6 +29764,9 @@
                     "description": "有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效",
                     "type": "integer"
                 },
+                "warehousenamedisplay": {
+                    "type": "string"
+                },
                 "wrbargainid": {
                     "description": "议价申请单ID",
                     "type": "integer"
@@ -29733,6 +29775,9 @@
                     "description": "仓单要素类型ID/商品ID(77)",
                     "type": "integer"
                 },
+                "wrpath": {
+                    "type": "string"
+                },
                 "wrpricetype": {
                     "description": "价格方式 - 1:固定价 2-浮动价  -   [挂牌]",
                     "type": "integer"
@@ -29765,9 +29810,75 @@
                     "description": "钻石分类 - 描述",
                     "type": "string"
                 },
+                "zscerttypedisplay": {
+                    "type": "string"
+                },
+                "zsclaritytype1display": {
+                    "type": "string"
+                },
+                "zsclaritytype2display": {
+                    "type": "string"
+                },
+                "zscolortype1display": {
+                    "type": "string"
+                },
+                "zscolortype2display": {
+                    "type": "string"
+                },
+                "zscrystaltype": {
+                    "type": "string"
+                },
+                "zscrystaltypedisplay": {
+                    "type": "string"
+                },
                 "zscurrencytype": {
                     "description": "货币类型 - 枚举“ZSCurrencyType”",
                     "type": "integer"
+                },
+                "zscurrencytypedisplay": {
+                    "type": "string"
+                },
+                "zscurrencytypedisplayunit": {
+                    "type": "string"
+                },
+                "zscuttype1display": {
+                    "type": "string"
+                },
+                "zscuttype2display": {
+                    "type": "string"
+                },
+                "zsczcolor1typedisplay": {
+                    "type": "string"
+                },
+                "zsczcolor2typedisplay": {
+                    "type": "string"
+                },
+                "zsczcolor3typedisplay": {
+                    "type": "string"
+                },
+                "zsfluorescencetype1display": {
+                    "type": "string"
+                },
+                "zsfluorescencetype2display": {
+                    "type": "string"
+                },
+                "zspolishtype1display": {
+                    "type": "string"
+                },
+                "zspolishtype2display": {
+                    "type": "string"
+                },
+                "zsshapetypedisplay": {
+                    "type": "string"
+                },
+                "zsstyletypedisplay": {
+                    "type": "string"
+                },
+                "zssymmetrytype1display": {
+                    "type": "string"
+                },
+                "zssymmetrytype2display": {
+                    "type": "string"
                 }
             }
         },

+ 74 - 0
docs/swagger.yaml

@@ -12131,6 +12131,8 @@ definitions:
       canceltime:
         description: 撤销时间
         type: string
+      cerno:
+        type: string
       chargealgorithm:
         description: 手续费收取方式 1:比率  2:固定
         type: integer
@@ -12143,6 +12145,8 @@ definitions:
       clientordertime:
         description: 客户端委托时间
         type: string
+      cpcertno:
+        type: string
       exchangerate:
         description: 汇率[67]
         type: number
@@ -12164,12 +12168,18 @@ definitions:
       goodsno:
         description: 商品编号
         type: string
+      imagepath:
+        type: string
       isQueryDiamond:
         description: 是否钻石查询
         type: boolean
       isspecified:
         description: 是否指定对手 - 0:不指定 1:指定好友(贸易圈) 2:指定对手    -   [挂牌]
         type: integer
+      kppath:
+        type: string
+      kpweight:
+        type: string
       marginalgorithm:
         description: 保证金方式 - 1:比率  2:固定
         type: integer
@@ -12179,6 +12189,8 @@ definitions:
       marketid:
         description: 市场ID
         type: integer
+      marketprice:
+        type: string
       orderamount:
         description: 挂牌金额[账户] [67]= OrderQty * FixedPrice * ExchangeRate /100
         type: number
@@ -12194,18 +12206,32 @@ definitions:
       pricemove:
         description: 升贴水(浮动价时填写)    -   [挂牌]
         type: number
+      priceper:
+        type: string
       relatedwrtradeorderid:
         description: 关联委托单号(摘牌委托关联挂牌委托单ID)
         type: integer
       remainqty:
         description: 剩余重量
         type: number
+      remark:
+        type: string
       retcode:
         description: 错误代码
         type: integer
       sellusername:
         description: 卖方(查询字段-模糊查询)
         type: string
+      settingmaterial:
+        type: string
+      size1:
+        type: string
+      size2:
+        type: string
+      size3:
+        type: string
+      stonedesc:
+        type: string
       totalqty:
         description: 总重量
         type: number
@@ -12237,12 +12263,16 @@ definitions:
       validtype:
         description: 有效类型 - 1当日有效 2本周有效 3指定日期有效 4一直有效
         type: integer
+      warehousenamedisplay:
+        type: string
       wrbargainid:
         description: 议价申请单ID
         type: integer
       wrfactortypeid:
         description: 仓单要素类型ID/商品ID(77)
         type: integer
+      wrpath:
+        type: string
       wrpricetype:
         description: 价格方式 - 1:固定价 2-浮动价  -   [挂牌]
         type: integer
@@ -12267,9 +12297,53 @@ definitions:
       zscategorydisplay:
         description: 钻石分类 - 描述
         type: string
+      zscerttypedisplay:
+        type: string
+      zsclaritytype1display:
+        type: string
+      zsclaritytype2display:
+        type: string
+      zscolortype1display:
+        type: string
+      zscolortype2display:
+        type: string
+      zscrystaltype:
+        type: string
+      zscrystaltypedisplay:
+        type: string
       zscurrencytype:
         description: 货币类型 - 枚举“ZSCurrencyType”
         type: integer
+      zscurrencytypedisplay:
+        type: string
+      zscurrencytypedisplayunit:
+        type: string
+      zscuttype1display:
+        type: string
+      zscuttype2display:
+        type: string
+      zsczcolor1typedisplay:
+        type: string
+      zsczcolor2typedisplay:
+        type: string
+      zsczcolor3typedisplay:
+        type: string
+      zsfluorescencetype1display:
+        type: string
+      zsfluorescencetype2display:
+        type: string
+      zspolishtype1display:
+        type: string
+      zspolishtype2display:
+        type: string
+      zsshapetypedisplay:
+        type: string
+      zsstyletypedisplay:
+        type: string
+      zssymmetrytype1display:
+        type: string
+      zssymmetrytype2display:
+        type: string
     type: object
   models.SellOrderQueryReq:
     properties:

+ 216 - 3
models/guangzuan.go

@@ -344,6 +344,44 @@ type SellOrder struct {
 	SELLUSERNAME      string `json:"sellusername" xorm:"SELLUSERNAME" form:"sellusername"` // 卖方(查询字段-模糊查询)
 	ZSCATEGORYDISPLAY string `json:"zscategorydisplay" xorm:"ZSCATEGORYDISPLAY"`           // 钻石分类 - 描述
 
+	ZSCURRENCYTYPEDISPLAY      string `json:"zscurrencytypedisplay" xorm:"ZSCURRENCYTYPEDISPLAY"`           //
+	ZSCURRENCYTYPEDISPLAYUNIT  string `json:"zscurrencytypedisplayunit" xorm:"ZSCURRENCYTYPEDISPLAYUNIT"`   //
+	WAREHOUSENAMEDISPLAY       string `json:"warehousenamedisplay" xorm:"WAREHOUSENAMEDISPLAY"`             //
+	ZSSHAPETYPEDISPLAY         string `json:"zsshapetypedisplay" xorm:"ZSSHAPETYPEDISPLAY"`                 //
+	ZSCOLORTYPE1DISPLAY        string `json:"zscolortype1display" xorm:"ZSCOLORTYPE1DISPLAY"`               //
+	ZSCOLORTYPE2DISPLAY        string `json:"zscolortype2display" xorm:"ZSCOLORTYPE2DISPLAY"`               //
+	ZSCLARITYTYPE1DISPLAY      string `json:"zsclaritytype1display" xorm:"ZSCLARITYTYPE1DISPLAY"`           //
+	ZSCLARITYTYPE2DISPLAY      string `json:"zsclaritytype2display" xorm:"ZSCLARITYTYPE2DISPLAY"`           //
+	ZSCUTTYPE1DISPLAY          string `json:"zscuttype1display" xorm:"ZSCUTTYPE1DISPLAY"`                   //
+	ZSCUTTYPE2DISPLAY          string `json:"zscuttype2display" xorm:"ZSCUTTYPE2DISPLAY"`                   //
+	ZSSYMMETRYTYPE1DISPLAY     string `json:"zssymmetrytype1display" xorm:"ZSSYMMETRYTYPE1DISPLAY"`         //
+	ZSSYMMETRYTYPE2DISPLAY     string `json:"zssymmetrytype2display" xorm:"ZSSYMMETRYTYPE2DISPLAY"`         //
+	ZSPOLISHTYPE1DISPLAY       string `json:"zspolishtype1display" xorm:"ZSPOLISHTYPE1DISPLAY"`             //
+	ZSPOLISHTYPE2DISPLAY       string `json:"zspolishtype2display" xorm:"ZSPOLISHTYPE2DISPLAY"`             //
+	ZSFLUORESCENCETYPE1DISPLAY string `json:"zsfluorescencetype1display" xorm:"ZSFLUORESCENCETYPE1DISPLAY"` //
+	ZSFLUORESCENCETYPE2DISPLAY string `json:"zsfluorescencetype2display" xorm:"ZSFLUORESCENCETYPE2DISPLAY"` //
+	ZSCERTTYPEDISPLAY          string `json:"zscerttypedisplay" xorm:"ZSCERTTYPEDISPLAY"`                   //
+	ZSCRYSTALTYPEDISPLAY       string `json:"zscrystaltypedisplay" xorm:"ZSCRYSTALTYPEDISPLAY"`             //
+	ZSSTYLETYPEDISPLAY         string `json:"zsstyletypedisplay" xorm:"ZSSTYLETYPEDISPLAY"`                 //
+	ZSCZCOLOR1TYPEDISPLAY      string `json:"zsczcolor1typedisplay" xorm:"ZSCZCOLOR1TYPEDISPLAY"`           //
+	ZSCZCOLOR2TYPEDISPLAY      string `json:"zsczcolor2typedisplay" xorm:"ZSCZCOLOR2TYPEDISPLAY"`           //
+	ZSCZCOLOR3TYPEDISPLAY      string `json:"zsczcolor3typedisplay" xorm:"ZSCZCOLOR3TYPEDISPLAY"`           //
+	MARKETPRICE                string `json:"marketprice" xorm:"MARKETPRICE"`                               //
+	IMAGEPATH                  string `json:"imagepath" xorm:"IMAGEPATH"`                                   //
+	WRPATH                     string `json:"wrpath" xorm:"WRPATH"`                                         //
+	REMARK                     string `json:"remark" xorm:"REMARK"`                                         //
+	PRICEPER                   string `json:"priceper" xorm:"PRICEPER"`                                     //
+	SIZE1                      string `json:"size1" xorm:"SIZE1"`                                           //
+	SIZE2                      string `json:"size2" xorm:"SIZE2"`                                           //
+	SIZE3                      string `json:"size3" xorm:"SIZE3"`                                           //
+	CERNO                      string `json:"cerno" xorm:"CERNO"`                                           //
+	ZSCRYSTALTYPE              string `json:"zscrystaltype" xorm:"ZSCRYSTALTYPE"`                           //
+	CPCERTNO                   string `json:"cpcertno" xorm:"CPCERTNO"`                                     //
+	KPWEIGHT                   string `json:"kpweight" xorm:"KPWEIGHT"`                                     //
+	KPPATH                     string `json:"kppath" xorm:"KPPATH"`                                         //
+	STONEDESC                  string `json:"stonedesc" xorm:"STONEDESC"`                                   //
+	SETTINGMATERIAL            string `json:"settingmaterial" xorm:"SETTINGMATERIAL"`                       //
+
 	WRSTANDARDID   int64  `json:"wrstandardid" xorm:"WRSTANDARDID"`     // 现货商品ID
 	USERID         int64  `json:"userid" xorm:"USERID"`                 // 用户ID
 	ZSCATEGORY     int32  `json:"zscategory" xorm:"ZSCATEGORY"`         // 钻石分类 - 枚举”ZSCategory“
@@ -456,9 +494,96 @@ func (r *SellOrder) buildSql() string {
 		q.ZSCATEGORY,
 		q.ZSCURRENCYTYPE,
 		q.GOODSNO, 
+		q.ZSCURRENCYTYPEDISPLAY     ,
+		q.ZSCURRENCYTYPEDISPLAYUNIT ,
+		q.WAREHOUSENAMEDISPLAY      ,
+		q.ZSSHAPETYPEDISPLAY        ,
+		q.ZSCOLORTYPE1DISPLAY       ,
+		q.ZSCOLORTYPE2DISPLAY       ,
+		q.ZSCLARITYTYPE1DISPLAY     ,
+		q.ZSCLARITYTYPE2DISPLAY     ,
+		q.ZSCUTTYPE1DISPLAY         ,
+		q.ZSCUTTYPE2DISPLAY         ,
+		q.ZSSYMMETRYTYPE1DISPLAY    ,
+		q.ZSSYMMETRYTYPE2DISPLAY    ,
+		q.ZSPOLISHTYPE1DISPLAY      ,
+		q.ZSPOLISHTYPE2DISPLAY      ,
+		q.ZSFLUORESCENCETYPE1DISPLAY,
+		q.ZSFLUORESCENCETYPE2DISPLAY,
+		q.ZSCERTTYPEDISPLAY         ,
+		q.ZSCRYSTALTYPEDISPLAY      ,
+		q.ZSSTYLETYPEDISPLAY        ,
+		q.ZSCZCOLOR1TYPEDISPLAY     ,
+		q.ZSCZCOLOR2TYPEDISPLAY     ,
+		q.ZSCZCOLOR3TYPEDISPLAY     ,
+		q.MARKETPRICE               ,
+		q.IMAGEPATH                 ,
+		q.WRPATH                    ,
+		q.REMARK                    ,
+		q.PRICEPER                  ,
+		q.SIZE1                     ,
+		q.SIZE2                     ,
+		q.SIZE3                     ,
+		q.CERNO                     ,
+		q.ZSCRYSTALTYPE             ,
+		q.CPCERTNO                  ,
+		q.KPWEIGHT                  ,
+		q.KPPATH                    ,
+		q.STONEDESC                 ,
+		q.SETTINGMATERIAL           ,
 		to_char(t.ORDERTIME, 'yyyy-mm-dd hh24:mi:ss') ORDERTIME1,
 		to_char(t.WRTRADEORDERID) WRTRADEORDERID1,
-		t.*
+		t.WRTRADEORDERID       ,
+		t.TRADEDATE            ,
+		t.WRTRADETYPE          ,
+		t.BUYORSELL            ,
+		t.RELATEDWRTRADEORDERID,
+		t.MARKETID             ,
+		t.ACCOUNTID            ,
+		t.WRFACTORTYPEID       ,
+		t.ORDERQTY             ,
+		t.TRADEQTY             ,
+		t.CANCELQTY            ,
+		t.WRPRICETYPE          ,
+		t.FIXEDPRICE           ,
+		t.ISSPECIFIED          ,
+		t.PRICEFACTOR          ,
+		t.PRICEMOVE            ,
+		t.FIRSTRATIO           ,
+		t.WRTRANSFERUSERID     ,
+		t.TRADEPRICE           ,
+		t.FREEZEFIRSTAMOUNT    ,
+		t.UNFREEZEFIRSTAMOUNT  ,
+		t.PERFORMANCETEMPLATEID,
+		t.VALIDTYPE            ,
+		t.VALIDTIME            ,
+		t.ORDERTIME            ,
+		t.CANCELTIME           ,
+		t.WRTRADEORDERSTATUS   ,
+		t.CLIENTTICKET         ,
+		t.ORDERSRC             ,
+		t.CLIENTTYPE           ,
+		t.UUID                 ,
+		t.CLIENTORDERTIME      ,
+		t.RETCODE              ,
+		t.OPERATORID           ,
+		t.PRICEDISPLAYMODE     ,
+		t.FREEZEMARGIN         ,
+		t.UNFREEZEMARGIN       ,
+		t.FREEZECHARGE         ,
+		t.UNFREEZECHARGE       ,
+		t.MARGINALGORITHM      ,
+		t.MARGINVALUE          ,
+		t.CHARGEALGORITHM      ,
+		t.CHARGEALGORITHMVALUE ,
+		t.CHARGEALGORITHMVALUE2,
+		t.CANBARGAIN           ,
+		t.WRBARGAINID          ,
+		t.ATTACHMENT1          ,
+		t.ATTACHMENT2          ,
+		t.APPLYID              ,
+		t.EXCHANGERATE         ,
+		t.ORDERAMOUNT          
 	FROM WRTrade_OrderDetail t
 	INNER JOIN View_GZ_WRStandard_Ex_Query q ON t.wrstandardid = q.wrstandardid
 	WHERE t.marketid=67201 AND t.BuyOrSell = 1 AND t.WRTradeOrderStatus IN (3,7) 
@@ -486,8 +611,96 @@ func (r *SellOrder) buildQueryDiamond() string {
 		q.ZSCATEGORY,
 		q.ZSCURRENCYTYPE,
 		q.GOODSNO, 
-		to_char(t.ORDERTIME, 'yyyy-mm-dd hh24:mi:ss') ORDERTIME,
-		t.* 
+		q.ZSCURRENCYTYPEDISPLAY     ,
+		q.ZSCURRENCYTYPEDISPLAYUNIT ,
+		q.WAREHOUSENAMEDISPLAY      ,
+		q.ZSSHAPETYPEDISPLAY        ,
+		q.ZSCOLORTYPE1DISPLAY       ,
+		q.ZSCOLORTYPE2DISPLAY       ,
+		q.ZSCLARITYTYPE1DISPLAY     ,
+		q.ZSCLARITYTYPE2DISPLAY     ,
+		q.ZSCUTTYPE1DISPLAY         ,
+		q.ZSCUTTYPE2DISPLAY         ,
+		q.ZSSYMMETRYTYPE1DISPLAY    ,
+		q.ZSSYMMETRYTYPE2DISPLAY    ,
+		q.ZSPOLISHTYPE1DISPLAY      ,
+		q.ZSPOLISHTYPE2DISPLAY      ,
+		q.ZSFLUORESCENCETYPE1DISPLAY,
+		q.ZSFLUORESCENCETYPE2DISPLAY,
+		q.ZSCERTTYPEDISPLAY         ,
+		q.ZSCRYSTALTYPEDISPLAY      ,
+		q.ZSSTYLETYPEDISPLAY        ,
+		q.ZSCZCOLOR1TYPEDISPLAY     ,
+		q.ZSCZCOLOR2TYPEDISPLAY     ,
+		q.ZSCZCOLOR3TYPEDISPLAY     ,
+		q.MARKETPRICE               ,
+		q.IMAGEPATH                 ,
+		q.WRPATH                    ,
+		q.REMARK                    ,
+		q.PRICEPER                  ,
+		q.SIZE1                     ,
+		q.SIZE2                     ,
+		q.SIZE3                     ,
+		q.CERNO                     ,
+		q.ZSCRYSTALTYPE             ,
+		q.CPCERTNO                  ,
+		q.KPWEIGHT                  ,
+		q.KPPATH                    ,
+		q.STONEDESC                 ,
+		q.SETTINGMATERIAL           ,
+		to_char(t.ORDERTIME, 'yyyy-mm-dd hh24:mi:ss') ORDERTIME1,
+		to_char(t.WRTRADEORDERID) WRTRADEORDERID1,
+		t.WRTRADEORDERID       ,
+		t.TRADEDATE            ,
+		t.WRTRADETYPE          ,
+		t.BUYORSELL            ,
+		t.RELATEDWRTRADEORDERID,
+		t.MARKETID             ,
+		t.ACCOUNTID            ,
+		t.WRFACTORTYPEID       ,
+		t.ORDERQTY             ,
+		t.TRADEQTY             ,
+		t.CANCELQTY            ,
+		t.WRPRICETYPE          ,
+		t.FIXEDPRICE           ,
+		t.ISSPECIFIED          ,
+		t.PRICEFACTOR          ,
+		t.PRICEMOVE            ,
+		t.FIRSTRATIO           ,
+		t.WRTRANSFERUSERID     ,
+		t.TRADEPRICE           ,
+		t.FREEZEFIRSTAMOUNT    ,
+		t.UNFREEZEFIRSTAMOUNT  ,
+		t.PERFORMANCETEMPLATEID,
+		t.VALIDTYPE            ,
+		t.VALIDTIME            ,
+		t.ORDERTIME            ,
+		t.CANCELTIME           ,
+		t.WRTRADEORDERSTATUS   ,
+		t.CLIENTTICKET         ,
+		t.ORDERSRC             ,
+		t.CLIENTTYPE           ,
+		t.UUID                 ,
+		t.CLIENTORDERTIME      ,
+		t.RETCODE              ,
+		t.OPERATORID           ,
+		t.PRICEDISPLAYMODE     ,
+		t.FREEZEMARGIN         ,
+		t.UNFREEZEMARGIN       ,
+		t.FREEZECHARGE         ,
+		t.UNFREEZECHARGE       ,
+		t.MARGINALGORITHM      ,
+		t.MARGINVALUE          ,
+		t.CHARGEALGORITHM      ,
+		t.CHARGEALGORITHMVALUE ,
+		t.CHARGEALGORITHMVALUE2,
+		t.CANBARGAIN           ,
+		t.WRBARGAINID          ,
+		t.ATTACHMENT1          ,
+		t.ATTACHMENT2          ,
+		t.APPLYID              ,
+		t.EXCHANGERATE         ,
+		t.ORDERAMOUNT 
 	FROM WRTrade_OrderDetail t
 	INNER JOIN View_GZ_WRStandard_Ex_Query q ON t.wrstandardid = q.wrstandardid
 	WHERE t.marketid=67201 AND t.BuyOrSell = 1 AND t.WRTradeOrderStatus IN (3,7)