|
|
@@ -9,10 +9,11 @@ package models
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
- "github.com/golang/protobuf/proto"
|
|
|
"mtp2_if/db"
|
|
|
"mtp2_if/pb"
|
|
|
"mtp2_if/utils"
|
|
|
+
|
|
|
+ "github.com/golang/protobuf/proto"
|
|
|
)
|
|
|
|
|
|
// TjmdQuoteGoods 掉期报价列表
|
|
|
@@ -30,6 +31,8 @@ type TjmdQuoteGoods struct {
|
|
|
|
|
|
UserType int32 `json:"-" form:"usertype"` // 用户类型
|
|
|
FtMarketIds string `json:"-" form:"marketids"` // 市场id, 格式 1,2,3
|
|
|
+
|
|
|
+ DECIMALPLACE int32 `json:"decimalplace" xorm:"'DECIMALPLACE'"` // 报价小数位
|
|
|
}
|
|
|
|
|
|
func (r *TjmdQuoteGoods) calc() {
|
|
|
@@ -41,6 +44,7 @@ func (r *TjmdQuoteGoods) buildSql() string {
|
|
|
select g1.goodsid,
|
|
|
g1.goodscode,
|
|
|
g1.goodsname,
|
|
|
+ g1.decimalplace,
|
|
|
g2.goodsid refgoodsid,
|
|
|
g2.goodscode refgoodscode,
|
|
|
g2.goodsname refgoodsname,
|