Explorar el Código

处理接口 Presale/QueryPresaleAuctions 失真问题

zhou.xiaoning hace 2 años
padre
commit
c8380a8536
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      models/presale.go

+ 2 - 2
models/presale.go

@@ -9,7 +9,7 @@ import (
 // PresaleAuction 预售竞拍
 type PresaleAuction struct {
 	GOODSID                 int64     `json:"goodsid" xorm:"GOODSID"`                                               // 商品ID
-	APPLYID                 int64     `json:"applyid" xorm:"APPLYID"`                                               // 关联申请ID
+	APPLYID                 string    `json:"applyid" xorm:"APPLYID"`                                               // 关联申请ID
 	USERID                  int64     `json:"userid" xorm:"USERID"`                                                 // 卖方用户ID
 	ACCOUNTID               int64     `json:"accountid" xorm:"ACCOUNTID"`                                           // 卖方账户ID
 	RELATEDGOODSID          int64     `json:"relatedgoodsid" xorm:"RELATEDGOODSID"`                                 // 关联交易合约ID
@@ -57,7 +57,7 @@ func (r *PresaleAuction) buildSql() string {
 	var sqlId utils.SQLVal = `
 	select
 		t.GOODSID,
-		t.APPLYID,
+		to_char(t.APPLYID) APPLYID,
 		t.USERID,
 		t.ACCOUNTID,
 		t.RELATEDGOODSID,