fix: 计算是否是用户根节点时,排除虚拟包,因为虚拟包的创建人基本上不是bom的创建人

This commit is contained in:
曹鹏飞 2024-04-18 16:47:52 +08:00
parent b0c88ccb24
commit 50977bded2
1 changed files with 4 additions and 1 deletions

View File

@ -271,7 +271,10 @@
) b
on a.material_no=b.material_no and a.created_by=b.created_by
set a.user_root_is=1
where a.`status` < 4 and b.row_id is null and a.last_version_is=1 ;
where a.`status` < 4
and b.row_id is null
and a.last_version_is = 1
AND a.virtual_package_is = 0;
</update>
<!--更新-待复核根节点-->