zou.yingbin 4 anni fa
parent
commit
fcffb532d6
2 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 1 1
      models/ermcp3.go
  2. 2 0
      models/wrTrade2.go

+ 1 - 1
models/ermcp3.go

@@ -216,7 +216,7 @@ type ErmcpDeliveryGoodsDetail struct {
 
 func (r *ErmcpDeliveryGoodsDetail) addGmList(lst []Ermcp3Wrstandard) {
 	for i := range lst {
-		if lst[i].DELIVERYGOODSID == r.Data.DELIVERYGOODSID {
+		if lst[i].DELIVERYGOODSID == r.Data.DELIVERYGOODSID && lst[i].ISVALID == 1 {
 			r.GmList = append(r.GmList, lst[i])
 		}
 	}

+ 2 - 0
models/wrTrade2.go

@@ -2213,6 +2213,7 @@ func (r *WrScfContract) buildSql() string {
 		"     and e.enumdiccode = 'goodsunit')" +
 		"select to_char(t.scfcontractid) scfcontractid," +
 		"       t.scfcontracttype," +
+		"       t.marketid," +
 		"       t.lenderuserid," +
 		"       t.lenderamount," +
 		"       s.remainamount," +
@@ -2221,6 +2222,7 @@ func (r *WrScfContract) buildSql() string {
 		"       s.buybackwrpositionqty," +
 		"       s.remainwrpositionqty," +
 		"       s.closeinterest," +
+		"       s.totalinterest," +
 		"       s.interestdebt," +
 		"       s.startinterestday," +
 		"       s.lastcloseinterestday," +