|
@@ -637,8 +637,17 @@
|
|
|
inner join so_somain e on e.id=d.id
|
|
|
INNER JOIN Inventory b ON c.cinvcode = b.cinvcode
|
|
|
where
|
|
|
- d.id in (
|
|
|
- select distinct e.id
|
|
|
+ d.id in
|
|
|
+ <foreach item="item" collection="detailIdList" index="index" open="(" separator="," close=")">
|
|
|
+ #{item}
|
|
|
+ </foreach>
|
|
|
+ or trim(e.cSOCode) like '${code}%'
|
|
|
+ ) as t1 where (cInvCCode like '01%' or cInvCCode like '02%' or cInvCCode like '03%' or cInvCCode like '04%')
|
|
|
+ </select>
|
|
|
+ <!-- 获取计划关联的销售订单子表id,给查询销售出库用 -->
|
|
|
+ <select id="getSaleOrderDetailIdList" resultType="map">
|
|
|
+
|
|
|
+ select distinct e.id as id
|
|
|
from om_momain a
|
|
|
inner join OM_MODetails b on a.moid=b.moid
|
|
|
inner join rdrecords32 c on c.iorderdid =b.isosid and b.cinvcode=c.cinvcode
|
|
@@ -646,9 +655,9 @@
|
|
|
inner join SO_SODetails e on e.iSOsID=c.isodid
|
|
|
where trim(a.ccode) like '${code}%' and a.ccode not like '%样%' and
|
|
|
(d.cInvCCode like '01%' or d.cInvCCode like '02%' or d.cInvCCode like '03%' or d.cInvCCode like '04%')
|
|
|
- ) or trim(e.cSOCode) like '${code}%'
|
|
|
- ) as t1 where (cInvCCode like '01%' or cInvCCode like '02%' or cInvCCode like '03%' or cInvCCode like '04%')
|
|
|
+
|
|
|
</select>
|
|
|
+
|
|
|
<!--获取本次采购入库的形态转换-->
|
|
|
<select id="getPoAssemVouchList" resultType="map">
|
|
|
|