1、变更影响及同步formal表优化
This commit is contained in:
parent
f78c40a795
commit
cce1aef1d7
|
|
@ -528,12 +528,12 @@
|
||||||
a.`expire_end_time`, a.`convert_to_ebom_time`, a.`remark`, a.`dept_name`,a.`dept_row_id`, a.`level_num`,
|
a.`expire_end_time`, a.`convert_to_ebom_time`, a.`remark`, a.`dept_name`,a.`dept_row_id`, a.`level_num`,
|
||||||
a.`change_desc`, a.`notice_nums`, a.`modify_time`, a.`sap_state`, a.`sap_time`
|
a.`change_desc`, a.`notice_nums`, a.`modify_time`, a.`sap_state`, a.`sap_time`
|
||||||
from t_bom_new_ebom_parent a
|
from t_bom_new_ebom_parent a
|
||||||
left join t_bom_new_ebom_parent_formal b on a.row_id = b.row_id
|
|
||||||
where a.row_id in
|
where a.row_id in
|
||||||
<foreach collection="parentRowIds" item="item" index="index" open="(" close=")" separator=",">
|
<foreach collection="parentRowIds" item="item" index="index" open="(" close=")" separator=",">
|
||||||
#{item}
|
#{item}
|
||||||
</foreach>
|
</foreach>
|
||||||
and b.row_id is null
|
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
<insert id="insertEBomFormalChild">
|
<insert id="insertEBomFormalChild">
|
||||||
|
|
@ -543,11 +543,7 @@
|
||||||
where parent_row_id in
|
where parent_row_id in
|
||||||
<foreach collection="parentRowIds" item="parentRowId" open="(" separator="," close=")">
|
<foreach collection="parentRowIds" item="parentRowId" open="(" separator="," close=")">
|
||||||
#{parentRowId}
|
#{parentRowId}
|
||||||
</foreach> and parent_row_id not in(
|
</foreach>
|
||||||
select row_id from t_bom_new_ebom_parent_formal where row_id in
|
|
||||||
<foreach collection="parentRowIds" item="item" index="index" open="(" close=")" separator=",">
|
|
||||||
#{item}
|
|
||||||
</foreach>
|
|
||||||
)
|
)
|
||||||
</insert>
|
</insert>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue