浏览代码

/Ferroalloy/QueryTHJWrstandardDetail 过滤0报价数据

zhou.xiaoning 2 年之前
父节点
当前提交
ae7f932bef
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      models/ferroalloy.go

+ 1 - 1
models/ferroalloy.go

@@ -640,7 +640,7 @@ func (r *THJWrstandardDetailReq) GetTHJWrstandardDetail() (rsp *THJWrstandardDet
 			t.SPOTGOODSPRICE, 
 			t.TRADEDATE 
 		from ERMCP_SpotGoodsPriceLog t
-		where t.wrstandardid = %v
+		where t.SPOTGOODSPRICE <> 0 AND t.wrstandardid = %v
 		order by t.tradedate
 	`, r.WRSTANDARDID)
 	if err = engine.SQL(sql).Find(&spotGoodsPriceLogs); err != nil {