zwl há 5 anos atrás
pai
commit
3bfc01b4a0
2 ficheiros alterados com 17 adições e 17 exclusões
  1. 15 15
      controllers/erms3/spotContract.go
  2. 2 2
      models/erms3.go

+ 15 - 15
controllers/erms3/spotContract.go

@@ -27,23 +27,23 @@ var SecondCount int = 0
 
 // SpotPriceOrder 定价明细
 type SpotPriceOrder struct {
-	Price             float64   `json:"price" binding:"required"`             // 价格
-	Qty               float64   `json:"qty" binding:"required"`               // 数量
-	Amount            float64   `json:"amount" binding:"required"`            // 金额
-	DeliveryStartDate time.Time `json:"deliverystartdate" binding:"required"` // 交收开始日期
-	DeliveryEndDate   time.Time `json:"deliveryendtdate" binding:"required"`  // 交收结束日期
+	Price             float64   `json:"price" binding:"required"`  // 价格
+	Qty               float64   `json:"qty" binding:"required"`    // 数量
+	Amount            float64   `json:"amount" binding:"required"` // 金额
+	DeliveryStartDate time.Time `json:"deliverystartdate"`         // 交收开始日期
+	DeliveryEndDate   time.Time `json:"deliveryendtdate"`          // 交收结束日期
 }
 
 // SpotPointOrder 点价明细
 type SpotPointOrder struct {
-	GoodsID           int32     `json:"goodsid" binding:"required"`           // 商品ID
-	GoodsName         string    `json:"goodsname"`                            // 商品名称
-	Qty               float64   `json:"qty" binding:"required"`               // 数量
-	Basic             float64   `json:"basic" binding:"required"`             // 基差
-	StartDate         time.Time `json:"startdate" binding:"required"`         // 点价开始日期
-	EndDate           time.Time `json:"enddate" binding:"required"`           // 点价结束日期
-	DeliveryStartDate time.Time `json:"deliverystartdate" binding:"required"` // 交收开始日期
-	DeliveryEndDate   time.Time `json:"deliveryendtdate" binding:"required"`  // 交收结束日期
+	GoodsID           int32     `json:"goodsid" binding:"required"` // 商品ID
+	GoodsName         string    `json:"goodsname"`                  // 商品名称
+	Qty               float64   `json:"qty" binding:"required"`     // 数量
+	Basic             float64   `json:"basic" binding:"required"`   // 基差
+	StartDate         time.Time `json:"startdate"`                  // 点价开始日期
+	EndDate           time.Time `json:"enddate"`                    // 点价结束日期
+	DeliveryStartDate time.Time `json:"deliverystartdate"`          // 交收开始日期
+	DeliveryEndDate   time.Time `json:"deliveryendtdate"`           // 交收结束日期
 }
 
 // SoptContractDetail 合同明细信息
@@ -93,8 +93,8 @@ type AddSpotContractApplyReq struct {
 	AccountID          int64                `json:"accountid" binding:"required"`         // 资金账户ID
 	CustomerUserID     int32                `json:"customeruserid" binding:"required"`    // 客户ID
 	CustomerAccountID  int64                `json:"customeraccountid" binding:"required"` // 客户资金账户ID
-	SignDate           time.Time            `json:"signdate" binding:"required"`          // 签订日期
-	LastDate           time.Time            `json:"lastdate" binding:"required"`          // 交货时间
+	SignDate           string               `json:"signdate" binding:"required"`          // 签订日期
+	LastDate           string               `json:"lastdate" binding:"required"`          // 交货时间
 	ContractAttachment string               `json:"contractattachment"`                   // 合同附件
 	OriMarginPayer     int32                `json:"orimarginpayer" binding:"required"`    // 初始保证金支付方 -1:买方 2:卖方
 	OriMargin          float64              `json:"orimargin" binding:"required"`         // 初始保证金

+ 2 - 2
models/erms3.go

@@ -79,8 +79,8 @@ type Erms3SpotContractApply struct {
 	AccountID          int64     `json:"accountid"  xorm:"'ACCOUNTID'"`                              // 资金账户ID
 	CustomerUserID     int32     `json:"customeruserid"  xorm:"'CUSTOMERUSERID'"`                    // 客户ID
 	CustomerAccountID  int64     `json:"customeraccountid"  xorm:"'CUSTOMERACCOUNTID'"`              // 客户资金账户ID
-	SignDate           time.Time `json:"signdate"  xorm:"'SIGNDATE'"`                                // 签订日期
-	LastDate           time.Time `json:"lastdate"  xorm:"'LASTDATE'"`                                // 交货时间
+	SignDate           string    `json:"signdate"  xorm:"'SIGNDATE'"`                                // 签订日期
+	LastDate           string    `json:"lastdate"  xorm:"'LASTDATE'"`                                // 交货时间
 	ContractAttachment string    `json:"contractattachment"  xorm:"'CONTRACTATTACHMENT'"`            // 合同附件
 	OriMarginPayer     int32     `json:"orimarginpayer"  xorm:"'ORIMARGINPAYER'"`                    // 初始保证金支付方 -1:买方 2:卖方
 	OriMargin          float64   `json:"orimargin"  xorm:"'ORIMARGIN'"`                              // 初始保证金