浏览代码

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

zou.yingbin 4 年之前
父节点
当前提交
7ba9b9535d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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" +