feat(ebom): 正式表去除仅查看自己的数据

This commit is contained in:
曹鹏飞 2024-06-07 15:28:40 +08:00
parent 511f8c2a3a
commit 9b64e55981
1 changed files with 4 additions and 8 deletions

View File

@ -195,15 +195,9 @@
from t_bom_new_ebom_parent a
join (select material_no, max(current_version) current_version from t_bom_new_ebom_parent
where status=4
<if test="query.showMySelfOnly == 1">
AND created_by = #{userCode}
</if>
<include refid="whr"/>
group by material_no) b on a.material_no=b.material_no and a.current_version=b.current_version
where a.status=4
<if test="query.showMySelfOnly == 1">
AND a.created_by = #{userCode}
</if>
</select>
<sql id="getUpgradeChangeListWhr">
@ -273,7 +267,8 @@
and a.`status` &lt; 4
) b
on a.material_no=b.material_no
set a.root_is=1
set a.root_is=1,
a.user_root_is=1
where a.`status` &lt; 4 and b.row_id is null and a.last_version_is=1 ;
@ -312,7 +307,8 @@
</delete>
<update id="updateStateBatchByRowIds">
update t_bom_new_ebom_parent set status=#{status} , convert_to_ebom_time=now(),edit_status=2,exception_status=1
update t_bom_new_ebom_parent set status=#{status} ,
convert_to_ebom_time=now(),release_time=now(),release_user_name=#{userName},edit_status=2,exception_status=1
where row_id in
<foreach collection="list" item="item" open="(" close=")" separator=",">
#{item}