Bladeren bron

查履约计划增加交收月字段

zou.yingbin 4 jaren geleden
bovenliggende
commit
5d131b6bac
5 gewijzigde bestanden met toevoegingen van 337 en 2671 verwijderingen
  1. 80 873
      docs/docs.go
  2. 80 873
      docs/swagger.json
  3. 168 925
      docs/swagger.yaml
  4. 2 0
      models/wrTrade2.go
  5. 7 0
      mtpcache/goodsquote.go

File diff suppressed because it is too large
+ 80 - 873
docs/docs.go


File diff suppressed because it is too large
+ 80 - 873
docs/swagger.json


File diff suppressed because it is too large
+ 168 - 925
docs/swagger.yaml


+ 2 - 0
models/wrTrade2.go

@@ -1162,6 +1162,7 @@ type WrPerformancePlan struct {
 	STARTTIME                string  `json:"starttime"  xorm:"'STARTTIME'"`                                        // 开始时间
 	QTY                      float64 `json:"qty"  xorm:"QTY" form:"qty"`                                           // 履约数量
 	STEPTYPEID               int32   `json:"steptypeid"  xorm:"STEPTYPEID" form:"steptypeid"`                      // 履约步骤类型ID - 1:买方支付 2:卖方收款 3:买方自提 4:卖方发货 5:买方确认货 6:卖方发票 7:买方确认票 8:仓单转移 9:释放卖方冻结  10:货款溢短 11:生成合同[中江] 12:运费 90:确认支付 91. 确认放行 92买方支付(直接扣款)   用于-1模板“
+	ACTIVATEMONTH            string  `json:"activatemonth"  xorm:"'ACTIVATEMONTH'"`                                // 履约激活月 [无仓单的交易收月](yyyy-MM)
 	Wr2FactorType            `xorm:"extends"`
 
 	CURSTEPNAME  string `json:"curstepname"  xorm:"'CURSTEPNAME'"`   // 当前步骤名称
@@ -1240,6 +1241,7 @@ func (r *WrPerformancePlan) buildSql() string {
 		"       t.CONTRACTID," +
 		"       to_char(t.CURSTEPDEADLINE, 'yyyy-mm-dd hh24:mi:ss') CURSTEPDEADLINE," +
 		"       t.QTY," +
+		"       t.activatemonth," +
 		"       u1.accountname buyusername," +
 		"       u2.accountname sellusername," +
 		"       s.steptypename CURSTEPNAME," +

+ 7 - 0
mtpcache/goodsquote.go

@@ -6,6 +6,13 @@
 
 package mtpcache
 
+// GoodsQuote
+type GoodsQuote struct {
+	GOODSCODE string `json:"goodscode"` // 商品代码
+	LASTPRICE int64  `json:"lastprice"` // 最新价
+	PRESETTLE int64  `json:"presettle"` // 昨结价
+}
+
 // GetQuotePrice 获取最新行情, 如若没有, 则获取昨结
 func GetQuotePrice(goodsCode string) (int64, bool) {
 	return 0, false

Some files were not shown because too many files changed in this diff