Prechádzať zdrojové kódy

联调问题修改: 查商品要素定义项仓库id处理

zou.yingbin 4 rokov pred
rodič
commit
7ba9b9535d
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      models/wrTrade2.go

+ 1 - 1
models/wrTrade2.go

@@ -1801,7 +1801,7 @@ func (r *WrStandardFactoryItem) buildSql() string {
 	var sqlId utils.SQLVal = "select t.wrstandardid," +
 		"       dp.dgfactoryitemtypeid," +
 		"       dp.itemtypename," +
-		"       di.dgfactoryitemid," +
+		"       decode(dp.dgfactoryitemtypeid,1,di.warehouseid,di.dgfactoryitemid) dgfactoryitemid," +
 		"       di.dgfactoryitemvalue" +
 		"  from wrstandardfactoryitem t" +
 		" inner join wrstandard w" +