|
|
@@ -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" +
|