Jelajahi Sumber

WrOrderQuote: 添加 “SPOTGOODSPRICE”

deng.yinping 3 tahun lalu
induk
melakukan
7446fcb8ae
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 2 2
      models/wrTrade2.go

+ 2 - 2
models/wrTrade2.go

@@ -147,8 +147,8 @@ func (r *WrOrderQuote) buildSqlFixedPrice() string {
 		"    on e.enumitemname = wg.unitid" +
 		"   and e.enumdiccode = 'goodsunit'" +
 		"  left join ermcp_spotgoodsprice sgp" +
-		"    on sgp.deliverygoodsid = dg.deliverygoodsid" +
-		"   and sgp.wrstandardid = w.warehouseid" +
+		"    on sgp.deliverygoodsid = w.deliverygoodsid" +
+		"   and sgp.wrstandardid = w.wrstandardid" +
 		"   and sgp.spotgoodsbrandid = 0" +
 		"   and sgp.CURRENCYID = 1" +
 		"  where 1=1 %v " +