解决不同商品的批号重复导致采购价获取错误的bug

This commit is contained in:
jishenghua
2024-04-07 15:20:57 +08:00
parent fc2125ae2c
commit 9e173e39b1
3 changed files with 6 additions and 3 deletions

View File

@@ -1003,6 +1003,7 @@
left join jsh_depot_item di on dh.id=di.header_id and ifnull(di.delete_flag,'0') !='1'
where 1=1
and ifnull(dh.delete_flag,'0') !='1'
and di.material_extend_id = #{materialExtendId}
and di.batch_number = #{batchNumber}
and dh.type = '入库'
</select>