Explorar o código

THJPurchaseTradeDetailRsp:过滤状态-只取挂牌中的记录

gitmuchinfo %!s(int64=3) %!d(string=hai) anos
pai
achega
934aa6290c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      models/ferroalloy.go

+ 1 - 1
models/ferroalloy.go

@@ -1188,7 +1188,7 @@ func (r *THJPurchaseTradeDetailReq) GetData() (rsp *THJPurchaseTradeDetailRsp, e
 	inner join THJ_PurchaseTradeDetail td on t.wrtradedetailid = td.wrtradedetailid
 	inner join WR_PresaleInfo pi on t.presaleapplyid = pi.presaleapplyid
 	inner join wrstandard wr on wr.wrstandardid = td.wrstandardid
-	where td.wrstandardid = %v
+	where t.transferstatus = 1 and td.wrstandardid = %v
 	`, r.WRSTANDARDID)
 	if err = engine.SQL(sql).Find(&deliveryDates); err != nil {
 		return