1.修复库存统计没有按照供应商ID分组导致数据被合并错误的问题

master
x_z 2 years ago
parent 528585b467
commit cee6945ed2

@ -26,14 +26,14 @@
auth_warehouse.name invName,
ip.deptCode,
ip.invCode,
as.name spaceName
s.name spaceName
from inv_product ip
inner join basic_udirel on ip.relIdFk = basic_udirel.id
inner join basic_products bp on basic_udirel.uuid = bp.uuid
left join basic_corp on ip.supId = basic_corp.erpId
left join auth_dept on auth_dept.code = ip.deptCode
left join auth_warehouse on auth_warehouse.code = ip.invCode
left join auth_space `as` on ip.invSpaceCode = `as`.code
left join auth_space s on ip.invSpaceCode = s.code
<where>
bp.diType = 1
<if test="cpmctymc != null and cpmctymc != ''">
@ -85,7 +85,7 @@
</foreach>
</if>
</where>
GROUP BY ip.relIdFk, ip.batchNo
GROUP BY ip.relIdFk, ip.batchNo, ip.supId
order by ip.updateTime desc
</select>

Loading…
Cancel
Save