浏览代码

修改BUG

zhou.xiaoning 3 年之前
父节点
当前提交
eea6bd5a8b
共有 4 个文件被更改,包括 21 次插入5 次删除
  1. 1 1
      docs/docs.go
  2. 1 1
      docs/swagger.json
  3. 1 1
      docs/swagger.yaml
  4. 18 2
      models/guangzuan.go

+ 1 - 1
docs/docs.go

@@ -30848,7 +30848,7 @@ const docTemplate = `{
                 },
                 "performanceplanid": {
                     "description": "履约计划ID/合同ID",
-                    "type": "integer"
+                    "type": "string"
                 },
                 "price": {
                     "description": "价格",

+ 1 - 1
docs/swagger.json

@@ -30839,7 +30839,7 @@
                 },
                 "performanceplanid": {
                     "description": "履约计划ID/合同ID",
-                    "type": "integer"
+                    "type": "string"
                 },
                 "price": {
                     "description": "价格",

+ 1 - 1
docs/swagger.yaml

@@ -11065,7 +11065,7 @@ definitions:
         type: number
       performanceplanid:
         description: 履约计划ID/合同ID
-        type: integer
+        type: string
       price:
         description: 价格
         type: number

+ 18 - 2
models/guangzuan.go

@@ -1337,7 +1337,7 @@ type MyDeListing struct {
 	TRADEPRICE        float64 `json:"tradeprice" xorm:"TRADEPRICE"`                                   // 成交价格
 	TRADEQTY          int64   `json:"-" xorm:"TRADEQTY"`                                              // 成交数量
 	TRADEAMOUNT       float64 `json:"tradeamount" xorm:"TRADEAMOUNT"`                                 // 成交金额
-	PERFORMANCEPLANID int64   `json:"performanceplanid" xorm:"PERFORMANCEPLANID"`                     // 履约计划ID/合同ID
+	PERFORMANCEPLANID string  `json:"performanceplanid" xorm:"PERFORMANCEPLANID1"`                    // 履约计划ID/合同ID
 	EXCHANGERATE      float64 `json:"exchangerate" xorm:"EXCHANGERATE"`                               // 汇率
 	BUYCHARGEVALUE    float64 `json:"buychargevalue" xorm:"BUYCHARGEVALUE"`                           // 买方手续费
 	SELLCHARGEVALUE   float64 `json:"sellchargevalue" xorm:"SELLCHARGEVALUE"`                         // 卖方手续费
@@ -1404,7 +1404,23 @@ func (r *MyDeListing) buildSql() string {
 		(t.TRADEQTY / 100) QTY,
 		to_char(t.TRADETIME, 'yyyy-mm-dd hh24:mi:ss') TRADETIME1,
 		to_char(t.WRTRADEDETAILID) WRTRADEDETAILID1,
-		t.* 
+		t.TRADEDATE        ,
+		t.MARKETID         ,
+		t.WRFACTORTYPEID   ,
+		t.DELIVERYGOODSID  ,
+		t.WRSTANDARDID     ,
+		t.BUYUSERID        ,
+		t.BUYACCOUNTID     ,
+		t.SELLUSERID       ,
+		t.SELLACCOUNTID    ,
+		t.TRADEPRICE       ,
+		t.TRADEQTY         ,
+		t.TRADEAMOUNT      ,
+		to_char(t.PERFORMANCEPLANID) PERFORMANCEPLANID1,
+		t.EXCHANGERATE     ,
+		t.BUYCHARGEVALUE   ,
+		t.SELLCHARGEVALUE  ,
+		t.ORITRADEAMOUNT   
 	FROM WRTrade_TradeQuote t
 	INNER JOIN View_GZ_WRStandard_Ex_Query q ON t.wrstandardid = q.wrstandardid
 	LEFT JOIN UserAccount ua1 ON t.BuyUserID = ua1.userid