Explorar el Código

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

zou.yingbin hace 4 años
padre
commit
7ba9b9535d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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" +