|
|
@@ -336,7 +336,7 @@ type HybsMyBuyOrderDetail struct {
|
|
|
Vendorname string `json:"vendorname" xorm:"'VENDORNAME'"` // 供应商名称
|
|
|
|
|
|
MyBuyStatus int `json:"mybuystatus" xorm:"-"` // "我的订单"显示状态- 1:抢购中 2:求购中 3:已完成 4:已撤消 5:委托失败
|
|
|
- Orderamount float64 `json:"" xorm:"-"` // 委托金额
|
|
|
+ Orderamount float64 `json:"orderamount" xorm:"-"` // 委托金额
|
|
|
}
|
|
|
|
|
|
// GetHsbyBuyMyOrderDetails 获取“我的订单”数据(包括一二级市场)
|
|
|
@@ -592,6 +592,8 @@ type HsbyPreGoodsDetail struct {
|
|
|
|
|
|
Trademode int32 `json:"trademode" xorm:"'TRADEMODE'" binding:"required"` // 交易模式 - 10:做市 13:竞价 15:通道交易 16:挂牌点选 17:仓单贸易 18:期权 19:竞拍-降价式 20:竞拍-竞价式 21:竞拍-大宗式 22:受托竞价
|
|
|
|
|
|
+ Customername string `json:"customername" xorm:"'CUSTOMERNAME'"` // 发行单位
|
|
|
+
|
|
|
LotSize float64 `json:"lotsize" xorm:"-"` // 最小变动单位
|
|
|
}
|
|
|
|
|
|
@@ -614,13 +616,15 @@ func GetHsbyPreGoodsDetail(goodsID int) (*HsbyPreGoodsDetail, error) {
|
|
|
ENUMDICITEM.ENUMDICNAME CURRENCY, ENUMDICITEM.PARAM2 CURRENCYSIGN,
|
|
|
E1.ENUMDICNAME GOODUNIT,
|
|
|
HSBY_SUPPLIERINFO.VENDORNAME, HSBY_SUPPLIERINFO.VENDORPHONE, HSBY_SUPPLIERINFO.VENDORATTR,
|
|
|
- MARKET.TRADEMODE`).
|
|
|
+ MARKET.TRADEMODE,
|
|
|
+ USERINFO.CUSTOMERNAME`).
|
|
|
Join("INNER", "CPTRADE_PRESALEGOODSEX", "CPTRADE_PRESALEGOODSEX.GOODSID = GOODS.GOODSID").
|
|
|
Join("LEFT", "HSBY_GOODSEX", "HSBY_GOODSEX.GOODSID = CPTRADE_PRESALEGOODSEX.RELATEDGOODSID").
|
|
|
Join("LEFT", "ENUMDICITEM", "ENUMDICITEM.ENUMITEMNAME = GOODS.CURRENCYID and ENUMDICITEM.ENUMDICCODE = 'currency'").
|
|
|
Join("LEFT", "ENUMDICITEM E1", "E1.ENUMITEMNAME = GOODS.GOODUNITID and E1.ENUMDICCODE = 'goodsunit'").
|
|
|
Join("LEFT", "HSBY_SUPPLIERINFO", "HSBY_SUPPLIERINFO.VENDORID = HSBY_GOODSEX.VENDORID").
|
|
|
Join("LEFT", "MARKET", "MARKET.MARKETID = GOODS.MARKETID").
|
|
|
+ Join("LEFT", "USERINFO", "USERINFO.USERID = CPTRADE_PRESALEGOODSEX.USERID").
|
|
|
Where("GOODS.GOODSID = ?", goodsID)
|
|
|
if err := session.Find(&details); err != nil {
|
|
|
return nil, err
|
|
|
@@ -638,3 +642,7 @@ func GetHsbyPreGoodsDetail(goodsID int) (*HsbyPreGoodsDetail, error) {
|
|
|
|
|
|
return &preGoodsDetail, nil
|
|
|
}
|
|
|
+
|
|
|
+// type HsbyMyParcel struct {
|
|
|
+// Tradegoodspickup `xorm:"extends"`
|
|
|
+// }
|