Browse Source

2025-10-28

生产退仓pda优化
master
fengyuan_yang 3 months ago
parent
commit
31a6c04362
  1. 6
      src/main/resources/mapper/productionReturn/ProductionReturnMapper.xml

6
src/main/resources/mapper/productionReturn/ProductionReturnMapper.xml

@ -11,7 +11,8 @@
sh.OrderNo as inboundNo, sh.OrderNo as inboundNo,
sh.PartNo as partNo, sh.PartNo as partNo,
p.PartDescription as partDesc, p.PartDescription as partDesc,
sh.batch_no as batchNo
sh.batch_no as batchNo,
sh.LotSize as lotSize -- 订单数量
from ShopOrder as sh from ShopOrder as sh
left join part as p on sh.site = p.site and sh.bu_no = p.bu_no and sh.PartNo = p.PartNo left join part as p on sh.site = p.site and sh.bu_no = p.bu_no and sh.PartNo = p.PartNo
where sh.site = #{site} and sh.bu_no in (select bu_no from AccessBu where username = #{userName}) where sh.site = #{site} and sh.bu_no in (select bu_no from AccessBu where username = #{userName})
@ -35,7 +36,8 @@
sh.OrderNo as inboundNo, sh.OrderNo as inboundNo,
sh.PartNo as partNo, sh.PartNo as partNo,
p.PartDescription as partDesc, p.PartDescription as partDesc,
sh.batch_no as batchNo
sh.batch_no as batchNo,
sh.LotSize as lotSize -- 订单数量
from ShopOrder as sh from ShopOrder as sh
left join part as p on sh.site = p.site and sh.bu_no = p.bu_no and sh.PartNo = p.PartNo left join part as p on sh.site = p.site and sh.bu_no = p.bu_no and sh.PartNo = p.PartNo
where sh.site = #{site} AND sh.bu_no = #{buNo} AND sh.OrderNo = #{orderNo} where sh.site = #{site} AND sh.bu_no = #{buNo} AND sh.OrderNo = #{orderNo}

Loading…
Cancel
Save