修改查询库存数量的方法

This commit is contained in:
qiankunpingtai
2019-06-11 14:44:18 +08:00
parent 99d856111e
commit 5f9e2055e6
3 changed files with 15 additions and 2 deletions

View File

@@ -618,6 +618,8 @@
jsh_depothead dh,jsh_depotitem di
where 1=1
and dh.id=di.HeaderId
and dh.tenant_id=#{tenantId}
and di.tenant_id=#{tenantId}
and di.MaterialId=#{materialId}
and ifnull(dh.delete_Flag,'0') !='1'
and ifnull(di.delete_Flag,'0') !='1') as curep