Quellcode durchsuchen

WrOrderQuote: 添加 “SPOTGOODSPRICE”

deng.yinping vor 3 Jahren
Ursprung
Commit
7446fcb8ae
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  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 " +