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.`change_desc`, a.`notice_nums`, a.`modify_time`, a.`sap_state`, a.`sap_time`
|
||||
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
|
||||
<foreach collection="parentRowIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach>
|
||||
and b.row_id is null
|
||||
|
||||
</insert>
|
||||
|
||||
<insert id="insertEBomFormalChild">
|
||||
|
|
@ -543,11 +543,7 @@
|
|||
where parent_row_id in
|
||||
<foreach collection="parentRowIds" item="parentRowId" open="(" separator="," close=")">
|
||||
#{parentRowId}
|
||||
</foreach> and parent_row_id not in(
|
||||
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>
|
||||
</foreach>
|
||||
)
|
||||
</insert>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue