Merge branch 'refs/heads/feature/DM/nflg-bom' into feature/DM/nflg-bom-transition
This commit is contained in:
commit
66b63234e7
|
|
@ -530,9 +530,14 @@
|
|||
INSERT INTO `t_bom_new_ebom_parent_formal` (`row_id`, `batch_no`, `drawing_no`, `material_no`, `order_number`, `material_name`, `material_desc`, `material_texture`, `material_unit`, `material_original_unit`, `unit_weight`, `total_weight`, `current_version`, `num`, `source`, `root_is`, `should_bom_exist`, `super_material_status`, `bom_exist`, `last_version_is`, `edit_status`, `status`, `user_root_is`, `virtrual_package_enum`, `exception_status`, `virtual_package_is`, `source_row_id`, `devise_user_code`, `devise_name`, `created_by`, `created_time`, `created_job`, `audit_time`, `audit_user_name`, `release_time`, `release_user_name`, `revert_time`, `revert_user_name`, `expire_end_time`, `convert_to_ebom_time`, `remark`, `dept_name`, `level_num`, `change_desc`, `notice_nums`, `modify_time`, `sap_state`, `sap_time`)
|
||||
select `row_id`, `batch_no`, `drawing_no`, `material_no`, `order_number`, `material_name`, `material_desc`, `material_texture`, `material_unit`, `material_original_unit`, `unit_weight`, `total_weight`, `current_version`, `num`, `source`, `root_is`, `should_bom_exist`, `super_material_status`, `bom_exist`, `last_version_is`, `edit_status`, `status`, `user_root_is`, `virtrual_package_enum`, `exception_status`, `virtual_package_is`, `source_row_id`, `devise_user_code`, `devise_name`, `created_by`, `created_time`, `created_job`, `audit_time`, `audit_user_name`, `release_time`, `release_user_name`, `revert_time`, `revert_user_name`, `expire_end_time`, `convert_to_ebom_time`, `remark`, `dept_name`, `level_num`, `change_desc`, `notice_nums`, `modify_time`, `sap_state`, `sap_time` from t_bom_new_ebom_parent
|
||||
where row_id in
|
||||
<foreach collection="parentRowIds" item="item" index="index" open="(" close=")" separator=",">
|
||||
#{item}
|
||||
</foreach> and 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>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<insert id="insertEBomFormalChild">
|
||||
|
|
@ -542,7 +547,12 @@
|
|||
where parent_row_id in
|
||||
<foreach collection="parentRowIds" item="parentRowId" open="(" separator="," close=")">
|
||||
#{parentRowId}
|
||||
</foreach>
|
||||
</foreach> and 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>
|
||||
)
|
||||
</insert>
|
||||
|
||||
<delete id="delEBomHistory">
|
||||
|
|
|
|||
Loading…
Reference in New Issue